/* ============================================================
   LINGUIST ELITE — Clean Professional Design
   70% White · 30% Navy Blue · Liquid Glass Elements
   ============================================================ */

:root {
  --navy: #222363;
  --navy-light: #2d2e83;
  --navy-muted: #3a3b94;
  --red-accent: #cc2027;
  --white: #ffffff;
  --bg: #f8fafc;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --font: 'Inter', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Liquid Glass --- */
.liquid-glass {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15,27,61,0.04), inset 0 1px 0 #ffffff;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}
.liquid-glass:hover {
  transform: translateY(-3px);
}

.liquid-glass-dark {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: #fff;
}

/* --- Typography --- */
.gradient-text { color: var(--red-accent); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.05rem; color: var(--text-body); max-width: 520px; margin: 0 auto; }
.section-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.text-center { text-align: center; }

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

/* --- Divider --- */
.divider {
  height: 1px;
  border: none;
  background: var(--border);
  margin: 48px 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Logo --- */
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-sub { font-size: 0.55rem; font-weight: 700; color: var(--text-body); letter-spacing: 0.15em; margin-top: 2px; text-transform: uppercase; }
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.8); }

.logo-img-anchor { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo-img { height: 44px; width: auto; object-fit: contain; display: block; border-radius: 4px; }
.footer-logo-img { height: 50px; background: #ffffff; padding: 5px 12px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-body); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-accent); }
.nav-links a.btn-nav { color: #fff; }
.nav-links a.btn-nav:hover { color: #fff; }

.btn-nav {
  padding: 9px 20px !important; font-size: 0.85rem !important;
  border-radius: var(--radius-sm) !important;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-6px); }

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all 0.3s var(--ease); white-space: normal; text-align: center; line-height: 1.4;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--red-accent); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(204,32,39,0.25); }
.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--navy); border: 1px solid var(--border);
}
.btn-secondary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-primary .material-symbols-outlined,
.btn-secondary .material-symbols-outlined { font-size: 18px; }
.w-100 { width: 100%; justify-content: center; }

/* --- Hero --- */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); background: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--navy); }
.hero-text p { font-size: 1.05rem; color: var(--text-body); line-height: 1.8; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-wrapper { overflow: hidden; border-radius: var(--radius); }
.hero-img-wrapper img { width: 100%; max-height: 520px; object-fit: cover; object-position: center; border-radius: var(--radius); display: block; }

/* --- Sections --- */
.section { padding: 80px 0; }
.page-header { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 24px; text-align: center; }
.page-header .section-title { margin-bottom: 14px; }

/* --- Stats --- */
.stats-section { padding: 40px 0; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-card { padding: 28px 20px; text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* --- Language Grid --- */
.lang-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.lang-card { padding: 24px 20px; text-align: center; cursor: pointer; }

.lang-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.lang-card p { font-size: 0.8rem; color: var(--text-body); }
.flag-icon { width: 48px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);  margin: 0 auto 12px auto; }
.flag-icon-lg { width: 64px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* --- Features Grid --- */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.card { padding: 32px; }
.card-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(204,32,39,0.08); border-radius: 12px; margin-bottom: 16px;
}
.card-icon .material-symbols-outlined { font-size: 22px; color: var(--red-accent); }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.65; }

/* --- CTA --- */
.cta-section { padding: 40px 0; }
.cta-card { padding: 56px; text-align: center; border-radius: var(--radius); }
.cta-card h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 14px; }
.cta-card p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 460px; margin: 0 auto 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-outline { color: #fff; border-color: rgba(255,255,255,0.25); }

/* --- News & Promo --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.news-tag { display: inline-table; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; padding: 4px 10px; border-radius: 6px; }
.news-tag.promo { background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.2); }
.news-tag.info { background: rgba(34, 35, 99, 0.1); color: var(--navy); border: 1px solid rgba(34, 35, 99, 0.2); }
.news-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--navy); }
.news-card p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 24px; flex-grow: 1; }
.news-card .news-date { font-size: 0.8rem; color: var(--text-light); font-weight: 500; display: flex; align-items: center; gap: 6px; margin-top: auto; }
.news-card .news-date .material-symbols-outlined { font-size: 16px; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 27, 61, 0.08); }
.about-text p { font-size: 1.05rem; color: var(--text-body); line-height: 1.8; margin-bottom: 20px; }
.about-text h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; color: var(--navy); }

/* --- Floating WhatsApp --- */
.floating-wa { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); z-index: 1000; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.floating-wa:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); color: #fff; }
.floating-wa svg { width: 32px; height: 32px; fill: currentColor; }

