/* --- CSS Variables (Variabel untuk Warna dan Font) --- */
/* Menggunakan variabel membuat perubahan desain menjadi lebih mudah */
:root {
  --primary-color: #92bd2e; /* Biru (sesuaikan dengan warna sekolah Anda) */
  --primary-dark-color: #7a9f26; /* Warna hijau yang lebih gelap */
  --secondary-color: #aad231; /* Kuning (sesuaikan) */
  --text-color: #333;
  --background-color: #f4f4f4;
  --background-hover: #a7df0d; /* Warna latar belakang saat hover */
  --white-color: #ffffff;

  --font-family: "Arial", sans-serif; /* Ganti dengan font pilihan Anda */
}

/* --- Reset Dasar & Pengaturan Global --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Menambahkan efek scroll yang mulus untuk seluruh halaman */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  /* 1. Menambahkan background gambar yang tetap */
  background-image: url("../images/slide1.jpeg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative; /* Diperlukan untuk z-index pseudo-element */
}

/* Mendorong konten utama ke bawah agar tidak tertutup header transparan */
main {
  padding-top: 80px; /* Sesuaikan nilai ini dengan tinggi header Anda */
}

.container {
  max-width: 1280px; /* Lebar maksimum konten diperbesar untuk layar laptop */
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. Menambahkan lapisan gelap (overlay) di atas background agar teks mudah dibaca */
body::before {
  content: "";
  position: fixed; /* Mengikuti background-attachment: fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Sesuaikan opasitas di sini */
  z-index: -1; /* Memastikan overlay berada di belakang konten, tapi di depan background body */
}

/* Mencegah body dari scrolling saat menu mobile terbuka */
body.no-scroll {
  overflow: hidden;
}

/* ===================================================================
   Styling untuk Header
=================================================================== */
.site-header {
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* Menambahkan transisi agar efek perubahan terlihat mulus */
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

/* Gaya header saat di-scroll ke bawah */
.site-header.scrolled {
  background-color: rgba(
    10,
    10,
    10,
    0.25
  ); /* Latar belakang gelap transparan */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Dukungan untuk browser Safari */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus untuk memberi kesan kedalaman */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px; /* Jarak antara menu dan ikon pencarian */
}

/* --- Styling untuk Tombol CTA "Daftar Sekarang" --- */
.cta-button {
  background-color: #ff8c00; /* Warna oranye cerah */
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 50px; /* Membuat sudut sangat membulat (pil) */
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap; /* Mencegah teks turun baris */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #e67e22; /* Oranye yang sedikit lebih gelap saat hover */
  transform: translateY(-2px);
}

/* 4. Ubah warna teks logo menjadi putih */
.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antara logo dan teks nama sekolah */
}

.logo img {
  height: 50px; /* Sesuaikan tinggi logo Anda di sini */
  width: auto;
}

.logo span {
  color: var(--white-color);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Menambah bayangan agar konsisten dengan menu */
}

/* --- Styling untuk Navigasi --- */
.main-nav li {
  position: relative; /* Kunci untuk positioning dropdown */
}

/* --- Styling untuk Navigasi --- */
.main-nav ul {
  list-style-type: none; /* Menghilangkan bullet points */
  display: flex; /* Membuat item menu menjadi horizontal */
  gap: 15px; /* Mengurangi jarak antar item menu */
}

.main-nav a {
  text-decoration: none; /* Menghilangkan garis bawah pada link */
  color: var(--white-color); /* 4. Ubah warna link menu menjadi putih */
  font-size: 14px; /* Mengecilkan ukuran font menu */
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s ease; /* Optimasi Performa: hindari penggunaan 'all' */
  text-transform: uppercase; /* Mengubah teks menjadi huruf besar semua */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Menambah bayangan agar teks lebih terbaca */
}

.main-nav a:hover {
  color: var(--secondary-color); /* Mengubah warna hover menjadi kuning */
}

/* Menambahkan panah ke bawah untuk item menu dengan dropdown */
.main-nav .has-dropdown > a {
  padding-right: 25px; /* Memberi ruang untuk panah */
}

.main-nav .has-dropdown > a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--white-color);
  transition: transform 0.3s ease; /* Animasi untuk panah */
}

.header-search .search-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--white-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.header-search .search-icon:hover {
  color: var(--secondary-color);
}

