/* ─────────────────────────────────────────────
   NCHS – ADF Courses V2 (Tab + Sidebar Layout)
───────────────────────────────────────────── */

.nchs-adfv2-wrap {
    font-family: inherit;
}

/* ══════════════════════════════════════════
   TOP ROW  (heading left · campus filter right)
══════════════════════════════════════════ */
.adfv2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.adfv2-topbar-title {
    font-size: 30px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.2;
}

/* Campus filter sits inline on the right of the top row
   (margin-left:auto keeps it right-aligned even when there's no heading) */
.adfv2-topbar .adfv2-campus-section {
    padding-bottom: 0;
    margin-left: auto;
}

/* Desktop: lift the campus filter up so it sits level with the "Choose your path"
   heading placed above the widget (the heading lives outside this widget, so we
   pull the top row up into its row). Tabs stay put because the row is taken out
   of normal flow. Adjust `top` if your heading height differs. */
@media (min-width: 1025px) {
    .nchs-adfv2-wrap {
        position: relative;
    }
    .nchs-adfv2-wrap .adfv2-topbar {
        position: absolute;
        top: -86px;
        right: 0;
        margin: 0;
        z-index: 2;
    }
}

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.adfv2-tabs {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #C6CAD1;
    margin-bottom: 0;
    justify-content: space-between;
}

.adfv2-tab {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 12px 24px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    color: #6C7787;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: color .18s, border-color .18s;
}

.adfv2-tab:hover {
    color: #1568BD;
}

.adfv2-tab.is-active {
    color: #1568BD;
    border-bottom-color: #1568BD;
    font-weight: 500;
    background: linear-gradient(180deg, rgba(230, 240, 255, 0) 49.76%, #E6F0FF 100%);
}

.adfv2-tab-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PANELS
══════════════════════════════════════════ */
.adfv2-panel {
    display: none;
    padding-top: 32px;
}

.adfv2-panel.is-active {
    display: block;
}

/* ══════════════════════════════════════════
   PANEL HEADER  (title/desc left · campus right)
══════════════════════════════════════════ */
.adfv2-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.adfv2-panel-title {
    font-size: 30px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px;
    line-height: 1.2;
}

.adfv2-panel-desc {
    font-size: 18px;
    font-family: "Inter", sans-serif;
    color: #333333;
    margin: 0;
    line-height: 1.6;
    padding-top: 8px;
}

/* Campus section – top-right of header */
.adfv2-campus-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom:30px;
}

.adfv2-campus-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: #3F6589;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
}

.adfv2-campus-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #E9EFF5;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.adfv2-campus-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    border: none;
    background: transparent;
    color: #748FA9;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
    line-height: 1;
}

.adfv2-campus-pill:hover {
    color: #111827;
}

