:root {
  --blue: #2E8B4F;
  --blue-deep: #194D31;
  --blue-mid: #3f6b4f;
  --blue-pale: #eaf3ec;
  --red: #D01A1E;
  --red-bright: #e63a3d;
  --ink: #16261d;
  --muted: #5b6a60;
  --line: #dde5df;
  --paper: #ffffff;
  --warm: #f6f7f2;
  --shadow: 0 18px 50px rgba(10, 11, 7, 0.12);
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Montserrat", sans-serif; font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.15em; height: 1.15em; stroke-width: 1.8; }
.container { width: var(--container); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: 12px; padding: 10px 16px; background: var(--paper); color: var(--blue); transform: translateY(-150%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 16px; color: var(--blue-mid); font-size: .72rem; line-height: 1.2; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { max-width: 790px; margin-bottom: 26px; color: var(--blue-deep); font-size: clamp(2.85rem, min(4.5vw, 8.5vh), 4.5rem); font-weight: 800; text-wrap: balance; }
h2 { margin-bottom: 24px; color: var(--blue-deep); font-size: clamp(2.2rem, 4vw, 3.45rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .79rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-bright); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-pale); }
.btn-light-outline { border-color: rgba(255,255,255,.65); color: var(--paper); }
.btn-light-outline:hover { background: var(--paper); color: var(--blue-deep); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: .82rem; font-weight: 700; border-bottom: 1px solid rgba(10, 11, 7, .3); padding-bottom: 5px; }
.text-link:hover { color: var(--red); border-color: var(--red); }

.topbar { background: var(--blue-deep); color: #d7e6db; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); font-weight: 700; }
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(10, 11, 7,.09); transition: box-shadow .2s ease; backdrop-filter: blur(12px); }
.site-header.scrolled { box-shadow: 0 10px 28px rgba(10, 11, 7, .09); }
.nav-wrap { min-height: 80px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 32px; }
.brand { width: 110px; justify-self: start; }
.brand img { width: 100%; max-height: 54px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; grid-column: 2; align-items: center; justify-content: center; gap: 25px; }
.main-nav a { position: relative; color: #233029; font-size: .75rem; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { grid-column: 3; justify-self: end; min-height: 44px; padding-inline: 18px; }
.menu-toggle { display: none; grid-column: 3; justify-self: end; padding: 8px; border: 0; background: transparent; color: var(--blue); }
.menu-close-icon { display: none; }

.hero { position: relative; overflow: hidden; padding: clamp(24px, 4vh, 40px) 0 clamp(56px, 8vh, 96px); background: var(--paper); }
.hero::before { content: ""; position: absolute; width: 280px; height: 280px; left: -190px; top: 80px; border: 1px solid rgba(10, 11, 7,.12); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(32px, 4vw, 68px); }
.hero-copy { position: relative; z-index: 2; padding: 8px 0 clamp(24px, 6vh, 58px); }
.hero-lead { max-width: 630px; margin-bottom: clamp(24px, 3.2vh, 34px); color: var(--muted); font-size: clamp(.96rem, 1.15vw, 1.11rem); }
.hero-note { display: flex; gap: 16px; align-items: stretch; margin-top: 46px; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.hero-note p { margin: 0; }
.hero-note strong { color: var(--ink); }
.note-line { width: 3px; background: var(--blue-mid); }
.hero-media { position: relative; isolation: isolate; min-width: 0; }
.hero-media::before { content: ""; position: absolute; z-index: -1; right: clamp(-46px, -3vw, -34px); bottom: clamp(-40px, -2.6vw, -30px); width: min(58%, 360px); aspect-ratio: 1; background: var(--blue-pale); }
.hero-image { height: clamp(420px, min(42vw, 62vh), 610px); box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.hero-card { position: absolute; left: clamp(-44px, -3vw, -24px); bottom: clamp(24px, 3.5vh, 34px); width: min(305px, 80%); padding: clamp(18px, 1.5vw, 23px) clamp(20px, 1.8vw, 25px); background: var(--paper); box-shadow: 0 18px 45px rgba(10, 11, 7,.2); border-left: 4px solid var(--red); }
.hero-card > span { display: block; margin-bottom: 8px; color: var(--red); font-size: .6rem; font-weight: 700; letter-spacing: .15em; }
.hero-card strong { display: block; color: var(--blue-deep); font-size: .98rem; line-height: 1.35; }
.hero-card div { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 9%; align-items: center; }
.about-media { position: relative; padding: 0 0 34px 34px; }
.about-media::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 68%; height: 65%; background: var(--blue); }
.about-media img { width: 100%; height: 510px; object-fit: cover; }
.vertical-caption { position: absolute; left: -7px; top: 25px; color: var(--paper); font-size: .57rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.about-copy .lead { color: var(--ink); }
.about-copy .text-link { margin-top: 13px; }

.foundations { background: var(--warm); }
.section-heading { margin-bottom: 58px; }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.split-heading h2, .centered-heading h2 { margin-bottom: 0; }
.split-heading > p { margin: 0; color: var(--muted); }
.centered-heading { max-width: 780px; margin-inline: auto; text-align: center; }
.foundation-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; align-items: stretch; gap: 18px; }
.foundation-card { position: relative; min-height: 325px; padding: 44px 36px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.foundation-card svg { width: 34px; height: 34px; margin-bottom: 42px; color: var(--blue-mid); }
.foundation-card p { color: var(--muted); }
.card-index { position: absolute; right: 24px; top: 18px; color: #d7e6db; font-size: 2.6rem; font-weight: 800; letter-spacing: -.08em; }
.vision-card { margin-top: 32px; border-top: 4px solid var(--red); }
.values-card { background: var(--blue-deep); color: #d7e6db; }
.values-card h3 { color: var(--paper); }
.values-card p { color: #d7e6db; }
.values-card svg { color: #9cc0a8; }
.values-card .card-index { color: rgba(255,255,255,.12); }

.academic { overflow: hidden; }
.course-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; max-width: 1080px; margin-inline: auto; box-shadow: var(--shadow); }
.course-card { position: relative; z-index: 2; padding: 54px; background: var(--blue); color: #d7e6db; }
.course-card h2 { color: var(--paper); }
.course-card h3 { color: var(--paper); font-size: 2rem; }
.course-kicker { display: block; margin-bottom: 24px; color: #9cc0a8; font-size: .65rem; font-weight: 700; letter-spacing: .16em; }
.course-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 34px; border-block: 1px solid rgba(255,255,255,.18); }
.course-meta div { padding: 17px 12px 17px 0; }
.course-meta div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.course-meta div:nth-child(even) { padding-left: 24px; padding-right: 0; }
.course-meta dt { color: #9cc0a8; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.course-meta dd { margin: 4px 0 0; color: var(--paper); font-size: .88rem; font-weight: 700; }
.curriculum-panel { padding: 54px 64px; background: var(--paper); border: 1px solid var(--line); }
.curriculum-panel h3 { max-width: 560px; font-size: 1.75rem; }
.check-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.check-list svg { margin-top: 3px; color: var(--red); }
.check-list strong { color: var(--ink); }

.admission { position: relative; background: var(--blue-deep); color: #d7e6db; overflow: hidden; }
.admission::after { content: "04"; position: absolute; right: -35px; bottom: -100px; color: rgba(255,255,255,.025); font-size: 32rem; font-weight: 800; line-height: 1; letter-spacing: -.12em; }
.light-heading { position: relative; z-index: 1; }
.light-heading h2 { color: var(--paper); }
.light-heading > p { color: #d7e6db; }
.admission-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; }
.steps-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; border-top: 1px solid rgba(255,255,255,.18); }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.steps-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.steps-list li:nth-child(even) { padding-left: 28px; }
.steps-list > li > span { color: #9cc0a8; font-size: .8rem; font-weight: 700; }
.steps-list h3 { margin-bottom: 8px; color: var(--paper); font-size: 1rem; }
.steps-list p { margin: 0; color: #d7e6db; font-size: .76rem; }
.documents-card { align-self: start; padding: 38px; background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 rgba(46, 139, 79, .3); }
.documents-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 24px; background: var(--blue-pale); color: var(--blue); }
.documents-icon svg { width: 25px; height: 25px; }
.documents-card ul { margin: 18px 0 26px; padding-left: 19px; color: var(--muted); font-size: .78rem; }
.documents-card li { margin: 10px 0; }
.documents-card .btn { width: 100%; background: var(--blue); color: var(--paper); }

.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.advantage-grid article { min-height: 235px; padding: 34px; background: var(--paper); transition: background-color .2s ease, transform .2s ease; }
.advantage-grid article:hover { position: relative; z-index: 2; background: var(--blue-pale); transform: translateY(-4px); }
.advantage-grid svg { width: 31px; height: 31px; margin-bottom: 31px; color: var(--blue); }
.advantage-grid article:nth-child(2) svg, .advantage-grid article:nth-child(6) svg { color: var(--red); }
.advantage-grid h3 { margin-bottom: 12px; font-size: 1.02rem; }
.advantage-grid p { margin: 0; color: var(--muted); font-size: .78rem; }

.stats { padding: 50px 0; background: var(--blue); color: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats-grid > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 0 28px; border-right: 1px solid rgba(255,255,255,.2); }
.stats-grid > div:first-child { padding-left: 0; }
.stats-grid > div:last-child { padding-right: 0; border-right: 0; }
.stats strong { font-size: 2.35rem; line-height: 1; letter-spacing: -.06em; }
.stats span { color: #d7e6db; font-size: .58rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; }

.testimonials { background: var(--warm); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.testimonial-card { position: relative; min-height: 360px; display: flex; flex-direction: column; padding: 35px; background: var(--paper); border: 1px solid var(--line); }
.featured-testimonial { margin-top: -18px; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.quote-mark { height: 55px; color: var(--blue-mid); font-family: Georgia, serif; font-size: 5rem; line-height: .8; }
.testimonial-card blockquote { margin: 18px 0 32px; color: #39463f; font-size: .9rem; font-weight: 500; line-height: 1.8; }
.testimonial-card footer { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.testimonial-card footer img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; filter: saturate(.7); }
.testimonial-card footer strong, .testimonial-card footer span { display: block; }
.testimonial-card footer strong { font-size: .76rem; }
.testimonial-card footer span { color: var(--muted); font-size: .64rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--paper); border: 1px solid var(--line); }
.news-card-offset { margin-top: 30px; }
.news-image { display: block; overflow: hidden; }
.news-image img { width: 100%; height: 245px; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-image img { transform: scale(1.035); }
.news-body { padding: 26px; }
.news-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 17px; color: #7c8a80; font-size: .6rem; font-weight: 700; letter-spacing: .09em; }
.news-meta span { color: var(--red); }
.news-card h3 { margin-bottom: 13px; font-size: 1.13rem; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--muted); font-size: .76rem; }
.news-card .text-link { font-size: .7rem; }

.final-cta { padding: 72px 0; background: var(--blue-deep); color: #d7e6db; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.final-cta h2 { max-width: 720px; margin-bottom: 10px; color: var(--paper); }
.final-cta p { margin-bottom: 0; }
.final-cta .eyebrow { color: #9cc0a8; }
.final-cta .button-row { flex: 0 0 auto; }

.location { background: var(--warm); }
.location-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; }
.location-card { padding: 42px; background: var(--paper); border: 1px solid var(--line); }
.contact-detail { display: grid; grid-template-columns: 35px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.contact-detail > svg { color: var(--blue); }
.contact-detail span, .contact-detail strong { display: block; }
.contact-detail span { margin-bottom: 3px; color: var(--muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail strong { font-size: .78rem; line-height: 1.55; }
.social-row { display: flex; gap: 8px; margin-top: 25px; }
.social-row a { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--blue); transition: .2s ease; }
.social-row a:hover { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.map-wrap { position: relative; min-height: 510px; background: #e6ece6; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 510px; border: 0; filter: saturate(.75) contrast(.95); }
.map-button { position: absolute; left: 24px; bottom: 24px; box-shadow: var(--shadow); }

.contact-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; align-items: start; }
.contact-intro { position: sticky; top: 120px; }
.contact-intro p:not(.eyebrow) { color: var(--muted); }
.contact-accent { display: grid; grid-template-columns: 28px 1fr; gap: 15px; margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.contact-accent svg { color: var(--red); }
.contact-form { padding: 42px; border: 1px solid var(--line); background: var(--paper); box-shadow: 12px 12px 0 var(--blue-pale); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; color: var(--blue-deep); font-size: .67rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd8d1; border-radius: 0; background: var(--paper); color: var(--ink); outline: none; }
.field input, .field select { height: 49px; padding: 0 13px; }
.field textarea { padding: 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 139, 79, .15); }
.field .invalid, .consent.invalid { border-color: var(--red); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 24px; color: var(--muted); font-size: .69rem; }
.consent input { margin-top: 5px; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 20px; }
.form-status { margin: 0; color: var(--blue); font-size: .7rem; font-weight: 600; }

.site-footer { padding-top: 72px; background: #16402a; color: #d7e6db; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 60px; padding-bottom: 58px; }
.footer-brand img { width: 120px; max-height: 65px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 350px; margin: 24px 0 0; font-size: .76rem; }
.footer-grid h3 { margin-bottom: 22px; color: var(--paper); font-size: .78rem; letter-spacing: .02em; }
.footer-grid > div:not(.footer-brand) a { display: block; margin: 11px 0; font-size: .7rem; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--paper); }
.site-footer .social-row a { border-color: rgba(255,255,255,.2); color: var(--paper); }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .62rem; }
.footer-bottom div { display: flex; gap: 24px; }

@media (max-width: 1080px) {
  :root { --container: min(100% - 40px, 960px); }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .68rem; }
  .nav-cta { display: none; }
  .hero-grid { gap: 38px; }
  .hero-image { height: clamp(380px, 60vh, 540px); }
  .admission-grid { gap: 40px; }
  .stats-grid > div { padding-inline: 15px; }
  .stats strong { font-size: 2rem; }
}

@media (max-width: 820px) {
  body { padding-top: 72px; }
  .section-pad { padding: 84px 0; }
  .topbar { display: none; }
  .site-header { position: fixed; inset: 0 0 auto; width: 100%; }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
  .menu-toggle i, .menu-toggle svg { display: none; }
  .menu-toggle::before { content: ""; width: 22px; height: 16px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
  .menu-toggle[aria-expanded="true"]::before { content: "×"; width: auto; height: auto; background: none; font-size: 30px; line-height: 1; }
  .main-nav { position: absolute; inset: 100% 0 auto; display: grid; align-content: start; justify-content: stretch; gap: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px max(28px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 20px 35px rgba(10, 11, 7,.13); transform: translateY(-130%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .35s ease, opacity .35s ease, visibility .35s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .main-nav a::after { display: none; }
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { max-width: 660px; }
  .hero-media { width: calc(100% - 44px); margin-left: auto; }
  .hero-media::before { right: -28px; bottom: -30px; width: min(58%, 320px); }
  .hero-image { height: clamp(380px, 65vh, 520px); }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-media { max-width: 680px; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .foundation-grid { grid-template-columns: 1fr 1fr; }
  .values-card { grid-column: span 2; min-height: 260px; }
  .course-layout { grid-template-columns: 1fr; }
  .admission-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .stats-grid > div:nth-child(3) { border-right: 0; }
  .stats-grid > div:nth-child(4) { padding-left: 0; }
  .testimonial-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child, .news-card:last-child { grid-column: span 2; }
  .news-card-offset { margin-top: 0; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-intro { position: static; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 32px); }
  body { font-size: 15px; }
  .section-pad { padding: 70px 0; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .brand { width: 92px; }
  .main-nav { padding-inline: 16px; }
  .hero { padding-top: 26px; }
  .hero-grid { gap: 34px; }
  .hero-copy { padding-top: 24px; }
  .hero-lead { font-size: 1rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .btn { width: 100%; }
  .hero-note { margin-top: 32px; }
  .hero-media { width: calc(100% - 18px); }
  .hero-media::before { right: -14px; bottom: -22px; width: 62%; }
  .hero-image { height: clamp(340px, 60vh, 430px); }
  .hero-card { left: -18px; bottom: 20px; }
  .about-media { padding: 0 0 20px 20px; }
  .about-media img { height: 380px; }
  .vertical-caption { display: none; }
  .section-heading { margin-bottom: 40px; }
  .foundation-grid { grid-template-columns: 1fr; }
  .foundation-card, .values-card { grid-column: auto; min-height: 275px; }
  .vision-card { margin-top: 0; }
  .course-card, .curriculum-panel { padding: 34px 25px; }
  .course-meta { grid-template-columns: 1fr; }
  .course-meta div { border-bottom: 1px solid rgba(255,255,255,.16); }
  .course-meta div:nth-child(odd) { border-right: 0; }
  .course-meta div:nth-child(even) { padding-left: 0; }
  .course-meta div:last-child { border-bottom: 0; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li:nth-child(odd) { border-right: 0; }
  .steps-list li:nth-child(even) { padding-left: 0; }
  .documents-card { padding: 28px 24px; box-shadow: 8px 8px 0 rgba(46, 139, 79, .3); }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-grid article { min-height: 210px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { padding: 0 18px !important; border-right: 0; }
  .stats-grid > div:nth-child(odd) { padding-left: 0 !important; border-right: 1px solid rgba(255,255,255,.2); }
  .stats-grid > div:last-child { grid-column: span 2; border-right: 0; }
  .testimonial-grid, .news-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child, .news-card:last-child { grid-column: auto; }
  .featured-testimonial { margin-top: 0; }
  .news-image img { height: 230px; }
  .final-cta { padding: 62px 0; }
  .location-card { padding: 28px 23px; }
  .map-wrap, .map-wrap iframe { min-height: 430px; }
  .map-button { left: 16px; right: 16px; bottom: 16px; }
  .contact-form { padding: 28px 22px; box-shadow: 8px 8px 0 var(--blue-pale); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .footer-brand { grid-column: span 2; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}

/* Ajustes para portáteis ou janelas baixas em ecrãs largos. */
@media (min-width: 821px) and (max-height: 800px) {
  .hero { padding-block: 24px 56px; }
  .hero-copy { padding-bottom: 24px; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(2.75rem, min(4vw, 8vh), 4rem); }
  .hero-lead { margin-bottom: 24px; }
  .hero-image { height: clamp(380px, 60vh, 500px); }
}

/* Assistente da EBA */
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.chatbot-toggle { pointer-events: auto; width: 58px; height: 58px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--blue-deep); color: var(--paper); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.chatbot-toggle:hover { transform: translateY(-2px); }
.chatbot-toggle svg { width: 24px; height: 24px; }
.chatbot-icon-close { display: none; }
.chatbot.open .chatbot-toggle { background: var(--blue); }
.chatbot.open .chatbot-icon-open { display: none; }
.chatbot.open .chatbot-icon-close { display: block; }

.chatbot-panel { order: -1; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transform-origin: bottom right; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.chatbot.open .chatbot-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

.chatbot-header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 16px 17px 20px; background: var(--blue-deep); color: var(--paper); border-left: 4px solid var(--red); }
.chatbot-heading strong { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.chatbot-heading span { display: block; margin-top: 3px; font-size: .72rem; line-height: 1.45; color: #cde0d3; }
.chatbot-close { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; margin: -2px -4px 0 0; border: 0; background: transparent; color: #cde0d3; cursor: pointer; transition: color .15s ease; }
.chatbot-close:hover { color: var(--paper); }
.chatbot-close svg { width: 17px; height: 17px; }

.chatbot-body { flex: 1; min-height: 220px; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--warm); }
.chat-msg { max-width: 84%; padding: 11px 14px; font-size: .82rem; line-height: 1.55; }
.chat-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.chat-msg.user { align-self: flex-end; background: var(--blue); color: var(--paper); }
.chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 2px; }
.chat-suggestions button { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--blue-deep); font: inherit; font-size: .74rem; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.chat-suggestions button:hover { background: var(--blue-pale); border-color: var(--blue); }

.chatbot-input { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); }
.chatbot-input input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .82rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.chatbot-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 139, 79, .14); }
.chatbot-input button { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--red); color: var(--paper); cursor: pointer; transition: background-color .18s ease; }
.chatbot-input button:hover { background: var(--red-bright); }
.chatbot-input button svg { width: 19px; height: 19px; }

@media (max-width: 560px) {
  .chatbot { right: 16px; bottom: 16px; left: 16px; }
  .chatbot-toggle { width: 52px; height: 52px; }
  .chatbot-panel { width: 100%; max-height: min(70vh, calc(100vh - 108px)); }
}

/* ===== Revelações ao scroll =====
   O estado inicial só se aplica quando o JS activa .js-reveal no <html>,
   para que sem JS (ou com movimento reduzido) tudo fique visível. */
.about-frame { position: relative; }

/* Sobe do chão: cartões e blocos sólidos. */
/* As margens negativas do clip-path evitam cortar as sombras no fim. */
.js-reveal [data-reveal="rise"] { clip-path: inset(100% -120px -120px -120px); transform: translateY(26px); transition-property: clip-path, transform; transition-duration: 1.05s, .95s; transition-timing-function: cubic-bezier(.62, .02, .2, 1), cubic-bezier(.16, 1, .3, 1); }
.js-reveal [data-reveal="rise"].is-visible { clip-path: inset(-120px -120px -120px -120px); transform: translateY(0); }
/* Devolve o hover das células de vida académica, que o selector acima ganharia. */
.js-reveal .advantage-grid article[data-reveal].is-visible:hover { transform: translateY(-4px); }

/* Impressão de cima para baixo: títulos. */
.js-reveal [data-reveal="wipe"] { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.62, .02, .2, 1); }
.js-reveal [data-reveal="wipe"].is-visible { clip-path: inset(0 0 0 0); }

/* Risco horizontal: linhas de lista e painéis. */
.js-reveal [data-reveal="panel"] { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.62, .02, .2, 1); }
.js-reveal [data-reveal="panel"].is-visible { clip-path: inset(0 0 0 0); }

/* Elevação simples: texto corrido e blocos com sombra dura. */
.js-reveal [data-reveal="lift"] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .85s cubic-bezier(.16, 1, .3, 1); }
.js-reveal [data-reveal="lift"].is-visible { opacity: 1; transform: translateY(0); }

/* Cortina: uma placa verde desliza e descobre a imagem. */
.js-reveal [data-reveal="curtain"] { position: relative; overflow: hidden; }
.js-reveal [data-reveal="curtain"]::after { content: ""; position: absolute; z-index: 4; inset: 0; background: var(--blue-deep); transform-origin: right center; transition: transform 1s cubic-bezier(.72, 0, .18, 1); transition-delay: var(--d, 0ms); }
.js-reveal [data-reveal="curtain"].is-visible::after { transform: scaleX(0); }
.js-reveal [data-reveal="curtain"] img { transform: scale(1.12); transition: transform 1.5s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.js-reveal [data-reveal="curtain"].is-visible img { transform: scale(1); }

/* Palavras que sobem de trás de uma máscara: só no título principal. */
.r-word { display: inline-block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; vertical-align: top; }
.js-reveal [data-reveal="words"] .r-word > span { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--wd, 0ms); }
.js-reveal [data-reveal="words"].is-visible .r-word > span { transform: translateY(0); }

/* Depois das regras acima, porque a forma abreviada de transition zera o atraso. */
.js-reveal [data-reveal] { transition-delay: var(--d, 0ms); }

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