/* V30 - Program detail visual polish
   Scoped to the current editorial program detail page only. */

/* ----- Hero: 70% of the visible viewport, with readable white copy ----- */
.v30-program-page .v30-program-hero {
    height: 70vh !important;
    height: 70dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: flex-end !important;
    position: relative;
    overflow: hidden;
    background: #082b57;
}

.v30-program-page .v30-program-hero .v3-program-hero-media,
.v30-program-page .v30-program-hero .v3-program-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.v30-program-page .v30-program-hero .v3-program-hero-media img {
    object-fit: cover;
    display: block;
}

.v30-program-page .v30-program-hero .v3-program-hero-media::after {
    background: linear-gradient(90deg, rgba(4, 26, 53, .94) 0%, rgba(4, 26, 53, .76) 42%, rgba(4, 26, 53, .24) 72%, rgba(4, 26, 53, .08) 100%) !important;
}

[dir="rtl"] .v30-program-page .v30-program-hero .v3-program-hero-media::after {
    background: linear-gradient(270deg, rgba(4, 26, 53, .94) 0%, rgba(4, 26, 53, .76) 42%, rgba(4, 26, 53, .24) 72%, rgba(4, 26, 53, .08) 100%) !important;
}

.v30-program-page .v30-program-hero .v3-program-hero-content {
    width: min(1240px, calc(100% - 72px));
    padding: 0 0 clamp(44px, 7vh, 76px) !important;
    margin-inline: auto;
}

.v30-program-page .v30-program-hero .v3-program-hero-content > div {
    max-width: 780px;
}

.v30-program-page .v30-program-hero .v3-kicker,
.v30-program-page .v30-program-hero h1,
.v30-program-page .v30-program-hero p {
    color: #fff !important;
}

.v30-program-page .v30-program-hero .v3-kicker {
    opacity: .9;
    letter-spacing: .16em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.v30-program-page .v30-program-hero h1 {
    font-size: clamp(50px, 6.2vw, 88px) !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
    margin-bottom: 22px !important;
    text-shadow: 0 5px 30px rgba(0, 0, 0, .22);
}

.v30-program-page .v30-program-hero p {
    max-width: 690px !important;
    font-size: clamp(15px, 1.35vw, 18px) !important;
    line-height: 1.7 !important;
    opacity: .9;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .2);
}

.v30-program-page .v30-program-hero .v3-program-jump {
    margin-top: 25px;
}

.v30-program-page .v30-program-hero .v3-program-jump .ghost {
    color: #fff !important;
}

/* ----- Priorities: editorial split layout, not cards ----- */
.v30-program-page .v30-priorities-section {
    padding: 108px 0 !important;
    background: #fff !important;
}

.v30-priorities-shell {
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    gap: clamp(58px, 7vw, 104px);
    align-items: start;
}

.v30-priorities-intro {
    position: sticky;
    top: 118px;
}

.v30-priorities-intro .v3-kicker {
    color: #0d66cc;
    margin-bottom: 20px;
}

.v30-priorities-intro h2 {
    margin: 0;
    color: #0a2d59 !important;
    font-size: clamp(40px, 4.5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 500;
}

.v30-section-rule {
    display: block;
    width: 68px;
    height: 3px;
    margin-top: 30px;
    background: linear-gradient(90deg, #0d66cc, #35addd);
}

[dir="rtl"] .v30-section-rule {
    background: linear-gradient(270deg, #0d66cc, #35addd);
}

.v30-priority-list {
    border-top: 1px solid #cad9e8;
}

.v30-priority-item {
    display: grid;
    grid-template-columns: 50px 52px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 28px 4px;
    border-bottom: 1px solid #d8e3ed;
    transition: transform .22s ease, border-color .22s ease;
}

.v30-priority-item:hover {
    transform: translateX(8px);
    border-bottom-color: #7bb9eb;
}

[dir="rtl"] .v30-priority-item:hover {
    transform: translateX(-8px);
}

.v30-priority-number {
    padding-top: 11px;
    color: #6e8baa;
    font-size: 12px;
    letter-spacing: .12em;
    font-weight: 700;
}

.v30-priority-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f4ff;
    color: #0d66cc;
    font-size: 17px;
}

.v30-priority-copy h3 {
    margin: 2px 0 8px;
    color: #0a2d59 !important;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.25;
    font-weight: 600;
}

.v30-priority-copy p {
    margin: 0;
    max-width: 620px;
    color: #667a91 !important;
    font-size: 14px;
    line-height: 1.72;
}

/* ----- Measured impact: dark data band, visually distinct from priorities ----- */
.v30-program-page .v30-measured-impact-section {
    position: relative;
    overflow: hidden;
    padding: 104px 0 108px !important;
    background: #0a2d59 !important;
    color: #fff;
}

.v30-program-page .v30-measured-impact-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    top: -250px;
    border: 72px solid rgba(82, 174, 232, .08);
    border-radius: 50%;
    pointer-events: none;
}

[dir="rtl"] .v30-program-page .v30-measured-impact-section::before {
    right: auto;
    left: -210px;
}

.v30-measured-impact-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
}