/* Memutar panah saat dropdown aktif */
.main-nav .has-dropdown:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
}

/* --- Styling untuk Dropdown Menu --- */
.main-nav .sub-menu {
  display: none; /* 1. Sembunyikan dropdown secara default */
  position: absolute; /* 2. Posisikan relatif terhadap parent li */
  top: 100%; /* 3. Muncul tepat di bawah item parent */
  left: 0;
  background-color: var(--white-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 220px; /* Lebar minimum dropdown */
  z-index: 100;
  list-style-type: none;
  border-radius: 4px;
  backdrop-filter: none; /* Menghilangkan efek blur yang diwarisi dari header */
}

/* 4. Tampilkan dropdown saat hover di parent li */
.main-nav li:hover > .sub-menu {
  display: block;
}

.main-nav .sub-menu a {
  display: block; /* Buat link memenuhi lebar li */
  padding: 10px 20px;
  font-family: "Helvetica", sans-serif; /* Mengubah font submenu */
  font-size: 10px; /* Mengecilkan ukuran font submenu */
  font-weight: normal;
  color: var(--text-color); /* Mengubah warna font submenu menjadi hitam */
  white-space: nowrap; /* Mencegah teks terpotong ke baris baru */
  text-shadow: none; /* Menghilangkan bayangan teks yang diwarisi */
}

.main-nav .sub-menu a:hover {
  background-color: var(--background-hover);
}

/* --- Styling untuk Hero Section --- */
.hero-slider {
  /* Menghapus padding atas dari hero karena sudah ditangani oleh main */
  margin-top: -80px;

  position: relative; /* Diperlukan untuk overlay */
  min-height: 100vh; /* Mengubah tinggi minimal menjadi 100% tinggi layar */
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--white-color);
  text-align: center;
  margin-bottom: 80px; /* Menambahkan celah untuk efek parallax */
}

.slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active-slide {
  opacity: 1;
  z-index: 2;
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active-dot {
  background-color: var(--white-color);
}

/* 2. Menambahkan lapisan gelap (overlay) agar teks lebih mudah dibaca */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* Menghilangkan overlay biru */
  z-index: 1;
}

.slide .container {
  position: relative;
  z-index: 2; /* 3. Memastikan konten (teks) berada di atas overlay */
}

/* Styling untuk kotak di belakang teks hero */
/* .hero-text-box {
  display: inline-block; /* Agar kotak hanya seluas kontennya */
/* background-color: rgba(0, 0, 0, 0.4); /* Latar belakang semi-transparan */
/* padding: 20px 40px; */
/* border-radius: 12px; Sudut yang membulat */
/* backdrop-filter: blur(4px); Efek blur tambahan */
/* -webkit-backdrop-filter: blur(4px); */
/* }  */

/* --- Styling untuk Teks di Hero Section --- */
.slide h1, .slide h2 { /* Memperbaiki kebocoran text-shadow agar tidak menimpa semua h2 di web */
  font-size: 48px; /* Memperbesar ukuran font judul utama */
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Menambah bayangan agar teks lebih terbaca */
}

.hero p {
  font-size: 20px; /* Sedikit memperbesar teks deskripsi */
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- Styling untuk Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.search-form {
  width: 90%;
  max-width: 700px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--white-color);
  color: var(--white-color);
  font-size: 2rem;
  padding: 15px 0;
  text-align: center;
  outline: none;
}

.close-search {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 4rem;
  color: var(--white-color);
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Styling untuk Bagian Prestasi Terbaru --- */
.prestasi-section {
  padding: 60px 0;
  background-color: transparent;
}

.prestasi-section h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--primary-dark-color); /* Diubah ke warna lebih gelap agar lebih mudah dibaca */
  position: relative;
}

.prestasi-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px; /* Jarak garis dari teks judul */
  width: 80px; /* Lebar garis */
  height: 4px; /* Ketebalan garis */
  background-color: var(--primary-color);
  border-radius: 2px;
}

