/* ═══════════════════════════════════════════════════════
   style-main.css
   CSS GABUNGAN — Ma'had Tahfidz Utlul Qur'an
   Dipakai oleh SEMUA halaman website
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. RESET & VARIABEL WARNA
   (variabel = nama singkat untuk warna,
    supaya gampang diganti di satu tempat)
───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:   #2E2A5E;   /* ungu tua */
  --secondary: #4B3F8A;   /* ungu muda */
  --accent:    #E3A32B;   /* emas */
  --dark:      #0B1C2C;   /* biru gelap */
  --text:      #333333;   /* abu gelap */
  --muted:     #666666;   /* abu sedang */
  --light:     #F5F5F5;   /* abu terang */
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
}

/* ─────────────────────────────────────
   2. HEADER & NAVIGASI
   (dipakai semua halaman)
───────────────────────────────────── */
.header {
  background-color: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  height: 80px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo .logo-icon i { color: #fff; font-size: 15px; }
.header-logo .logo-text { line-height: 1.2; }
.header-logo .logo-text strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; }
.header-logo .logo-text span { font-size: 11px; color: var(--accent); }
.logo-img {
      height: 40px;
      width: auto;
      filter: brightness(0) invert(1);
    }

/* Bagian tengah header */
.top-center {
  display: flex;
  align-items: center;
  gap: 24px;
}

.date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 20px;
  white-space: nowrap;
}

/* Menu navigasi */
.menu {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
}

.menu-item > a {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-main);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: block;
  white-space: nowrap;
}
.menu-item > a:hover,
.menu-item.dropdown:hover > a {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.dropdown:hover > a::after {
  transform: rotate(225deg);
  margin-bottom: -2px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  list-style: none;
  padding: 8px 0;
  min-width: 188px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none;
  z-index: 200;
}

/* Segitiga kecil di atas dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
  transform: rotate(45deg);
}
.dropdown-menu li a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  display: block;
  padding: 8px 18px;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu li a:hover {
  background: var(--light);
  color: var(--primary);
}
/* Tampilkan dropdown saat hover */
.dropdown:hover .dropdown-menu { display: block; }

/* Tombol kanan header */
.header-right { display: flex; align-items: center; gap: 10px; }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  min-width: 170px;
  transition: background 0.2s;
}
.header-search:hover { background: rgba(255,255,255,0.12); }

.btn-daftar-header {
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-daftar-header:hover { background: var(--secondary); }

/* Tombol hamburger (hanya muncul di HP) */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  padding: 4px 6px;
}

/* Menu mobile */
.mobile-nav {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 20px 18px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 9px 0;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Label section di mobile nav (Menu Utama, Profil, Akademik, dst) */
.mobile-nav ul li.mobile-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);           /* warna emas */
  padding: 14px 0 4px;
  border-bottom: none;
  pointer-events: none;           /* tidak bisa diklik */
}

/* Sedikit indent untuk item di bawah section label */
.mobile-nav ul li:not(.mobile-nav-section) a {
  padding-left: 8px;
}

/* Icon di dalam mobile nav link */
.mobile-nav ul li a i {
  width: 18px;
  text-align: center;
  margin-right: 4px;
  color: var(--accent);
  font-size: 13px;
}


/* ─────────────────────────────────────
   3. FOOTER
   (dipakai semua halaman)
───────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-brand .ft-logo {
  font-family: var(--font-main);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p { font-size: 13px; line-height: 1.75; margin: 0; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-col ul li i { color: var(--accent); margin-right: 6px; font-size: 11px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ─────────────────────────────────────
   4. CONTAINER & SECTION UMUM
───────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: 76px 0; }

/* Label kecil di atas judul section */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

