/* ════════════════════════════════════════
   GLOBAL — Teacher A's House of Learning
   Clean, professional, modern design
   ════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1a2e5a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.app { min-height: 100vh; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Section label pill ── */
.section-pill {
  display: inline-block;
  background: #eef2ff;
  color: #1a2e5a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  z-index: 1000;
  height: 64px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.hero-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 14px;
  display: block;
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2e5a;
  line-height: 1.3;
}
.brand-sub {
  font-size: 11px;
  color: #7a8aaa;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: #1a2e5a;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #4a6fa5; }
.nav-links a.nav-active { color: #4a6fa5; font-weight: 700; }
.btn-enroll {
  background: #1a2e5a;
  color: #ffffff !important;
  border: 2px solid #1a2e5a;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.2px;
}
.btn-enroll:hover { background: #253f7a; border-color: #253f7a; color: #ffffff !important; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.btn-login {
  background: transparent !important;
  color: #1a2e5a !important;
  border: 2px solid #1a2e5a !important;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-login:hover { background: #1a2e5a !important; color: #fff !important; }

/* ── HERO ── */
.hero {
  position: relative;
  margin-top: 64px;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8efff 50%, #edf2ff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,29,58,0.72) 0%, rgba(26,46,90,0.60) 100%),
    url('../bg_homepage.png') center/cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 28px;
  width: 100%;
}
.hero-left { max-width: 560px; }
.hero-dot {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-left h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-left p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a2e5a;
  color: #fff;
  border: 2px solid #1a2e5a;
  border-radius: 9px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,46,90,0.2);
  letter-spacing: 0.1px;
}
.btn-primary:hover { background: #253f7a; border-color: #253f7a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,46,90,0.25); }
.btn-ghost {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a2e5a;
  color: #fff;
  border: 2px solid #1a2e5a;
  border-radius: 9px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,46,90,0.2);
  letter-spacing: 0.1px;
}
.btn-ghost:hover { background: #253f7a; border-color: #253f7a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,46,90,0.25); }
.hero-right { flex-shrink: 0; }
.logo-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(26,46,90,0.12);
  padding: 32px 40px;
  text-align: center;
  min-width: 200px;
  border: 1px solid rgba(26,46,90,0.06);
}
.logo-card-img {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.logo-card-label strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #1a2e5a;
  letter-spacing: 2px;
}
.logo-card-label span {
  font-size: 10px;
  color: #7a8aaa;
  letter-spacing: 2px;
  font-weight: 600;
}
.hero-star { display: none; }

/* ── SECTION COMMON ── */
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-title-upper {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f1d3a;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: #7a8aaa;
  font-size: 15px;
  margin-bottom: 52px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ── WHY CHOOSE ── */
.why-section {
  background: #fff;
  padding: 80px 0 72px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.card {
  background: #fff;
  border: 1.5px solid #eaecf5;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(26,46,90,0.04), 0 4px 16px rgba(26,46,90,0.05);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(26,46,90,0.10);
  transform: translateY(-4px);
  border-color: #c8d4f0;
}
.card .card-desc { margin-top: auto; }
.card-left { text-align: left; }
.card-icon-circle {
  width: 52px; height: 52px;
  background: #eef2ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 18px;
  flex-shrink: 0;
}
.card-icon-circle svg { width: 22px; height: 22px; }
.card-left .card-icon-circle { margin: 0 0 14px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f1d3a;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 13.5px;
  color: #7a8aaa;
  line-height: 1.65;
}

/* ── PROGRAMS ── */
.programs-section {
  background: #eef4fb;
  padding: 72px 0 64px;
}
.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: #f8faff;
  padding: 80px 0 72px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 48px 56px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
  box-shadow: 0 4px 24px rgba(26,46,90,0.07);
  border: 1px solid #eaecf5;
  position: relative;
}
.quote-icon {
  font-size: 3.5rem;
  color: #d0d8f0;
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-quote {
  font-size: 16px;
  color: #1a2e5a;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-name {
  font-weight: 800;
  font-size: 15px;
  color: #0f1d3a;
}
.testimonial-role {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 3px;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-top: 10px;
  letter-spacing: 2px;
}
.testimonial-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid #e8eef8;
}
.testimonial-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1a2e5a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.nav-arrow {
  background: #fff;
  border: 1.5px solid #e0e8f0;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 18px;
  cursor: pointer;
  color: #1a2e5a;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.nav-arrow:hover { background: #eef2ff; border-color: #1a2e5a; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d0d8ea;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
}
.dot-active { background: #1a2e5a; width: 24px; border-radius: 4px; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, #0f1d3a 0%, #1a2e5a 60%, #243f78 100%);
  color: #fff;
  padding: 80px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(80,120,220,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -0.3px;
}
.cta-section p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
}
.btn-enroll-outline {
  background: #fff;
  color: #1a2e5a;
  border: 2px solid #fff;
  border-radius: 9px;
  padding: 13px 36px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-enroll-outline:hover { background: transparent; color: #fff; }

/* ── FOOTER ── */
.footer {
  background: #0a1628;
  color: #c8d0e0;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo-box {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #7a8aaa;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  width: 34px; height: 34px;
  border: 1px solid #1e3052;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #7a8aaa;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social-btn:hover { border-color: #4a6fa5; color: #fff; background: rgba(74,111,165,0.15); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #7a8aaa;
  margin-bottom: 10px;
  line-height: 1.55;
}
.footer-contact-item svg { margin-top: 2px; flex-shrink: 0; color: #4a6fa5; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #7a8aaa;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 13px;
  color: #7a8aaa;
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid #1a2844;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #4a5a7a;
}

/* ── BURGER MENU ── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2e5a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ════════════════════════════
   SCROLL-REVEAL ANIMATIONS
   ════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Initial hidden state — JS adds .reveal-visible to trigger */
.reveal {
  opacity: 0;
}
.reveal.reveal-visible {
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-duration: 0.65s;
}
.reveal-up.reveal-visible        { animation-name: fadeInUp; }
.reveal-left.reveal-visible      { animation-name: fadeInLeft; }
.reveal-right.reveal-visible     { animation-name: fadeInRight; }
.reveal-fade.reveal-visible      { animation-name: fadeIn; }
.reveal-scale.reveal-visible     { animation-name: scaleIn; }
.reveal-down.reveal-visible      { animation-name: slideDown; }

/* Stagger delays for grid children */
.reveal-delay-1 { animation-delay: 0.08s !important; }
.reveal-delay-2 { animation-delay: 0.16s !important; }
.reveal-delay-3 { animation-delay: 0.24s !important; }
.reveal-delay-4 { animation-delay: 0.32s !important; }
.reveal-delay-5 { animation-delay: 0.40s !important; }
.reveal-delay-6 { animation-delay: 0.48s !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { flex-direction: column; }
  .hero-right { display: none; }
}
@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .brand {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .brand-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .brand-sub { display: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 16px;
    box-shadow: 0 8px 24px rgba(26,46,90,0.12);
    z-index: 150;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a {
    padding: 13px 24px;
    font-size: 15px;
    border-bottom: 1px solid #f0f2f8;
  }
  .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-actions a {
    padding: 13px 24px;
    border-bottom: 1px solid #f0f2f8;
  }
  .nav-links .btn-enroll,
  .nav-actions .btn-enroll {
    margin: 12px 24px 4px;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { padding-bottom: 8px; border-bottom: 1px solid #1e2e4a; }
  .hero-left h1 { font-size: 1.8rem; }
  .testimonial-card { padding: 32px 20px; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 16px; }
}

/* ── MONTHLY EVENTS SECTION ── */
.events-section {
  padding: 80px 0;
  background: #f8faff;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,46,90,0.09);
  border: 1.5px solid #e8eef8;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,46,90,0.14);
}
.event-img-wrap {
  position: relative;
  overflow: hidden;
}
.event-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.event-card:hover .event-img { transform: scale(1.04); }
.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a2e5a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.event-body {
  padding: 20px;
}
.event-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 8px;
  line-height: 1.3;
}
.event-desc {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
}
