/* ─────────────────────────────────────────────
   NCHS – ADF Courses Widget
   Order: Campus pills → Category tabs → Cards
───────────────────────────────────────────── */

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

/* ══════════════════════════════════════════
   1. CAMPUS SECTION  (top)
══════════════════════════════════════════ */
.adf-campus-section {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
    align-content: flex-end;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.adf-campus-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: #3F6589;
    font-family: "Inter", Sans-serif;
    text-transform: uppercase;
    flex-shrink: 0;
}

.adf-campus-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", Sans-serif;
    border: 1px solid #E9EFF5;
    background: #FFF;
    border-radius: 8px;
    padding: 4px;
}

/* Each pill */
.adf-campus-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    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;
}

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

/* Active pill – solid blue, white text */
.adf-campus-pill.is-active {
    background: #2563EB;
    background: linear-gradient(180deg, rgba(230, 240, 255, 0) 49.76%, #E6F0FF 100%);
    color: #1568BD;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   2. CATEGORY TABS  (second)
══════════════════════════════════════════ */
.adf-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    border-bottom: 1px solid #C6CAD1;

    justify-content: space-between;
    margin-top: 50px;
}

.adf-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;
    position: relative;
}

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

.adf-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%);
}

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

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

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

.duration-text {
    color: #000;
}

.outcome-text {
    color: #000;
}

.adf-card:hover {
    border-color: #1568BD;
    box-shadow: -20px 2px 70px 0px #002B6B40
}

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

/* Title */
.adf-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 */
.adf-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.adf-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;
}

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

/* View Details button */
.adf-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;
}

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

/* ── Promo / CTA card (fills leftover grid space) ── */
.adf-cta-card {
    position: relative;
    grid-column: span 4;
    border-radius: 24px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 220px;
}

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

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

.adf-cta-title-italic {
    font-family: Playfair Display;
    font-style: italic;
    font-weight: 500;
}

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

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

.adf-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;
}

.adf-cta-card.is-band-sm .adf-cta-inner {
    display: block;
}
.adf-cta-card.is-band-lg .adf-cta-title {

    font-size: 30px;
}
.adf-cta-card.is-band-sm .button-wraper {
    width: 100%;
    text-align: right;
}

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

.adf-cta-card.is-band-md .adf-cta-title {
    font-size: 28px;
}

.adf-cta-card.is-band-md .adf-cta-inner {
    display: block;
}

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

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

.adf-cta-card.is-band-sm .adf-cta-inner {
    padding: 30px;
    gap: 28px;
}

.adf-cta-card.is-band-sm .adf-cta-title {
    font-size: 28px;
}

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

/* Band: stacked – ~half row width, title + desc + button stacked (wide bg) */
.adf-cta-card.is-band-md {
    background-image: url('/wp-content/uploads/2026/06/Mask-group-21-1.png');
}

.adf-cta-card.is-band-md .adf-cta-inner {
    padding: 32px;
    gap: 16px;
}

/* Band: horizontal – wide row, title left / desc+button right (wide bg) */
.adf-cta-card.is-band-lg {
    background-image: url('/wp-content/uploads/2026/06/Mask-group-21-1.png');
}

.adf-cta-card.is-band-lg .adf-cta-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
}

.adf-cta-card.is-band-lg .adf-cta-title {
    flex: 0 0 auto;
    max-width: 210px;
}
.adf-cta-card.is-band-lg .adf-cta-body{
padding-left: 120px;
}
.adf-cta-card.is-band-md .adf-cta-desc{
    font-size: 16px;
}
.adf-cta-card.is-band-lg .adf-cta-body {
    flex: 1 1 auto;
}

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

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

.adf-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;
}

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

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

@media (max-width: 600px) {
    .adf-cards-grid {
        grid-template-columns: 1fr;
    }

    .adf-campus-section {
        display: none;
    }

    .adf-tab {
        padding: 10px 10px;
        font-size: 13px;
    }

    .adf-cards-grid {
        padding: 20px 0 !important;
    }

    .adf-view-btn {
        margin-top: 30px !important;
    }

    .adf-cta-card {
        grid-column: 1 / -1 !important;
    }

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

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