:root {
    --ink: #20170f;
    --muted: #74685d;
    --cream: #fffaf3;
    --paper: #fffdf9;
    --line: #eadfd1;
    --dark: #214e7a;
    --dark-soft: #173a5e;
    --gold: #e8b94f;
    --orange: #ed7a24;
    --orange-deep: #c95712;
    --shadow: 0 18px 55px rgba(72, 42, 16, .11);
}

* { box-sizing: border-box; }
html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 35%, rgba(232, 185, 79, .12), transparent 28rem),
        var(--cream);
    font-family: "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page-shell { min-height: 100vh; overflow: hidden; }
.site-header {
    width: min(1180px, calc(100% - 48px));
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-logo {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    border: 1px solid rgba(33, 78, 122, .16);
    background: linear-gradient(145deg, #f4f9fd, #dbeaf4);
    box-shadow: 0 9px 24px rgba(33, 78, 122, .13);
}
.brand-logo img { width: 45px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
}
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.header-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: .2s ease;
}
.header-link svg, .hero-action svg, .card-arrow svg, .search svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-link:hover { border-color: var(--orange); color: var(--orange-deep); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-link--admin { color: #fff; border-color: var(--dark); background: var(--dark); }
.header-link--admin:hover { color: #fff; border-color: var(--orange); background: var(--orange-deep); }

main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.hero {
    position: relative;
    min-height: 520px;
    padding: 78px 74px;
    display: grid;
    grid-template-columns: 1.4fr .75fr;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    border-radius: 34px;
    color: #fff;
    background:
        linear-gradient(118deg, rgba(23, 58, 94, .98), rgba(33, 78, 122, .95)),
        #214e7a;
    box-shadow: 0 30px 80px rgba(23, 58, 94, .24);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.hero::after {
    content: "";
    position: absolute;
    width: 410px;
    height: 410px;
    right: -175px;
    top: -185px;
    border: 1px solid rgba(232,185,79,.28);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(232,185,79,.04), 0 0 0 120px rgba(232,185,79,.025);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one {
    width: 370px; height: 370px; left: 25%; bottom: -280px;
    background: rgba(237, 122, 36, .34);
}
.hero-glow-two {
    width: 190px; height: 190px; right: 21%; top: -130px;
    background: rgba(232, 185, 79, .18);
}
.hero-content, .hero-panel { position: relative; z-index: 1; min-width: 0; max-width: 100%; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 23px;
    color: #f4c967;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow span { width: 27px; height: 2px; background: var(--orange); }
.hero h1 {
    max-width: 680px;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.03;
    letter-spacing: -.055em;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-text {
    max-width: 640px;
    margin: 25px 0 30px;
    color: #d4cbc3;
    font-size: 17px;
    line-height: 1.75;
}
.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 21px;
    border-radius: 13px;
    color: #2b190b;
    background: linear-gradient(135deg, var(--gold), #f28b32);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(237, 122, 36, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-action:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(237, 122, 36, .28); }
.hero-panel {
    padding: 33px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(255,255,255,.065);
    box-shadow: inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}
.panel-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #f3c664;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-panel strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    line-height: 1.25;
}
.hero-panel p { margin: 13px 0 26px; color: #c8bdb4; font-size: 14px; line-height: 1.65; }
.panel-stats { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.panel-stats span { color: #d6cbc3; font-size: 13px; }
.panel-stats b { margin-right: 7px; color: var(--gold); font-size: 18px; }

.programs { padding: 92px 22px 95px; scroll-margin-top: 20px; }
.section-heading {
    margin-bottom: 35px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}
.section-kicker {
    margin: 0 0 8px !important;
    color: var(--orange-deep) !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.section-heading h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(31px, 4vw, 44px);
    letter-spacing: -.035em;
}
.section-heading p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.search {
    width: min(340px, 100%);
    height: 50px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(62, 39, 18, .05);
}
.search svg { flex: 0 0 auto; color: #9a8c7e; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,122,36,.1); }
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
}
.program-card {
    position: relative;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    transition: color .2s ease, background .2s ease, padding .2s ease;
}
.program-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--orange));
    transform: scaleY(0);
    transition: transform .25s ease;
}
.program-card:hover {
    padding-inline: 16px 10px;
    color: var(--orange-deep);
    background: rgba(237,122,36,.045);
}
.program-card:hover::after,
.program-card:focus-visible::after { transform: scaleY(1); }
.program-card:focus-visible {
    padding-inline: 16px 10px;
    outline: 2px solid var(--orange);
    outline-offset: -2px;
    color: var(--orange-deep);
    background: rgba(237,122,36,.045);
}
.program-card[hidden] { display: none; }
.program-line {
    min-height: 62px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 20px;
}
.program-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #7a430d;
    background: linear-gradient(145deg, #fff0bd, #f8c967);
    box-shadow: 0 7px 18px rgba(219, 151, 35, .12);
}
.program-icon svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.program-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.card-arrow {
    width: 37px; height: 37px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; color: #9b8c7d;
    transition: .2s ease;
}
.program-card:hover .card-arrow { color: #fff; border-color: var(--orange); background: var(--orange); transform: translateX(2px); }
.card-tag {
    color: var(--orange-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.program-description {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height .25s ease, margin .25s ease, opacity .2s ease, transform .25s ease;
}
.program-card:hover .program-description,
.program-card:focus-visible .program-description {
    max-height: 70px;
    margin: -3px 58px 16px 66px;
    opacity: 1;
    transform: translateY(0);
}
.empty-state { padding: 55px 20px; text-align: center; border: 1px dashed #ddcdbb; border-radius: 20px; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 7px 0 0; }
.site-footer {
    width: min(1180px, calc(100% - 48px));
    padding: 34px 0 26px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1.2fr 1fr;
    align-items: start;
    gap: 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 43px; filter: none; }
.footer-brand span { display: grid; }
.site-footer strong { color: var(--ink); font-size: 13px; }
.site-footer small { margin-top: 3px; font-size: 11px; }
.footer-address,
.footer-contact { display: grid; gap: 5px; font-style: normal; line-height: 1.45; }
.footer-address strong,
.footer-contact strong { margin-bottom: 3px; }
.footer-contact a { color: var(--muted); transition: color .2s ease; }
.footer-contact a:hover { color: var(--orange-deep); }
.footer-copy {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 62px 45px; gap: 42px; }
    .hero-panel { max-width: 560px; }
}
@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 28px);
        height: auto;
        min-height: 76px;
        padding: 10px 0;
        gap: 12px;
    }
    .brand { min-width: 0; max-width: 100%; gap: 10px; }
    .brand-logo { width: 46px; height: 46px; border-radius: 14px; }
    .brand-logo img { width: 39px; }
    .brand-copy { min-width: 0; }
    .brand-copy strong { max-width: 210px; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
    .brand-copy small { display: none; }
    .header-link {
        min-height: 44px;
        padding: 10px 13px;
        flex: 0 0 auto;
        text-align: center;
    }
    .header-link svg { display: none; }
    .header-actions { gap: 6px; }
    .header-link--admin { display: none; }
    main { width: calc(100% - 20px); }
    .hero { width: 100%; min-width: 0; min-height: auto; padding: 49px 25px 28px; border-radius: 25px; gap: 35px; }
    .hero > * { min-width: 0; max-width: 100%; }
    .hero-content { text-align: center; }
    .hero-content .eyebrow { justify-content: center; }
    .hero h1 { font-size: clamp(34px, 10vw, 39px); overflow-wrap: anywhere; }
    .hero-text { max-width: 100%; margin-inline: auto; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
    .hero-action { min-height: 48px; justify-content: center; }
    .hero-panel { padding: 25px; border-radius: 19px; }
    .programs { padding: 67px 5px 70px; }
    .section-heading { align-items: stretch; flex-direction: column; gap: 24px; }
    .search { width: 100%; height: 52px; }
    .program-card,
    .program-card:hover,
    .program-card:focus-visible { padding-inline: 2px; }
    .program-line { min-height: 58px; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 10px; }
    .program-icon { width: 36px; height: 36px; border-radius: 10px; }
    .program-icon svg { width: 19px; }
    .program-name { font-size: 17px; }
    .card-tag { display: none; }
    .card-arrow { width: 34px; height: 34px; }
    .program-description,
    .program-card:hover .program-description,
    .program-card:focus-visible .program-description { display: none; }
    .site-footer { width: calc(100% - 30px); padding: 28px 0; grid-template-columns: 1fr; gap: 22px; }
    .footer-copy { grid-column: 1; margin: 0; text-align: left; }
}
@media (max-width: 390px) {
    .site-header { width: calc(100% - 22px); }
    .brand-logo { width: 42px; height: 42px; border-radius: 13px; }
    .brand-logo img { width: 35px; }
    .brand-copy strong { max-width: 175px; font-size: 13px; }
    .header-actions { display: none; }
    .header-link { padding-inline: 11px; font-size: 12px; }
    main { width: calc(100% - 14px); }
    .hero { padding: 40px 20px 24px; border-radius: 21px; overflow: hidden; }
    .eyebrow { font-size: 10px; letter-spacing: .1em; }
    .hero h1 { font-size: 31px; letter-spacing: -.045em; }
    .hero h1 em { white-space: nowrap; }
    .hero-panel { padding: 21px; }
    .hero-panel strong { font-size: 22px; }
    .programs { padding-top: 56px; }
    .section-heading h2 { font-size: 29px; }
    .program-line { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
