:root {
  --primary: #054a91;
  --primary-dark: #022f5d;
  --accent: #e63946;
  --accent-dark: #c1121f;
  --text: #0e1726;
  --muted: #6a7b95;
  --bg: #f4f7fb;
  --bg-alt: #eef3fb;
  --border: rgba(5, 74, 145, 0.12);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-center { text-align: center; }

/* Header */
.site-header { background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; line-height: 1.05; }
.brand-logo { height: 44px; width: auto; object-fit: contain; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
/* Animated nav links: sliding underline and subtle lift */
.main-nav a {
  color: var(--text);
  font-weight: 600;
  padding: .5rem 0;
  position: relative;
  display: inline-block;
  transition: color .25s cubic-bezier(.22,.61,.36,1), transform .18s ease;
  will-change: transform;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  bottom: -6px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
  border-radius: 4px;
  opacity: 0;
}
.main-nav a:hover { color: var(--primary); transform: translateY(-2px); }
.main-nav a:hover::after { transform: scaleX(1); opacity: 1; }
/* Active link remains visible */
.main-nav a.active, .main-nav a.active::after { color: var(--primary); transform: translateY(-2px); transform-origin: left center; }
.main-nav a.active::after { transform: scaleX(1); opacity: 1; }

/* Apply button: gentle pulse to draw attention */
.btn-apply {
  background: var(--accent);
  color: #fff !important;
  padding: .65rem 1.15rem !important;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(230, 57, 70, .18);
  transition: transform .18s ease, box-shadow .25s ease, background .18s ease;
}
.btn-apply:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px rgba(230,57,70,.22); }
@keyframes applyPulse {
  0% { box-shadow: 0 10px 25px rgba(230,57,70,.14); transform: translateY(0); }
  50% { box-shadow: 0 18px 36px rgba(230,57,70,.22); transform: translateY(-2px); }
  100% { box-shadow: 0 10px 25px rgba(230,57,70,.14); transform: translateY(0); }
}
/* Only animate if user does not prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .btn-apply { animation: applyPulse 3.8s ease-in-out infinite; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 24px; height: 3px; background: var(--text); border-radius: 999px; }

/* Hero */
.hero { background: linear-gradient(180deg, #eaf2ff 0%, #f8fbff 100%); color: var(--text); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 12% 18%, rgba(56, 131, 255, .14), transparent 17%), radial-gradient(circle at 86% 16%, rgba(54, 103, 221, .12), transparent 15%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; }

/* Copy column — layered above the photos so the headline overlaps the boy photo */
.hero-copy { position: relative; z-index: 4; padding: 0 8px 0 48px; }

/* Headline: two bold lines; the right edge of the text sits over the photo beside it */
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .8);
}
.hero-heading-line { display: inline-block; white-space: nowrap; }

.hero-eyebrow { text-transform: uppercase; letter-spacing: .28em; color: var(--accent); font-size: .85rem; margin-bottom: 1rem; }
.hero-text { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.75; max-width: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.8rem; border-radius: 999px; font-weight: 700; cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 18px 45px rgba(5,74,145,.16); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 48px rgba(5,74,145,.2); }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid rgba(5,74,145,.16); box-shadow: 0 14px 32px rgba(5,74,145,.08); }
.btn-secondary:hover { background: #f2f7ff; }
.hero-note { color: var(--muted); font-size: .95rem; max-width: 520px; }

/* Visuals: two portrait photos side by side (boy on the left, teacher on the right) */
.hero-visual { position: relative; min-width: 0; }
.hero-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hero-image { position: relative; min-height: 480px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform .5s ease-out; filter: drop-shadow(0 18px 28px rgba(5, 74, 145, .22)); }
.hero-image:hover img { transform: scale(1.04); }
.hero-image-top { transform: translateY(14px); }
.hero-image-bottom { transform: translateY(-14px); }

/* Hero responsive */
@media (max-width: 1180px) {
  .hero { padding: 3rem 0; }
  .hero-inner { max-width: 1180px; grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { padding: 0; }
  .hero-images { max-width: 640px; margin: 0 auto; }
  .hero-image, .hero-image-top, .hero-image-bottom { min-height: 440px; transform: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-heading-line { white-space: normal; }
  .hero-images { grid-template-columns: 1fr; gap: 1rem; max-width: 420px; }
  .hero-image, .hero-image-top, .hero-image-bottom { min-height: 320px; border-radius: 18px; }
}
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px) scale(0.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px) scale(0.98); } to { opacity: 1; transform: translateX(0) scale(1); } }

