/* ==================================
   1. GLOBAL & VARIABEL
   ================================== */
:root {
  --warna-hijau-tua: #0a6847;
  --warna-hijau-muda: #7aba78;
  --warna-kuning: #f6e9b2;
  --warna-kuning-tua: #e1c870;
  --warna-teks: #333333;
  --warna-teks-lembut: #555555;
  --warna-putih: #ffffff;
  --warna-latar: #f9f9f9;
  --warna-footer: #2a2a2a;
  
  --font-utama: 'Poppins', sans-serif;
  --transisi: all 0.3s ease;
  --radius-box: 8px;
  --shadow-box: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-utama);
  line-height: 1.7;
  color: var(--warna-teks);
  background-color: var(--warna-putih);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--warna-hijau-tua);
  transition: var(--transisi);
}

a:hover {
  color: var(--warna-hijau-muda);
}

ul {
  list-style: none;
}

/* ==================================
   2. HEADER & NAVIGASI (MODERN)
   ================================== */
.navbar {
  background: var(--warna-putih);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--warna-hijau-tua);
  text-transform: uppercase;
  letter-spacing: -1px;
}
.nav-brand:hover {
  color: var(--warna-teks);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  margin-left: 2rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warna-teks-lembut);
  padding: 0.5rem 0;
}
.nav-link.active,
.nav-link:hover {
  color: var(--warna-hijau-tua);
  border-bottom: 2px solid var(--warna-hijau-tua);
}

.dropdown-icon {
  font-size: 1rem;
  margin-top: 4px;
}

/* Tombol Navigasi */
.tombol {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  transition: var(--transisi);
}

.tombol-nav {
  background: var(--warna-hijau-tua);
  color: var(--warna-putih);
}
.tombol-nav:hover {
  background: var(--warna-hijau-muda);
  color: var(--warna-hijau-tua);
  transform: translateY(-2px);
}

/* Menu Dropdown (Desktop) */
.dropdown-menu {
  display: none; /* Sembunyi by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--warna-putih);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.dropdown-menu li {
  margin: 0;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--warna-teks-lembut);
  font-weight: 500;
}
.dropdown-menu a:hover {
  background: #f1f1f1;
  color: var(--warna-hijau-tua);
}

/* Tampilkan dropdown saat di-hover (HANYA di desktop) */
@media (min-width: 993px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}


/* ==================================
   3. HAMBURGER & NAVIGASI MOBILE
   ================================== */
.nav-toggle {
  display: none; /* Sembunyi di Desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--warna-hijau-tua);
  margin: 5px 0;
  transition: var(--transisi);
}

/* Animasi Tombol Hamburger jadi 'X' */
.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ==================================
   4. HERO SECTION
   ================================== */
.hero-section {
  position: relative;
  height: 85vh; /* Tinggi 85% dari layar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--warna-putih);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* Efek zoom pelan */
  animation: zoom-in 20s ease-out infinite;
}

@keyframes zoom-in {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(10, 104, 71, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tombol-utama {
  background: var(--warna-kuning);
  color: var(--warna-hijau-tua);
  border: 2px solid var(--warna-kuning);
  font-size: 1.1rem;
}
.tombol-utama:hover {
  background: transparent;
  color: var(--warna-kuning);
  border-color: var(--warna-kuning);
  transform: scale(1.05);
}

/* ==================================
   5. KONTEN (CARD, GALERI)
   ================================== */
.section-padding {
  padding: 5rem 0;
}
.section-grey {
  background-color: var(--warna-latar);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--warna-teks-lembut);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Card Layout */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--warna-putih);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transisi);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin-bottom: 0.5rem;
}
.card-text {
  font-size: 1rem;
  color: var(--warna-teks-lembut);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
}
.gallery-item img {
  transition: var(--transisi);
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  color: var(--warna-putih);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transisi);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Link "Lihat Semua" di Galeri */
.gallery-item-more {
  background: var(--warna-hijau-tua);
  color: var(--warna-putih);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  height: 100%;
}
.gallery-item-more:hover {
  background: var(--warna-hijau-muda);
  color: var(--warna-hijau-tua);
}

/* ==================================
   6. CTA BANNER
   ================================== */
.cta-banner {
  padding: 4rem 0;
  background-color: var(--warna-hijau-tua);
  color: var(--warna-putih);
  text-align: center;
}
.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.tombol-sekunder {
  background: var(--warna-kuning);
  color: var(--warna-hijau-tua);
  border: 2px solid var(--warna-kuning);
}
.tombol-sekunder:hover {
  background: transparent;
  color: var(--warna-kuning);
  border-color: var(--warna-kuning);
  transform: scale(1.05);
}

/* ==================================
   7. FOOTER
   ================================== */
.footer {
  background-color: var(--warna-footer);
  color: #a9a9a9;
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warna-putih);
  margin-bottom: 1rem;
}
.footer-col p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}
.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warna-putih);
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #a9a9a9;
}
.footer-links a:hover {
  color: var(--warna-putih);
  padding-left: 5px;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}
