/* ── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --maroon:      #7B1515;
  --maroon-dark: #4E0808;
  --maroon-deep: #2D0505;
  --gold:        #C8860A;
  --gold-light:  #E8A020;
  --cream:       #FBF3E3;
  --cream-dark:  #F5E8D0;
  --white:       #FFFFFF;
  --text:        #1A0A0A;
  --text-muted:  #6B4C4C;
  --border:      #EDD9C0;
  --radius:      14px;
  --shadow:      0 4px 24px rgba(78,8,8,.10);
  --shadow-lg:   0 12px 48px rgba(78,8,8,.15);
  --nav-h:       72px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ── UTILITY ──────────────────────────────────────────────────────── */
.gold       { color: var(--gold); }
.container  { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-alt{ background: var(--cream); }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--maroon-dark);
  line-height: 1.2; margin-bottom: 20px;
}
.section-intro {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8; max-width: 700px;
  margin-bottom: 52px;
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-gold    { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,134,10,.35); }
.btn-outline { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.btn-ghost   { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ── ANIMATIONS ───────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes floatNote{ 0%,100%{ transform:translateY(0) rotate(0deg); opacity:.6; } 50%{ transform:translateY(-30px) rotate(10deg); opacity:1; } }
@keyframes pulse    { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.05); } }
@keyframes scrollBounce { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(8px); } }

.animate-fade-up { opacity: 0; animation: fadeUp .8s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }

.animate-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}
.animate-on-scroll.delay-1.visible { transition-delay: .12s; }
.animate-on-scroll.delay-2.visible { transition-delay: .24s; }

/* ── NAVBAR ───────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 16px rgba(78,8,8,.10);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--white);
  transition: color .3s;
}
.navbar.scrolled .nav-logo { color: var(--maroon-dark); }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.nav-logo small { font-size: .65rem; font-weight: 400; opacity: .75; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  padding: 7px 13px; border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: all .2s;
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--gold); background: rgba(200,134,10,.08); }
.btn-portal {
  background: var(--gold) !important; color: #fff !important;
  border-radius: 50px !important; padding: 8px 18px !important;
  font-weight: 600 !important;
}
.btn-portal:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--white); transition: color .3s;
}
.navbar.scrolled .nav-hamburger { color: var(--maroon); }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon) 50%, #9B2020 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  overflow: hidden; padding: 100px 24px 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-notes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.music-note {
  position: absolute; font-size: 1.5rem;
  animation: floatNote linear infinite;
  opacity: .5; user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-logo {
  width: 110px; height: 110px; object-fit: contain;
  border-radius: 20px; margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.hero-tagline {
  font-size: .8rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.75);
  line-height: 1.8; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: .75rem; z-index: 1;
}
.hero-scroll-hint span {
  display: block; width: 2px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ── STATS BAR ────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--maroon-dark);
  padding: 36px 24px;
}
.stats-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; }
.stat-num  { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--gold); }
.stat-suffix{ font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 500; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,.15); }

/* ── ABOUT / PILLARS ──────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; margin-top: 52px;
}
.pillar {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon { font-size: 2.5rem; margin-bottom: 16px; }
.pillar h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--maroon); margin-bottom: 12px;
}
.pillar p { font-size: .93rem; color: var(--text-muted); line-height: 1.75; }

/* ── COURSES ──────────────────────────────────────────────────────── */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 52px;
}
.course-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-icon { font-size: 2.4rem; margin-bottom: 14px; }
.course-card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--maroon-dark); margin-bottom: 10px;
}
.course-badge {
  display: inline-block; background: var(--cream);
  color: var(--gold); font-size: .72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid var(--border); margin-bottom: 14px;
}
.course-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.course-topics { padding-left: 18px; }
.course-topics li { font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }
.course-topics li::marker { color: var(--gold); }
.courses-note {
  margin-top: 36px; text-align: center;
  font-size: 1rem; color: var(--text-muted);
  font-style: italic; padding: 20px;
  border-top: 1px solid var(--border);
}

