:root {
  --primary: #0f4c81;
  --primary-dark: #0a3a64;
  --accent: #ff8c00;
  --accent-soft: #fff0db;
  --cream: #fdf7ef;
  --ink: #26333f;
  --muted: #5c6b78;
  --white: #ffffff;
  --green: #25d366;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(15, 76, 129, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; line-height: 1.2; }

.container { width: min(1140px, 92%); margin: 0 auto; }

img { max-width: 100%; display: block; }

.highlight { color: var(--accent); }

a { text-decoration: none; color: inherit; }

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-dark); color: #fff; font-size: 0.9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 12px; }
.topbar-phone { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(15, 76, 129, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.brand-sub { font-size: 0.8rem; color: var(--accent); font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 700; color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #eef6ff 0%, #fff7ea 100%);
  padding: 64px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--primary);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  border: 1px dashed var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--primary); margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(255, 140, 0, 0.35); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35); }
.btn-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-block { width: 100%; text-align: center; }

.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; color: var(--primary); }
.hero-trust span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo { width: 180px; border-radius: 50%; box-shadow: var(--shadow); position: absolute; top: -8px; left: 4px; border: 5px solid #fff; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 440px; width: 100%; object-fit: cover; }

/* ---------- Ticker ---------- */
.ticker { background: var(--primary); color: #fff; overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: ticker 26s linear infinite; }
.ticker-track span { font-weight: 700; font-size: 1rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--primary); }
.section-tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 460px; object-fit: cover; }
.about-img-accent {
  position: absolute; bottom: -26px; right: -12px; width: 46%; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 5px solid #fff;
}
.about-content h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--primary); margin-bottom: 16px; }
.about-content p { color: var(--muted); margin-bottom: 18px; }
.about-list { list-style: none; margin-bottom: 26px; }
.about-list li { padding: 6px 0; font-weight: 600; color: var(--ink); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow); transition: transform 0.25s; position: relative;
}
.card:hover { transform: translateY(-6px); }
.card-icon { font-size: 2.4rem; margin-bottom: 12px; }
.card h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card ul { list-style: none; }
.card li { padding: 4px 0; color: var(--ink); font-size: 0.95rem; }
.card li::before { content: "✦ "; color: var(--accent); }
.card-featured { background: var(--primary); }
.card-featured h3, .card-featured li, .card-featured li::before { color: #fff; }
.card-featured li::before { color: var(--accent); }
.card-featured p { color: #d5e3f0; }
.card-badge {
  position: absolute; top: 16px; right: 16px; background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px; text-align: center;
  box-shadow: var(--shadow); transition: transform 0.25s;
}
.feature:hover { transform: translateY(-5px); }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature h4 { color: var(--primary); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Principal ---------- */
.section-principal { background: linear-gradient(135deg, #0a3a64, #0f4c81); color: #fff; }
.principal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.principal-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius); padding: 34px; backdrop-filter: blur(6px);
}
.principal-avatar {
  width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem; font-weight: 700; margin-bottom: 16px;
}
.principal-card h3 { font-size: 1.6rem; }
.principal-role { color: var(--accent); font-weight: 700; display: block; margin-bottom: 14px; }
.principal-card p { color: #e8f1fa; font-style: italic; }
.principal-sign { margin-top: 16px; font-weight: 700; color: var(--accent); }
.principal-text .section-tag { background: rgba(255, 140, 0, 0.2); }
.principal-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; color: #fff; }
.principal-text p { color: #d5e3f0; margin-bottom: 24px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img {
  width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.3s; cursor: pointer;
}
.gallery img:hover { transform: scale(1.04); }

/* ---------- Video ---------- */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Admissions / CTA ---------- */
.section-cta { background: linear-gradient(135deg, #fff7ea, #eef6ff); }
.admissions-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.admissions-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--primary); margin-bottom: 14px; }
.admissions-info > p { color: var(--muted); margin-bottom: 22px; max-width: 520px; }
.tagline-list { list-style: none; margin-bottom: 26px; }
.tagline-list li {
  padding: 9px 0; font-size: 1.05rem; color: var(--ink);
  border-bottom: 1px dashed rgba(15, 76, 129, 0.15);
}
.admission-contact { display: flex; gap: 14px; flex-wrap: wrap; }

.admissions-form {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.admissions-form h3 { color: var(--primary); margin-bottom: 18px; }
.admissions-form label { font-weight: 700; font-size: 0.9rem; display: block; margin: 12px 0 6px; }
.admissions-form input, .admissions-form select, .admissions-form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #e3e9f0; border-radius: 12px;
  font-family: inherit; font-size: 0.95rem; background: var(--cream); transition: border 0.2s;
}
.admissions-form input:focus, .admissions-form select:focus, .admissions-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.admissions-form .btn { margin-top: 18px; }
.form-note { margin-top: 12px; font-weight: 700; min-height: 1.2em; }
.form-note.ok { color: #1b9c47; }
.form-note.err { color: #c0392b; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 34px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow);
}
.contact-icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h4 { color: var(--primary); margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card a { display: block; margin-top: 8px; color: var(--accent); font-weight: 700; }
.contact-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: #cfdef0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 0 32px; }
.footer-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 18px 0; text-align: center; font-size: 0.9rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px; background: none; border: none;
  color: #fff; font-size: 3rem; cursor: pointer; line-height: 1;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; z-index: 90;
  background: var(--green); color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .principal-grid, .admissions-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo { width: 130px; }
  .cards, .features, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 74%;
    background: #fff; flex-direction: column; justify-content: center; gap: 26px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); transition: right 0.35s; z-index: 99;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; z-index: 101; }
  .gallery { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; }
}