.prestasi-container {
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.prestasi-item {
  display: flex;
  flex-direction: column; /* 1. Mengubah susunan menjadi vertikal */
  align-items: center; /* 2. Memusatkan konten secara horizontal */
  text-align: center; /* 3. Memusatkan teks di dalamnya */
  gap: 15px; /* Jarak vertikal antar elemen */
  max-width: 350px;
  padding: 30px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  /* 3. Memberi background default agar terbaca di atas gambar latar */
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    background-color 0.3s ease, box-shadow 0.3s ease;
}

.prestasi-item:hover {
  background-color: white;
  transform: translateY(-10px); /* Diubah agar sama seperti kartu artikel */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Aturan untuk memunculkan item prestasi saat section terlihat */
.animate-on-scroll.is-visible .prestasi-item {
  opacity: 1;
  transform: translateY(0);
}

/* Memberi jeda animasi (staggered effect) untuk setiap item */
.animate-on-scroll.is-visible .prestasi-item:nth-child(2) {
  transition-delay: 0.2s;
}
.animate-on-scroll.is-visible .prestasi-item:nth-child(3) {
  transition-delay: 0.4s;
}

.prestasi-item:hover .prestasi-icon img {
  transform: scale(1.15); /* Membuat ikon membesar saat disentuh */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Menambah bayangan pada ikon */
}

.prestasi-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  padding: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Menambah transisi halus */
}

.prestasi-info {
  flex: 1; /* Memastikan kolom teks mengisi sisa ruang dan membungkus teks dengan benar */
}

.prestasi-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.prestasi-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* --- Styling untuk Bagian Ekstrakurikuler --- */
.ekskul-section {
  padding: 60px 0;
  background-color: var(--primary-dark-color);
  margin-bottom: 80px; /* Mengubah background sama dengan artikel */
}

.ekskul-section h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--white-color); /* Mengubah warna teks menjadi putih */
  position: relative;
}

.ekskul-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: 80px;
  height: 4px;
  background-color: var(--white-color); /* Mengubah warna garis menjadi putih */
  border-radius: 2px;
}

.ekskul-grid {
  display: grid;
  /* Membuat grid 12 kolom untuk layout custom */
  grid-template-columns: repeat(12, 1fr);
  gap: 25px;
}

.ekskul-item:nth-child(-n + 3) {
  grid-column: span 4; /* 3 item pertama masing-masing selebar 4 kolom */
}

.ekskul-item:nth-child(n + 4) {
  grid-column: span 3; /* 4 item berikutnya masing-masing selebar 3 kolom */
}

.ekskul-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible .ekskul-item {
  opacity: 1;
  transform: translateY(0);
}

/* Memberi delay animasi yang berbeda untuk setiap item */
.animate-on-scroll.is-visible .ekskul-item:nth-child(2) {
  transition-delay: 0.1s;
}
.animate-on-scroll.is-visible .ekskul-item:nth-child(3) {
  transition-delay: 0.2s;
}
.animate-on-scroll.is-visible .ekskul-item:nth-child(4) {
  transition-delay: 0.3s;
}
.animate-on-scroll.is-visible .ekskul-item:nth-child(5) {
  transition-delay: 0.4s;
}
.animate-on-scroll.is-visible .ekskul-item:nth-child(6) {
  transition-delay: 0.5s;
}
.animate-on-scroll.is-visible .ekskul-item:nth-child(7) {
  transition-delay: 0.6s;
}

.ekskul-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ekskul-item:hover img {
  transform: scale(1.1);
}

.ekskul-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white-color);
  text-align: left;
}

.ekskul-overlay h3 {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- Styling untuk Bagian Guru & Tendik --- */
.guru-section {
  padding: 60px 0;
  background-color: var(--background-color);
  margin-bottom: 80px; /* Menambahkan celah untuk efek parallax */
}

.guru-section h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--primary-dark-color);
  position: relative;
}

.guru-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.guru-slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 50px; /* Ruang untuk tombol navigasi */
}

.guru-slider-wrapper {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease-in-out;
}

.guru-card {
  flex: 0 0 calc(25% - 20px); /* Menampilkan 4 kartu, dikurangi sedikit gap */
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guru-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.guru-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.guru-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.guru-info {
  padding: 20px;
}

.guru-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.guru-info p {
  font-size: 0.9rem;
  color: var(--primary-dark-color);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white-color);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* --- Styling untuk Bagian Artikel Terbaru --- */
.artikel-section {
  padding: 60px 0;
  background-color: var(--primary-dark-color);
  /* Diubah agar background body terlihat */
  margin-bottom: 80px;
  margin-top: 80px;
}

.artikel-section h2 {
  text-align: center;
  margin-bottom: 60px; /* Menambah jarak bawah untuk memberi ruang pada garis */
  font-size: 2.5rem;
  color: var(--white-color);
  position: relative; /* Diperlukan untuk positioning pseudo-element */
}

/* Menambahkan dua garis di bawah judul artikel */
.artikel-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -25px; /* Jarak garis dari teks judul */
  width: 100px; /* Lebar garis */
  height: 5px; /* Jarak antara dua garis */
  border-top: 2px solid var(--white-color);
  border-bottom: 2px solid var(--white-color);
}