/* ─────────────────────────────────────
   5. HERO (hanya index.html)
───────────────────────────────────── */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1C2C, #2E2A5E, #4B3F8A);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 55%, rgba(116,198,157,0.1) 0%, transparent 50%),
    radial-gradient(circle at 82% 18%, rgba(201,168,76,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 18px;
  border-radius: 40px;
  margin-bottom: 24px;
  color: var(--accent);
}
.hero-title {
  font-family: var(--font-main);
  font-size: clamp(60px, 10vw, 112px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -2px;
}
.hero-title .sub-word {
  font-size: clamp(26px, 4vw, 44px);
  color: var(--accent);
  letter-spacing: 7px;
  font-weight: 700;
  display: block;
  margin-top: 30px;
}
.hero-sub {
  margin-top: 22px;
  font-size: 14.5px;
  max-width: 500px;
  line-height: 1.78;
  opacity: 0.8;
}
.hero-btns { display: flex; gap: 12px; margin-top: 30px; }

.btn-outline {
  padding: 11px 24px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-solid {
  padding: 11px 24px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-solid:hover { background: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────
   6. SECTION "MENGAPA KAMI" (index)
───────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-socials { display: flex; gap: 12px; margin-top: 28px; }
.why-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 14px;
  text-decoration: none; transition: all 0.2s;
}
.why-socials a:hover { border-color: var(--primary); color: var(--primary); }

.stats-row { display: flex; gap: 36px; margin-top: 36px; }
.stat-icon { font-size: 20px; color: var(--secondary); margin-bottom: 6px; }
.stat-num {
  font-family: var(--font-main);
  font-size: 34px; font-weight: 700; color: var(--dark);
}
.stat-label { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.section-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 420px;
  margin-top: 14px;
}

.why-right { display: flex; flex-direction: column; gap: 14px; }

.feature-card {
  background: #f9fbfa;
  border: 1px solid #e8f0eb;
  border-radius: var(--radius);
  padding: 22px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }

.feature-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon i { color: #fff; font-size: 18px; }
.feature-title { font-weight: 700; font-size: 15px; margin-bottom: 5px; color: var(--dark); }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─────────────────────────────────────
   7. SECTION PROGRAM UNGGULAN (index)
───────────────────────────────────── */
.programs-section { background: var(--light); }

.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.programs-header-right {
  font-size: 14px; color: var(--muted);
  max-width: 300px; text-align: right; line-height: 1.65;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  text-align: center;
 
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.prog-img-wrap { position: relative; height: 170px; overflow: hidden; }
.prog-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  transition: transform 0.4s;
}
.prog-card:hover .prog-img-bg { transform: scale(1.08); }
.prog-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  border-radius: 40px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: var(--primary);
}
.prog-info { padding: 14px 16px 18px;}
.prog-name { font-weight: 700; font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.prog-type { font-size: 12px; color: var(--muted); }
.prog-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.stars { color: #f4a924; }
.prog-location { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.prog-location i { color: var(--secondary); font-size: 10px; }

.programs-footer {
  margin-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
}
.btn-more {
  background: var(--dark); color: #fff;
  padding: 10px 24px; border-radius: 40px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.btn-more:hover { background: var(--primary); }

.nav-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 38px; height: 38px;
  border: 1.5px solid #ddd;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  transition: all 0.2s; color: var(--text);
}
.arrow-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─────────────────────────────────────
   8. SECTION KEGIATAN (index)
───────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.pkg-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pkg-card-main {
  background: var(--dark);
  padding: 32px;
  color: #fff;
}
.pkg-main-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pkg-main-desc { font-size: 13.5px; line-height: 1.75; opacity: 0.75; }

.btn-browse {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.btn-browse:hover { background: #c98a1e; }

.pkg-card-thumb { min-height: 260px; }
.pkg-thumb-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.pkg-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%);
}
.pkg-thumb-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  color: #fff;
}
.pkg-thumb-icon { font-size: 18px; margin-bottom: 6px; }
.pkg-thumb-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.pkg-thumb-desc { font-size: 12px; opacity: 0.8; line-height: 1.6; }

/* ─────────────────────────────────────
   9. SECTION PENDAFTARAN (index)
───────────────────────────────────── */
.how-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 48px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.how-step {
  padding: 0 40px 0 0;
  margin-right: 40px;
  border-right: 1px dashed #dde5e0;
  display: flex; gap: 20px; align-items: flex-start;
}
.how-step:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.step-circle {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%;
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--dark); }
.step-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.how-cta { text-align: center; margin-top: 44px; }
.btn-cta {
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.btn-cta:hover { background: var(--secondary); }

/* ─────────────────────────────────────
   10. SECTION BERITA (index)
───────────────────────────────────── */
.news-section { background: var(--light); }
.news-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-4px); }
.news-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.news-body { padding: 18px; }
.news-cat {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--secondary);
  background: rgba(75,63,138,0.08);
  padding: 3px 10px; border-radius: 40px;
}
.news-title { font-weight: 700; font-size: 15px; color: var(--dark); margin-top: 10px; line-height: 1.5; }
.news-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ─────────────────────────────────────
   11. PAGE HEADER (banner judul halaman)
   Dipakai semua halaman selain index
───────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: #fff;
  padding: 60px 48px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────
   12. HALAMAN PROFIL
───────────────────────────────────── */
.profil-section {
  padding: 76px 0;
  background: var(--light);
}
.profil-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto;
}
.profil-card p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text);
  text-align: justify;
}
.profil-quote {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 24px 32px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-main);
  font-size: 20px;
  font-style: italic;
  color: var(--primary);
  line-height: 1.5;
}
.profil-image {
  width: 100%;
  max-width: 600px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 32px;
}