/* Homepage sections */
@keyframes imageMotion { 0% { opacity: 0; transform: translateY(0) scale(1); } 15% { opacity: 1; transform: translateY(-1px) scale(1.01); } 40% { transform: translateY(-3px) scale(1.025); } 70% { transform: translateY(-1px) scale(1.02); } 100% { transform: translateY(0) scale(1); } }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
.about-grid p { margin-bottom: 1.15rem; }
.showcase { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.showcase-image { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(5, 74, 145, .18); }
.showcase-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 33, 71, .28)); z-index: 1; pointer-events: none; }
.showcase-image img { width: 100%; height: 100%; aspect-ratio: 7 / 5; object-fit: cover; object-position: center; display: block; transition: transform .6s ease; }
.showcase-image:hover img { transform: scale(1.03); }
.showcase-float { position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2; display: flex; align-items: center; gap: .65rem; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border: 1px solid rgba(5,74,145,.1); border-radius: 14px; padding: .7rem .95rem; box-shadow: 0 18px 40px rgba(5,74,145,.18); animation: floatY 4.5s ease-in-out infinite; }
.showcase-float-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #4b8cdf); color: #fff; font-size: 1.05rem; }
.showcase-float-text { display: flex; flex-direction: column; line-height: 1.3; }
.showcase-float-text strong { color: var(--primary); font-size: .9rem; }
.showcase-float-text small { color: var(--muted); font-size: .74rem; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.about-logo { max-width: 160px; display: block; margin-bottom: 1rem; }
.showcase-content .eyebrow, .testimonial-hero .eyebrow, .page-banner .eyebrow { text-transform: uppercase; letter-spacing: .24em; color: var(--accent); font-size: .82rem; margin-bottom: 1rem; display: inline-block; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 1.8rem; }
.feature-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.1rem 1.15rem; box-shadow: 0 20px 50px rgba(10, 33, 73, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-item:hover { transform: translateY(-4px); border-color: rgba(5,74,145,.22); box-shadow: 0 24px 55px rgba(10, 33, 73, .09); }
.feature-item .card-photo { margin: -1.1rem -1.1rem 1rem; border-radius: 14px 14px 0 0; overflow: hidden; }
.feature-item .card-photo img { width: 100%; height: 150px; object-fit: cover; display: block; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: linear-gradient(135deg, rgba(5,74,145,.09), rgba(230,57,70,.14)); margin-bottom: .75rem; }
.feature-item strong { display: block; font-size: .95rem; margin-bottom: .3rem; color: var(--primary); }
.feature-item p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin: 0; }
.hero-actions-left { justify-content: flex-start; }
.showcase-content .hero-actions { margin-bottom: 0; }
.choose-wrap { min-width: 0; }
/* Why Choose — looping horizontal card slider */
.choose-cards { min-width: 0; }
.why-slider { position: relative; min-width: 0; }
.slider-shell { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.slider-shell .slider-btn { flex: 0 0 auto; }
.slider-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; touch-action: pan-y; padding: .25rem .15rem 1.15rem; }
.slider-track {
  --per-view: 3;
  --slide-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  will-change: transform;
}
.slider-card {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 200px;
  margin: .5rem;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease, border-color .45s ease, opacity .45s ease;
}
/* JS mode: one sliding row (translateX), clones make it loop forever */
html.js .slider-js .slider-track { flex-wrap: nowrap; transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
html.js .slider-js .slider-track.no-anim { transition: none !important; }
html.js .slider-js .slider-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
  margin: 0 var(--slide-gap) 0 0;
  min-width: 0;
  transform: scale(.96);
  opacity: .9;
}
html.js .slider-js .slider-card:hover { opacity: 1; transform: scale(1); border-color: rgba(5,74,145,.22); box-shadow: 0 24px 55px rgba(10, 33, 73, .09); }
html.js .slider-js .slider-card.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: scale(1.05);
  border-color: rgba(5,74,145,.3);
  box-shadow: 0 26px 60px rgba(5, 74, 145, .16);
}
html.js .slider-js .slider-card.is-active:hover { transform: scale(1.07); }
html.js .slider-js .slider-card strong,
html.js .slider-js .slider-card p,
html.js .slider-js .slider-card h3,
html.js .slider-js .slider-card .btn { transition: opacity .3s ease, transform .3s ease; }
html.js .slider-js .slider-card.is-active strong,
html.js .slider-js .slider-card.is-active p,
html.js .slider-js .slider-card.is-active h3,
html.js .slider-js .slider-card.is-active .feature-readmore,
html.js .slider-js .slider-card.is-active .btn { animation: cardFadeUp .55s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes cardFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feature-readmore {
  margin-top: auto;
  padding-top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary);
  transition: color .25s ease, transform .25s ease;
}
.feature-readmore:hover { color: var(--accent); transform: scale(1.08); }
.feature-readmore span { display: inline-block; transition: transform .25s ease; }
.feature-readmore:hover span { transform: translateX(4px); }
.slider-controls { display: flex; align-items: center; justify-content: center; margin-top: 1.15rem; }
.why-slider.no-controls .slider-controls { display: none; }
.slider-btn {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid rgba(5, 74, 145, .18);
  background: #fff; color: var(--primary);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(5, 74, 145, .08);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.slider-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px) scale(1.07); box-shadow: 0 14px 30px rgba(5, 74, 145, .22); }
.slider-btn:active { transform: scale(.92); }
.slider-btn:focus-visible { outline: 3px solid rgba(5, 74, 145, .35); outline-offset: 2px; }
.slider-dots { display: flex; align-items: center; gap: .5rem; }
.slider-dot {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(5, 74, 145, .18); cursor: pointer;
  transition: width .3s ease, background .3s ease, transform .3s ease;
}
.slider-dot:hover { background: rgba(5, 74, 145, .45); transform: scale(1.25); }
.slider-dot.is-active { width: 26px; background: var(--accent); }
@media (max-width: 560px) {
  .slider-card { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .slider-js .slider-track { transition: none; }
  html.js .slider-js .slider-card,
  html.js .slider-js .slider-card.is-active,
  html.js .slider-js .slider-card.is-active:hover { transition: none; transform: none; }
  html.js .slider-js .slider-card.is-active strong,
  html.js .slider-js .slider-card.is-active p,
  html.js .slider-js .slider-card.is-active h3,
  html.js .slider-js .slider-card.is-active .feature-readmore,
  html.js .slider-js .slider-card.is-active .btn { animation: none; }
}
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.program-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 55px rgba(10, 33, 73, .07); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(10, 33, 73, .12); }
.program-media { position: relative; min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .55rem; padding: 1.4rem; color: #fff; background-size: cover; background-position: center; overflow: hidden; }
.program-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s ease, opacity .5s ease; }
.program-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5)); pointer-events: none; }
.program-card:hover .program-photo { transform: scale(1.05); }
.program-tag { position: relative; z-index: 1; font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.program-card:hover .program-icon { transform: scale(1.1) rotate(-4deg); }
.program-card .card-body { padding: 1.5rem; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1rem; }
.btn-outline { border: 1px solid rgba(5, 74, 145, .18); background: #fff; color: var(--primary); }
.btn-outline:hover { background: #f2f7ff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.testimonial-card { position: relative; background: #fff; border: 1px solid rgba(5, 74, 145, .08); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 22px 60px rgba(10, 33, 73, .06); transition: transform .3s ease, box-shadow .3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 26px 64px rgba(10, 33, 73, .1); }
.testimonial-card::before { content: '\201C'; position: absolute; top: .4rem; right: 1.4rem; font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; color: rgba(5, 74, 145, .1); pointer-events: none; }
.testimonial-stars { color: #e63946; font-size: .95rem; letter-spacing: 4px; margin-top: -.2rem; }
.testimonial-hero { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #054a91, #4b8cdf); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; }
.testimonial-card h3 { font-size: 1.08rem; margin: 0; line-height: 1.25; }
.testimonial-author { margin-top: auto; font-weight: 700; color: var(--primary); }
.card-highlight h3 { margin-top: 0; }
.testimonial-card { min-height: auto; }
/* Scroll-triggered reveal: JS adds .js to <html>; without JS everything stays visible */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.js .reveal-left { transform: translateX(-44px); }
.js .reveal-right { transform: translateX(44px); }
/* Hero elements fade up instead of sliding, so the photo never clips at the container edge */
.js .hero .reveal-left, .js .hero .reveal-right { transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:nth-child(1) { transition-delay: .08s; }
.js .reveal.is-visible:nth-child(2) { transition-delay: .15s; }
.js .reveal.is-visible:nth-child(3) { transition-delay: .22s; }
.js .reveal.is-visible:nth-child(4) { transition-delay: .29s; }
.js .reveal.is-visible:nth-child(5) { transition-delay: .36s; }
.js .reveal.is-visible:nth-child(6) { transition-delay: .43s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .showcase-float { animation: none; }
  .showcase-image:hover img { transform: none; }
  .footer-col ul li a { transition: none; }
  .footer-col ul li a:hover, .footer-col ul li a:focus-visible { transform: none; }
  .footer-col ul li a:hover::before, .footer-col ul li a:focus-visible::before { left: 0; opacity: 1; }
}

.cta-section { background: linear-gradient(135deg, rgba(5,74,145,.95), rgba(2,47,93,.95)); color: #fff; padding: 4rem 0; }
.cta-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center; }
.cta-panel h2 { margin-bottom: .4rem; }
.cta-panel p { margin: 0 auto; max-width: 720px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .35rem; }

/* Page banner (interior pages) */
.page-banner { background: linear-gradient(180deg, #f8fbff, #eef5ff); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.page-banner h1 { color: var(--primary); margin: 0; font-size: clamp(2rem, 3vw, 2.75rem); text-align: center; }
.page-banner h1::after { content: ''; width: 64px; height: 4px; background: var(--accent); display: block; margin: .9rem auto 0; border-radius: 999px; }
.page-banner p { color: var(--muted); margin: .6rem auto 0; font-size: 1.05rem; max-width: 660px; text-align: center; }
.page-banner.has-bg { background-size: cover; background-position: center; padding: 5rem 0; }
.page-banner.has-bg h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.page-banner.has-bg h1::after { background: var(--accent); box-shadow: 0 2px 10px rgba(230, 57, 70, .5); }
.principal-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }

/* About page */
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.about-stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem .8rem; text-align: center; box-shadow: 0 18px 40px rgba(10, 33, 73, .05); }
.stat strong { display: block; font-size: 1.5rem; color: var(--primary); line-height: 1.15; }
.stat span { font-size: .8rem; color: var(--muted); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: 0 22px 60px rgba(5, 74, 145, .08); }
.mv-card h3 { color: var(--primary); margin: .9rem 0 .6rem; font-size: 1.3rem; }
.mv-card p { color: var(--muted); margin: 0; }
.principal-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.principal-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(5, 74, 145, .18); }
.principal-content blockquote { margin: 0 0 1.4rem; padding-left: 1.4rem; border-left: 4px solid var(--accent); font-size: 1.12rem; line-height: 1.75; color: var(--text); font-style: italic; }
.principal-sign { font-weight: 700; color: var(--primary); margin: 0; }
.photo-placeholder { aspect-ratio: 7 / 5; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: linear-gradient(160deg, #eef3fb, #f8fbff); border: 2px dashed rgba(5, 74, 145, .25); border-radius: 24px; color: var(--muted); text-align: center; padding: 1rem; }
.photo-placeholder span { font-size: 2.2rem; line-height: 1; }
.photo-placeholder p { margin: 0; font-size: .95rem; font-weight: 700; color: var(--primary); }
.photo-placeholder small { font-size: .8rem; }

/* Topic detail page (Read More / View Program) */
.topic-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 2rem; box-shadow: 0 30px 80px rgba(5, 74, 145, .1); }
.topic-detail-media { border-radius: 18px; overflow: hidden; box-shadow: 0 22px 55px rgba(5, 74, 145, .18); }
.topic-detail-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.topic-detail-body .eyebrow { text-transform: uppercase; letter-spacing: .24em; color: var(--accent); font-size: .82rem; margin-bottom: .75rem; display: inline-block; }
.topic-detail-body h2 { color: var(--primary); font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .9rem; line-height: 1.25; }
.topic-detail-lead { color: var(--text); font-size: 1.02rem; font-weight: 600; margin-bottom: .9rem; }
.topic-detail-body .prose { color: var(--muted); }
.topic-detail-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
@media (max-width: 768px) {
  .topic-detail { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.75rem, 2.5vw, 2.25rem); margin-bottom: 2rem; color: var(--primary); position: relative; }
.section-title::after { content: ''; width: 60px; height: 4px; background: var(--accent); display: block; margin: 1rem auto 0; border-radius: 999px; }
.prose :is(p, ul, ol) { margin-bottom: 1.2rem; }

/* Justified body text: even left AND right edges for paragraphs everywhere.
   (Short centered elements like page-banner subtitles keep their own centered
   rule, which has higher specificity than this rule.) */
main p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
main blockquote { text-align: justify; }

/* Grid / cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(10, 33, 73, .08); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-img-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--muted); }
.teacher-avatar { display: flex; align-items: center; justify-content: center; }
.teacher-avatar span { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: .05em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.card-body { padding: 1.4rem; }
.badge { display: inline-block; background: rgba(230,57,70,.12); color: var(--accent); font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .75rem; }

/* Gallery */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 33, 73, .12); }
.gallery-item figcaption { padding: .4rem .6rem; font-size: .85rem; color: var(--muted); }

/* Gallery full-size photo viewer (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3, 12, 28, .92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 92vw; max-height: 86vh; margin: 0; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.lightbox-content figcaption { color: #dfe8ff; margin-top: .85rem; font-size: 1.05rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: var(--primary); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* Contact page — professional info cards */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.1rem; text-align: center; box-shadow: 0 18px 45px rgba(5, 74, 145, .06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(5, 74, 145, .12); border-color: rgba(5, 74, 145, .2); }
.contact-card .cc-icon { width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: linear-gradient(135deg, rgba(5,74,145,.1), rgba(230,57,70,.12)); }
.contact-card h3 { font-size: .95rem; margin: 0 0 .3rem; color: var(--primary); }
.contact-card p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.contact-card a { color: var(--primary); }
.contact-card a:hover { color: var(--accent); }
.form-panel h3 { color: var(--primary); margin: 0 0 1.2rem; }

/* Apply page — attractive admissions design */
.apply-intro { text-align: center; max-width: 780px; margin: 0 auto 2.4rem; }
.apply-intro .eyebrow { text-transform: uppercase; letter-spacing: .24em; color: var(--accent); font-size: .82rem; margin-bottom: .9rem; display: inline-block; font-weight: 700; }
.apply-intro h2 { color: var(--primary); font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 .8rem; }
.apply-intro p { color: var(--muted); font-size: 1.05rem; margin: 0 auto; line-height: 1.75; max-width: 680px; text-align: center; }
.apply-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.6rem; }
.apply-benefit { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.1rem; text-align: center; box-shadow: 0 18px 45px rgba(5, 74, 145, .06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.apply-benefit:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(5, 74, 145, .12); border-color: rgba(5, 74, 145, .2); }
.apply-benefit .ab-icon { width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: linear-gradient(135deg, rgba(5,74,145,.1), rgba(230,57,70,.12)); }
.apply-benefit h3 { font-size: .95rem; margin: 0 0 .3rem; color: var(--primary); }
.apply-benefit p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.55; text-align: center; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.apply-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 26px 70px rgba(5, 74, 145, .09); overflow: hidden; }
.apply-form .form-errors { margin: 1.6rem 2rem 0; }
.apply-section { padding: 1.9rem 2rem; }
.apply-section + .apply-section { border-top: 1px dashed rgba(5, 74, 145, .16); }
.apply-section-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.5rem; }
.step-badge { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #4b8cdf); color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(5, 74, 145, .28); }
.apply-section-head h3 { color: var(--primary); margin: 0; font-size: 1.15rem; }
.apply-section-head p { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); text-align: left; }
.apply-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.apply-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 2rem; background: linear-gradient(180deg, rgba(5,74,145,.035), rgba(5,74,145,.06)); border-top: 1px solid var(--border); }
.apply-form-actions .btn { min-width: 250px; }
.apply-privacy { font-size: .8rem; color: var(--muted); margin: 0; max-width: 360px; line-height: 1.55; text-align: left; }
.apply-side { display: grid; gap: 1.2rem; position: sticky; top: 1.5rem; }
.apply-side-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: 0 18px 45px rgba(5, 74, 145, .06); }
.apply-side-card h4 { color: var(--primary); margin: 0 0 .6rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.apply-side-card p { margin: 0 0 1rem; font-size: .86rem; color: var(--muted); line-height: 1.6; text-align: left; }
.apply-steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.apply-steps li { counter-increment: steps; display: flex; gap: .85rem; align-items: flex-start; padding: .55rem 0; }
.apply-steps li::before { content: counter(steps); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(5, 74, 145, .08); color: var(--primary); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.apply-steps li strong { display: block; font-size: .9rem; color: var(--text); }
.apply-steps li span { font-size: .82rem; color: var(--muted); }
.apply-docs { list-style: none; margin: 0; padding: 0; }
.apply-docs li { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; color: var(--muted); padding: .28rem 0; text-align: left; }
.apply-docs li::before { content: '✔'; flex: 0 0 auto; color: #1e8e4e; font-weight: 700; }
.apply-side-card a { color: var(--primary); font-weight: 600; }

/* Forms */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
.contact-info { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 22px 60px rgba(5, 74, 145, .08); align-self: start; }
.contact-info h3 { color: var(--primary); margin-bottom: 1rem; }
.contact-info p { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .7rem; }
.ci-icon { flex: 0 0 auto; font-size: 1rem; line-height: 1.6; }
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: 0 22px 60px rgba(5, 74, 145, .08); }
.contact-form label { display: block; margin-bottom: 1.2rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: .85rem 1rem; margin-top: .5rem; border: 1px solid var(--border);
  border-radius: 12px; font: inherit; font-weight: 500; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(5,74,145,.08); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-errors { background: #fdecea; border: 1px solid rgba(230,57,70,.24); color: #7a1f1a; padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: 1.5rem; }
.form-errors ul { margin: 0; padding-left: 1.3rem; }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid rgba(5,74,145,.15); }
.btn-secondary:hover { background: #f2f7ff; }

/* Flash messages */
.flash { padding: .8rem 0; }
.flash > .container { padding: .6rem 1.25rem; border-radius: 6px; }
.flash-success > .container { background: #e6f4ea; color: #1e4620; }
.flash-error > .container { background: #fdecea; color: #7a1f1a; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #051b43, #02234f); color: #dce6fb; margin-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .95fr 1.05fr 1.3fr; gap: 1.6rem; padding: 2.2rem 1.25rem 1.9rem; }
.footer-col h4 { color: #d4e2ff; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4rem; color: rgba(255,255,255,.78); }
.footer-col a { color: #aac8ff; }
.footer-col a:hover { color: #fff; }
/* Footer quick links: slide-in arrow + text glide animation */
.footer-col ul li a {
  position: relative;
  display: inline-block;
  transition: color .25s ease, transform .25s ease;
}
.footer-col ul li a::before {
  content: '\2192';
  position: absolute;
  left: -1.25rem;
  opacity: 0;
  color: var(--accent);
  transition: left .25s ease, opacity .25s ease;
}
.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
  color: #fff;
  transform: translateX(1.25rem);
}
.footer-col ul li a:hover::before,
.footer-col ul li a:focus-visible::before {
  left: 0;
  opacity: 1;
}
.footer-col ul li a:active {
  transform: translateX(1.4rem) scale(.97);
}
.footer-logo { height: 48px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.28); margin-bottom: .9rem; }
.footer-about-text { color: rgba(255,255,255,.78); margin: 0; line-height: 1.6; font-size: .92rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .95rem; }
.footer-social { display: inline-block; padding: .4rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dce6fb; font-size: .8rem; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; }
.footer-social:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; }
.footer-icon { flex: 0 0 auto; font-size: .95rem; line-height: 1.6; }
.footer-map iframe { width: 100%; height: 220px; border: 0; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: .85rem 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.7); }

@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-side { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { column-count: 2; }
  .showcase { grid-template-columns: 1fr; gap: 2rem; }
  .showcase-image { max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-grid { grid-template-columns: 1fr; }
  .principal-wrap { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-stats, .about-stats.stats-4 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .apply-benefits { grid-template-columns: 1fr; }
  .apply-fields-2 { grid-template-columns: 1fr; }
  .apply-form-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .apply-form-actions .btn { width: 100%; }
  .apply-privacy { max-width: none; text-align: center; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem 0; }
  .header-inner { flex-wrap: wrap; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
}