/* ── GALLERY ──────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 52px;
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(78,8,8,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff; font-weight: 700; font-size: .9rem;
  letter-spacing: 2px; text-transform: uppercase;
}
.gallery-more { text-align: center; margin-top: 32px; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox img  { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 1.3rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ── VIDEOS ───────────────────────────────────────────────────────── */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 52px;
}
.video-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-info { padding: 16px 18px; }
.video-tag {
  display: inline-block; background: var(--cream);
  color: var(--gold); font-size: .7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
}
.video-info p { font-size: .9rem; color: var(--text-muted); }

/* ── TEACHER ──────────────────────────────────────────────────────── */
.teacher-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 52px; align-items: start; margin-top: 52px;
}
.teacher-photo-main {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}
.teacher-photo-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.teacher-photo-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.teacher-photo-thumbs img {
  width: 62px; height: 62px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  opacity: .65;
}
.teacher-photo-thumbs img:hover,
.teacher-photo-thumbs img.active { border-color: var(--gold); opacity: 1; }

.teacher-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 1px solid var(--border); border-left: 4px solid var(--gold);
  padding: 10px 16px; border-radius: 8px;
  font-size: .85rem; font-weight: 700; color: var(--maroon);
  margin-bottom: 22px;
}
.teacher-bio p {
  font-size: .97rem; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 16px;
}
.teacher-highlights {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 24px;
}
.highlight-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border-radius: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--maroon-dark);
}
.highlight-icon { font-size: 1.1rem; }

/* ── NEWS ─────────────────────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 52px;
}
.news-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  transition: transform .3s;
}
.news-card:hover { transform: translateY(-4px); }
.news-date  { font-size: .75rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.news-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--maroon-dark); margin-bottom: 10px; line-height: 1.4; }
.news-body  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.news-empty { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-muted); }
.news-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* ── ACHIEVEMENTS ─────────────────────────────────────────────────── */
.achievements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 52px;
}
.achievement-card {
  background: linear-gradient(135deg, var(--cream), #fff);
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-align: center;
  box-shadow: var(--shadow); transition: transform .3s;
}
.achievement-card:hover { transform: translateY(-4px); }
.achievement-icon { font-size: 2rem; margin-bottom: 10px; }
.achievement-name { font-weight: 700; color: var(--maroon-dark); margin-bottom: 6px; }
.achievement-text { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.achievement-date { font-size: .75rem; color: var(--gold); margin-top: 10px; font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 52px auto 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 8px rgba(78,8,8,.05);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: none; border: none; cursor: pointer;
  font-size: .97rem; font-weight: 600; color: var(--maroon-dark);
  text-align: left; transition: background .2s;
}
.faq-q:hover { background: var(--cream); }
.faq-q.open  { background: var(--cream); color: var(--maroon); }
.faq-arrow {
  font-size: 1.3rem; color: var(--gold); flex-shrink: 0;
  transition: transform .3s; display: inline-block;
}
.faq-q.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .93rem; color: var(--text-muted); line-height: 1.8;
  padding: 0 22px;
}
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }

/* ── CONTACT ──────────────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 40px; margin-top: 52px; align-items: start;
}
.contact-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 36px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; margin-bottom: 20px; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: .75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-value { font-size: .95rem; color: var(--maroon-dark); font-weight: 500; line-height: 1.6; }
a.contact-value:hover { color: var(--gold); }
.whatsapp-btn { width: 100%; justify-content: center; margin-top: 4px; }
.contact-map {
  border-radius: var(--radius); overflow: hidden;
  height: 400px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.footer {
  background: var(--maroon-deep);
  padding: 48px 24px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
}
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.footer-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-tag  { font-size: .75rem; color: var(--gold); margin-top: 3px; letter-spacing: 1px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-links a {
  padding: 6px 14px; border-radius: 6px;
  font-size: .85rem; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; padding: 18px;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ── BACK TO TOP ──────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,134,10,.4);
  opacity: 0; transform: translateY(20px);
  transition: all .3s; z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--gold-light); transform: translateY(-3px); }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .teacher-layout { grid-template-columns: 1fr; }
  .teacher-photos { max-width: 400px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map    { height: 280px; }
  .stat-divider   { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98); padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-muted) !important; padding: 11px 16px; font-size: .95rem; }
  .nav-hamburger { display: block; }
  .hero-btns { flex-direction: column; align-items: center; }
  .teacher-highlights { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
