/* ==========================================================================
   ASEC - public site theme
   Palette is taken from the ASEC logo: navy tower, sky-blue peak, laurel green.
   ========================================================================== */

:root {
  --navy-900: #0b1a36;
  --navy-800: #14284f;
  --navy-700: #1d3a6e;
  --blue-600: #335a94;
  --sky-500:  #55a8d4;
  --sky-200:  #c5e6f5;
  --sky-50:   #f1f8fc;
  --green-700:#1f8a2b;
  --green-600:#2f9e2f;
  --green-800:#1b7f27;   /* for white text on green: 5.1:1 contrast */
  --lime-400: #a4d81c;
  --ink:      #1b2740;
  --muted:    #5b6a85;
  --line:     #dce6f0;
  --white:    #ffffff;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(11, 26, 54, .10);
  --wrap:     1180px;
  --font:     "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display:  "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3 { font-family: var(--display); color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--lime-400); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .8em 1.6em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 26, 54, .18); }
.btn-green { background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { color: var(--navy-800); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-900); color: var(--sky-200); font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: var(--lime-400); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(11, 26, 54, .10); }
/* the header is allowed to be wider than the page content so brand + menu + Login fit on one row */
.header-in { display: flex; align-items: center; justify-content: center; padding: 10px 0; width: min(100% - 40px, 1400px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); flex: none; }
.brand img { height: 64px; width: auto; flex: none; }