.footer-bottom {
  border-top: 1px solid #444;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom p {
  color: #888;
}

/* ==================================
   8. RESPONSIVE (MOBILE)
   ================================== */

/* Tablet (992px) */
@media (max-width: 992px) {
  /* Tampilkan tombol hamburger */
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* Sembunyikan menu desktop */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%; /* Sembunyi di kiri */
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--warna-putih);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.4s ease-out;
    z-index: 1000;
  }
  
  /* Kelas 'active' dari JS akan menampilkan menu */
  .nav-menu.nav-menu-active {
    display: flex;
    left: 0; /* Geser ke dalam layar */
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link.active,
  .nav-link:hover {
    border-bottom: 1px solid #f0f0f0; /* Hapus border bawah hijau */
  }

  .nav-item-button {
    margin-top: 1.5rem;
  }
  .tombol-nav {
    width: 100%;
  }

  /* Dropdown di Mobile */
  .dropdown-icon {
    float: right; /* Pindahkan panah ke kanan */
    transition: var(--transisi);
  }
  .dropdown-menu {
    display: none; /* Sembunyikan submenu */
    position: static; /* Hapus positioning absolute */
    width: 100%;
    box-shadow: none;
    padding: 0 0 0 1rem; /* Indentasi submenu */
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown.active > .dropdown-menu {
    display: block; /* Tampilkan submenu saat di-klik (via JS) */
  }
  .dropdown.active .dropdown-icon {
    transform: rotate(180deg); /* Putar panah */
  }

  /* Konten */
  .hero-title {
    font-size: 2.5rem;
  }
  .card-container {
    grid-template-columns: 1fr 1fr; /* 2 kolom di tablet */
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr; /* 2 kolom di tablet */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 kolom di tablet */
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 2rem;
  }

  .card-container {
    grid-template-columns: 1fr; /* 1 kolom di mobile */
  }
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 kolom di mobile */
  }
  .footer-grid {
    grid-template-columns: 1fr; /* 1 kolom di mobile */
  }
}
/* ==================================
   9. GAYA HALAMAN PROFIL (TAMBAHAN)
   ================================== */

/* Header Halaman (di atas Visi-Misi) */
.page-header {
  background-color: var(--warna-hijau-tua);
  color: var(--warna-putih);
  padding: 4rem 0;
  text-align: center;
}
.page-title {
  font-size: 2.8rem;
  font-weight: 700;
}
.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Layout untuk Visi-Misi & Sejarah */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-image img {
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  width: 100%;
}

.section-title-left {
  font-size: 2rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin-bottom: 1.5rem;
  text-align: left;
}

.visi-text {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--warna-teks-lembut);
  line-height: 1.8;
}

