/* ================= PREMIUM BLOG DETAILS & FAQ THEME ================= */
:root {
    --th-navy: #0b2239;
    --th-blue: #0077b6;
    --th-sky: #00a8e8;
    --th-light-bg: #f4f8fb;
    --th-border: #e2edf5;
    --th-text: #475569;
}

.blog-details-section {
    padding: 60px 0 50px;
    background-color: #f8fafc;
}

/* 1. Top Left Feature Image Card */
.blog-feature-card {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 34, 57, 0.08);
    background: #ffffff;
    border: 4px solid #ffffff;
}

.blog-feature-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.5s ease;
}

.blog-feature-card:hover .blog-feature-img {
    transform: scale(1.02);
}

/* 2. Top Right Sidebar Widget (Matches Top Left Image Height, Not Fixed) */
.sidebar-widget {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 12px 32px rgba(11, 34, 57, 0.07);
    border: 1px solid var(--th-border);
    height: 438px;
    display: flex;
    flex-direction: column;
}

.sidebar-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--th-navy);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--th-blue), var(--th-sky));
    border-radius: 3px;
}

.sidebar-post-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.sidebar-post-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-post-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.sidebar-post-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.sidebar-post-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--th-blue);
}

.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-list li {
    margin-bottom: 12px;
}

.sidebar-post-list li:last-child {
    margin-bottom: 0;
}

.sidebar-post-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--th-light-bg);
    color: var(--th-navy);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.sidebar-post-list li a i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--th-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 119, 182, 0.12);
    transition: all 0.25s ease;
}

.sidebar-post-list li a:hover {
    background: #ffffff;
    border-color: var(--th-sky);
    color: var(--th-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.1);
}

.sidebar-post-list li a:hover i {
    background: var(--th-blue);
    color: #ffffff;
    transform: translateX(3px);
}

/* 3. Full Width Bottom Content Card */
.premium-blog-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 50px;
    box-shadow: 0 12px 36px rgba(11, 34, 57, 0.06);
    border: 1px solid var(--th-border);
}

.blog-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ff;
    color: var(--th-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.premium-blog-content > h2.main-article-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--th-navy);
    line-height: 1.35;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 2px solid #f1f5f9;
}

/* ================= RICH TEXT, LISTS & FULL TABLE STYLING ================= */
.table-responsive-wrapper {
    width: 100%;
}

.table-responsive-wrapper p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--th-text);
    margin-bottom: 1.4rem;
}

.table-responsive-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--th-navy);
    margin-top: 2.4rem;
    margin-bottom: 1rem;
    padding-left: 16px;
    border-left: 4px solid var(--th-blue);
    line-height: 1.35;
}

.table-responsive-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #163a5f;
    margin-top: 1.8rem;
    margin-bottom: 0.85rem;
}

.table-responsive-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Styled Lists inside Blog Content */
.table-responsive-wrapper ul {
    list-style: none;
    padding: 12px 28px;
    border-radius: 16px;
}

.table-responsive-wrapper ul li {
    position: relative;
    padding-left: 8px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
    list-style: disc;
}

.table-responsive-wrapper ul li:last-child {
    margin-bottom: 0;
}

/* Full Table Styling (Desktop & Mobile Full Table View) */
.table-responsive-wrapper figure.table {
    display: block;
    width: 100%;
    margin: 2rem 0;
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 6px 22px rgba(11, 34, 57, 0.06);
    border: 1px solid var(--th-border);
    background: #ffffff;
}

.table-responsive-wrapper table {
    width: 100% !important;
    border-collapse: collapse;
    background: #ffffff;
    margin: 0;
    table-layout: auto;
}

.table-responsive-wrapper table tr:first-child th,
.table-responsive-wrapper table tr:first-child td {
    background: linear-gradient(90deg, var(--th-navy), var(--th-blue));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 15px 20px;
    border: none;
    text-align: left;
}