/* --- Partner Logos --- */
.partners-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; background: #fff; border-bottom: none; }
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; text-align: center; gap: 24px; opacity: 0.6; filter: grayscale(100%); transition: opacity 0.3s; }
.partners-grid:hover { opacity: 0.8; }
.partner-logo { font-size: 1.5rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: -0.02em; }
.partner-logo span { font-weight: 400; font-size: 0.9rem; letter-spacing: 0.1em; margin-top: 4px; display: block; color: var(--text-light); }

/* --- Testimonials --- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { padding: 32px; }
.testi-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.testi-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.testi-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.testi-info p { font-size: 0.8rem; color: var(--text-light); }
.testi-text { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; font-style: italic; position: relative; }
.testi-text::before { content: '"'; font-size: 4rem; color: rgba(204,32,39,0.1); position: absolute; top: -20px; left: -10px; font-family: serif; line-height: 1; z-index: -1; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { height: 280px; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* --- FAQ Accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.3s; }
.faq-item:hover { box-shadow: 0 4px 12px rgba(15,27,61,0.03); }
.faq-question { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem; user-select: none; }
.faq-question .material-symbols-outlined { transition: transform 0.3s; }
.faq-item.active .faq-question .material-symbols-outlined { transform: rotate(180deg); color: var(--red-accent); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease); color: var(--text-body); line-height: 1.6; font-size: 0.95rem; }
.faq-item.active .faq-answer { padding: 0 24px 20px; max-height: 400px; }

/* --- Programs Page & Pricing Tables --- */
.program-category { margin-bottom: 56px; }
.program-cat-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.program-cat-flags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.program-cat-flags img { width: 36px; height: auto; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.program-cat-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.program-table-wrapper { position: relative; background: #ffffff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(15, 27, 61, 0.05); overflow: hidden; }
.program-table-wrapper::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 30px; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); pointer-events: none; }
.program-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.program-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 0.95rem; white-space: nowrap; }
.program-table th { background: var(--navy); color: #ffffff; padding: 16px 14px; font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; border-right: 1px solid rgba(255,255,255,0.15); }
.program-table th:last-child { border-right: none; }
.program-table th.col-prog { text-align: left; min-width: 220px; }
.program-table th .th-sub { display: block; font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.75); margin-top: 4px; text-transform: none; }
.program-table td { padding: 16px 14px; color: var(--text-body); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.program-table td:last-child { border-right: none; }
.program-table tr:last-child td { border-bottom: none; }
.program-table tr:nth-child(even) { background: #f8f9fc; }
.program-table tr:hover { background: rgba(204, 32, 39, 0.03); }
.program-table td.cell-prog { text-align: left; font-weight: 700; color: var(--navy); }
.program-table td.cell-price { font-weight: 600; color: var(--text-dark); }
.program-table td.cell-empty { color: #cbd5e1; font-weight: 400; }

/* Terms Card */
.terms-card { background: var(--navy); color: #ffffff; border-radius: var(--radius); padding: 40px; margin-top: 40px; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(15, 27, 61, 0.2); }
.terms-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; color: #ffffff; }
.terms-card h3 .material-symbols-outlined { color: var(--red-accent); font-size: 28px; }
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.term-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.term-item .material-symbols-outlined { color: var(--red-accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.term-item strong { color: #ffffff; }

.cards-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* --- Tutors Page --- */
.tutors-grid-full { display: grid; grid-template-columns: 1fr; gap: 24px; }


/* ═══════════════════════════════════════════
   LANGUAGE TOGGLE — Clean Segmented Control
   ═══════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  margin-left: 16px;
  position: relative;
  z-index: 100;
}
.lang-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  font-family: var(--font);
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
.lang-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
.lang-btn:hover:not(.active) {
  color: #64748b;
}
.lang-btn:active {
  transform: scale(0.96);
}

/* Mobile language toggle */
.lang-toggle-mobile {
  list-style: none;
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
.lang-toggle-mobile .lang-toggle {
  margin: 0 auto;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}
.lang-toggle-mobile .lang-btn {
  padding: 10px 32px;
  font-size: 0.88rem;
  border-radius: 10px;
}


@media (min-width: 640px) { .tutors-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tutors-grid-full { grid-template-columns: repeat(3, 1fr); } }
.tutor-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.tutor-card .tutor-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.tutor-card .tutor-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.4s var(--ease); }
.tutor-card:hover .tutor-img img { transform: scale(1.04); }
.tutor-card .tutor-info { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.tutor-card .tutor-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px;  min-height: 3.2rem; }
.tutor-role { font-size: 0.82rem; color: var(--red-accent); font-weight: 500; margin-bottom: 10px; }
.tutor-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;  min-height: 56px; align-content: flex-start; }
.tutor-bio { font-size: 0.85rem; color: var(--text-body); line-height: 1.6; margin-top: auto; }

/* --- Contact Page --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-section { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .contact-info-section { grid-template-columns: repeat(2, 1fr); }
}
.contact-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; }
.contact-card-icon {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(204,32,39,0.08); border-radius: 10px; flex-shrink: 0;
}
.contact-card-icon .material-symbols-outlined { color: var(--red-accent); font-size: 22px; }
.contact-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.contact-card p { font-size: 0.85rem; color: var(--text-body); line-height: 1.5; }
.contact-form-card { padding: 36px; }
.contact-form-card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-body); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-family: var(--font); font-size: 0.9rem;
  color: var(--text-dark); background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--red-accent); box-shadow: 0 0 0 3px rgba(204,32,39,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 90px; }

/* --- Footer --- */
.footer {
  background: var(--navy); color: #fff; padding: 56px 0 28px; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 10px; max-width: 280px; }
.footer h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: rgba(255,255,255,0.8); }
.footer-links ul li { font-size: 0.85rem; color: rgba(255,255,255,0.45); padding: 5px 0; }
.footer-links ul li a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Global Overflow & Tap Target Fixes --- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
a, button, input, select, textarea, .hamburger, .floating-wa, 
.btn-primary, .btn-secondary, .btn-outline {
  min-height: 44px;
}

/* --- Responsive Layout & Grid Breakpoints --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-btns { justify-content: center; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .program-block, .contact-layout, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.director-grid { align-items: center; gap: 64px; }
.director-text { order: 1; }
.director-img { order: 2; }
.komisaris-grid { align-items: center; gap: 64px; margin-top: 80px; }
.komisaris-img { order: 1; }
.komisaris-text { order: 2; }
.kisnarko-grid { align-items: center; gap: 64px; margin-top: 80px; }
.kisnarko-text { order: 1; }
.kisnarko-img { order: 2; }
.vision-mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }

.online-banner { padding: 24px; margin-bottom: 40px; display: flex; align-items: center; gap: 16px; }

/* Mobile menu lang switch */

 


/* ═══════════════════════════════════════════
   VIDEOS GALLERY (SHORTS)
   ═══════════════════════════════════════════ */
.videos-gallery {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.video-card {
  flex: 1;
  max-width: 320px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-card:hover {
  transform: translateY(-12px);
}

@media (max-width: 992px) {
  .videos-gallery {
    gap: 24px;
    padding: 32px 20px;
  }
}

@media (max-width: 768px) {
  .videos-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-left: -20px; /* Bleed out of container if needed */
    margin-right: -20px;
  }
  .videos-gallery::-webkit-scrollbar {
    display: none;
  }
  .video-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .director-grid, .komisaris-grid, .kisnarko-grid { gap: 32px; margin-top: 40px; }
  .director-text, .komisaris-text, .kisnarko-text { order: 2; }
.kisnarko-grid { align-items: center; gap: 64px; margin-top: 80px; }
.kisnarko-text { order: 1; }
.kisnarko-img { order: 2; }
  .director-img, .komisaris-img, .kisnarko-img { order: 1; }
  .vision-mission-grid .card { padding: 24px !important; }
}

@media (max-width: 768px) {
  /* Layout & Spacing */
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  
  /* Navbar & Drawer */
  .hamburger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 85%; max-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1005;
    border-left: 1px solid var(--border); gap: 8px; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    padding: 80px 20px 40px; overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { font-size: 1.05rem; display: block; padding: 12px 16px; }
  .btn-nav { width: 90%; margin: 8px auto 0; display: inline-flex; justify-content: center; }

  /* Typography Scaling */
  .hero-section { padding-top: calc(var(--nav-h) + 24px); }
  .hero-text h1 { font-size: 1.85rem; line-height: 1.3; margin-bottom: 16px; }
  .section-header h2, .section-title, .about-text h2 { font-size: 1.65rem; line-height: 1.3; }
  .hero-text p, .section-subtitle, .about-text p { font-size: 0.95rem; margin-bottom: 24px; }
  .site-logo-img { height: 38px; }
  
  /* Hero Buttons Stack (flex-col on mobile, flex-row on sm+) */
  .hero-btns { flex-direction: column; width: 100%; gap: 12px; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }

  /* Certification Badges Bar */
  .partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 20px 8px; }
  .partner-logo { flex: 0 0 30%; max-width: 32%; font-size: 0.85rem; text-align: center; padding: 0; }
  .partner-logo span { font-size: 0.6rem; margin-top: 4px; line-height: 1.2; word-wrap: break-word; }

  /* Stats Grid (2x2 on Mobile) */
  .stats-section { margin-top: 0; padding: 36px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 12px; text-align: center; }
  .stat-number { font-size: 1.6rem; margin-bottom: 4px; }
  .stat-label { font-size: 0.8rem; line-height: 1.3; }

  /* 8 Language Programs Grid (2x4 on Mobile) */
  .lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lang-card { padding: 18px 12px; text-align: center; }
  .flag-icon-lg { width: 44px; height: auto; }
  .lang-card h3 { font-size: 0.98rem; }
  .lang-card p { font-size: 0.78rem; }

  /* Testimonials Grid (1 Col on Mobile) */
  .testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .testi-card { padding: 24px 20px; }
  .testi-img { width: 54px; height: 54px; min-width: 54px; min-height: 54px; flex-shrink: 0; }

  /* Gallery Grid (1 Col on Mobile, 2 on sm) */
  .gallery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .gallery-item { height: 210px; }

  /* News Grid (1 Col on Mobile) */
  .news-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

  /* Footer (1 Col on Mobile with gap-8) */
  .footer-grid { display: grid; grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-links ul { display: flex; flex-direction: column; align-items: center; }

  /* Tutors Page Grid */
  .tutors-grid-full { grid-template-columns: 1fr; gap: 20px; }

  /* Contact Page */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  /* Cards & Spacing Optimization */
  .card, .news-content, .tutor-card .tutor-info, .contact-form-card { padding: 20px 16px; }
  .cta-card { padding: 32px 20px; text-align: center; }
  .program-cat-header h2 { font-size: 1.3rem; }
  .program-table th, .program-table td { padding: 10px 8px; font-size: 0.82rem; }
  .terms-card { padding: 24px 18px; }
  .terms-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (min-width: 640px) and (max-width: 768px) {
  .hero-btns { flex-direction: row; width: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tutors-grid-full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .floating-wa { bottom: 16px; right: 16px; width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .floating-wa svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Language Switcher Styling --- */

@media (max-width: 768px) {
  .nav-container > .lang-toggle { display: none; }
  .lang-toggle-mobile { display: block; }
}

.map-container { position: relative; width: 100%; height: 350px; overflow: hidden; } @media (min-width: 640px) { .map-container { height: 400px; } } @media (min-width: 1024px) { .map-container { height: 450px; } } .map-container iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }


/* --- Review Stars --- */
.testi-stars { display: flex; gap: 2px; margin-top: 6px; }
.testi-stars .material-symbols-outlined { color: #fbbf24; font-variation-settings: 'FILL' 1; font-size: 18px; }


/* ═══════════════════════════════════════════
   VIDEOS GALLERY (SHORTS)
   ═══════════════════════════════════════════ */
.videos-gallery {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.video-card {
  flex: 1;
  max-width: 320px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-card:hover {
  transform: translateY(-12px);
}

@media (max-width: 992px) {
  .videos-gallery {
    gap: 24px;
    padding: 32px 20px;
  }
}

@media (max-width: 768px) {
  .videos-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }
  .videos-gallery::-webkit-scrollbar {
    display: none;
  }
  .video-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
  }
}







/* ═══════════════════════════════════════════
   KEGIATAN (ACTIVITY) SECTION
   ═══════════════════════════════════════════ */
.kegiatan-section {
  background: var(--bg-gradient);
}
.kegiatan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.kegiatan-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.kegiatan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Single photo */
.kegiatan-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.kegiatan-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.kegiatan-card:hover .kegiatan-img img {
  transform: scale(1.04);
}

/* Dual photo (Al Azhar) */
.kegiatan-img.dual {
  display: flex;
  gap: 0;
}
.kegiatan-img.dual img {
  width: 50%;
  border-right: 2px solid #fff;
}
.kegiatan-img.dual img:last-child {
  border-right: none;
}

/* Text body */
.kegiatan-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kegiatan-date {
  font-size: 0.82rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.kegiatan-date .material-symbols-outlined {
  font-size: 15px;
}
.kegiatan-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}
.kegiatan-body p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .kegiatan-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kegiatan-body {
    padding: 20px 22px 24px;
  }
}

@media (max-width: 1024px) {
  .kegiatan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
