:root {
  --navy: #101d5a;
  --orange: #f59a1b;
  --deep-orange: #d86d26;
  --ink: #102033;
  --muted: #607083;
  --line: #e7ebf0;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --silver: #92979c;
  --shadow: 0 18px 55px rgba(16, 29, 90, 0.14);
}

[data-theme="dark"] {
  --ink: #edf3ff;
  --muted: #b7c2d4;
  --paper: #111827;
  --soft: #0b1220;
  --line: #243047;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 82px 0; scroll-margin-top: 104px; }
.tinted { background: var(--soft); }
.eyebrow { color: var(--deep-orange); font-size: 0.78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(3rem, 10vw, 6.8rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 820px; margin-top: 12px; }
h3 { font-size: 1.15rem; }
p { color: var(--muted); line-height: 1.75; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.top-strip { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--navy); color: #fff; font-size: .86rem; }
.socials { display: flex; gap: 14px; align-items: center; }
.socials a { color: #fff; font-weight: 800; }
.navbar { min-height: 76px; width: min(1220px, calc(100% - 28px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--navy); }
.brand img { width: 62px; height: 46px; object-fit: contain; background: #fff; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: .92rem; font-weight: 700; }
.nav-links a:hover { color: var(--deep-orange); }
.menu-toggle, .theme-toggle, .icon-btn { border: 0; background: var(--soft); color: var(--ink); border-radius: 8px; min-width: 42px; height: 42px; cursor: pointer; padding: 0 10px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: calc(100vh - 110px); display: grid; align-items: end; padding: 0; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,29,90,.88), rgba(16,29,90,.42), rgba(216,109,38,.2)), url("https://images.unsplash.com/photo-1588072432904-843af37f03ed?auto=format&fit=crop&w=1800&q=80") center/cover; transform: scale(1.02); }
.hero-content { position: relative; width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 12vh; }
.hero-content p { color: #fff; font-size: clamp(1.2rem, 3vw, 1.8rem); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.primary { background: var(--orange); color: #101d5a; }
.secondary { background: var(--paper); color: var(--navy); border-color: var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.mission-grid, .info-stack, .content-grid { display: grid; gap: 16px; }
.mission-grid article, .info-stack article, .content-grid article, .feature, .news-card, .blog-grid article, .admin-grid article, .contact-grid article, .form, .faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: var(--shadow);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature span { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(245,154,27,.16); border-radius: 8px; margin-bottom: 14px; font-weight: 900; color: var(--navy); }
.program-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.program-row article { min-height: 112px; display: grid; place-items: center; text-align: center; border-radius: 8px; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--navy), #253a86); }
.program-row article:nth-child(even) { background: linear-gradient(135deg, var(--orange), var(--deep-orange)); color: #101d5a; }
.content-grid, .card-grid, .admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.check-list, .steps { display: grid; gap: 12px; margin-top: 22px; }
.check-list span, .steps span { padding: 14px 16px; border-left: 4px solid var(--orange); background: var(--paper); border-radius: 8px; font-weight: 800; }
.form { display: grid; gap: 14px; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 12px 14px; }
textarea { min-height: 112px; resize: vertical; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.text-link { color: var(--deep-orange); font-weight: 900; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.gallery-grid img { height: 250px; width: 100%; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.testimonial-carousel { position: relative; min-height: 190px; }
.testimonial { display: none; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.testimonial.active { display: block; }
.testimonial p { font-size: 1.25rem; color: var(--ink); }
.news-card { overflow: hidden; padding: 0; }
.news-card img { height: 190px; width: 100%; object-fit: cover; }
.news-card div { padding: 20px; }
time, .blog-grid span { color: var(--deep-orange); font-weight: 800; font-size: .85rem; }
.blog-tools { display: grid; grid-template-columns: 1fr 280px; gap: 14px; margin: 24px 0; }
.admin-grid article { display: grid; gap: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
iframe { width: 100%; height: 260px; border: 0; border-radius: 8px; margin-top: 12px; }
.contact-bottom { margin-top: 24px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 900; }
.site-footer { background: var(--navy); color: #fff; padding: 54px 0 22px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid img { width: 120px; background: #fff; border-radius: 8px; margin-bottom: 16px; }
.footer-grid a { display: block; margin: 10px 0; }
.copyright { text-align: center; margin: 30px 0 0; }
.whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.admission-popup { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(16, 29, 90, .62); }
.admission-popup.show { display: grid; }
.popup-card { width: min(520px, 100%); position: relative; background: var(--paper); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.popup-close { position: absolute; right: 12px; top: 12px; font-size: 1rem; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(0,0,0,.82); padding: 24px; }
.lightbox.show { display: grid; }
.lightbox img { max-height: 82vh; border-radius: 8px; }
.lightbox button { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 8px; font-size: 1rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links { position: absolute; left: 14px; right: 14px; top: 112px; display: none; flex-direction: column; align-items: stretch; background: var(--paper); padding: 18px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .split, .feature-grid, .content-grid, .card-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-tools { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .top-strip { display: none; }
  .navbar { min-height: 70px; }
  .brand span { font-size: .92rem; }
  .brand img { width: 54px; height: 42px; }
  .nav-links { top: 76px; }
  .section { padding: 58px 0; }
  .hero { min-height: 84vh; }
  .gallery-grid, .program-row { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}