.misi-list {
  list-style: none;
}
.misi-list li {
  font-size: 1.1rem;
  color: var(--warna-teks-lembut);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 30px; /* Jarak untuk ikon centang */
}
/* Ikon centang hijau */
.misi-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--warna-hijau-muda);
  font-weight: bold;
}

/* Card khusus untuk Tenaga Pendidik */
.teacher-card {
  text-align: center;
}
.teacher-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Membuat foto jadi bulat */
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 5px solid var(--warna-latar);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.teacher-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin-bottom: 0.25rem;
}
.teacher-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warna-hijau-muda);
}


/* ==================================
   10. RESPONSIVE HALAMAN PROFIL
   ================================== */
   
@media (max-width: 992px) {
  /* Layout Visi-Misi & Sejarah jadi 1 kolom di tablet/HP */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Balik urutan di layout Sejarah (gambar di atas, teks di bawah) */
  .profile-layout.reverse-layout .profile-text {
    order: 2;
  }
  .profile-layout.reverse-layout .profile-image {
    order: 1;
  }
  
  .section-title-left {
    text-align: center;
  }
  .visi-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
}
/* ==================================
   11. GAYA HALAMAN PROGRAM (TAMBAHAN)
   ================================== */

.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--warna-teks);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Daftar bercentang untuk kurikulum */
.check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li {
  font-size: 1.05rem;
  color: var(--warna-teks-lembut);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 30px; /* Jarak untuk ikon centang */
}
.check-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--warna-hijau-muda); /* Pakai warna hijau muda */
  font-weight: bold;
}
/* ==================================
   12. GAYA HALAMAN KONTAK (TAMBAHAN)
   ================================== */
   
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Kolom form sedikit lebih lebar */
  gap: 3rem;
}

.contact-info .subsection-title {
  margin-top: 2.5rem; /* Jarak dari list info ke "Ikuti Kami" */
}

/* Daftar Info (Alamat, Telp, Email) */
.info-list {
  list-style: none;
  margin-top: 2rem;
}
.info-list li {
  display: flex; /* Ikon dan teks sejajar */
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.info-icon {
  font-size: 1.5rem;
  margin-right: 1.5rem;
  margin-top: 5px; /* Sedikit ke bawah agar align */
  color: var(--warna-hijau-tua);
}
.info-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warna-teks);
  margin-bottom: 0.25rem;
}
.info-text p {
  color: var(--warna-teks-lembut);
  margin: 0;
  line-height: 1.6;
}

/* Re-use social links style tapi dengan BG berbeda */
.contact-info .social-links a {
  background-color: #f1f1f1; /* Buat lebih soft */
  color: var(--warna-hijau-tua);
}
.contact-info .social-links a:hover {
  background-color: var(--warna-hijau-tua);
  color: var(--warna-putih);
}

/* Formulir Kontak */
.contact-form form {
  margin-top: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--warna-teks);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-box);
  border: 1px solid #ccc;
  font-family: var(--font-utama);
  font-size: 1rem;
  transition: var(--transisi);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--warna-hijau-tua);
  box-shadow: 0 0 5px rgba(10, 104, 71, 0.3);
}
.form-group textarea {
  resize: vertical; /* Izinkan user resize tinggi-nya */
}

/* Tombol Kirim */
.contact-form .tombol {
  width: 100%;
  font-size: 1.1rem;
  cursor: pointer;
}
.contact-form .tombol:hover {
  background-color: var(--warna-hijau-muda);
  color: var(--warna-hijau-tua);
}

/* Area Google Map */
.google-map {
  /* Tidak perlu padding, biarkan peta memenuhi */
  margin-top: 4rem;
  border-top: 1px solid #eee;
  padding-top: 4rem;
}
.google-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
}