.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.artikel-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    box-shadow 0.3s ease;
}

.artikel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-category {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-content h3 a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.card-content h3 a:hover {
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.card-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #5e7a20; /* Versi lebih gelap dari warna primer */
}

.button-artikel {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.artikel-button {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ccc;
  padding: 10px 24px;
  transition: transform 0.4s cubic-bezier(0.4, 2, 0.6, 1);
}

.artikel-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.animate-on-scroll.is-visible .artikel-button:hover {
  opacity: 1;
  transform: translateY(-5px); /* Sedikit mengangkat tombol saat hover */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* --- Animasi untuk Kartu Artikel --- */
.animate-on-scroll.is-visible .artikel-card {
  opacity: 1;
  transform: translateY(0);
}

/* d:\DOC DIKLAT\23. PELATIHAN IC\HUMAS\WEB\WEB SEKOLAH\css\style.css */

/* ... (kode CSS Anda yang sudah ada) ... */

/* CSS untuk Video Profil Responsif */
.video-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
  border-radius: 12px; /* Opsional: membuat sudut lebih halus */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Opsional: menambahkan sedikit bayangan */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none; /* Menghilangkan border dari iframe */
}

/* ... (sisa kode CSS Anda) ... */

/* Memberi jeda animasi (staggered effect) untuk setiap kartu */
.animate-on-scroll.is-visible .artikel-card:nth-child(1) {
  transition-delay: 0.1s;
}
.animate-on-scroll.is-visible .artikel-card:nth-child(2) {
  transition-delay: 0.2s;
}
.animate-on-scroll.is-visible .artikel-card:nth-child(3) {
  transition-delay: 0.3s;
}
/* --- Styling untuk Bagian Sambutan Kepala Sekolah --- */
.sambutan {
  padding: 60px 0;
  background-color: var(--white-color); /* Mengembalikan warna latar terang */
  position: relative;
  margin-bottom: 80px; /* Menambahkan celah untuk efek parallax */
}

.sambutan h2 {
  display: inline-block; /* Agar background hanya seluas teks + padding */
  background-color: var(--primary-color); /* Memberi background warna utama */
  color: var(--white-color); /* Teks menjadi putih */
  padding: 10px 30px; /* Memberi ruang di dalam background */
  border-radius: 50px; /* Membuat sudut menjadi melengkung seperti pil */
  margin-bottom: 50px; /* Memberi jarak lebih ke bawah */
  font-size: 2.2rem;

  /* Menengahkan judul */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.sambutan-content {
  display: flex;
  align-items: stretch; /* Membuat kolom memiliki tinggi yang sama */
  gap: 0; /* Menghilangkan gap, jarak diatur oleh padding */
  color: var(--text-color); /* Kembali ke warna teks default (hitam) */

  /* Menambahkan border dan styling kartu pada wrapper konten */
  background-color: var(
    --white-color
  ); /* Latar belakang kartu menjadi putih bersih */
  padding: 0; /* Padding dihilangkan, diatur per kolom */
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden; /* Penting agar gambar tidak keluar dari radius sudut */
}

.sambutan-gambar {
  flex: 0 0 45%; /* Memberi kolom gambar lebar 45% dari total */
  position: relative; /* Diperlukan untuk positioning gambar absolut di dalamnya */
  min-height: 550px; /* Memberi tinggi minimal agar tidak terlalu pendek di layar lebar */
}

.sambutan-gambar img {
  /* Mengubah gambar menjadi absolut agar bisa diatur posisinya dengan lebih bebas */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Memusatkan gambar secara horizontal */
  height: 100%; /* Membuat tinggi gambar mengisi 100% container-nya */
  width: auto;
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease; /* Menambahkan transisi halus */
}

.sambutan-gambar img:hover {
  transform: translateX(-50%) scale(1.03); /* Sedikit memperbesar gambar saat disentuh */
  filter: drop-shadow(
    8px 12px 20px rgba(0, 0, 0, 0.25)
  ); /* Membuat bayangan lebih jelas saat hover */
}

.sambutan-teks {
  flex: 1 1 55%; /* Kolom teks mengisi sisa ruang (55%) */
  padding: 50px 60px; /* Menambah padding agar teks lebih nyaman dibaca */
  text-align: left;
  position: relative; /* Untuk elemen dekoratif */
  background-color: var(
    --background-color
  ); /* Memberi latar abu-abu pada area teks */
}

/* Menambahkan ikon kutipan sebagai dekorasi */
.sambutan-teks::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10rem;
  color: rgba(146, 189, 46, 0.1);
  z-index: 0;
  line-height: 1;
  font-family: "Georgia", serif;
}

.sambutan-teks h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color); /* Kembali ke warna teks hitam */
  position: relative; /* Agar di atas ikon kutipan */
  z-index: 1;
}