.adfv2-campus-pill.is-active {
    background: linear-gradient(180deg, rgba(230, 240, 255, 0) 49.76%, #E6F0FF 100%);
    color: #1568BD;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   PANEL BODY  (sidebar left · cards right)
══════════════════════════════════════════ */
.adfv2-panel-body {
    display: flex;
    align-items: flex-start;
    gap: 90px;
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.adfv2-sidebar {
    width: 225px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 24px;
    padding: 20px 0px;
    box-shadow:
        0px 6px 14px 0px #2A47760A,
        0px 26px 26px 0px #2A477608,
        0px 58px 35px 0px #2A477605,
        0px 103px 41px 0px #2A477603,
        0px 161px 45px 0px #2A477600;
}

.adfv2-sidebar-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3F6589;
    padding: 0 30px;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.adfv2-level-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adfv2-level-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 30px;
    background: none;
    border: none;
    border-radius: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #748FA9;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.adfv2-level-btn:hover {
    color: #1568BD;
    background: #F0F5FF;
    border-left: 1px solid #1568BD;
}

.adfv2-level-btn.is-active {
    color: #1568BD;
    border-left: 1px solid #1568BD;
    background: #EEF4FF;
}

/* ══════════════════════════════════════════
   CARDS AREA
══════════════════════════════════════════ */
.adfv2-cards-area {
    flex: 1;
    min-width: 0;
}

/* Level group block */
.adfv2-level-group {
    margin-bottom: 40px;
}

.adfv2-level-group:last-child {
    margin-bottom: 0;
}

.adfv2-group-heading {
    font-size: 11px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: .12em;
    color: #6B7280;
    text-transform: uppercase;
    margin: 0 0 16px;
}

/* ══════════════════════════════════════════
   CARDS GRID
══════════════════════════════════════════ */
.adfv2-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Single card */
.adfv2-card {
    position: relative;
    background: #fff;
    border: 1px solid #E9EFF5;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s, border-color .2s;
}

.adfv2-card:hover {
    border-color: #1568BD;
    box-shadow: 10px 25px 100px 0px #002B6B40;
}

.adfv2-duration-text {
    color: #000;
}

.adfv2-outcome-text {
    color: #000;
}

/* Badge */
.adfv2-card-badge {
    position: absolute;
    top: 0;
    right: 25px;
    background: #EF4444;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .05em;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
}

/* Title */
.adfv2-card-title {
    font-size: 22px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.adfv2-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.adfv2-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    color: #666666;
    line-height: 1.4;
}

.adfv2-meta-icon {
    flex-shrink: 0;
    color: #666666;
}

/* View Details button */
.adfv2-view-btn {
    display: block;
    text-align: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    border: 1px solid #999999;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 40px;
    transition: background .18s, border-color .18s, color .18s;
}

.adfv2-view-btn:hover,
.adfv2-card:hover .adfv2-view-btn {
    background: #1568BD;
    border-color: #1568BD;
    color: #fff;
}

/* ══════════════════════════════════════════
   PROMO / CTA CARD  (fills leftover grid space)
   Sits inside .adfv2-cards-grid; JS sizes its
   column span to the empty cells of the last row.
══════════════════════════════════════════ */
.adfv2-cta-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 220px;
    background-image: url('/wp-content/uploads/2026/06/Mask-group-21-1.png');
}

.adfv2-cta-card.is-hidden {
    display: none !important;
}

.adfv2-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 32px;
}

.adfv2-cta-title {
    font-family: "Inter", sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    color: #111111;
    margin: 0;
}

.adfv2-cta-title-italic {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
}

.adfv2-cta-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 50px;
}

.adfv2-cta-desc {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    max-width: 420px;
}

.adfv2-cta-btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 999px;
    background: #1568BD;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s;
}

.adfv2-cta-btn:hover {
    background: #0F4F94;
}

/* ── Band: SM – one grid cell (title top · button bottom-right, square bg) ── */
.adfv2-cta-card.is-band-sm {
    background-image: url('/wp-content/uploads/2026/06/Group-1707484900-1.png');
    min-height: 0;
    align-items: stretch;
}

.adfv2-cta-card.is-band-sm .adfv2-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding: 30px;
}

.adfv2-cta-card.is-band-sm .adfv2-cta-title {
    font-size: 26px;
    margin: 0;
}

.adfv2-cta-card.is-band-sm .adfv2-cta-desc {
    display: none;
}

.adfv2-cta-card.is-band-sm .adfv2-cta-body {
    margin-top: auto;   /* push the button to the bottom of the card */
    padding-top: 30px;
    width: 100%;
}

.adfv2-cta-card.is-band-sm .adfv2-cta-btn-wrap {
    width: 100%;
    text-align: right;
}

/* ── Band: MD – two grid cells (title + desc + button stacked) ── */
.adfv2-cta-card.is-band-md .adfv2-cta-title {
    font-size: 28px;
}

.adfv2-cta-card.is-band-md .adfv2-cta-inner {
    display: block;
    padding: 32px;
}

.adfv2-cta-card.is-band-md .adfv2-cta-body {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: 30px;
}