.table-responsive-wrapper table tr:not(:first-child) th,
.table-responsive-wrapper table tr:not(:first-child) td {
    padding: 14px 20px;
    border-bottom: 1px solid #e9f0f6;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 400;
    vertical-align: top;
    text-align: left;
}

.table-responsive-wrapper table tr:not(:first-child) th:first-child,
.table-responsive-wrapper table tr:not(:first-child) td:first-child {
    font-weight: 700;
    color: var(--th-navy);
    background: rgba(244, 248, 251, 0.8);
    border-right: 1px solid #e9f0f6;
    width: 26%;
}

.table-responsive-wrapper table tr:last-child th,
.table-responsive-wrapper table tr:last-child td {
    border-bottom: none;
}

.table-responsive-wrapper table tr:not(:first-child):nth-child(even) {
    background-color: #f9fcff;
}

.table-responsive-wrapper table tr:not(:first-child):hover {
    background-color: #eef7ff;
}

/* ================= HOMEPAGE-MATCHED PREMIUM FAQ SECTION ================= */
.premium-faq-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.faq-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef7ff;
    color: var(--th-blue);
    border: 1px solid #cce5ff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.faq-heading {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--th-navy);
    margin-bottom: 10px;
}

.faq-heading span {
    color: var(--th-sky);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--th-border);
    border-radius: 14px !important;
    margin-bottom: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(11, 34, 57, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: #b8dcff;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.08);
}

.faq-accordion .accordion-button {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--th-navy);
    background: #ffffff;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #f4faff;
    color: var(--th-blue);
    border-bottom: 1px solid var(--th-border);
}

.faq-num-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--th-blue);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-accordion .accordion-body {
    padding: 20px 24px 20px 68px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--th-text);
    background: #ffffff;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 991px) {
    .blog-details-section {
        padding: 40px 0 35px;
    }
    .blog-feature-img {
        height: 320px;
    }
    .sidebar-widget {
        height: auto;
        max-height: 400px;
        padding: 22px 20px;
    }
    .premium-blog-content {
        padding: 30px 24px;
    }
    .premium-blog-content > h2.main-article-heading {
        font-size: 1.6rem;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    .table-responsive-wrapper h2 {
        font-size: 1.38rem;
        margin-top: 2rem;
    }
    .table-responsive-wrapper h3 {
        font-size: 1.18rem;
    }
    .faq-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .blog-feature-img {
        height: 230px;
    }
    .premium-blog-content {
        padding: 22px 15px;
        border-radius: 16px;
    }
    .premium-blog-content > h2.main-article-heading {
        font-size: 1.35rem;
    }
    .table-responsive-wrapper p {
        font-size: 0.96rem;
        line-height: 1.75;
    }
    .table-responsive-wrapper ul {
        padding: 18px 16px;
    }
    .table-responsive-wrapper ul li {
        font-size: 0.94rem;
        padding-left: 26px;
    }

    /* Full Real Table on Mobile (Fits Screen Cleanly with Header & Columns) */
    .table-responsive-wrapper figure.table {
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    .table-responsive-wrapper table tr:first-child th,
    .table-responsive-wrapper table tr:first-child td {
        padding: 12px 12px;
        font-size: 0.82rem;
        letter-spacing: 0.3px;
    }
    .table-responsive-wrapper table tr:not(:first-child) th,
    .table-responsive-wrapper table tr:not(:first-child) td {
        padding: 11px 12px;
        font-size: 0.86rem;
        line-height: 1.5;
    }
    .table-responsive-wrapper table tr:not(:first-child) th:first-child,
    .table-responsive-wrapper table tr:not(:first-child) td:first-child {
        width: 32%;
        font-size: 0.86rem;
        word-break: break-word;
    }

    /* Mobile FAQ Adjustments */
    .premium-faq-section {
        padding: 40px 0 60px;
    }
    .faq-accordion .accordion-button {
        padding: 15px 16px;
        font-size: 0.96rem;
        gap: 10px;
    }
    .faq-num-badge {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
    .faq-accordion .accordion-body {
        padding: 16px;
        font-size: 0.93rem;
    }
}