.sambutan-teks p {
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: justify; /* Membuat teks rata kanan-kiri */
  position: relative; /* Agar di atas ikon kutipan */
  z-index: 1;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  position: relative; /* Agar di atas ikon kutipan */
  z-index: 1;
}

.sambutan-signature {
  margin-top: 30px;
  text-align: left;
  position: relative; /* Agar di atas ikon kutipan */
  z-index: 1;
}

.sambutan-signature span {
  display: block;
  font-size: 0.9rem;
  color: #777;
}

/* --- Styling untuk Animasi Scroll --- */
.sambutan-gambar,
.sambutan-teks {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible .sambutan-gambar {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-visible .sambutan-teks {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; /* Teks muncul sedikit setelah gambar */
}

/* --- Styling untuk Image Lightbox --- */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--white-color);
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Styling untuk Footer --- */
.site-footer {
  background-color: var(
    --primary-dark-color
  ); /* Warna sama dengan section artikel */
  color: rgba(255, 255, 255, 0.8);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  /* Margin diatur oleh section di atasnya */
}

.site-footer p {
  margin: 0;
  padding: 0;
}

/* --- Styling untuk Bagian Hubungi Kami --- */
.hubungi-kami-section {
  padding: 60px 0;
  background-color: transparent; /* Diubah agar background body terlihat */
  margin-bottom: 80px; /* Menambahkan celah untuk efek parallax */
}

.hubungi-kami-section .container {
  background-color: var(--background-color);
  padding: 60px 40px;
  border-radius: 12px;
}

.hubungi-kami-section .section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark-color); /* Diubah ke warna lebih gelap agar lebih mudah dibaca */
  margin-bottom: 10px;
}

.hubungi-kami-section .section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.hubungi-kami-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dua kolom sama besar */
  gap: 40px; /* Mengembalikan jarak antar kolom */
  align-items: center;
  margin-top: 40px;
  /* Background dipindahkan ke .hubungi-kami-section .container */
  background-color: transparent;
  border-radius: 0;
}

.hubungi-kami-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.hubungi-kami-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 40px; /* Menambahkan padding di dalam kolom info */
}