.v30-impact-heading {
    max-width: 860px;
    margin-bottom: 48px;
}

.v30-impact-heading .v3-kicker {
    color: #72d2ff !important;
    margin-bottom: 18px;
}

.v30-impact-heading h2 {
    margin: 0;
    max-width: 820px;
    color: #fff !important;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 500;
}

.v30-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.v30-impact-metric {
    min-height: 228px;
    padding: 30px 28px 32px;
    border-inline-end: 1px solid rgba(255, 255, 255, .18);
}

.v30-impact-metric:last-child {
    border-inline-end: 0;
}

.v30-impact-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, .56);
}

.v30-impact-meta span {
    font-size: 11px;
    letter-spacing: .14em;
}

.v30-impact-meta i {
    color: #72d2ff;
    font-size: 18px;
}

.v30-impact-metric strong {
    display: block;
    margin-bottom: 13px;
    color: #fff;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.035em;
}

.v30-impact-metric p {
    margin: 0;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 13px;
    line-height: 1.6;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .v30-program-page .v30-program-hero .v3-program-hero-content {
        width: min(100% - 42px, 1240px);
        padding-bottom: 50px !important;
    }

    .v30-program-page .v30-program-hero h1 {
        font-size: clamp(46px, 8vw, 70px) !important;
    }

    .v30-priorities-shell {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .v30-priorities-intro {
        position: static;
        max-width: 760px;
    }

    .v30-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v30-impact-metric:nth-child(2n) {
        border-inline-end: 0;
    }

    .v30-impact-metric:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
}

@media (max-width: 767.98px) {
    .v30-program-page .v30-program-hero {
        height: 70svh !important;
        height: 70dvh !important;
    }

    .v30-program-page .v30-program-hero .v3-program-hero-content {
        width: calc(100% - 32px);
        padding-bottom: 34px !important;
    }

    .v30-program-page .v30-program-hero .v3-program-hero-content > div {
        max-width: 100%;
    }

    .v30-program-page .v30-program-hero h1 {
        font-size: clamp(38px, 11vw, 52px) !important;
        line-height: 1 !important;
        margin-bottom: 16px !important;
    }

    .v30-program-page .v30-program-hero p {
        font-size: 14px !important;
        line-height: 1.55 !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .v30-program-page .v30-program-hero .v3-program-jump {
        margin-top: 18px;
    }

    .v30-program-page .v30-program-hero .v3-program-jump a {
        padding: 10px 14px;
        font-size: 11px;
    }

    .v30-program-page .v30-priorities-section,
    .v30-program-page .v30-measured-impact-section {
        padding: 72px 0 !important;
    }

    .v30-priorities-shell,
    .v30-measured-impact-shell {
        width: calc(100% - 30px);
    }

    .v30-priorities-intro h2,
    .v30-impact-heading h2 {
        font-size: 38px;
    }

    .v30-priority-item {
        grid-template-columns: 34px 42px minmax(0, 1fr);
        gap: 12px;
        padding: 22px 0;
    }

    .v30-priority-number {
        font-size: 10px;
    }

    .v30-priority-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .v30-priority-copy h3 {
        font-size: 20px;
    }

    .v30-impact-heading {
        margin-bottom: 34px;
    }

    .v30-impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .v30-impact-metric {
        min-height: 185px;
        padding: 22px 18px 24px;
    }

    .v30-impact-meta {
        margin-bottom: 26px;
    }

    .v30-impact-metric strong {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .v30-impact-grid {
        grid-template-columns: 1fr;
    }

    .v30-impact-metric,
    .v30-impact-metric:nth-child(2n) {
        border-inline-end: 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

    .v30-impact-metric:first-child {
        border-top: 0;
    }
}

/* V31 - Keep long program titles fully inside the 70vh hero. */
.v30-program-page .v30-program-hero .v3-program-hero-content {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-top: clamp(26px, 4vh, 46px) !important;
    padding-bottom: clamp(48px, 6.5vh, 68px) !important;
}

.v30-program-page .v30-program-hero .v3-program-hero-content > div {
    width: 100%;
    max-width: 860px;
}

.v30-program-page .v30-program-hero h1 {
    font-size: clamp(42px, min(5.15vw, 8.2vh), 74px) !important;
    line-height: 1.01 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    text-wrap: balance;
}

.v30-program-page .v30-program-hero .v3-kicker {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.v30-program-page .v30-program-hero p {
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    .v30-program-page .v30-program-hero .v3-program-hero-content {
        padding-top: 28px !important;
        padding-bottom: 48px !important;
    }

    .v30-program-page .v30-program-hero h1 {
        font-size: clamp(40px, min(7vw, 7.7vh), 62px) !important;
    }
}

@media (max-width: 767.98px) {
    .v30-program-page .v30-program-hero .v3-program-hero-content {
        align-items: center;
        padding-top: 24px !important;
        padding-bottom: 34px !important;
    }

    .v30-program-page .v30-program-hero h1 {
        font-size: clamp(34px, min(10vw, 7.2vh), 48px) !important;
        line-height: 1.03 !important;
    }
}
