:root {
    --navy: #12355b;
    --navy-900: #0b2744;
    --teal: #168c8c;
    --teal-soft: #e7f5f4;
    --gold: #f4b942;
    --orange: #e96512;
    --ink: #172033;
    --muted: #64748b;
    --line: #e6ebf0;
    --surface: #ffffff;
    --canvas: #f7f9fb;
    --cream: #fffaf0;
    --success: #2f9e68;
    --danger: #d9485f;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 10px 30px rgba(18, 53, 91, .07);
    --shadow: 0 24px 70px rgba(18, 53, 91, .12);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-muted { background: var(--canvas); }
.section-cream { background: var(--cream); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.cluster { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.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; }

/* Typography */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--teal);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 99px; background: var(--gold); }
h1, h2, h3, h4 { margin: 0; color: var(--navy-900); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.35rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 700px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 42px; }
.section-heading > div:first-child { max-width: 760px; }
.section-heading .lead { margin-top: 16px; }
.text-muted { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--navy); box-shadow: 0 12px 26px rgba(18, 53, 91, .22); }
.btn-primary:hover { background: var(--navy-900); box-shadow: 0 16px 34px rgba(18, 53, 91, .28); }
.btn-accent { color: var(--navy-900); background: var(--gold); box-shadow: 0 12px 26px rgba(244, 185, 66, .26); }
.btn-outline { color: var(--navy); background: rgba(255,255,255,.78); border-color: #d6e0e9; }
.btn-outline:hover { background: #fff; border-color: var(--navy); }
.btn-link { min-height: auto; padding: 0; border-radius: 0; color: var(--navy); }
.btn-link:hover { color: var(--teal); transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(230, 235, 240, .82); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { color: var(--navy-900); font-size: .98rem; }
.brand-copy span { margin-top: 4px; color: var(--muted); font-size: .62rem; font-weight: 650; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.nav-item { position: relative; }
.nav-link, .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 13px;
    color: #314158;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-size: .91rem;
    font-weight: 700;
}
.nav-link:hover, .nav-toggle:hover, .nav-link.active { color: var(--navy); background: #eff5f8; }
.nav-toggle svg { width: 14px; transition: transform .2s ease; }
.nav-item:hover .nav-toggle svg, .nav-item.open .nav-toggle svg { transform: rotate(180deg); }
.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 280px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
}
.dropdown.wide { width: 340px; }
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 13px; border-radius: 11px; color: #425168; font-size: .9rem; font-weight: 650; }
.dropdown a:hover { color: var(--navy); background: #f2f7f9; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding-inline: 17px; font-size: .72rem; }
.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.mobile-toggle svg { width: 21px; height: 21px; }
.mobile-panel { display: none; }
/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 84px; background: linear-gradient(135deg, #f7fbfc 0%, #fffaf0 100%); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; top: -320px; left: -240px; border-radius: 50%; background: rgba(22, 140, 140, .1); }
.hero::after { content: ""; position: absolute; width: 440px; height: 440px; right: -190px; bottom: -260px; border-radius: 50%; background: rgba(244, 185, 66, .14); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 760px; }
.hero-copy h1 span { display: block; color: var(--teal); }
.hero-copy .lead { margin-top: 24px; max-width: 650px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: .88rem; }
.hero-meta div { display: flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 20px; height: 20px; color: var(--teal); }
.hero-visual { position: relative; }
.hero-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.08;
    border: 10px solid rgba(255,255,255,.72);
    border-radius: 42px;
    background: #eaf4f5;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    left: -34px;
    bottom: 42px;
    max-width: 238px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}
.hero-badge strong { display: block; color: var(--navy); font-size: 1.02rem; }
.hero-badge span { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.hero-dot { position: absolute; width: 76px; height: 76px; right: -15px; top: -22px; border-radius: 24px; background: var(--gold); transform: rotate(15deg); z-index: -1; }

/* Announcement strip */
.announcement-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.announcement-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 76px; }
.announcement-label { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.announcement-label svg { width: 19px; }
.announcement-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #34435a; font-weight: 700; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.program-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .78fr; min-height: 330px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-card-copy { position: relative; z-index: 2; padding: 34px 28px 30px 32px; }
.program-pill { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent), white 88%); color: var(--accent); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.program-card h3 { margin-top: 18px; font-size: 1.7rem; }
.program-card h3 small { display: block; margin-top: 8px; color: var(--accent); font-size: .79rem; letter-spacing: .08em; text-transform: uppercase; }
.program-card p { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.program-card .btn-link { margin-top: 22px; color: var(--accent); }
.program-card-media { display: flex; align-items: end; justify-content: center; padding: 24px 20px 0 0; background: linear-gradient(150deg, transparent, color-mix(in srgb, var(--accent), white 91%)); }
.program-card-media img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.stat { position: relative; padding: 34px; text-align: center; }
.stat:not(:last-child)::after { content: ""; position: absolute; top: 25%; right: 0; width: 1px; height: 50%; background: var(--line); }
.stat strong { display: block; color: var(--navy); font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 650; }

/* Headmaster */
.headmaster-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: 64px; align-items: center; }
.headmaster-photo { position: relative; overflow: hidden; aspect-ratio: .82; border-radius: 32px; background: linear-gradient(145deg, #e7f5f4, #fff5db); box-shadow: var(--shadow); }
.headmaster-photo img { width: 100%; height: 100%; object-fit: cover; }
.headmaster-photo::after { content: ""; position: absolute; inset: auto 22px 22px auto; width: 92px; height: 92px; border-radius: 28px; background: var(--gold); opacity: .82; mix-blend-mode: multiply; }
.quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 6rem; line-height: .6; }
.headmaster-copy blockquote { margin: 24px 0; color: #33435a; font-size: clamp(1.1rem, 2vw, 1.36rem); line-height: 1.65; }
.headmaster-name strong { display: block; color: var(--navy-900); }
.headmaster-name span { color: var(--muted); font-size: .88rem; }

/* News */
.news-feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.featured-news { position: relative; min-height: 510px; overflow: hidden; border-radius: 30px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.featured-news img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.featured-news::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,25,44,.94), rgba(7,25,44,.06) 72%); }
.featured-news-content { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; }
.featured-news-content h3 { margin-top: 11px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.featured-news-content p { margin-top: 12px; color: rgba(255,255,255,.78); }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-mini { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .2s ease; }
.news-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.news-mini-media { overflow: hidden; aspect-ratio: 1.05; border-radius: 14px; background: #e9f0f5; }
.news-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.news-mini h3 { margin-top: 6px; font-size: 1rem; line-height: 1.35; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .76rem; font-weight: 650; }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #b1bdc9; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: .25s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.news-card-media { overflow: hidden; aspect-ratio: 16/10; background: #edf2f6; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { padding: 22px; }
.news-card h3 { margin-top: 11px; line-height: 1.34; }
.news-card p { margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* Achievements */
.achievement-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.achievement-card::before { content: ""; position: absolute; width: 100px; height: 100px; right: -35px; top: -35px; border-radius: 50%; background: rgba(244,185,66,.18); }
.achievement-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff6df; color: #ad7500; }
.achievement-icon svg { width: 25px; height: 25px; }
.achievement-card h3 { margin-top: 20px; font-size: 1.16rem; line-height: 1.35; }
.achievement-card .recipient { display: block; margin-top: 9px; color: var(--teal); font-size: .9rem; font-weight: 750; }
.achievement-card .meta { margin-top: 18px; }

/* Digital links */
.digital-section { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.digital-section::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to right, #000, transparent); }
.digital-section h2, .digital-section h3 { color: #fff; }
.digital-section .lead { color: rgba(255,255,255,.7); }
.digital-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.digital-card { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 21px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); transition: .2s ease; }
.digital-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.digital-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--navy-900); background: var(--gold); }
.digital-card-icon svg { width: 24px; height: 24px; }
.digital-card h3 { margin-top: 20px; font-size: 1.05rem; }
.digital-card p { margin-top: 8px; color: rgba(255,255,255,.64); font-size: .85rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery-tile { position: relative; overflow: hidden; min-height: 260px; border-radius: 22px; background: #edf1f5; }
.gallery-tile:nth-child(1), .gallery-tile:nth-child(4) { grid-column: span 7; }
.gallery-tile:nth-child(2), .gallery-tile:nth-child(3) { grid-column: span 5; }
.gallery-tile:nth-child(n+5) { grid-column: span 4; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-tile:hover img { transform: scale(1.045); }
.gallery-overlay { position: absolute; inset: 0; display: flex; align-items: end; padding: 22px; background: linear-gradient(to top, rgba(7,25,44,.78), transparent 66%); color: #fff; }
.gallery-overlay h3 { color: #fff; font-size: 1.1rem; }
.gallery-overlay span { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: .78rem; }

/* CTA */
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 46px 52px; border-radius: 30px; background: linear-gradient(120deg, var(--teal), #126b78); color: #fff; box-shadow: var(--shadow); }
.cta-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: 9%; top: -165px; border-radius: 50%; border: 44px solid rgba(255,255,255,.1); }
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-card p { margin-top: 12px; color: rgba(255,255,255,.76); }
.cta-card > * { position: relative; z-index: 2; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding: 0px 0 70px; background: linear-gradient(135deg, #eef7f7, #fff8e7); }
.page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%; background: rgba(244,185,66,.2); }
.page-hero-inner { position: relative; z-index: 2; max-width: 840px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.page-hero .lead { margin-top: 18px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 0px; color: var(--muted); font-size: .84rem; font-weight: 650; }
.breadcrumb svg { width: 14px; }
.page-cover { overflow: hidden; margin-top: -36px; position: relative; z-index: 3; aspect-ratio: 16/7; border: 10px solid #fff; border-radius: 28px; background: #eaf1f4; box-shadow: var(--shadow); }
.page-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.rich-content { color: #34435a; font-size: 1.02rem; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.8em 0 .7em; }
.rich-content p { margin: 1em 0; }
.rich-content ul, .rich-content ol { padding-left: 1.35rem; }
.rich-content li { margin: .45rem 0; }
.rich-content blockquote { margin: 1.7rem 0; padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #fff9e9; color: #3e4d60; }
.rich-content img { margin: 28px 0; border-radius: 20px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.rich-content th, .rich-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.rich-content th { background: var(--canvas); color: var(--navy); }
.sidebar-card { position: sticky; top: 108px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.05rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.sidebar-links a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.sidebar-links a:hover { color: var(--navy); background: var(--canvas); }

/* Program detail */
.program-hero { padding: 74px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--accent), white 91%), #fff); }
.program-hero-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 64px; align-items: center; }
.program-hero .program-pill { margin-bottom: 20px; }
.program-hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
.program-hero h1 span { display: block; margin-top: 8px; color: var(--accent); font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: .06em; text-transform: uppercase; }
.program-hero .lead { margin-top: 22px; }
.program-illustration { overflow: hidden; aspect-ratio: 1.2; border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.program-illustration img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: .86rem; font-weight: 750; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #d7e0e8;
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: #fff;
    transition: border .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,140,140,.1); }
.field-error { color: var(--danger); font-size: .78rem; }
.honeypot { position: absolute; left: -9999px; }
.alert { padding: 15px 18px; border-radius: 13px; font-size: .9rem; font-weight: 650; }
.alert-success { color: #17663f; background: #e9f8f0; border: 1px solid #bce9d0; }
.alert-danger { color: #9d2f43; background: #fff0f3; border: 1px solid #f5c1cb; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 42px; padding: 0; list-style: none; }
.page-item .page-link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-weight: 700; }
.page-item.active .page-link { color: #fff; border-color: var(--navy); background: var(--navy); }
.page-item.disabled .page-link { opacity: .45; }

/* Footer */
.site-footer { padding: 74px 0 26px; background: #0b2744; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, .8fr); gap: 52px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy span { color: rgba(255,255,255,.58); }
.footer-brand p { max-width: 350px; margin-top: 20px; font-size: .9rem; }
.footer-column h3 { color: #fff; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-top: 17px; }
.footer-links a { font-size: .86rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; }
.footer-contact svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 58px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.socials { display: flex; gap: 9px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.socials a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.socials svg { width: 17px; height: 17px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
    .main-nav, .header-actions .btn-outline { display: none; }
    .mobile-toggle { display: inline-flex; }
    .mobile-panel { position: fixed; z-index: 55; inset: 82px 0 0; display: block; padding: 22px 20px 44px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
    .mobile-panel.open { transform: translateX(0); }
    .mobile-nav { display: flex; flex-direction: column; gap: 5px; }
    .mobile-nav > a, .mobile-group summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 14px; border-radius: 13px; color: var(--navy-900); font-weight: 760; list-style: none; cursor: pointer; }
    .mobile-nav > a:hover, .mobile-group summary:hover { background: var(--canvas); }
    .mobile-group summary::-webkit-details-marker { display: none; }
    .mobile-sub { display: flex; flex-direction: column; padding: 0 0 8px 18px; }
    .mobile-sub a { padding: 10px 13px; color: var(--muted); font-size: .9rem; }
    .hero-grid, .headmaster-grid, .program-hero-grid { gap: 40px; }
    .program-card { grid-template-columns: 1fr; }
    .program-card-media { min-height: 190px; order: -1; padding: 18px 18px 0; }
    .digital-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
    .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
    .section { padding: 72px 0; }
    .hero { padding: 58px 0 68px; }
    .hero-grid, .headmaster-grid, .program-hero-grid, .news-feature, .content-layout { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin-inline: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero-visual { width: min(100%, 620px); margin-inline: auto; }
    .hero-badge { left: 16px; bottom: 16px; }
    .program-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2)::after { display: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .news-list { display: grid; grid-template-columns: repeat(2, 1fr); }
    .gallery-tile, .gallery-tile:nth-child(n) { grid-column: span 6; }
    .content-layout { gap: 32px; }
    .sidebar-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-column:last-child { grid-column: auto; }
    .cta-card { grid-template-columns: 1fr; padding: 38px; }
}

@media (max-width: 590px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { height: 72px; }
    .brand img { width: 42px; height: 42px; }
    .brand-copy strong { font-size: .88rem; }
    .brand-copy span { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mobile-panel { top: 72px; }
    .header-actions .btn-accent { display: none; }
    .hero { padding-top: 42px; }
    .hero-copy h1 { font-size: 2.55rem; }
    .hero-meta { gap: 12px; }
    .hero-image { border-width: 6px; border-radius: 26px; }
    .hero-badge { max-width: 190px; padding: 13px; }
    .announcement-inner { grid-template-columns: auto 1fr; gap: 12px; min-height: 68px; }
    .announcement-inner .btn-link { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
    .program-grid, .grid-2, .grid-3, .grid-4, .digital-grid, .news-list, .form-grid { grid-template-columns: 1fr; }
    .program-card-copy { padding: 28px 24px; }
    .stat { padding: 25px 15px; }
    .headmaster-photo { width: min(100%, 410px); margin-inline: auto; }
    .featured-news { min-height: 430px; }
    .featured-news-content { left: 24px; right: 24px; bottom: 24px; }
    .news-mini { grid-template-columns: 96px 1fr; }
    .gallery-tile, .gallery-tile:nth-child(n) { grid-column: span 12; min-height: 230px; }
    .cta-card { padding: 30px 24px; }
    .page-hero { padding: 58px 0 52px; }
    .page-cover { margin-top: -22px; border-width: 6px; border-radius: 20px; }
    .form-card { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand, .footer-column:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   BLUE HOME HERO
   Navbar dan hero dibuat menyatu khusus pada halaman Beranda.
   Ubah --school-blue untuk menyesuaikan warna biru resmi sekolah.
   ========================================================= */
:root {
    --school-blue: #145f86;
    --school-blue-dark: #0d4d70;
    --school-orange: #ff7417;
}

/* Navbar biru hanya di halaman Beranda */
.site-header--hero {
    border-bottom-color: rgba(255, 255, 255, .14);
    background: var(--school-blue);
    backdrop-filter: none;
}

.site-header--hero .brand-copy strong,
.site-header--hero .brand-copy span {
    color: #fff;
}

.site-header--hero .nav-link,
.site-header--hero .nav-toggle {
    color: rgba(255, 255, 255, .92);
}

.site-header--hero .nav-link:hover,
.site-header--hero .nav-toggle:hover,
.site-header--hero .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.site-header--hero .header-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .62);
    background: transparent;
}

.site-header--hero .header-actions .btn-outline:hover {
    color: var(--school-blue-dark);
    border-color: #fff;
    background: #fff;
}

.site-header--hero .header-actions .btn-accent {
    color: #fff;
    background: var(--school-orange);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.site-header--hero .mobile-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
}

/* Hero dua kolom: teks rata tengah di kiri, gambar besar di kanan */
.hero-blue {
    position: relative;
    overflow: hidden;
    padding: 64px 0 76px;
    color: #fff;
    background: var(--school-blue);
}

.hero-blue::before {
    width: 520px;
    height: 520px;
    top: -360px;
    left: -210px;
    background: rgba(255, 255, 255, .055);
}

.hero-blue::after {
    width: 470px;
    height: 470px;
    right: -220px;
    bottom: -300px;
    background: rgba(255, 255, 255, .06);
}

.hero-blue .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 34px;
    min-height: 520px;
}

.hero-blue .hero-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-blue .hero-eyebrow {
    color: rgba(255, 255, 255, .86);
}

.hero-blue .hero-eyebrow::before {
    background: var(--school-orange);
}

.hero-blue .hero-copy h1 {
    max-width: 650px;
    color: #fff;
    font-size: clamp(2.35rem, 4.25vw, 4.15rem);
    line-height: 1.14;
    letter-spacing: -.035em;
}

.hero-blue .hero-copy h1 span {
    display: block;
    color: #fff;
}

.hero-blue .hero-copy .lead {
    max-width: 590px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.98rem, 1.35vw, 1.12rem);
}

.hero-blue .hero-actions {
    justify-content: center;
    margin-top: 30px;
}

.hero-blue .btn-primary {
    color: #fff;
    background: var(--school-orange);
    box-shadow: 0 14px 30px rgba(4, 40, 62, .22);
}

.hero-blue .btn-primary:hover {
    background: #e9630b;
}

.hero-blue .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .72);
    background: transparent;
}

.hero-blue .btn-outline:hover {
    color: var(--school-blue-dark);
    border-color: #fff;
    background: #fff;
}

.hero-blue .hero-visual {
    align-self: end;
    min-width: 0;
}

.hero-blue .hero-image {
    min-height: 470px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.hero-blue .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 28px rgba(3, 34, 51, .22));
}

.hero-blue .hero-badge {
    right: 8px;
    bottom: 30px;
    left: auto;
    max-width: 230px;
    border-color: rgba(255, 255, 255, .72);
}

@media (max-width: 820px) {
    .hero-blue {
        padding: 50px 0 0;
    }

    .hero-blue .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: auto;
    }

    .hero-blue .hero-copy h1 {
        max-width: 620px;
        font-size: clamp(2.25rem, 9vw, 3.65rem);
    }

    .hero-blue .hero-visual {
        width: min(100%, 650px);
    }

    .hero-blue .hero-image {
        min-height: 390px;
    }
}

@media (max-width: 590px) {
    .hero-blue {
        padding-top: 38px;
    }

    .hero-blue .hero-copy h1 {
        font-size: 2.35rem;
    }

    .hero-blue .hero-copy .lead {
        font-size: .96rem;
    }

    .hero-blue .hero-actions {
        width: 100%;
    }

    .hero-blue .hero-actions .btn {
        width: 100%;
    }

    .hero-blue .hero-image {
        min-height: 320px;
    }

    .hero-blue .hero-badge {
        right: 10px;
        bottom: 16px;
        max-width: 190px;
    }
}


/* =========================================================
   PORTAL GURU & TENAGA KEPENDIDIKAN
   ========================================================= */
.teacher-page-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(244,185,66,.18), transparent 22%),
        linear-gradient(135deg, #eef7fb 0%, #f9fcfd 55%, #fffaf0 100%);
}
.staff-directory { background: #fff; }
.staff-toolbar {
    display: grid;
    gap: 24px;
    margin-top: -132px;
    margin-bottom: 58px;
    position: relative;
    z-index: 3;
}
.staff-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 720px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}
.staff-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 15px;
    color: #506176;
    font-size: .89rem;
    font-weight: 750;
    transition: .2s ease;
}
.staff-tab svg { width: 19px; height: 19px; }
.staff-tab strong {
    display: grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    border-radius: 999px;
    background: #edf3f7;
    color: var(--navy);
    font-size: .72rem;
}
.staff-tab:hover { color: var(--navy); background: #f3f7fa; }
.staff-tab.active { color: #fff; background: var(--school-blue); box-shadow: 0 12px 24px rgba(20,95,134,.2); }
.staff-tab.active strong { color: var(--school-blue-dark); background: #fff; }
.subject-filter {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--canvas);
}
.subject-filter-label {
    display: block;
    margin-bottom: 13px;
    color: var(--navy-900);
    font-size: .79rem;
    font-weight: 800;
}
.subject-filter-list { display: flex; flex-wrap: wrap; gap: 9px; }
.subject-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid #dce5ec;
    border-radius: 999px;
    background: #fff;
    color: #58697e;
    font-size: .79rem;
    font-weight: 700;
    transition: .18s ease;
}
.subject-filter-chip span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf3f6;
    color: var(--navy);
    font-size: .67rem;
}
.subject-filter-chip:hover { color: var(--school-blue); border-color: #a9cbdc; transform: translateY(-1px); }
.subject-filter-chip.active { color: #fff; border-color: var(--school-blue); background: var(--school-blue); }
.subject-filter-chip.active span { color: var(--school-blue); background: #fff; }
.staff-result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.staff-result-head .eyebrow { margin-bottom: 9px; }
.staff-result-head h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.staff-result-head > p { color: var(--muted); font-size: .84rem; font-weight: 650; }
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.staff-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.staff-card:not(.staff-card-static):hover {
    border-color: #c9dbe5;
    box-shadow: 0 24px 54px rgba(18,53,91,.15);
    transform: translateY(-7px);
}
.staff-card-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    background: #eaf2f6;
}
.staff-card-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(transparent, rgba(7,36,57,.18));
    pointer-events: none;
}
.staff-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s ease;
}
.staff-card:not(.staff-card-static):hover .staff-card-photo img { transform: scale(1.035); }
.staff-card-type {
    position: absolute;
    z-index: 2;
    left: 15px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 999px;
    color: #fff;
    background: rgba(8,55,80,.68);
    backdrop-filter: blur(8px);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.staff-card-body { display: flex; min-height: 188px; flex-direction: column; padding: 21px 20px 20px; }
.staff-card-body h3 { font-size: 1.05rem; line-height: 1.35; }
.subject-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.subject-badges span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--school-blue-dark);
    background: #eaf4f8;
    font-size: .68rem;
    font-weight: 750;
}
.staff-position { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.staff-card-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--school-blue);
    font-size: .77rem;
    font-weight: 800;
}
.staff-card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.staff-card:hover .staff-card-link svg { transform: translate(2px, -2px); }
.empty-directory {
    display: grid;
    place-items: center;
    min-height: 330px;
    padding: 46px 24px;
    border: 1px dashed #cfdce5;
    border-radius: 24px;
    background: var(--canvas);
    text-align: center;
}
.empty-directory-icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 18px; border-radius: 22px; color: var(--school-blue); background: #e7f3f8; }
.empty-directory-icon svg { width: 31px; height: 31px; }
.empty-directory p { max-width: 520px; margin: 10px auto 20px; color: var(--muted); }

/* Menjaga tinggi tombol dropdown navbar agar tidak ikut meregang. */
@media (min-width: 1081px) {
    .main-nav { height: 44px; }
    .main-nav > .nav-item { display: flex; align-items: center; height: 44px; flex: 0 0 auto; }
    .main-nav > .nav-link,
    .main-nav .nav-toggle { height: 44px; min-height: 44px; margin: 0; }
    .main-nav .dropdown { top: calc(44px + 12px); }
    .site-header--hero .nav-item.open .nav-toggle { color: #fff; background: rgba(255,255,255,.13); }
}

@media (max-width: 1080px) {
    .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .staff-toolbar { margin-top: -108px; }
}
@media (max-width: 820px) {
    .staff-toolbar { margin-top: -72px; }
    .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 590px) {
    .staff-toolbar { margin-top: -48px; margin-bottom: 42px; }
    .staff-tabs { grid-template-columns: 1fr; }
    .staff-tab { justify-content: flex-start; }
    .staff-tab strong { margin-left: auto; }
    .subject-filter { padding: 18px; }
    .staff-result-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .staff-grid { grid-template-columns: 1fr; }
    .staff-card { display: grid; grid-template-columns: 128px 1fr; border-radius: 18px; }
    .staff-card-photo { aspect-ratio: auto; min-height: 190px; }
    .staff-card-body { min-height: 190px; padding: 18px 16px; }
    .staff-card-type { left: 9px; bottom: 9px; padding-inline: 8px; }
}
