:root {
  --purple-950: #21062f;
  --purple-900: #351052;
  --purple-800: #4b126f;
  --purple-700: #651b8d;
  --purple-100: #f4e9fb;
  --green-700: #07821e;
  --green-600: #0ca52c;
  --green-100: #e8f8ed;
  --ink: #111827;
  --muted: #647084;
  --line: #e6e8ee;
  --surface: #ffffff;
  --soft: #f8f6fb;
  --shadow: 0 20px 60px rgba(33, 6, 47, .12);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Poppins, Montserrat, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  background: var(--purple-950);
  color: #fff;
  font-size: 13px;
}
.topbar .container, .nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar .container { min-height: 38px; }
.topbar span { color: rgba(255,255,255,.78); }
.lang button {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.lang button.active { background: var(--green-600); border-color: var(--green-600); }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(75,18,111,.08);
}
.nav .container { min-height: 82px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong {
  display: block;
  color: var(--purple-800);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.05;
}
.brand small { color: var(--green-700); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 750;
}
.navlinks a { padding: 28px 0; color: #253044; }
.navlinks a:hover, .navlinks a.active { color: var(--purple-800); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: var(--purple-800);
  cursor: pointer;
}
.mega {
  position: absolute;
  left: 50%;
  top: 82px;
  width: min(980px, calc(100vw - 40px));
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s ease;
}
.nav:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%); }
.mega h3 { margin: 0 0 8px; color: var(--purple-800); font-size: 16px; }
.mega p { margin: 0; color: var(--muted); font-size: 14px; }
.mega a { display: block; padding: 7px 0; color: #253044; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .68; cursor: wait; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--purple-800), var(--purple-700)); color: #fff; box-shadow: 0 12px 28px rgba(75,18,111,.24); }
.btn-green { background: var(--green-600); color: #fff; box-shadow: 0 12px 28px rgba(12,165,44,.22); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.1); }
.btn-light { border-color: var(--line); background: #fff; color: var(--purple-800); }

.hero {
  min-height: calc(100vh - 120px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  display: grid;
  align-items: end;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/campus-event.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(33,6,47,.82) 0%, rgba(53,16,82,.58) 46%, rgba(7,130,30,.12) 100%),
    linear-gradient(0deg, rgba(33,6,47,.74) 0%, transparent 48%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .72fr;
  gap: 48px;
  padding: 92px 0 56px;
  align-items: end;
}
.admission-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-left: 4px solid var(--green-600);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 850;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .94;
  letter-spacing: 0;
}
.hero h1 span { color: #85f49b; display: block; }
.hero p {
  max-width: 680px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255,255,255,.86);
  margin: 22px 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 22px;
}
.hero-card img { width: 92px; margin-bottom: 18px; }
.hero-card h2 { margin: 0 0 10px; font-size: 25px; }
.hero-card p { margin: 0 0 18px; font-size: 15px; }
.mini-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; gap: 9px; color: rgba(255,255,255,.9); font-weight: 700; }
.mini-list li::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--green-600); margin-top: 8px; flex: 0 0 9px; }

.section { padding: 86px 0; }
.section.soft { background: var(--soft); }
.section.purple { background: linear-gradient(135deg, var(--purple-950), var(--purple-800)); color: #fff; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head.center { display: block; text-align: center; max-width: 790px; margin: 0 auto 36px; }
.label {
  color: var(--green-700);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.section.purple .label { color: #86f39a; }
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  color: var(--purple-900);
}
.section.purple h2, .section.purple p, .section.purple .section-head { color: #fff; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 16px 0 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -34px;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow);
}
.stat { background: #fff; padding: 28px; }
.stat strong { display: block; color: var(--purple-800); font-size: clamp(30px, 4vw, 50px); line-height: 1; }
.stat span { color: var(--muted); font-weight: 750; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(33,6,47,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(75,18,111,.22); }
.card h3 { margin: 0 0 10px; color: var(--purple-900); font-size: 22px; line-height: 1.12; }
.card p { color: var(--muted); margin: 0 0 18px; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--purple-100);
  color: var(--purple-800);
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }
.program-list { padding: 0; margin: 14px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.program-list li { background: var(--green-100); color: var(--green-700); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 800; }

.media-split {
  display: grid;
  grid-template-columns: .96fr 1fr;
  gap: 46px;
  align-items: center;
}
.media-stack { display: grid; grid-template-columns: 1fr .76fr; gap: 16px; align-items: end; }
.media-stack img, .image-card img, .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.media-stack img:first-child { min-height: 430px; }
.media-stack img:last-child { min-height: 250px; }
.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.image-card img { aspect-ratio: 16 / 10; }
.image-card div { padding: 18px; }
.image-card h3 { margin: 0 0 6px; color: var(--purple-900); }
.image-card p { margin: 0; color: var(--muted); }

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 34px;
}
.feature-rail div { padding: 24px; background: rgba(255,255,255,.08); }
.feature-rail strong { display: block; font-size: 20px; margin-bottom: 6px; }
.feature-rail span { color: rgba(255,255,255,.76); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  color: #314058;
  cursor: pointer;
}
.filter-btn.active { background: var(--purple-800); color: #fff; border-color: var(--purple-800); }
.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 22px;
}
.searchbar input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 11px 12px;
  background: #fff;
}
.searchbar input { border: 0; outline: none; }

.page-hero {
  background: linear-gradient(135deg, rgba(33,6,47,.95), rgba(75,18,111,.88)), url("images/campus-wide.jpg") center/cover;
  color: #fff;
  padding: 92px 0 72px;
}
.page-hero h1 { margin: 0; max-width: 900px; font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.84); font-size: 19px; margin: 18px 0 0; }
.crumbs { color: rgba(255,255,255,.72); font-weight: 800; margin-bottom: 18px; font-size: 14px; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--purple-100); }
.step { position: relative; padding-left: 58px; }
.step::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--green-600); color: #fff; display: grid; place-items: center; font-weight: 900; }
.step h3 { margin: 0 0 4px; color: var(--purple-900); }
.step p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: #fff; border: 0; padding: 18px 20px; font-weight: 850; color: var(--purple-900); cursor: pointer; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; color: #29374e; margin-bottom: 6px; }

.gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery img:first-child { grid-row: span 2; }
.testimonial {
  min-height: 280px;
  display: grid;
  align-content: center;
}
.quote { font-size: clamp(24px, 3vw, 38px); line-height: 1.16; color: var(--purple-900); font-weight: 850; margin: 0 0 18px; }
.quote-by { color: var(--green-700); font-weight: 900; }

.calendar { display: grid; gap: 12px; }
.event-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.datebox { background: var(--purple-100); color: var(--purple-800); border-radius: var(--radius); text-align: center; padding: 9px; font-weight: 900; }
.datebox span { display: block; font-size: 24px; line-height: 1; }
.event-row h3 { margin: 0 0 2px; color: var(--purple-900); }
.event-row p { margin: 0; color: var(--muted); }

.footer {
  background: var(--purple-950);
  color: #fff;
  padding: 62px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}
.footer img { width: 84px; margin-bottom: 14px; }
.footer h3 { margin: 0 0 14px; color: #fff; }
.footer p, .footer a { color: rgba(255,255,255,.72); }
.footer a { display: block; padding: 4px 0; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { min-width: 0; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: var(--radius); padding: 10px; }
.bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; color: rgba(255,255,255,.64); display: flex; justify-content: space-between; gap: 16px; }

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(12,165,44,.35);
}
.whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

.language-prompt {
  position: relative;
  z-index: 28;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background: rgba(33,6,47,.94);
  color: #fff;
  box-shadow: 0 12px 30px rgba(33,6,47,.16);
  backdrop-filter: blur(18px);
}
.language-prompt strong,
.language-prompt span { display: block; }
.language-prompt > div:first-child { min-width: 0; }
.language-prompt span { color: rgba(255,255,255,.76); font-size: 14px; overflow-wrap: anywhere; }
.language-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.language-prompt button {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}
.language-prompt button[data-choice="fr"],
.language-prompt button[data-choice="en"] { background: var(--green-600); border-color: var(--green-600); }

[data-reveal] { opacity: 1; transform: none; transition: .65s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .menu-btn { display: grid; place-items: center; }
  .nav-actions { margin-left: auto; }
  .menu-btn { background: var(--purple-800); border-color: var(--purple-800); color: #fff; font-weight: 900; }
  .navlinks, .nav-actions .btn-primary { display: none; }
  .nav.open .navlinks {
    display: grid;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 82px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow);
  }
  .nav.open .navlinks a { padding: 9px 0; }
  .mega { display: none; }
  .hero-grid, .media-split, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { padding-top: 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .feature-rail { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .topbar .container { display: grid; justify-content: start; padding: 8px 0; }
  .brand { min-width: 0; }
  .nav .container { gap: 10px; }
  .brand { flex: 1 1 auto; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 10px; }
  .hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .hero p { max-width: 100%; font-size: 18px; line-height: 1.55; }
  .btn { width: 100%; }
  .hero-card { display: none; }
  .hero-actions, .section-head, .bottom, .newsletter { display: grid; align-items: stretch; }
  .language-prompt { display: grid; justify-content: stretch; }
  .stats, .form, .gallery, .event-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .media-stack { grid-template-columns: 1fr; }
  .media-stack img:first-child, .media-stack img:last-child { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
