@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #12203A;
  --gold: #C9A84C;
  --gold-light: #e8c86a;
  --white: #ffffff;
  --off-white: #F7F5F0;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --success: #2E7D52;
  --error: #C0392B;
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 40px rgba(27,42,74,0.15);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

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

/* ── Header ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--white); font-weight: 400; font-size: 0.95rem; display: block; line-height: 1; }

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

nav a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

#lang-switcher {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background var(--transition), color var(--transition);
}

#lang-switcher option { background: var(--navy); color: var(--white); }
#lang-switcher:hover { background: var(--gold); color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Banners ─────────────────────────────────────────────── */
.banner {
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  display: none;
}
.banner.success { background: var(--success); color: var(--white); display: block; }
.banner.error-banner { background: var(--error); color: var(--white); display: block; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 82vh;
  background: url('/images/happy-students.jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.60);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-content .slogan {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--navy); }

/* ── Stats ───────────────────────────────────────────────── */
.stats {
  background: var(--white);
  padding: 3.5rem 1.5rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-top: 0.25rem;
}

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

h2.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

/* ── About ────────────────────────────────────────────────── */
.about { background: var(--off-white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

.about-text p {
  color: var(--text-medium);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-text p:last-child { margin-bottom: 0; }

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ── Classes ──────────────────────────────────────────────── */
.classes { background: var(--white); }

.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.class-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.class-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.class-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.class-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

.textbook-note {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}
.textbook-note strong { color: var(--gold); }

/* ── Community ────────────────────────────────────────────── */
.community { background: var(--off-white); }

.community-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.community-text blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.5;
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.community-text p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ── Volunteer Banner ────────────────────────────────────── */
.volunteer-banner {
  background: var(--navy);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.volunteer-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.volunteer-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Location ────────────────────────────────────────────── */
.location { background: var(--white); }

.location-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.location-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.location-item .loc-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.location-item .loc-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.location-item .loc-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 400;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand .logo { font-size: 1.2rem; margin-bottom: 0.8rem; }

.footer-brand .footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-col .contact-link { color: var(--gold); }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Register Page ──────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; }

.register-section { background: var(--off-white); padding: 4rem 1.5rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group input::placeholder { color: #bbb; }

.form-submit { width: 100%; padding: 0.9rem; font-size: 1rem; margin-top: 0.5rem; }

/* ── Volunteer Page ─────────────────────────────────────── */
.volunteer-section { background: var(--off-white); padding: 4.5rem 1.5rem; }

.volunteer-content {
  max-width: 780px;
  margin: 0 auto;
}

.volunteer-content p {
  color: var(--text-medium);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.contact-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.contact-box h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.contact-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-body { background: var(--off-white); min-height: 100vh; }

.admin-header {
  background: var(--navy);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.5rem;
}

.admin-header p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.admin-main { padding: 2rem; max-width: 1200px; margin: 0 auto; }

.admin-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.admin-stat .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

.admin-stat .lbl { font-size: 0.8rem; color: var(--text-medium); text-transform: uppercase; letter-spacing: 0.08em; }

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--navy);
  color: var(--gold);
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:nth-child(even) td { background: #fafafa; }
.admin-table tr:hover td { background: #f0ede6; }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-medium);
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reversed { direction: ltr; }
  .classes-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  nav.open { display: flex; }
  nav a { width: 100%; text-align: center; padding: 0.75rem; }
  .hamburger { display: flex; }
  .header-inner { position: relative; }
}

@media (max-width: 600px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-card { padding: 1.8rem 1.2rem; }
  .admin-main { padding: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 400px) {
  .location-grid { grid-template-columns: 1fr; }
}