/* ─────────────────────────────────────
   13. HALAMAN VISI MISI
───────────────────────────────────── */
.visimisi-section {
  padding: 76px 0;
  background: var(--light);
}
.card-v,
.card-m {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.card-v h2,
.card-m h2 {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
}
.card-v p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
  font-style: italic;
}
.card-m ul {
  list-style: none;
  padding: 0;
  color: var(--text);
}
.misi-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}
.misi-item i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   14. HALAMAN GALERI
───────────────────────────────────── */
.galeri-section { padding: 76px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-item p {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

/* ─────────────────────────────────────
   15. HALAMAN LOKASI
───────────────────────────────────── */
.lokasi-section { padding: 76px 0; }

.lokasi-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.info-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.info-row i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 2px;
  min-width: 18px;
}

.wa-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.wa-link:hover {
  text-decoration: underline;
  color: #25D366;
}

.ig-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.ig-link:hover {
  text-decoration: underline;
  color: #b830e1;
}


/* ─────────────────────────────────────
   16. HALAMAN STRUKTUR KURIKULUM
───────────────────────────────────── */
.kurikulum-section { padding: 76px 0; background: var(--light); }

.kurikulum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card-k {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-k h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.card-k ul {
  padding-left: 18px;
}
.card-k ul li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* ─────────────────────────────────────
   17. HALAMAN JADWAL PELAJARAN
───────────────────────────────────── */
.jadwal-section { padding: 76px 0; }

/* Biar bisa scroll di HP */
.table-container { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th {
  background-color: var(--dark);
  color: white;
  padding: 12px 14px;
  font-size: 14px;
}
td {
  padding: 11px 14px;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}
/* Baris genap sedikit berbeda warna */
tbody tr:nth-child(even) { background: var(--light); }
/* Baris istirahat */
.istirahat {
  background-color: #fff3cd !important;
  font-weight: 700;
  color: #856404;
}

/* ─────────────────────────────────────
   18. HALAMAN EKSTRAKURIKULER
───────────────────────────────────── */
.ekskul-section { padding: 76px 0; }

.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.ekskul-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.ekskul-card:hover { transform: translateY(-5px); }
.ekskul-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.ekskul-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 16px 6px;
}
.ekskul-card p {
  padding: 0 16px 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────
   19. HALAMAN PRESTASI
───────────────────────────────────── */
.prestasi-section { padding: 76px 0; background: var(--light); }

/* Kotak statistik angka */
.stats-prestasi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  background: var(--dark);
  color: white;
  padding: 28px 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}
.stat-box:hover { transform: scale(1.05); }
.stat-box h2 {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-box p {
  font-size: 13px;
  opacity: 0.8;
}

/* Kartu prestasi */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.prestasi-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.prestasi-card:hover { transform: translateY(-6px); }
.prestasi-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.prestasi-card .content {
  padding: 18px;
}
.prestasi-card .content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.prestasi-card .content p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────
   20. HALAMAN TESTIMONI
───────────────────────────────────── */
.alumni-section { padding: 76px 0; }

/* Testimoni */
.testimoni-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.testi-card {
  background: var(--light);
  padding: 22px;
  border-radius: 12px;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  border-left: 3px solid var(--accent);
}
.testi-card span {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-style: normal;
  color: var(--primary);
  font-size: 13px;
}

/* ===== RUNNING TEKS ===== */
.running-teks-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--dark);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  height: 38px;
  width: 100%;
  margin-bottom: 25px;
  border-radius: 24px;
}

.running-teks-label {
  flex-shrink: 0;
  background-color: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.running-teks-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.running-teks-content {
  display: inline-flex;
  white-space: nowrap;
  color: #e8e0cc;
  font-size: 0.82rem;
  line-height: 38px;
  gap: 0;
  padding-right: 40px;
  will-change: transform;
}

/* ─────────────────────────────────────
  RESPONSIVE (tampilan HP/tablet)
───────────────────────────────────── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .topbar { padding: 0 20px; }

  /* Sembunyikan menu desktop, tampilkan hamburger */
  .top-center, .header-search { display: none; }
  .menu-toggle { display: block; }

  /* Layout 1 kolom */
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-step:not(:last-child) {
    border-right: none;
    border-bottom: 1px dashed #dde5e0;
    padding-bottom: 28px;
  }
  .lokasi-info { grid-template-columns: 1fr; }
  .page-header { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .programs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 20px; }

  .hero-content { padding-bottom: 110px; }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }
  .hero-btns .btn-outline,
  .hero-btns .btn-solid {
    text-align: center;
  }
}
