:root {
    --blue-950: #071c42;
    --blue-900: #0b2858;
    --blue-800: #123b79;
    --blue-700: #1853a0;
    --blue-100: #eaf1fb;
    --gold: #e0b44c;
    --gold-light: #f6e5ae;
    --ink: #172033;
    --muted: #687386;
    --line: #dbe2ec;
    --surface: #f5f7fb;
    --white: #fff;
    --shadow: 0 18px 50px rgba(7, 28, 66, .10);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.65; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 999; background: #fff; padding: 10px 14px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.utility-bar { color: #dfe9fb; background: var(--blue-950); font-size: .85rem; }
.utility-bar__inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }
.utility-bar a { margin-left: 24px; color: #fff; }
.brand { min-height: 120px; background: #244f95 url("header-clean.png") center/cover no-repeat; position: relative; }
.brand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 23, 55, .70), rgba(3, 23, 55, .05) 70%); }
.brand__inner { min-height: 120px; display: flex; align-items: center; position: relative; z-index: 1; }
.brand__link { display: flex; flex-direction: column; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.brand__title { font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 700; }
.brand__subtitle { color: var(--gold-light); font-size: clamp(.9rem, 1.6vw, 1.15rem); letter-spacing: .05em; text-transform: uppercase; }

.main-nav { color: #fff; background: var(--blue-800); box-shadow: 0 7px 20px rgba(7, 28, 66, .18); position: relative; z-index: 50; }
.main-nav__inner { display: flex; align-items: stretch; }
.main-nav__list { display: flex; flex: 1; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-nav__list > li { position: relative; display: flex; }
.main-nav__list > li > a { display: flex; align-items: center; padding: 17px 15px; color: #fff; font-weight: 650; white-space: nowrap; }
.main-nav__list > li > a:hover, .main-nav__list > li:focus-within > a { background: rgba(255,255,255,.1); color: var(--gold-light); }
.submenu { position: absolute; left: 0; top: 100%; width: 285px; display: none; margin: 0; padding: 10px; list-style: none; background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
.submenu a { display: block; padding: 9px 10px; color: var(--ink); border-radius: 7px; line-height: 1.35; }
.submenu a:hover { color: var(--blue-800); background: var(--blue-100); }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu { display: block; }
.submenu-toggle { display: none; }
.menu-toggle { display: none; }
.search-toggle { width: 54px; border: 0; color: #fff; background: transparent; font-size: 1.8rem; cursor: pointer; }
.search-toggle:hover { background: rgba(255,255,255,.1); }
.site-search { display: none; padding-block: 18px; }
.site-search.is-open { display: block; }
.site-search label { display: block; margin-bottom: 7px; font-weight: 700; }
.site-search div { display: flex; }
.site-search input { flex: 1; min-width: 0; border: 0; padding: 13px 15px; border-radius: 8px 0 0 8px; font: inherit; }
.site-search button { border: 0; padding: 0 22px; border-radius: 0 8px 8px 0; color: var(--blue-950); background: var(--gold); font-weight: 750; }

.hero { min-height: 530px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(4,22,51,.92), rgba(11,40,88,.70) 45%, rgba(11,40,88,.25)), url("images/head_slide/slide_bejarat_P1030484_500x300.jpg") center/cover, var(--blue-900); }
.hero__content { padding-block: 88px; }
.hero__kicker, .eyebrow { margin: 0 0 8px; color: var(--blue-700); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero__kicker { color: var(--gold-light); }
.hero h1 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 5.7vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.hero p:not(.hero__kicker) { max-width: 620px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; }
.button--primary { color: var(--blue-950); background: var(--gold); }
.button--primary:hover { color: var(--blue-950); background: var(--gold-light); }
.button--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.button--ghost:hover { color: #fff; background: rgba(255,255,255,.16); }
.button--light { color: var(--blue-950); background: #fff; }

.quick-links { margin-top: -48px; position: relative; z-index: 4; }
.quick-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.quick-links a { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 24px; color: var(--ink); border-right: 1px solid var(--line); }
.quick-links a:last-child { border-right: 0; }
.quick-links a:hover { background: var(--blue-100); }
.quick-links__icon { grid-row: span 2; color: var(--gold); font: 700 1.6rem/1 Georgia, serif; }
.quick-links strong { font-size: 1.02rem; }
.quick-links small { color: var(--muted); }

.section { padding-block: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--blue-950); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.text-link { font-weight: 750; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(7,28,66,.06); }
.news-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card__image img { transform: scale(1.03); }
.news-card__content { padding: 23px; }
.news-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.38rem; line-height: 1.25; }
.news-card h2 a { color: var(--blue-950); }
.news-card p:not(.eyebrow) { color: var(--muted); }

.school-paths { color: #fff; background: var(--blue-900); }
.school-paths__grid { display: grid; grid-template-columns: 1fr 1fr; }
.school-paths article { min-height: 370px; padding: 72px 7vw 72px 0; }
.school-paths article + article { padding-left: 7vw; border-left: 1px solid rgba(255,255,255,.18); }
.school-paths .eyebrow { color: var(--gold-light); }
.school-paths h2 { margin: 0; font: 700 clamp(2rem,4vw,3.5rem)/1.1 Georgia, serif; }
.school-paths p:not(.eyebrow) { max-width: 500px; color: #dce8fa; }

.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-block: 60px 90px; }
.content-card { min-width: 0; }
.article-content h1 { margin: 8px 0 12px; color: var(--blue-950); font: 700 clamp(2.1rem,4vw,3.5rem)/1.1 Georgia, serif; }
.article-meta { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.legacy-content { overflow-wrap: anywhere; font-size: 1.03rem; }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { color: var(--blue-900); font-family: Georgia, serif; line-height: 1.25; }
.legacy-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legacy-content td, .legacy-content th { padding: 8px 10px; border: 1px solid var(--line); }
.legacy-content img { border-radius: 8px; }
.legacy-content a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legacy-content .missing-link { color: var(--muted); text-decoration-style: dashed; cursor: not-allowed; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.contact-grid section { min-height: 190px; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-grid section:first-child { color: #fff; background: var(--blue-800); border-color: var(--blue-800); }
.contact-grid section:first-child .eyebrow { color: var(--gold-light); }
.contact-grid h2 { margin: 5px 0 10px; color: inherit; font: 700 1.45rem/1.25 Georgia, serif; }
.contact-grid h2 a { color: var(--blue-800); }
.contact-grid p { margin: 0; }
.sidebar { align-self: start; padding: 24px; border-top: 4px solid var(--gold); border-radius: 0 0 12px 12px; background: var(--surface); }
.sidebar h2 { margin-top: 0; font: 700 1.3rem Georgia, serif; }
.sidebar a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.listing-page { min-height: 65vh; }
.section-intro { margin: 0 0 38px; padding: clamp(24px, 4vw, 48px); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.section-intro h2 { margin: 0 0 18px; color: var(--blue-950); font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.15 Georgia, serif; }
.section-intro .legacy-content { max-height: 440px; overflow: auto; padding-right: 12px; }
.section-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 70px; }
.section-links a { display: block; min-height: 155px; padding: 20px; color: var(--blue-950); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.section-link__heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.section-links small { display: -webkit-box; overflow: hidden; color: var(--muted); line-height: 1.5; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.section-links a:hover { color: #fff; background: var(--blue-800); border-color: var(--blue-800); }
.section-links a:hover small { color: #e7effc; }
.section-heading--news { margin-top: 20px; }
.empty-state { padding: 50px; text-align: center; border-radius: var(--radius); background: var(--surface); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 7px; }
.pagination a[aria-current="page"] { color: #fff; background: var(--blue-800); border-color: var(--blue-800); }

.site-footer { color: #d8e5f9; background: var(--blue-950); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-block: 58px; }
.site-footer strong, .site-footer span, .site-footer a { display: block; }
.site-footer strong { color: #fff; font: 700 1.4rem Georgia, serif; }
.site-footer h2 { color: var(--gold-light); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { padding: 3px 0; color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 1050px) {
    .menu-toggle { display: block; border: 0; padding: 14px 0; color: #fff; background: transparent; font: inherit; font-weight: 750; }
    .main-nav__inner { justify-content: space-between; }
    .main-nav__list { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: 75vh; overflow-y: auto; padding: 12px 20px 22px; background: var(--blue-900); }
    .main-nav__list.is-open { display: block; }
    .main-nav__list > li { display: grid; grid-template-columns: 1fr 48px; }
    .main-nav__list > li > a { padding: 12px 0; }
    .submenu-toggle { display: block; border: 0; color: #fff; background: transparent; }
    .submenu-toggle::after { content: "+"; font-size: 1.4rem; }
    .has-submenu.is-open .submenu-toggle::after { content: "−"; }
    .submenu { position: static; grid-column: 1 / -1; width: auto; border-radius: 8px; box-shadow: none; }
    .has-submenu:hover .submenu { display: none; }
    .has-submenu.is-open .submenu { display: block; }
    .quick-links__grid { grid-template-columns: 1fr 1fr; }
    .quick-links a:nth-child(2) { border-right: 0; }
    .quick-links a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .utility-bar__inner { display: none; }
    .brand, .brand__inner { min-height: 105px; }
    .hero { min-height: 500px; }
    .hero__content { padding-block: 70px 90px; }
    .quick-links__grid, .news-grid, .school-paths__grid, .page-shell, .site-footer__grid, .section-links, .contact-grid { grid-template-columns: 1fr; }
    .quick-links { margin-top: -55px; }
    .quick-links a { border-right: 0; border-bottom: 1px solid var(--line); }
    .quick-links a:last-child { border-bottom: 0; }
    .section { padding-block: 64px; }
    .section-heading { align-items: start; flex-direction: column; }
    .school-paths article, .school-paths article + article { min-height: auto; padding: 55px 0; border-left: 0; }
    .school-paths article + article { border-top: 1px solid rgba(255,255,255,.18); }
    .page-shell { padding-block: 40px 70px; }
    .sidebar { order: 2; }
    .site-footer__grid { gap: 24px; }
    .site-footer__bottom { flex-direction: column; }
}

@media print {
    .utility-bar, .main-nav, .hero, .quick-links, .sidebar, .site-footer { display: none !important; }
    .page-shell { display: block; padding: 0; }
    a { color: #000; }
}
