/* ==========================================================================
   Sortiq Solutions - Blogs Stylesheet
   ========================================================================== */

/* Blog Page Wrapper */
.blog-page-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', 'Nunito', sans-serif;
}

.blog-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .blog-container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 1024px) {
    .blog-container {
        flex-direction: row;
    }
}

/* Main Content Area */
.blog-main-content {
    flex: 1;
    order: 2;
}

@media (min-width: 1024px) {
    .blog-main-content {
        order: 1;
        width: 70%;
    }
}

/* Sidebar Area */
.blog-sidebar {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .blog-sidebar {
        order: 2;
        width: 30%;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        gap: 2rem;
    }
}

/* Blog Card */
.blog-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem);
    border-bottom-color: #0c5adb;
}

.blog-card-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

.blog-card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #ff6a00;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    z-index: 10;
}

.blog-card-content {
    padding: 1.5rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 300 !important;
    font-family: 'Raleway', 'Nunito', sans-serif !important;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.blog-card-meta i {
    font-size: 14px;
}

.blog-card-date {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00173e;
    margin-bottom: 0.75rem;
    line-height: 1.375;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: #ff6600;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Sidebar Components */
.blog-sidebar-widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.blog-sidebar-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: #00142e;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.blog-recent-post-dot {
    color: #ff6600;
    font-size: 1rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.blog-recent-post-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.375;
}

.blog-recent-post-item:hover .blog-recent-post-link {
    color: #1464db;
}

.blog-category-item {
    display: block;
}

.blog-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-category-link-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category-dot {
    color: #ff6600;
    font-size: 1rem;
    line-height: 1;
}

.blog-category-count {
    background-color: #f9fafb;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category-link:hover {
    color: #1464db;
}

.blog-category-item:hover .blog-category-count {
    background-color: #fff7ed;
    color: #ff6600;
}

/* Search Form */
.blog-search-form {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 52px;
}

.blog-search-form:focus-within {
    box-shadow: 0 0 0 2px #ffedd5;
    border-color: #ff6600;
}

.blog-search-input {
    flex: 1;
    padding: 0.5rem 1.25rem;
    outline: none;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    height: 100%;
}

.blog-search-button {
    background-color: #ff6600;
    color: #ffffff;
    padding: 0 1.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.blog-search-button:hover {
    background-color: #ea580c;
}

/* Pagination */
.blog-pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.blog-page-item {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-page-item:not(.disabled):not(.active):hover {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

.blog-page-item.active,
.blog-page-item.active:hover {
    background-color: #00173e;
    border-color: #00173e;
    color: #ffffff;
}

.blog-page-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.blog-page-arrow {
    font-weight: 300;
    font-size: 1.5rem;
    font-family: sans-serif;
    color: #ff6600;
}

.blog-page-arrow:not(.disabled):hover {
    background-color: #00173e;
    border-color: #ff6600;
    color: #ffffff;
}

/* Individual Blog Show Page */
.blog-single-wrapper {
    background-color: #f9fafb;
    min-height: 100vh;
    padding-bottom: 5rem;
    font-family: 'Raleway', sans-serif;
}

.blog-single-container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-back-link:hover {
    color: #ff6600;
}

.blog-single-article {
    padding-top: 0;
}

.blog-single-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-sizing: border-box !important;
    display: block !important;
    max-width: 100% !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    object-fit: cover;
}

.blog-single-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #2563eb;
    font-weight: 300 !important;
    font-family: 'Raleway', 'Nunito', sans-serif !important;
}

.blog-single-title {
    margin-top: 1rem;
    color: #000000;
    font-size: 1.75rem !important;
    line-height: 1.2;
    font-weight: 700 !important;
}

@media (min-width: 768px) {}

.blog-single-excerpt {
    margin-top: 1.25rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .blog-single-excerpt {
        font-size: 1rem;
    }
}

.blog-single-content {
    margin-top: 1.5rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.blog-single-content p {
    margin-bottom: 1.25rem;
    font-family: 'Raleway', 'Nunito', sans-serif;
    color: #4b5563;
    line-height: 1.8;
}

.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
    color: #0f172a !important;
    font-family: 'Nunito', 'Inter', sans-serif;
    line-height: 1.35;
    margin-top: 2rem !important;
    margin-bottom: 0.85rem !important;
}

.blog-single-content h1:not([style*="font-size"]),
.blog-single-content h1 *:not([style*="font-size"]),
.blog-single-content h1 span:not([style*="font-size"]),
.blog-single-content h1 strong:not([style*="font-size"]),
.blog-single-content h1 b:not([style*="font-size"]) {
    font-size: 2.15rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.blog-single-content h2:not([style*="font-size"]),
.blog-single-content h2 *:not([style*="font-size"]),
.blog-single-content h2 span:not([style*="font-size"]),
.blog-single-content h2 strong:not([style*="font-size"]),
.blog-single-content h2 b:not([style*="font-size"]) {
    font-size: 1.75rem !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
}

.blog-single-content h3:not([style*="font-size"]),
.blog-single-content h3 *:not([style*="font-size"]),
.blog-single-content h3 span:not([style*="font-size"]),
.blog-single-content h3 strong:not([style*="font-size"]),
.blog-single-content h3 b:not([style*="font-size"]) {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.blog-single-content h4:not([style*="font-size"]),
.blog-single-content h4 *:not([style*="font-size"]),
.blog-single-content h4 span:not([style*="font-size"]),
.blog-single-content h4 strong:not([style*="font-size"]),
.blog-single-content h4 b:not([style*="font-size"]) {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.blog-single-content h5:not([style*="font-size"]),
.blog-single-content h5 *:not([style*="font-size"]),
.blog-single-content h5 span:not([style*="font-size"]),
.blog-single-content h5 strong:not([style*="font-size"]),
.blog-single-content h5 b:not([style*="font-size"]) {
    font-size: 1.08rem !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
}

.blog-single-content h6:not([style*="font-size"]),
.blog-single-content h6 *:not([style*="font-size"]),
.blog-single-content h6 span:not([style*="font-size"]),
.blog-single-content h6 strong:not([style*="font-size"]),
.blog-single-content h6 b:not([style*="font-size"]) {
    font-size: 0.95rem !important;
    font-weight: 650 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.5 !important;
}

.blog-single-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.blog-single-content a:hover {
    color: #ff6600;
    text-decoration: none;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-single-content ul {
    list-style-type: disc;
}

.blog-single-content ol {
    list-style-type: decimal;
}

.blog-single-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.blog-single-content li p {
    margin-bottom: 0;
    display: inline;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .blog-single-content {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {

    .blog-single-content h1,
    .blog-single-content h1 * {
        font-size: 1.7rem !important;
    }

    .blog-single-content h2,
    .blog-single-content h2 * {
        font-size: 1.4rem !important;
    }

    .blog-single-content h3,
    .blog-single-content h3 * {
        font-size: 1.22rem !important;
    }

    .blog-single-content h4,
    .blog-single-content h4 * {
        font-size: 1.1rem !important;
    }

    .blog-single-content h5,
    .blog-single-content h5 * {
        font-size: 1rem !important;
    }

    .blog-single-content h6,
    .blog-single-content h6 * {
        font-size: 0.9rem !important;
    }
}

/* Share Section & Brand-colored Icons */
.blog-share-section {
    font-family: 'Inter', 'Nunito', sans-serif;
}

.blog-share-label {
    font-size: 1.125rem;
    font-weight: 800;
    color: #00173e;
}

.blog-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-share-icon:hover {
    transform: scale(1.2);
}

.blog-share-icon--facebook {
    color: #3b5998;
}

.blog-share-icon--twitter {
    color: #1da1f2;
}

.blog-share-icon--linkedin {
    color: #0077b5;
}

.blog-share-icon--pinterest {
    color: #000000;
}

.blog-share-icon--gplus {
    color: #db4437;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

/* Blog Navigation Container & Inner columns */
.blog-navigation-container {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.blog-nav-arrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    transition: color 0.3s ease;
}

.blog-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00173e;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.blog-navigation-container a {
    transition: all 0.3s ease;
}

.blog-navigation-container a:hover .blog-nav-title {
    color: #2563eb;
}

.blog-navigation-container a:hover .blog-nav-arrow {
    color: #ff6600;
}

@media (max-width: 767px) {
    .blog-navigation-container>div:first-child {
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Blog Single Article FAQ Accordion Section
   ========================================================================== */
.blog-faq-section {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.blog-faq-head {
    margin-bottom: 1.5rem;
}

.blog-faq-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 26, 61, 0.04);
}

.blog-faq-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 26, 61, 0.06);
}

.blog-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.blog-faq-trigger:hover .blog-faq-q-text {
    color: #ff6600;
}

.blog-faq-q-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00173e;
    line-height: 1.4;
    padding-right: 1rem;
    transition: color 0.2s ease;
}

.blog-faq-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.blog-faq-trigger:hover .blog-faq-icon-pill {
    background: #ff6600;
    color: #ffffff;
}

.blog-faq-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-faq-content {
    border-top: 1px solid #f8fafc;
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
    animation: blogFaqFadeIn 0.25s ease forwards;
}

@keyframes blogFaqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .blog-faq-trigger {
        padding: 0.95rem 1rem;
    }
    .blog-faq-q-text {
        font-size: 0.95rem;
    }
    .blog-faq-content {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Responsive & Modern Blog Content Tables (Desktop & Mobile)
   ========================================================================== */
.blog-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /*margin: 2rem 0;*/
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 26, 61, 0.05);
    position: relative;
    box-sizing: border-box;
}

.blog-table-wrapper::-webkit-scrollbar {
    height: 6px;
}
.blog-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
.blog-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.blog-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ff6600;
}

.blog-single-content table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
    background: #ffffff;
    border: none !important;
    table-layout: auto !important;
    box-sizing: border-box;
}

/* Clear any pasted colgroup / col fixed width restrictions */
.blog-single-content table colgroup,
.blog-single-content table col {
    width: auto !important;
    min-width: 0 !important;
}

/* Table Header */
.blog-single-content table thead th,
.blog-single-content table th {
    background: #001a3d !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 14px !important;
    text-align: left;
    border: none !important;
    border-bottom: 3px solid #ff6600 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    vertical-align: middle;
    line-height: 1.35;
    box-sizing: border-box;
}

.blog-single-content table thead tr:first-child th:first-child,
.blog-single-content table tr:first-child th:first-child {
    border-top-left-radius: 11px;
}

.blog-single-content table thead tr:first-child th:last-child,
.blog-single-content table tr:first-child th:last-child {
    border-top-right-radius: 11px;
}

/* Table Cells */
.blog-single-content table td {
    padding: 11px 14px !important;
    color: #334155 !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    vertical-align: top;
    font-size: 13.5px !important;
    background: transparent;
    transition: background 0.15s ease;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Ensure pasted paragraphs and spans inside cells wrap and match typography */
.blog-single-content table th *,
.blog-single-content table td * {
    white-space: normal !important;
    max-width: 100% !important;
    font-family: inherit !important;
}

.blog-single-content table td p {
    margin: 0 !important;
    line-height: inherit !important;
}

/* Bold the first column if it represents task/item/feature name */
.blog-single-content table tbody tr td:first-child,
.blog-single-content table tr td:first-child {
    font-weight: 700;
    color: #00173e !important;
}

/* Alternating zebra rows */
.blog-single-content table tbody tr:nth-child(even),
.blog-single-content table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Hover row highlight */
.blog-single-content table tbody tr:hover,
.blog-single-content table tr:hover {
    background-color: #fff8f5 !important;
}

/* Remove bottom border on last row */
.blog-single-content table tbody tr:last-child td,
.blog-single-content table tr:last-child td {
    border-bottom: none !important;
}

/* Mobile Screens: maintain comfortable reading touch scroll without collapsing columns */
@media (max-width: 768px) {
    .blog-table-wrapper {
        /*margin: 1.25rem 0;*/
        border-radius: 10px;
    }

    .blog-single-content table {
        min-width: 440px !important;
    }

    .blog-single-content table th {
        padding: 10px 12px !important;
        font-size: 11.5px !important;
    }

    .blog-single-content table td {
        padding: 9px 12px !important;
        font-size: 12.5px !important;
    }
}