/* =====================================================================
   Public homepage
   ===================================================================== */

.public-body { background: var(--bg); }

/* ---- Nav --------------------------------------------------------- */
.public-nav {
  padding: 16px 0; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s, padding .3s;
  background: transparent; max-width: 100vw;
}
.public-nav .navbar-brand { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex-shrink: 1; margin-right: 12px; }
.public-nav .nav-link { color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .92rem; padding: .5rem .9rem !important; border-radius: 10px; transition: color .2s, background-color .2s; }
.public-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.public-nav .navbar-toggler { border-color: rgba(255, 255, 255, .3); }
.public-nav .navbar-toggler-icon { filter: invert(1); }
.public-nav.is-scrolled {
  padding: 10px 0; background: rgba(var(--surface-rgb), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.public-nav.is-scrolled .navbar-brand,
.public-nav.is-scrolled .nav-link { color: var(--text); }
.public-nav.is-scrolled .nav-link:hover { background: var(--brand-tint); color: var(--brand-text); }
.public-nav.is-scrolled .navbar-toggler { border-color: var(--border-strong); }
.public-nav.is-scrolled .navbar-toggler-icon { filter: none; }

/* ---- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 120px; color: #fff; isolation: isolate; }
.hero > .scene { border-radius: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 650;
  background: rgba(255, 182, 39, .16); border: 1px solid rgba(255, 182, 39, .38); color: #ffd166; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero h1 span { background: linear-gradient(135deg, #ffe9a8, #ffb627); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: rgba(255, 255, 255, .78); font-size: 1.06rem; max-width: 46ch; margin-bottom: 28px; }
.hero .btn-light { font-weight: 650; }
.hero-scene-wrap { position: relative; height: 420px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }

@media (max-width: 991.98px) {
  .hero { padding: 118px 0 64px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .d-flex { justify-content: center; flex-wrap: wrap; }
}

/* ---- Stats strip ---------------------------------------------------- */
.stats-strip { position: relative; margin-top: -54px; z-index: 3; }
.stats-strip .inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 28px 20px; display: grid; grid-template-columns: repeat(3, 1fr);
}
.stats-strip .stat-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--brand-text); letter-spacing: -.02em; }
.stats-strip .stat-label { color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 2px; }
.stats-strip .col-stat { text-align: center; position: relative; }
.stats-strip .col-stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: var(--border); }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 96px 0; }
.section.bg-light-alt { background: var(--surface-2); }
.section-eyebrow { color: var(--brand-text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 8px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.feature-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .94rem; }
.feature-check i { color: var(--brand-text); font-size: 1.05rem; }

.principal-card {
  position: relative; background: var(--grad-ink); color: #fff; border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate;
}
.principal-card::before { content: ''; position: absolute; z-index: -1; right: -14%; top: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 182, 39, .32), transparent 70%); }
.principal-card .quote-icon { font-size: 1.6rem; color: rgba(255, 182, 39, .7); margin-bottom: 12px; }
.principal-card p { font-size: 1.08rem; line-height: 1.6; color: rgba(255, 255, 255, .92); margin-bottom: 18px; }
.principal-card strong { display: block; color: #fff; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 240ms; }

/* Cards */
.teacher-card, .news-card, .event-card {
  height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 20px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.teacher-card:hover, .news-card:hover, .event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .35); }
.teacher-card { text-align: center; }
.teacher-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff;
  background: linear-gradient(140deg, #13a680, #0a5c4b); box-shadow: 0 8px 22px -8px rgba(11, 138, 106, .55);
}
.teacher-card h6 { margin-bottom: 2px; }

.news-date { color: var(--brand-text); font-weight: 650; font-size: .82rem; margin-bottom: 8px; }
.news-card h6 { margin-bottom: 6px; }

.event-card { display: flex; flex-direction: column; }
.event-date-badge {
  width: 52px; height: 56px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px;
}
.event-date-badge span { font-family: var(--font-body); font-size: .68rem; font-weight: 650; }

/* Contact */
.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-text); flex-shrink: 0; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }

/* Footer */
.public-footer { background: var(--grad-ink); color: rgba(255, 255, 255, .75); padding: 34px 0; }
.public-footer p { margin: 0; }
.public-footer a { color: #ffe6ab; font-weight: 600; }

@media (max-width: 767.98px) {
  .stats-strip .inner { padding: 22px 10px; }
  .section { padding: 64px 0; }
}