/* ── Band: LG – three+ cells / full row (title left · desc+button right) ── */
.adfv2-cta-card.is-band-lg .adfv2-cta-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
}

.adfv2-cta-card.is-band-lg .adfv2-cta-title {
    flex: 0 0 auto;
    max-width: 410px;
}

.adfv2-cta-card.is-band-lg .adfv2-cta-body {
    flex: 1 1 auto;
}

/* No results */
.adfv2-no-results {
    text-align: center;
    color: #9CA3AF;
    font-family: "Inter", sans-serif;
    padding: 40px 0;
    font-size: 15px;
}

/* Load More */
.adfv2-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.adfv2-loadmore-btn {
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    border: 1px solid #1568BD;
    background: #fff;
    color: #1568BD;
    font-size: 16px;
    font-weight: 600;
    transition: background .18s, border-color .18s, color .18s;
}

.adfv2-loadmore-btn:hover,
.adfv2-loadmore-btn:focus {
    background: #1568BD;
    border-color: #1568BD;
    color: #fff;
}


/* ══════════════════════════════════════════
   Responsive
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .adfv2-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .adfv2-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .adfv2-campus-section {
        align-items: flex-start;
        width: 100%;
        padding-bottom:10px;
    }

    .adfv2-campus-pills {
        justify-content: center;
    }

    .adfv2-campus-pills {
        width: 100%;
        border-radius: 58px;
        justify-content: center;
    }

    button.adfv2-campus-pill.is-active {
        background: rgba(21, 104, 189, 1) !important;
        color: rgba(255, 255, 255, 1);
    }

    .adfv2-campus-pill {
        padding: 13px 14px !important;
        width: 100%;
        border-radius: 58px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .adfv2-panel-body {
        flex-direction: column;
    }
.adfv2-view-btn {
        margin-top: 30px;
}
    .adfv2-sidebar {
        width: 100%;
        padding: 0px;
        border: none;
        box-shadow: none;
    }

    .adfv2-level-list {
        flex-direction: row;
        border: 1px solid rgba(233, 239, 245, 1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        padding: 5px;
        overflow-x: auto;
        width: 100%;
    }

    .adfv2-level-btn.is-active {
        border: none !important;
        background: rgba(230, 240, 255, 1) !important;
        color: rgba(21, 104, 189, 1);
        border-radius: 8px;
    }

    .adfv2-level-btn {
        display: block;
        width: 130px;
        text-align: center;
    }

    .adfv2-panel-body {
        gap: 30px;
    }

    .adfv2-cards-grid {
        grid-template-columns: 1fr;
    }

    .adfv2-cards-area {
        flex: 1;
        min-width: 100%;
    }

    /* Promo card collapses to a single column on mobile */
    .adfv2-cta-card {
        grid-column: 1 / -1 !important;
    }

    .adfv2-cta-card.is-band-lg .adfv2-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .adfv2-cta-card.is-band-lg .adfv2-cta-title {
        max-width: none;
    }

    .adfv2-sidebar-label {
        padding: 0px;
        margin-top: 20px;
        margin-bottom: 10px;;
    }

}

@media (max-width: 600px) {
    .adfv2-level-btn {
        padding: 9px
    }

    .adfv2-level-btn.is-active {
        padding: 9px
    }

    .adfv2-panel-desc {
        display: none !important
    }

    .adfv2-sidebar {
        background: transparent !important;
    }

    .adfv2-cards-grid {
        grid-template-columns: 1fr;
    }

    .adfv2-panel-header
    {
        margin-bottom: 10px;
    }
    .adfv2-tab {
        padding: 10px 10px;
        font-size: 13px;
    }

    .adfv2-campus-pill {
        padding: 7px 14px;
        font-size: 13px;
    }

    .adfv2-panel-title {
        font-size: 22px;
    }

    .adfv2-panel {
        padding-top:0px !important;
    }
}