@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --nav-bg: #CACACA;
  --nav-height: 80px;
  --accent: #5C3D2E;
  --accent-hover: #8B5E3C;
  --text-dark: #222;
  --text-mid: #444;
  --text-soft: #666;
  --beige: #FAF5EE;
  --border: #ddd;
  --footer-bg: #2b2b2b;
  --footer-text: #bbb;
}

body { font-family: 'Lato', sans-serif; color: var(--text-dark); background: #fff; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid #aaa;
  height: var(--nav-height);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem; height: 100%;
  display: flex; align-items: center; gap: 0;
}
.nav-logo img { height: 72px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; align-items: center; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 0 11px; height: var(--nav-height); line-height: var(--nav-height);
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--accent); }

.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: var(--nav-height); left: 0;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  min-width: 210px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 999; list-style: none;
}
.dropdown li a {
  display: block; padding: 10px 16px; font-size: 13px; color: var(--text-mid);
  text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background 0.15s, color 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--beige); color: var(--accent); }

.nav-tour {
  background: var(--accent) !important; color: #fff !important;
  border-radius: 20px !important; padding: 0 16px !important;
  height: 36px !important; line-height: 36px !important;
  font-size: 13px !important; margin: 0 4px;
}
.nav-tour:hover { background: var(--accent-hover) !important; }

.nav-socials { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 10px; }
.nav-socials a { color: var(--text-mid); font-size: 17px; transition: color 0.2s; }
.nav-socials a:hover { color: var(--accent); }

