/* ==========================================================================
   BIBT — Program Detail Page Styles
   Extends bibt-hero-section.css design tokens
   ========================================================================== */

.dropdown--programs {
    min-width: 370px;
}

/* ---------- Program Hero ---------- */
.prog-hero {
    position: relative;
    min-height: 540px;
    background: var(--navy-950);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 72px 0 108px;
}

.prog-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.prog-hero-wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(34px) saturate(1.15) brightness(0.34);
    transform: scale(1.12);
}

.prog-hero-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 16%, rgba(0, 0, 0, 0.88) 32%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 16%, rgba(0, 0, 0, 0.88) 32%, #000 48%);
}

.prog-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 21, 39, 0.94) 0%, rgba(6, 21, 39, 0.78) 38%, rgba(6, 21, 39, 0.34) 68%, rgba(6, 21, 39, 0.16) 100%),
        linear-gradient(0deg, rgba(6, 21, 39, 0.88) 0%, rgba(6, 21, 39, 0.25) 35%, transparent 65%);
}

.prog-hero-inner {
    position: relative;
    z-index: 3;
    color: #fff;
}

.prog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 28px;
}

.prog-breadcrumb a {
    transition: color 0.2s var(--ease);
}

.prog-breadcrumb a:hover {
    color: var(--gold-light);
}

.prog-crumb-current {
    color: var(--gold-light);
    font-weight: 600;
}

.prog-hero-copy {
    max-width: 720px;
}

.prog-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.prog-badge-gold {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(200, 162, 74, 0.18);
    border: 1px solid rgba(200, 162, 74, 0.55);
    color: var(--gold-light);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.prog-school-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.prog-hero-title {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 20px;
}

.prog-hero-sub {
    font-size: 1.06rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.8);
    max-width: 58ch;
    margin-bottom: 32px;
}

.prog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Key Facts Ribbon ---------- */
.prog-facts {
    position: relative;
    z-index: 10;
    width: min(1200px, calc(100% - 80px));
    margin: -54px auto 0;
}

.prog-facts-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.prog-fact {
    padding: 24px 28px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prog-fact:first-child {
    border-left: 0;
}

.prog-fact--accent {
    background: linear-gradient(135deg, rgba(200, 162, 74, 0.08), rgba(200, 162, 74, 0.02));
}

.prog-fact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.prog-fact-value {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 500;
    color: var(--navy-900);
    line-height: 1.2;
}

.prog-fact--accent .prog-fact-value {
    color: var(--gold-deep);
}

.prog-facts-footnote {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    font-style: italic;
}

/* ---------- Main Two-Column Body ---------- */
.prog-body {
    padding: 76px 0 112px;
    background: var(--white);
}

.prog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.85fr);
    gap: 64px;
    align-items: start;
}

.prog-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

.prog-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prog-heading {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    margin-bottom: 20px;
}

.prog-section-sub {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 26px;
}

.prog-prose p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.prog-prose p:last-child {
    margin-bottom: 0;
}

/* Highlights 2x2 */
.prog-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prog-highlight-card {
    padding: 26px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
}

.prog-highlight-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold-deep);
    margin-bottom: 10px;
}

.prog-highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.prog-highlight-card p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

/* Visual Gallery */
.prog-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.prog-gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
    cursor: zoom-in;
}

.prog-gallery-item:first-child {
    grid-column: span 2;
}

.prog-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.75s var(--ease-out);
}

.prog-gallery-item:first-child img {
    aspect-ratio: 16 / 9;
}

.prog-gallery-item:hover img {
    transform: scale(1.04);
}

.prog-gallery-item figcaption {
    padding: 14px 18px;
    background: var(--white);
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* Curriculum */
.prog-curriculum {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.curriculum-stage {
    padding: 24px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.curriculum-stage-meta {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 6px;
}

.curriculum-stage h3 {
    font-size: 1.32rem;
    margin-bottom: 14px;
}

.curriculum-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.curriculum-course-pill {
    padding: 7px 13px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* Careers */
.prog-careers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.career-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.career-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* Eligibility */
.prog-eligibility {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prog-eligibility li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.prog-eligibility li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-deep);
    font-weight: 700;
}

/* ---------- Sticky Sidebar Card ---------- */
.prog-sidebar {
    position: sticky;
    top: 102px;
}

.tuition-card {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(20, 84, 155, 0.36), transparent 55%),
        var(--navy-950);
    color: #fff;
    padding: 34px 30px 30px;
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.tuition-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.tuition-title {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 22px;
    line-height: 1.25;
}

.tuition-price-box {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 162, 74, 0.38);
    margin-bottom: 20px;
}

.tuition-price-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.tuition-price-val {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1.1;
}

.tuition-specs div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line-dark);
    font-size: 12.5px;
}

.tuition-specs dt {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.tuition-specs dd {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.tuition-disclaimer {
    margin: 18px 0 22px;
    padding: 14px 16px;
    background: rgba(200, 162, 74, 0.12);
    border-left: 3px solid var(--gold);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.tuition-disclaimer strong {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.btn-block-clean {
    width: 100%;
    text-align: center;
}

.tuition-phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.tuition-phone-btn {
    display: flex;
    flex-direction: column;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tuition-phone-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-light);
}

.tuition-phone-btn span {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.tuition-phone-btn strong {
    font-size: 12.5px;
    color: #fff;
    margin-top: 2px;
}

.tuition-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tuition-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s var(--ease);
}

.tuition-links a:hover {
    color: var(--gold-light);
}

.tuition-links svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
}

/* ---------- Other Programs Strip ---------- */
.other-programs {
    padding: 96px 0 112px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.other-programs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.other-programs-head .section-title {
    margin-bottom: 0;
}

.other-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(6, 21, 39, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 26px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(6, 21, 39, 0.7);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
}

.lightbox-figure {
    max-width: min(1040px, 100%);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure img {
    max-height: 76vh;
    width: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-figure figcaption {
    margin-top: 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .prog-facts {
        width: calc(100% - 48px);
    }

    .prog-facts-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .prog-fact:nth-child(3) {
        border-left: 0;
    }

    .prog-fact:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .prog-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .prog-sidebar {
        position: static;
    }

    .other-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .prog-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0 0 64px;
    }

    .prog-hero-media {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 220px;
        max-height: 320px;
        overflow: hidden;
        background: var(--navy-950);
    }

    .prog-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 38%;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
    }

    .prog-hero-shade {
        display: none;
    }

    .prog-hero-inner {
        padding-top: 24px;
    }

    .prog-gallery-item img,
    .prog-gallery-item:first-child img {
        aspect-ratio: 3 / 2;
    }

    .prog-facts {
        width: calc(100% - 36px);
        margin-top: -36px;
    }

    .prog-facts-inner {
        grid-template-columns: 1fr;
    }

    .prog-fact {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 18px 20px;
    }

    .prog-fact:first-child {
        border-top: 0;
    }

    .prog-facts-footnote {
        text-align: left;
    }

    .prog-highlights,
    .prog-gallery,
    .prog-careers,
    .other-programs-grid {
        grid-template-columns: 1fr;
    }

    .prog-gallery-item:first-child {
        grid-column: span 1;
    }

    .tuition-phones {
        grid-template-columns: 1fr;
    }
}
