/* --------------------------------------- COMMON STYLES --------------------------------------- */
.component-width:has(.dept-faqs__box) {
    border-block: none;
}

.dept-faqs__answer-block.dept-image-content-block {
    gap: 50px;
}

.imge-content-section:not(:has(.section-heading)) .dept-image-content-block,
.image-content-section:not(:has(.section-heading)) .dept-image-content-block,
.imge-content-section > .dept-image-content-block:first-child,
.image-content-section > .dept-image-content-block:first-child {
    margin-top: 0;
}

/* --------------------------------------- IMAGE POSITION / FULL WIDTH --------------------------------------- */
.dept-faqs__answer-block.image-right {
    grid-template-columns: 1fr 0.3fr;
}

.dept-faqs__answer-block.no-image,
.dept-faqs__answer-block:not(:has(.dept-faqs__answer-img)) {
    grid-template-columns: 1fr;
}

/* --------------------------------------- SECTION SPACING --------------------------------------- */
.imge-content-section:not(:last-child),
.image-content-section:not(:last-child) {
    margin-bottom: clamp(30px, 4vw, 50px);
}

.imge-content-section + .imge-content-section,
.image-content-section + .image-content-section {
    border-top: 3px solid var(--color-yellow);
    padding-top: 40px;
}

/* .imge-content-section:last-child,
.image-content-section:last-child {
    border-bottom: 3px solid var(--color-yellow);
    padding-bottom: 40px;
} */


/* ── TablePress Overrides ── */

.dept-faqs__answer-block caption {
    caption-side: top;
    font-family: var(--font-family-tiktok);
    font-size: var(--p-size);
    font-weight: var(--fw-semibold);
    color: var(--color-off-black);
    padding: 10px 20px;
    text-align: left;
}

.dept-faqs__answer-block,
.dept-faqs__answer-text,
.dept-faqs__box {
    min-width: 0;
    max-width: 100%;
}

.dept-faqs__table-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dept-faqs__answer-block table,
.dept-faqs__table-wrapper table {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 8px;
    border: 1px solid rgba(131, 113, 93, 0.25);
    overflow: hidden;
    width: 100%;
    min-width: 650px;
    max-width: none;
}

.dept-faqs__answer-block thead th {
    background-color: var(--color-purple);
    color: var(--color-white);
    font-family: var(--font-family-tiktok);
    font-weight: var(--fw-bold);
    font-size: var(--p-size);
    line-height: 1.6;
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
}

.dept-faqs__answer-block thead tr:first-child th:first-child {
    border-top-left-radius: 7px;
}

.dept-faqs__answer-block thead tr:first-child th:last-child {
    border-top-right-radius: 7px;
    border-right: none;
}

.dept-faqs__answer-block tbody td {
    padding: 16px 20px;
    color: var(--color-off-black);
    font-family: var(--font-family-tiktok);
    font-size: var(--p-size);
    line-height: 1.6;
    border: none;
    border-bottom: 1px solid rgba(131, 113, 93, 0.25);
    border-right: 1px solid rgba(131, 113, 93, 0.25);
    background: transparent;
}

.dept-faqs__answer-block tbody tr:last-child td {
    border-bottom: none;
}

.dept-faqs__answer-block tbody tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

.dept-faqs__answer-block tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

.dept-faqs__answer-block tbody td:last-child {
    border-right: none;
}

.dept-faqs__answer-block tbody tr {
    background: transparent;
    transition: background-color 0.3s ease;
}

.dept-faqs__answer-block tbody tr:nth-child(even) td,
.dept-faqs__answer-block tbody tr.even td {
    background-color: rgba(255, 255, 255, 0.5);
}

.dept-faqs__answer-block tbody tr:hover td {
    background-color: rgba(131, 113, 93, 0.15);
}

/* --------------------------------------- TAB SECTION STYLES --------------------------------------- */
.tab-section {
    padding-block: 0;
}

.tab-section__title {
    /* font-family: var(--font-family-museo, sans-serif); */
    color: var(--color-purple);
    font-size: clamp(28px, 3.5vw, var(--h2-size, 50px));
    margin-bottom: 16px;
    font-weight: 700;
}

.tab-section__desc {
    /* font-family: var(--font-family-tiktok, sans-serif); */
    font-size: var(--p-size, 16px);
    color: var(--color-black, #16181D);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Tab Navigation Container (Matches Pill UI Reference without background star) */
.tab-section__nav.nav,
.tab-section__nav.nav-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--color-light-pink);
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
    list-style: none;
    margin: 0 0 clamp(24px, 3vw, 36px) 0;
    max-width: 100%;
}

.tab-section__nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tab Nav Button / Link */
.tab-section__nav-link.nav-link {
    font-size: var(--p-size, 16px);
    font-weight: var(--fw-bold);
    line-height: 1.3;
    color: var(--color-black);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    min-height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

/* Inactive Tab Hover */
.tab-section__nav-link.nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.45);
    color: var(--color-purple);
}

/* Active Tab (Yellow Background, Purple Text, Bold) */
.tab-section__nav-link.nav-link.active,
.tab-section__nav-pills .show > .nav-link {
    background-color: var(--color-yellow) !important;
    color: var(--color-purple) !important;
    font-weight: var(--fw-bold, 700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Accessible Focus State */
.tab-section__nav-link.nav-link:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 2px;
}

/* Tab Content Panes */
.tab-section__content > .tab-pane {
    display: none;
}

.tab-section__content > .tab-pane.active {
    display: block;
}

.tab-section__pane.fade {
    transition: opacity 0.25s ease-in-out;
}

.tab-section__pane.fade:not(.show) {
    opacity: 0;
}

.tab-section__pane.show {
    opacity: 1;
}

.tab-section__pane-title {
    font-family: var(--font-family-museo, sans-serif);
    color: var(--color-purple);
    font-size: clamp(22px, 2.5vw, var(--h3-size, 40px));
    line-height: var(--heading-line-height, 1.2);
    margin-bottom: 16px;
    font-weight: 700;
}

.tab-section__pane-desc {
    font-family: var(--font-family-tiktok, sans-serif);
    font-size: var(--p-size, 16px);
    line-height: var(--body-line-height, 1.5);
    color: var(--color-black, #16181D);
    margin-bottom: 24px;
}

.tab-section__pane-desc p:not(:last-child) {
    margin-bottom: 16px;
}

.tab-section__pane-content {
    font-family: var(--font-family-tiktok, sans-serif);
    font-size: var(--p-size, 16px);
    line-height: var(--body-line-height, 1.5);
    color: var(--color-black, #16181D);
}

.tab-section__pane-content p:not(:last-child) {
    margin-bottom: 16px;
}

/* Responsive Navigation for Mobile */
@media (max-width: 767px) {
    .tab-section__nav.nav,
    .tab-section__nav.nav-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: max-content;
        padding: 6px;
    }

    .tab-section__nav.nav::-webkit-scrollbar {
        display: none;
    }

    .tab-section__nav-item {
        flex-shrink: 0;
    }

    .tab-section__nav-link.nav-link {
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
    .tab-section__nav-link.nav-link,
    .tab-section__pane.fade {
        transition: none !important;
    }
}