/* ── SLIDESHOW ── */
.slideshow { position: relative; width: 100%; height: 520px; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.3); color: #fff; border: none; font-size: 20px;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.slide-btn:hover { background: rgba(0,0,0,0.55); }
.slide-btn.prev { left: 20px; }
.slide-btn.next { right: 20px; }
.slide-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.2s; }
.dot.active { background: #fff; }

/* ── PAGE BANNER (inner pages) ── */
.page-banner {
  background: var(--accent); color: #fff;
  padding: 40px 2rem; text-align: center;
}
.page-banner h1 { font-family: 'Merriweather', serif; font-size: 30px; font-weight: 700; }

/* ── MISSION ── */
.mission { text-align: center; padding: 52px 2rem; background: #fff; border-bottom: 1px solid #eee; }
.mission p {
  font-family: 'Merriweather', serif; font-size: 17px; color: var(--text-mid);
  max-width: 800px; margin: 0 auto; line-height: 1.9;
}

/* ── VIDEO ── */
.video-section { background: var(--beige); padding: 52px 2rem; display: flex; justify-content: center; }
.video-wrap { width: 100%; max-width: 820px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── CLASSROOMS ── */
.classrooms { max-width: 1100px; margin: 0 auto; padding: 60px 2rem; display: flex; flex-direction: column; gap: 56px; }
.classroom-card { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.classroom-card.reverse { direction: rtl; }
.classroom-card.reverse > * { direction: ltr; }
.classroom-img img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.classroom-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.classroom-body h3 { font-family: 'Merriweather', serif; font-size: 15px; font-weight: 400; color: var(--text-mid); line-height: 1.9; }

/* ── CONTENT PAGE ── */
.content-wrap { max-width: 960px; margin: 0 auto; padding: 56px 2rem; }
.content-wrap h1 { font-family: 'Merriweather', serif; font-size: 28px; color: var(--accent); margin-bottom: 28px; }
.content-wrap h2 { font-family: 'Merriweather', serif; font-size: 22px; color: var(--text-dark); margin: 32px 0 14px; }
.content-wrap h3 { font-size: 17px; font-weight: 700; color: var(--accent); margin: 24px 0 10px; }
.content-wrap p { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.content-wrap ul { margin: 0 0 16px 20px; }
.content-wrap ul li { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 6px; }
.content-wrap strong { color: var(--text-dark); }
.content-wrap table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content-wrap table th { background: var(--accent); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; }
.content-wrap table td { padding: 11px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: var(--text-mid); }
.content-wrap table tr:nth-child(even) td { background: var(--beige); }

/* Stats row (about page) */
.stat-row { display: flex; gap: 32px; margin: 32px 0; flex-wrap: wrap; }
.stat-box { background: var(--beige); border-left: 4px solid var(--accent); padding: 20px 28px; border-radius: 6px; min-width: 140px; }
.stat-box .num { font-family: 'Merriweather', serif; font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-box .lbl { font-size: 13px; color: var(--text-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* About image */
.about-img { width: 100%; max-width: 560px; border-radius: 8px; margin-bottom: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin: 32px 0; }
.two-col img { width: 100%; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 32px; }
.contact-info-block h2 { font-family: 'Merriweather', serif; font-size: 20px; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; background: var(--beige); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; border: 1px solid var(--border); }
.contact-item h4 { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--text-mid); text-decoration: none; line-height: 1.6; }
.contact-item a:hover { color: var(--accent); }
.map-wrap { margin-top: 24px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.map-wrap iframe { width: 100%; height: 280px; border: none; display: block; }
.contact-form-block h2 { font-family: 'Merriweather', serif; font-size: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-family: 'Lato', sans-serif; font-size: 14px; color: var(--text-dark);
  background: #fafafa; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  background: var(--accent); color: #fff; border: none; padding: 13px 32px;
  border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Lato', sans-serif;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-hover); }

/* Tour / Enrollment / Handbook */
.form-page { max-width: 700px; }

/* Photo Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform 0.2s; }
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-placeholder { background: var(--beige); border: 2px dashed var(--border); border-radius: 8px; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-soft); }

/* Tuition cards */
.tuition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 28px 0; }
.tuition-card { border: 1.5px solid var(--border); border-top: 4px solid var(--accent); border-radius: 8px; padding: 22px 20px; }
.tuition-card h3 { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.tuition-card ul { list-style: none; }
.tuition-card ul li { font-size: 14px; color: var(--text-mid); padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.tuition-card ul li:last-child { border-bottom: none; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.tcard { background: var(--beige); border-radius: 8px; padding: 24px; border-left: 4px solid var(--accent); }
.tcard .stars { color: #e0a020; font-size: 16px; margin-bottom: 12px; }
.tcard p { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; font-style: italic; }
.tcard .author { font-size: 13px; font-weight: 700; color: var(--accent); }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 28px; }
.team-card { text-align: center; }
.team-card .avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--beige); border: 3px solid var(--accent); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.team-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--text-soft); }

/* ── FOOTER ── */
footer { background: var(--footer-bg); padding: 48px 2rem 0; color: var(--footer-text); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid #444;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { height: 64px; width: auto; display: block; border-radius: 6px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { color: var(--footer-text); font-size: 18px; transition: color 0.2s; }
.footer-socials a:hover { color: #fff; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: var(--footer-text); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 13px; color: #777; }
.footer-bottom strong { color: #aaa; }

/* ── BACK TO TOP ── */
.back-to-top {
  display: none; position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px; background: var(--accent); color: #fff;
  border-radius: 50%; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 999; transition: background 0.2s;
}
.back-to-top:hover { background: var(--accent-hover); }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; z-index: 1100;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--text-dark);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --nav-height: 64px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-logo img { height: 56px; }

  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a {
    height: auto; line-height: 1.4; padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0; font-size: 14px;
  }
  .nav-tour {
    border-radius: 0 !important; margin: 0 !important;
    height: auto !important; line-height: 1.4 !important;
    padding: 14px 20px !important; text-align: left;
  }

  /* Dropdowns open inline on mobile */
  .has-dropdown .dropdown {
    display: none; position: static; border: none; border-top: none;
    box-shadow: none; min-width: 0; background: var(--beige);
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { padding: 10px 20px 10px 36px; }

  .nav-socials { display: none; }
}

@media (max-width: 900px) {
  /* Hero / Slideshow */
  .slideshow { height: 300px; }

  /* Mission */
  .mission { padding: 36px 1.25rem; }
  .mission p { font-size: 15px; }

  /* Video */
  .video-section { padding: 36px 1.25rem; }

  /* Classrooms */
  .classrooms { padding: 40px 1.25rem; gap: 40px; }
  .classroom-card { grid-template-columns: 1fr; gap: 20px; }
  .classroom-card.reverse { direction: ltr; }
  .classroom-img img { height: 240px; }

  /* Content pages */
  .content-wrap { padding: 36px 1.25rem; }
  .content-wrap h1 { font-size: 22px; }
  .content-wrap h2 { font-size: 18px; }

  /* Two-col */
  .two-col { grid-template-columns: 1fr; gap: 24px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Stats */
  .stat-row { gap: 16px; }
  .stat-box { min-width: 100px; padding: 16px 20px; }
  .stat-box .num { font-size: 28px; }

  /* Page banner */
  .page-banner { padding: 28px 1.25rem; }
  .page-banner h1 { font-size: 24px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .gallery-grid img { height: 160px; }

  /* Tuition */
  .tuition-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .stat-row { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

.classroom-video { max-width: 1100px; margin: 0 auto; padding: 0 2rem 60px; text-align: center; }
.classroom-video h2 { font-family: 'Merriweather', serif; font-size: 22px; color: var(--text-dark); margin-bottom: 24px; }
.classroom-video video { max-width: 100%; max-height: 640px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.video-grid video { width: 100%; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: block; }