/* ==================================
   13. RESPONSIVE HALAMAN KONTAK
   ================================== */

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr; /* 1 kolom di tablet */
    gap: 3rem;
  }
  
  .contact-form {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .google-map {
    margin-top: 3rem;
    padding-top: 3rem;
  }
  .google-map iframe {
    height: 300px; /* Perkecil peta di HP */
  }
}
/* ==================================
   14. GAYA HALAMAN PPDB (TAMBAHAN)
   ================================== */

/* Kartu Alur Pendaftaran dengan nomor */
.card-step {
  position: relative;
  text-align: left; /* Ratakan kiri agar rapi */
  padding-top: 4rem; /* Beri ruang untuk nomor */
}
.step-number {
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--warna-hijau-muda);
  opacity: 0.5;
}
.card-step .card-title {
  text-align: left; /* Timpa style card biasa */
}
.card-step .card-text {
  text-align: left; /* Timpa style card biasa */
}

/* Rincian Biaya */
.biaya-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--warna-putih);
  border: 1px solid #eee;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  overflow: hidden; /* Agar radius di item terakhir terlihat */
}
.biaya-list {
  list-style: none;
}
.biaya-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}
.biaya-item:last-child {
  border-bottom: none;
}
.biaya-item span:first-child {
  font-weight: 600;
  color: var(--warna-teks-lembut);
}
.biaya-item span:last-child {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--warna-hijau-tua);
}
/* Info tambahan di list biaya */
.biaya-info {
  justify-content: center;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--warna-teks-lembut);
  background-color: var(--warna-latar);
}

/* Tombol WhatsApp di CTA */
.cta-banner .tombol-sekunder {
  background: #25D366; /* Warna WhatsApp */
  color: var(--warna-putih);
  border-color: #25D366;
}
.cta-banner .tombol-sekunder:hover {
  background: #128C7E; /* Warna WhatsApp Tua */
  color: var(--warna-putih);
  border-color: #128C7E;
  transform: scale(1.05);
}
.whatsapp-icon {
  margin-right: 0.5rem;
}


/* ==================================
   15. RESPONSIVE HALAMAN PPDB
   ================================== */

@media (max-width: 768px) {
  .biaya-item {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  .biaya-item span:last-child {
    font-size: 1rem;
    text-align: right; /* Agar tidak 'overflow' */
  }
}

/* ==================================
   16. GAYA HALAMAN GALERI (KARTU V2)
   ================================== */

.gallery-page-grid {
  display: grid;
  /* 3 kolom di desktop (karena kartu lebih tinggi) */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Ini adalah style untuk kartu (wrapper) */
.gallery-card-v2 {
  background: var(--warna-putih);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  overflow: hidden; /* Penting agar gambar tidak 'bocor' */
  transition: var(--transisi);
}
.gallery-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Ini adalah style untuk link gambar */
.gallery-card-v2-image {
  display: block;
  position: relative;
  overflow: hidden;
  /* Atur rasio gambar menjadi 4:3 */
  aspect-ratio: 4 / 3;
}

.gallery-card-v2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transisi);
}

/* Efek zoom saat hover gambar */
.gallery-card-v2-image:hover img {
  transform: scale(1.1);
}

/* Ini adalah style untuk area teks di bawah gambar */
.gallery-card-v2-content {
  padding: 1.25rem;
}

.gallery-card-v2-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin: 0;
  margin-bottom: 0.5rem;
}

.gallery-card-v2-content p {
  font-size: 0.95rem;
  color: var(--warna-teks-lembut);
  margin: 0;
  line-height: 1.6;

  /* --- TAMBAHAN UNTUK "READ MORE" --- */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Batasi hanya 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* ---------------------------------- */
}

/* ==================================
   17. RESPONSIVE HALAMAN GALERI (V2)
   ================================== */
   
@media (max-width: 992px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
  }
}

@media (max-width: 768px) {
  .gallery-page-grid {
    grid-template-columns: 1fr; /* 1 kolom di HP */
  }
}