/* logo, menu, Contact Us and Login sit together as one group, centred in the header */
.brand { margin-right: 28px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 10px; }
.btn-login { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--green-600); color: var(--green-700); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.btn-login:hover, .btn-login:focus-visible { background: var(--green-600); color: #fff; }
.footer-links a { margin-left: 18px; }
.site-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--navy-800); font-weight: 600; font-size: .93rem; position: relative; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green-700); }
/* current page = solid green box */
.site-nav a.is-active, .site-nav a.is-active:hover, .site-nav a.is-active:focus-visible { background: var(--green-800); color: #fff; }
/* green underline on hover / keyboard focus: hidden (scaled to 0 from the centre) until then; never on the current page */
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green-600), var(--lime-400)); transform: scaleX(0); transform-origin: center; transition: transform .28s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav a.is-active::after { display: none; }
.site-nav a:last-child { background: var(--navy-800); color: #fff; margin-left: 8px; padding-inline: 18px; border-radius: 999px; }
.site-nav a:last-child:hover, .site-nav a:last-child.is-active { background: var(--green-800); }
.site-nav a:last-child.is-active:hover { background: #177a24; }
.site-nav a:last-child::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--navy-800); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--navy-900), var(--blue-600)); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 26, 54, .93) 0%, rgba(20, 40, 79, .80) 45%, rgba(51, 90, 148, .45) 100%); }
/* the logo's triangle "peak", echoed as a soft shape on the right of every banner */
.hero-peak { position: absolute; right: -6%; bottom: 0; width: min(46vw, 560px); aspect-ratio: 1.1 / 1; z-index: -1; background: linear-gradient(180deg, rgba(197, 230, 245, .30), rgba(85, 168, 212, .10)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-in { padding: clamp(60px, 9vw, 120px) 0; max-width: 880px; margin-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.hero-home .hero-in { padding: clamp(84px, 13vw, 170px) 0; }
/* the home banner keeps its artwork (plane + ship) on the right, so anchor it there and lift the overlay */
.hero-home .hero-bg { background-position: right center; }
.hero-home::before { background: linear-gradient(100deg, rgba(11, 26, 54, .95) 0%, rgba(20, 40, 79, .72) 50%, rgba(20, 40, 79, .12) 100%); }
.hero h1 { color: #fff; text-wrap: balance; }
.hero-home h1 { text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2rem, 4.8vw, 3.5rem); }
.hero-sub { font-size: 1.15rem; color: var(--sky-200); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--lime-400); font-weight: 700; margin-bottom: 1em; }
.crumb { font-size: .88rem; color: var(--sky-200); margin-bottom: .8em; }
.crumb a { color: #fff; text-decoration: none; }
.crumb a:hover { color: var(--lime-400); }
.crumb span { opacity: .6; margin: 0 6px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--green-600), var(--lime-400) 40%, var(--sky-500)); }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-tint { background: var(--sky-50); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--sky-200); }
.section-navy h2 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-intro { color: inherit; opacity: .9; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--green-700); margin-bottom: .7em; }
.section-navy .kicker { color: var(--lime-400); }
.kicker::before { content: ""; display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--sky-500); margin-right: 9px; vertical-align: 0; }
.lead { font-size: 1.1rem; color: #33415c; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media-logo img { width: min(100%, 340px); margin-inline: auto; filter: drop-shadow(0 14px 30px rgba(11, 26, 54, .18)); }
.framed { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; outline: 1px solid var(--line); background: #000; }
img.framed { background: #fff; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: relative; }
.card-body { padding: 22px 24px 24px; }
.more { font-weight: 600; text-decoration: none; color: var(--green-700); }
.more:hover { color: var(--navy-800); }

.program-card { border-top: 5px solid var(--blue-600); display: flex; flex-direction: column; }
.program-card:nth-child(3n+2) { border-top-color: var(--sky-500); }
.program-card:nth-child(3n) { border-top-color: var(--green-600); }
.program-card .more { margin-top: auto; padding-top: 12px; }
.badge { display: inline-block; align-self: flex-start; background: var(--sky-50); color: var(--blue-600); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.ticks li { position: relative; padding: 5px 0 5px 28px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 14px; height: 8px; border-left: 3px solid var(--green-600); border-bottom: 3px solid var(--green-600); transform: rotate(-45deg) translateY(-50%); transform-origin: left top; }
ul.plain { list-style: none; padding: 0; margin: 0; }

.pillar { border-left: 6px solid var(--blue-600); }
.pillar-green { border-left-color: var(--green-600); }
.pillar-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sky-50); color: var(--blue-600); font-size: 1.4rem; margin-bottom: 16px; }
.pillar-green .pillar-icon { color: var(--green-700); background: #eef8e6; }

.values { counter-reset: v; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.values li { counter-increment: v; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 74px; position: relative; box-shadow: 0 4px 14px rgba(11, 26, 54, .05); }
.values li::before { content: counter(v, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); }

.milestone { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; color: #fff; display: flex; gap: 18px; align-items: flex-start; }
.milestone p { margin: 0; }
.milestone .num { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy-900); background: linear-gradient(135deg, var(--lime-400), var(--green-600)); }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 36px; }
.people-lg { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 0; }
.person { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease; }
.person:hover { transform: translateY(-4px); }
.person img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; border: 4px solid #fff; outline: 3px solid var(--sky-500); background: var(--sky-50); }
.people-lg .person img { width: 150px; height: 150px; }
.person strong { display: block; color: var(--navy-800); font-size: 1.05rem; }
.person span { display: block; color: var(--green-700); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.person p { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- courses ---------- */
.pill-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.pill-nav a { text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--navy-800); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.pill-nav a:hover, .pill-nav a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pill-nav b { background: var(--sky-50); color: var(--blue-600); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-size: .8rem; }
.course-group { margin-bottom: 40px; scroll-margin-top: 110px; }
.course-group:last-child { margin-bottom: 0; }
.course-group h3 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 3px solid var(--sky-500); display: inline-block; margin-bottom: 18px; }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.course-list li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green-600); border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.course-list strong { color: var(--navy-800); font-weight: 600; line-height: 1.4; display: block; }
.course-list p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.code { flex: none; background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.chart-card { margin: 0; padding: 16px; text-align: center; }
.chart-card img { width: 100%; border-radius: 8px; }
.chart-card figcaption { font-weight: 600; color: var(--navy-800); padding-top: 14px; }

/* ---------- gallery + lightbox ---------- */
/* flex + centre so an album with 2 or 3 photos sits in the middle of the page instead of hugging the left */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.gallery .shot { flex: 0 1 360px; }
.gallery-home { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.gallery-home .shot { flex: none; }
.shot { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-50); box-shadow: var(--shadow); position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(11, 26, 54, .85)); opacity: 0; transition: opacity .2s ease; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.album + .album { padding-top: 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 26, 54, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox p { color: #fff; margin: 14px 0 0; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: var(--green-600); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- news ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card h3 a { color: var(--navy-800); text-decoration: none; }
.post-card h3 a:hover { color: var(--green-700); }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: .7em; }
.tag { display: inline-block; background: #eef8e6; color: var(--green-700); font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); background: var(--sky-50); border: 1px dashed var(--sky-500); border-radius: var(--radius); padding: 36px 20px; }
.article h3 { margin-top: 1.6em; }
.article-cover { margin-bottom: 28px; }
.byline { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list a { text-decoration: none; }
.ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); }
.form { scroll-margin-top: 110px; border-top: 5px solid var(--green-600); }
.form h3 { font-size: 1.35rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 16px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c5d3e3; border-radius: 10px; font: inherit; color: var(--ink); background: #fbfdff; transition: border-color .15s ease, box-shadow .15s ease; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(85, 168, 212, .22); background: #fff; }
.form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; }
.alert-ok { background: #eef8e6; color: var(--green-700); border: 1px solid #bfe3a6; }
.alert-err { background: #fdeeee; color: #a32626; border: 1px solid #f1c0c0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.9); }
.map-link { text-align: center; margin: 0; padding: 10px; background: var(--sky-50); font-size: .9rem; }

/* ---------- CTA + footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green-600) 55%, #57b51f); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: 4%; bottom: 0; width: 260px; aspect-ratio: 1.1 / 1; background: rgba(255, 255, 255, .10); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 760px; font-size: clamp(1.3rem, 2.6vw, 1.85rem); }

.site-footer { background: var(--navy-900); color: #b9c8de; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer h3::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--green-600), var(--lime-400)); }
.site-footer a { color: #e6eefb; text-decoration: none; }
.site-footer a:hover { color: var(--lime-400); }
.site-footer li { padding: 4px 0; }
.footer-brand img { width: 84px; height: auto; margin-bottom: 16px; }
.footer-brand strong { color: #fff; }
.footer-brand .muted { color: #8fa3c2; }
.follow { margin-top: 18px; }
.follow a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.follow img { border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .10); font-size: .85rem; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-in { justify-content: space-between; }
  .brand { margin-right: 0; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11, 26, 54, .12); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid var(--sky-50); border-radius: 0; }
  .site-nav a.is-active { border-radius: 8px; }
  .site-nav a::after { display: none; }
  .site-nav a:last-child { margin: 12px 0 0; text-align: center; border-radius: 999px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .split, .contact-grid, .cards-2 { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
  .gallery-home { grid-template-columns: repeat(2, 1fr); }
  .topbar-note { display: none; }
  .topbar-in { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .btn-login { padding: 7px 12px; font-size: .85rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar a { margin-left: 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .map, .hero-peak { display: none; }
  .hero { color: #000; background: none; } .hero::before, .hero-bg { display: none; } .hero h1 { color: #000; }
}