.kolom-judul {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.kontak-icon {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Mencegah ikon menyusut */
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.kontak-icon:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: var(--primary-dark-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Styling untuk Form Kontak --- */
.kontak-form h4 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.kontak-form .form-group {
  margin-bottom: 15px;
}

.kontak-form input,
.kontak-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--white-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kontak-form input:focus,
.kontak-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(146, 189, 46, 0.25);
}

.kontak-form textarea {
  resize: vertical; /* Izinkan user mengubah tinggi textarea */
}

.btn-kirim {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-kirim:hover {
  background-color: var(--primary-dark-color);
  transform: translateY(-2px);
}

/* --- Styling untuk Tombol Kontak Melayang (Floating Button) --- */
.floating-contact-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.floating-contact-btn:hover {
  background-color: var(--primary-dark-color);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* --- Styling untuk Tombol Kembali ke Atas (Scroll to Top) --- */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--text-color);
  color: var(--white-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: #555; /* Warna lebih gelap dari --text-color */
}

/* --- Styling untuk Bagian Informasi Umum --- */
.info-umum-section {
  padding: 60px 0;
  background-color: var(
    --primary-dark-color
  ); /* Diubah agar sama dengan section artikel */
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 80px; /* Menambahkan celah untuk efek parallax */
}

.info-umum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* Gap dihilangkan agar border berfungsi sebagai pemisah */
}

.info-column {
  padding: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Menambahkan garis pemisah antar kolom */
.info-column:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* Menambahkan animasi saat disentuh (hover) */
.info-column:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px; /* Beri radius saat hover agar terlihat seperti kartu */
}

.info-column h3 {
  font-size: 1.5rem;
  color: var(--white-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.info-column p {
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Styling untuk Agenda List (Kolom Kiri) */
.agenda-list {
  list-style-type: none;
  padding: 0;
}

.agenda-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.agenda-date {
  background-color: var(--white-color);
  color: var(--text-color);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 5px;
  text-align: center;
  min-width: 70px;
}

.agenda-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  padding-top: 5px; /* Menyelaraskan dengan tanggal */
}

.agenda-list a:hover {
  color: var(--secondary-color);
}

/* Styling untuk Identitas List (Kolom Tengah) */
.identitas-list {
  list-style-type: none;
  padding: 0;
  line-height: 1.8;
}

.identitas-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.identitas-list li:last-child {
  border-bottom: none;
}

.identitas-list strong {
  color: var(--white-color);
}

/* Styling untuk Social Media Icons di Info Umum */
.social-icons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* --- Styling untuk Halaman Submenu --- */
.page-header {
  background-color: var(--primary-dark-color);
  color: var(--white-color);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-main-content {
  padding: 60px 0;
  background-color: transparent; /* Dibuat transparan agar background parallax terlihat */
}

.page-content {
  padding-top: 80px;
}

.content-box {
  background-color: var(--white-color);
  padding: 40px 50px;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

/* --- Styling untuk Breadcrumbs --- */
.breadcrumbs-section {
  background-color: var(--background-color);
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #999;
}

.breadcrumbs a {
  color: var(--primary-dark-color); /* Mempergelap warna tautan breadcrumb agar kontras */
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-dark-color);
}

/* --- Styling untuk Kartu Tujuan --- */
.tujuan-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tujuan-card {
  text-align: center;
  padding: 30px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 1 340px; /* Membuat kartu fleksibel dengan lebar basis 340px */
}

.tujuan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tujuan-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.tujuan-icon svg {
  width: 48px;
  height: 48px;
}

/* --- Styling untuk Halaman Visi & Misi --- */
.visi-section {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--background-color);
  border-radius: 8px;
  margin-bottom: 50px;
}

.visi-section .visi-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.visi-section .visi-icon svg {
  width: 56px;
  height: 56px;
}

.visi-section h2 {
  font-size: 2.2rem;
  color: var(--primary-dark-color);
  margin-bottom: 15px;
}

.visi-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  color: #555;
}

.misi-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-dark-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.misi-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.misi-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.misi-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.misi-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  margin-top: 5px;
}

.misi-icon svg {
  width: 24px;
  height: 24px;
}

/* --- Styling untuk Halaman Kenapa Harus CNWK --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.feature-icon {
  flex-shrink: 0;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-dark-color);
}

.feature-text p {
  line-height: 1.7;
  color: #555;
}
/* --- Styling untuk Halaman Latar Belakang Sekolah --- */
.sejarah-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.sejarah-image {
  margin-bottom: 30px;
  text-align: center;
}

.sejarah-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Menambahkan style untuk konten artikel berita */
.article-content p {
  text-align: justify;
  margin-bottom: 1rem; /* Memberi jarak antar paragraf */
}

/* --- Styling untuk Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Latar belakang putih bersih */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* Transisi untuk efek menghilang (fade out) */
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader img {
  width: 150px; /* Sesuaikan ukuran logo */
  height: auto;
  /* Transisi untuk efek logo "bergabung" atau mengecil */
  transition: transform 0.6s ease-in-out;
}

/* Kelas untuk menyembunyikan preloader */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Saat preloader disembunyikan, logo akan mengecil dan menghilang */
#preloader.hidden img {
  transform: scale(0);
}
/* ===================================================================
   STYLING RESPONSIVE
   Semua aturan untuk tablet dan mobile ada di sini.
=================================================================== */

/* 
 * 1. Gaya untuk Navigasi Mobile
 * ------------------------------------------------------------------- */

.mobile-nav-toggle {
  display: none; /* Sembunyikan tombol hamburger di layar besar */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Pastikan tombol selalu di atas */
  color: var(--white-color); /* Warna ikon hamburger */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Sembunyikan ikon close (X) secara default */
.mobile-nav-toggle .icon-close {
  display: none;
}

/* Saat menu terbuka, sembunyikan ikon hamburger */
.mobile-nav-toggle.menu-open .icon-menu {
  display: none;
}

/* Saat menu terbuka, tampilkan ikon close (X) */
.mobile-nav-toggle.menu-open .icon-close {
  display: block;
}

/* Media Query untuk Laptop Kecil (Mulai Mengecilkan Menu) */
@media (max-width: 1200px) {
  .main-nav ul {
    gap: 10px; /* Kurangi jarak antar menu */
  }
  .main-nav a {
    font-size: 13px; /* Perkecil font menu sedikit */
  }
}

/* 
 * 2. Media Query untuk Tablet (Layar <= 1024px)
 * ------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding-left: 25px;
    padding-right: 25px; /* Menghapus font-size: medium untuk kontrol yang lebih spesifik */
  }

  /* Artikel: dari 3 kolom menjadi 2 kolom */
  .artikel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .artikel-card {
    font-size: 0.92rem;
  }
  .card-content h3 {
    font-size: 1.05rem;
  }
  .card-content p {
    font-size: 0.88rem;
  }
  .card-category {
    font-size: 11px;
    padding: 3px 10px;
  }
  .card-image img {
    height: 200px;
  }

  /* Info Umum di Footer: Kolom identitas & agenda berdampingan */
  .info-umum-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .info-umum-grid .info-column:first-child {
    grid-column: 1 / -1; /* Kolom deskripsi menjadi satu baris penuh */
  }

  .guru-card {
    flex: 0 0 calc(33.333% - 20px); /* Menampilkan 3 kartu di tablet */
  }

  /* Navigasi lebih kecil lagi di tablet */
  .main-nav ul {
    gap: 5px; /* Kurangi jarak lebih jauh */
  }
  .main-nav a {
    font-size: 12px; /* Perkecil font menu lagi */
    padding: 5px;
  }
  .main-nav .has-dropdown > a {
    padding-right: 18px; /* Sesuaikan ruang untuk panah */
  }
  .main-nav .has-dropdown > a::after {
    right: 4px; /* Dekatkan panah */
  }
  .sambutan-teks {
    padding: 40px;
  }
  /* Perkecil judul sambutan di tablet */
  .sambutan h2 {
    font-size: 1.9rem;
    padding: 10px 25px;
  }
  .sambutan-teks h3 {
    font-size: 1.3rem;
  }
  .sambutan-teks p,
  .sambutan-teks blockquote {
    font-size: 1rem;
  }

  .hero-slider h1 {
    font-size: 1.9rem;
  }
}