/* ==================================
   18. GAYA SIMPLE-LIGHTBOX (Tetap sama)
   ================================== */
/* ... (Style Lightbox Anda yang sudah ada biarkan saja) ... */

/* ==================================
   19. GAYA HALAMAN GALERI VIDEO
   ================================== */

.video-grid {
  display: grid;
  /* 2 kolom di desktop, 1 di mobile */
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.video-card {
  background: var(--warna-putih);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-box);
  overflow: hidden; /* Penting */
  transition: var(--transisi);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Trik 16:9 untuk iFrame Responsif */
.video-wrapper-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Rasio 16:9 (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
}
.video-wrapper-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Konten teks di bawah video */
.video-card-content {
  padding: 1.25rem;
}
.video-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin: 0 0 0.5rem 0;
}
.video-card-content p {
  font-size: 0.95rem;
  color: var(--warna-teks-lembut);
  margin: 0;
  line-height: 1.6;

  /* "Read More" (batasi 2 baris) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==================================
   20. RESPONSIVE HALAMAN VIDEO
   ================================== */
   
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr; /* 1 kolom di HP */
    gap: 1.5rem;
  }
}
/* ==================================
   21. GAYA PROMO BANNER (di galeri.php)
   ================================== */

.promo-banner {
  /* Kita pakai warna latar 'abu-abu' yang sama dengan section-grey */
  background-color: var(--warna-latar);
  padding: 2.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.promo-banner .container {
  display: flex;
  align-items: center; /* Membuat ikon, teks, dan tombol sejajar di tengah */
  justify-content: space-between; /* Menyebar elemen */
  gap: 2rem; /* Jarak antar elemen */
}

.promo-icon {
  font-size: 3rem;
  color: var(--warna-hijau-tua);
  line-height: 1;
}

.promo-text {
  flex-grow: 1; /* Biarkan teks mengambil sisa ruang di tengah */
}

.promo-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warna-hijau-tua);
  margin: 0 0 0.25rem 0; /* Hapus margin atas/bawah */
}

.promo-text p {
  font-size: 1rem;
  color: var(--warna-teks-lembut);
  margin: 0;
  line-height: 1.6;
}

.promo-banner .tombol-sekunder {
  flex-shrink: 0; /* Mencegah tombol 'gepeng' jika teksnya panjang */
}


/* ==================================
   22. RESPONSIVE PROMO BANNER
   ================================== */
   
@media (max-width: 768px) {
  .promo-banner .container {
    flex-direction: column; /* Susun ke bawah di HP */
    text-align: center; /* Rata tengah semua */
    gap: 1.5rem;
  }

  .promo-icon {
    font-size: 2.5rem;
  }
  
  .promo-text h3 {
    font-size: 1.3rem;
  }

  .promo-banner .tombol-sekunder {
    width: 100%; /* Buat tombolnya full-width di HP */
  }
}
/* ==================================
   23. GAYA PAGINATION (PENOMORAN)
   ================================== */
/* DENGAN VERSI BARU INI: */
.pagination {
  /* Hapus flexbox, width, dan gap */
  text-align: center; /* <-- KUNCI UTAMA: Paksa semua isinya ke tengah */
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}
/* DENGAN VERSI BARU INI: */
.pagination a {
  display: inline-block; /* <-- KUNCI 2: Buat agar dia 'inline' tapi bisa di-styling */
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-box);
  background-color: var(--warna-latar);
  color: var(--warna-teks-lembut);
  transition: var(--transisi);
  border: 1px solid #eee;
  line-height: 1.2;
  margin: 0.25rem; /* <-- KUNCI 3: Ganti 'gap' dengan 'margin' */
}
.pagination a:hover {
  background-color: var(--warna-hijau-muda);
  color: var(--warna-hijau-tua);
  border-color: var(--warna-hijau-muda);
}
/* Ini adalah style untuk halaman yang sedang aktif */
.pagination a.active {
  background-color: var(--warna-hijau-tua);
  color: var(--warna-putih);
  border-color: var(--warna-hijau-tua);
}
/* ==================================
   24. GAYA HALAMAN DAFTAR BERITA (berita.php)
   ================================== */
.berita-card {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1 bagian gambar, 2 bagian teks */
  gap: 2rem;
  background: var(--warna-putih);
  border-radius: var(--radius-box);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Shadow lebih halus */
  margin-bottom: 2rem;
  overflow: hidden; /* Pastikan gambar tidak 'bocor' */
  border: 1px solid #eee;
}

.berita-card-gambar {
  display: block;
  height: 100%;
}
.berita-card-gambar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transisi);
}
.berita-card-gambar:hover img {
  transform: scale(1.05);
}

.berita-card-konten {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.berita-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.berita-card-kategori {
  background: var(--warna-hijau-tua);
  color: var(--warna-putih);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.berita-card-tanggal {
  color: var(--warna-teks-lembut);
  padding-top: 0.2rem;
}

.berita-card-judul a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warna-teks);
  text-decoration: none;
}
.berita-card-judul a:hover {
  color: var(--warna-hijau-tua);
}

.berita-card-ringkasan {
  color: var(--warna-teks-lembut);
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem 0;
  /* Batasi ringkasan 3 baris */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tombol-baca-selengkapnya {
  font-weight: 700;
  color: var(--warna-hijau-tua);
  text-decoration: none;
  margin-top: auto; /* (TRIK) Mendorong tombol ini ke bawah kartu */
}
.tombol-baca-selengkapnya:hover {
  text-decoration: underline;
}

/* RESPONSIVE DAFTAR BERITA */
@media (max-width: 768px) {
  .berita-card {
    grid-template-columns: 1fr; /* Tumpuk: Gambar di atas, teks di bawah */
  }
  .berita-card-gambar {
    aspect-ratio: 16 / 9; /* Beri rasio 16:9 untuk gambar di mobile */
    height: auto;
  }
}


/* ==================================
   25. GAYA HALAMAN DETAIL BERITA (detail_berita.php)
   ================================== */
.container-artikel {
  width: 90%;
  max-width: 800px; /* Lebar optimal untuk membaca */
  margin: 0 auto;
}

.artikel-header {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.artikel-kategori {
  display: inline-block;
  background: var(--warna-hijau-tua);
  color: var(--warna-putih);
  padding: 0.4rem 1rem;
  border-radius: 50px; /* Bentuk pil */
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.artikel-judul {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--warna-teks);
  line-height: 1.3;
  margin: 0;
}
.artikel-meta {
  font-size: 1rem;
  color: var(--warna-teks-lembut);
  margin-top: 1rem;
}

.artikel-gambar-utama {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-box);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.artikel-gambar-utama img {
  width: 100%;
}

/* (PENTING) Menata HTML yang di-render dari TinyMCE */
.artikel-isi {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--warna-teks);
}
.artikel-isi p {
  margin-bottom: 1.5rem;
}
.artikel-isi h1,
.artikel-isi h2,
.artikel-isi h3,
.artikel-isi h4 {
  color: var(--warna-hijau-tua);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.artikel-isi ul,
.artikel-isi ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.artikel-isi li {
  margin-bottom: 0.5rem;
}
.artikel-isi strong {
  font-weight: 700;
  color: #000;
}
.artikel-isi a {
  color: var(--warna-hijau-tua);
  text-decoration: underline;
}
.artikel-isi img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-box);
  margin: 1.5rem 0;
}
/* (dst. Anda bisa tambahkan style untuk blockquote, dll) */

.artikel-kembali {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* RESPONSIVE DETAIL BERITA */
@media (max-width: 768px) {
  .artikel-judul {
    font-size: 2rem;
  }
  .artikel-isi {
    font-size: 1rem;
    line-height: 1.7;
  }
}