/* 
 * 3. Media Query untuk Mobile (Layar <= 768px)
 * ------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* --- Penyesuaian Font --- */
  /* 
    Ukuran font heading tidak diperbesar di mobile agar layout terasa lebih lega
    dan tidak terlihat terlalu penuh, sesuai dengan ukuran desktop relatif terhadap lebar layar.
  */

  /* Optimasi Performa GPU: Mematikan efek kaca buram pada header di perangkat mobile */
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(30, 30, 30, 0.95); /* Menggunakan warna gelap solid sbg gantinya */
  }

  .site-header .container {
    justify-content: space-between;
  }
  .hero-slider h1 {
    font-size: 1.3rem;
  }
  
  .hero-slider h2 { 
      font-size: 1.75rem; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; /* Lebar panel navigasi mobile */
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px;
  }

  /* Kelas ini akan ditambahkan oleh JavaScript untuk membuka menu */
  .main-nav.nav-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav ul li a {
    padding: 15px;
    display: block;
    width: 100%;
    color: var(--text-color); /* Ubah warna link jadi hitam di panel mobile */
    text-shadow: none;
  }

  /* Mengatur Sub-menu/Dropdown di mobile */
  .has-dropdown .sub-menu {
    position: static;
    display: none; /* Sembunyikan submenu secara default */
    background-color: #f9f9f9;
    border: none;
    box-shadow: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 15px; /* Beri indentasi */
  }

  /* Kelas ini ditambahkan oleh JS saat dropdown dibuka */
  .has-dropdown.open > .sub-menu {
    display: block;
  }

  .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Menambahkan ikon panah pada dropdown */
  .has-dropdown > a::after {
    content: "▾";
    font-size: 1.2em;
    transition: transform 0.2s;
    border: none; /* Hapus style panah dari desktop */
    position: static;
    transform: none;
  }

  .has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .mobile-nav-toggle {
    display: block; /* Tampilkan tombol hamburger di mobile */
  }

  /* Sembunyikan tombol CTA di mobile agar tidak terlalu ramai */

  /* --- Penyesuaian Layout Konten --- */

  .prestasi-container {
    flex-direction: column;
  }

  .sambutan-content {
    flex-direction: column;
  }

  .sambutan-teks {
    padding: 30px 25px;
  }

  .hubungi-kami-grid,
  .info-umum-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  /* Artikel dan Ekskul: dari 1 kolom menjadi 2 kolom agar lebih ringkas */
  .artikel-grid,
  .ekskul-grid {
    display: flex; /* Mengubah grid menjadi flex untuk mode geser */
    flex-wrap: nowrap; /* Mencegah kartu turun ke bawah */
    overflow-x: auto; /* Memunculkan scroll horizontal */
    scroll-snap-type: x mandatory; /* Membuat scroll menempel pas di kartu */
    padding-bottom: 20px; /* Jarak bawah untuk tempat scrollbar jika muncul */
    -webkit-overflow-scrolling: touch; /* Efek geser mulus di iOS */
    scrollbar-width: none; /* Menyembunyikan scrollbar di Firefox */
  }

  /* Menyembunyikan scrollbar horizontal di Chrome, Safari, dan Edge */
  .artikel-grid::-webkit-scrollbar,
  .ekskul-grid::-webkit-scrollbar {
    display: none;
  }

  .artikel-card, .ekskul-item {
    flex: 0 0 85%; /* Mengatur lebar kartu 85% dari layar, menyisakan 15% layar agar kartu sebelah "mengintip" */
    scroll-snap-align: center; /* Saat dilepas, kartu akan otomatis posisinya ke tengah */
  }

  .artikel-grid {
    gap: 15px; /* Kurangi jarak antar artikel */
  }
  .artikel-card {
    font-size: 0.85rem;
  }
  .card-content h3 {
    font-size: 0.95rem;
  }
  .card-content p {
    font-size: 0.8rem;
  }
  .card-category {
    font-size: 10px;
    padding: 2px 8px;
  }
  .card-image img {
    height: 140px;
  }

  .hubungi-kami-map iframe {
    height: 300px; /* Kurangi tinggi peta di mobile */
  }

  .guru-card {
    flex: 0 0 calc(50% - 15px); /* Menampilkan 2 kartu di mobile */
  }

  .guru-slider-container {
    padding: 0 10px; /* Kurangi padding di mobile */
  }

  .guru-card img {
    height: 180px; /* Mengecilkan tinggi gambar agar proporsional di layar HP */
  }

  .guru-info {
    padding: 12px; /* Mengurangi jarak kosong (padding) di dalam kartu */
  }

  .guru-info h3 {
    font-size: 0.95rem; /* Mengecilkan ukuran font nama guru */
  }

  .guru-info p {
    font-size: 0.8rem; /* Mengecilkan ukuran font jabatan */
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .sambutan h2 {
    font-size: 1.4rem; /* Duplikasi dihapus, menyisakan ukuran yang benar untuk mobile */
    padding: 8px 20px;
    margin-bottom: 40px;
  }
}

/* Styling untuk tombol "Daftar Sekarang" di dalam menu mobile */
.main-nav .cta-button-mobile-wrapper {
  border-bottom: none; /* Hapus garis bawah */
  margin-top: 20px;
}

.main-nav .cta-button-mobile {
  display: block;
  text-align: center;
  padding: 12px 20px;
  color: var(--white-color);
  background-color: #ff8c00;
  border-radius: 50px;
}

/* --- Styling untuk Halaman Hasil Pencarian --- */
.search-results-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.search-results-page h1 span {
  color: var(--primary-dark-color);
}

.search-result-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item h3 a {
  text-decoration: none;
  color: var(--primary-dark-color);
}

.search-result-item .result-url {
  font-size: 0.9rem;
  color: #777;
  text-decoration: none;
}
