/* ===============================
   RESET & BASE STYLE
================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f7fff7;
  color: #222;
  line-height: 1.7;
}

section {
  margin: 30px 0;
}

/* ===============================
   HEADER / NAVIGATION
================================*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0b6b30;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 7%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Logo & Judul Sekolah */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo & Judul Sekolah */
.logo img {
  width: 55px;
  height: 55px;
  object-fit: contain; /* pastikan logo tetap proporsional */

}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.7;
}

.logo-text span {
  display: block;
  font-size: 0.9rem;       /* baris pertama */
  font-weight: 400;
  color: white;
  margin: 2px 0; /* beri sedikit jarak atas-bawah */
}

/* jika ingin baris tengah lebih menonjol (nama sekolah) */
.logo-text span:nth-child(2) {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Judul sekolah */
.logo h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Tautan Navigasi */
nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  margin: 0 18px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0f9b4d;
}

/* Hilangkan pseudo-element lama jika ada */
nav a::after {
  display: none !important;
}

/* Tombol Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
}

/* ===============================
   MOBILE NAVIGATION
================================*/
@media (max-width: 768px) {
  /* Dropdown menu */
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 3px solid #0b6b30;
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    z-index: 1100;
  }

  nav.active {
    max-height: calc(100vh - 70px);
    overflow: auto;
    padding-bottom: 12px;
  }

  nav a {
    color: #0b6b30;
    padding: 14px 0;
    display: block;
    border-bottom: none;
    text-decoration: none;
  }

  nav a:hover {
    background: #e8f5e9;
    color: #064c2b;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    background: #ffffff;
  }

  /* Logo & teks lebih kecil di HP */
  .logo img {
    width: 42px;
    height: 42px;
  }

  .logo h2 {
    font-size: 1rem;
  }
}
  .logo-text span:nth-child(1),
  .logo-text span:nth-child(3) {
    font-size: 0.6rem;
  }

  .logo-text span:nth-child(2) {
    font-size: 1rem;
  }
}
/* ===============================
   HERO SECTION
================================*/
.hero {
  position: relative;
  margin-top: 75px;
  width: 100%;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #0b7039;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 1 0 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 60, 0, 0.6));
  z-index: 1;
}

/* Teks Hero */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content button {
  background: #0f9b4d;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}

.hero-content button:hover {
  background: #0b7039;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    height: auto;
  }
  .hero-inner {
    aspect-ratio: auto;
    height: 70vh;
    border-radius: 0;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* ===============================
   VISI & MISI SECTION
================================*/
.judul {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.judul h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0b6b30;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.judul h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #0b6b30;
  margin: 10px auto 0;
  border-radius: 2px;
}

.visi-card,
.misi-card {
  background: white;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 0 auto 60px;
  width: 100%;
  max-width: 1000px;
}

.visi-card h4,
.misi-card h4 {
  font-size: 1.5rem;
  color: #0b6b30;
  margin-bottom: 20px;
  text-align: center;
}

.visi-card p {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

.misi-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.misi-item {
  background: transparent;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1.5px solid #cfe8cf;
  transition: all 0.3s ease;
}

.misi-item:hover {
  background: #f6fff6;
  border-color: #0b6b30;
  transform: translateY(-4px);
}

.misi-item::before {
  content: "🌿";
  font-size: 1.1rem;
  color: #0b6b30;
  margin-right: 8px;
}
/* ================================
   SAMBUTAN KEPALA MADRASAH
================================ */
#sambutan {
  padding: 80px 5%;
  background: #f0fff0;
}

#sambutan .sambutan-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

#sambutan .sambutan-foto {
  flex: 0 0 250px;
}

#sambutan .sambutan-foto img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#sambutan .sambutan-teks {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  color: #0b6b30;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

#sambutan .sambutan-teks .penutup {
  margin-top: 15px;
  font-weight: 600;
}

#sambutan .sambutan-teks .nama-kepala {
  margin-top: 20px;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #sambutan .sambutan-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #sambutan .sambutan-foto {
    flex: 0 0 200px;
  }

  #sambutan .sambutan-teks {
    max-width: 100%;
  }
}

/* ===============================
	SECTION MENGAPA
================================*/

.mengapa-section {
  padding: 80px 5%;
  background: linear-gradient(180deg, #ffffff 0%, #eaffea 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mengapa-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔹 3 kolom horizontal */
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
}

.mengapa-item {
  background: white;
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mengapa-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.mengapa-item .number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b6b30;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #0b6b30; /* outline hijau */
  border-radius: 50%;          /* bulat */
  flex-shrink: 0;
  background: white;           /* warna dalam bulatan */
}

.mengapa-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mengapa-list {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom tablet */
  }
}

@media (max-width: 768px) {
  .mengapa-list {
    grid-template-columns: 1fr; /* 1 kolom HP */
  }
  .mengapa-item {
    padding: 20px;
  }
  .mengapa-item .number {
    font-size: 1.4rem;
  }
  .mengapa-item p {
    font-size: 0.95rem;
  }
}
/* ===============================
   GALERI AKTIVITAS 
================================*/
#galeri {
  padding: 60px 5%;
  background: #f7fff7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 foto per baris */
  gap: 12px;
  width: 100%;
  max-width: 1200px;
}

.galeri-item {
  width: 100%;
  aspect-ratio: 1 / 1; /* kotak square */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeri-item:hover {
  transform: scale(1.05);
}

/* RESPONSIVE UNTUK HP: tetap 5 per baris */
@media (max-width: 768px) {
  .galeri-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .galeri-item {
    border-radius: 6px;
  }
}
/* ===============================
   EKSTRAKURIKULER SECTION
================================*/

#ekstra {
  padding: 80px 5%;
  background: #f0fff0;
}

.ekstra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ekstra-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ekstra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ekstra-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

.ekstra-card h4 {
  font-size: 1.2rem;
  color: #0b6b30;
  margin-bottom: 10px;
}

.ekstra-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .ekstra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ekstra-grid {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   SIKLUS KEGIATAN
================================*/
#siklus {
  padding: 90px 8%;
  background: linear-gradient(180deg, #ffffff 0%, #f4fff4 100%);
}

.siklus-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.siklus-card {
  background: #ffffff;
  border: 1.5px solid #cce6cc;
  border-radius: 15px;
  padding: 25px 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.siklus-card:hover {
  transform: translateY(-6px);
  border-color: #0b6b30;
}

.siklus-card h4 {
  text-align: center;
  color: #0b6b30;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.siklus-card ul {
  list-style: disc;
  padding-left: 25px;
  line-height: 1.8;
  color: #333;
}

.siklus-card li {
  margin-bottom: 6px;
}

/* responsive */
@media (max-width: 768px) {
  #siklus {
    padding: 60px 6%;
  }
  .siklus-card {
    padding: 20px;
  }
  .siklus-card h4 {
    font-size: 1.1rem;
  }
}
/* ===============================
   FASILITAS PENDIDIKAN
================================*/
#fasilitas {
  padding: 90px 8%;
  background: #ffffff;
  text-align: center;
}

.fasilitas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.fasilitas-item {
  background: #f8fff8;
  border: 1.5px solid #cce6cc;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fasilitas-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.fasilitas-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.fasilitas-item p {
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0b6b30;
  background: #ffffff;
}

/* responsive: 3 grid di HP */
@media (max-width: 768px) {
  .fasilitas-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .fasilitas-item img {
    height: 100px;
  }
  .fasilitas-item p {
    font-size: 0.85rem;
  }
}
/* ===============================
   STAFF PENGAJAR
================================*/

#staff {
  padding: 90px 8%;
  background: #f9fff9;
  text-align: center;
}

.staff-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.staff-item {
  background: #ffffff;
  border: 1.5px solid #cce6cc;
  border-radius: 12px;
  padding: 15px 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ✨ efek zoom lembut pada gambar */
.staff-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.5s ease;
}

.staff-item:hover img {
  transform: scale(1.08);
}

.staff-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0b6b30;
  margin-bottom: 4px;
}

.staff-item p {
  font-size: 0.9rem;
  color: #333;
}

/* responsive: 3 grid di HP */
@media (max-width: 768px) {
  .staff-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .staff-item img {
    height: 120px;
  }

  .staff-item h4 {
    font-size: 0.9rem;
  }

  .staff-item p {
    font-size: 0.8rem;
  }
}

/* ===============================
   INFORMASI PENTING & KONTAK
================================*/

#info-kontak {
  padding: 60px 5%;
  background: #e8f5e9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#info-kontak .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.info-card {
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card h4 {
  font-size: 1.5rem;
  color: #0b6b30;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  font-size: 1.2rem;
  color: #0b6b30;
}

.btn-cta {
  display: inline-block;
  background: #0f9b4d;
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: 0.3s;
  text-align: center;
}

.btn-cta:hover {
  background: #0b7039;
  transform: scale(1.05);
}

#info-kontak .info-card ul {
  list-style: disc;
  padding-left: 1.2rem;  /* beri jarak antara bulatan dan teks */
  margin-top: 10px;
  line-height: 1.6;
}

#info-kontak .info-card li {
  margin-bottom: 6px;    /* jarak antar item */
}

.kontak-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 2px;
}

.kontak-item {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 450px;           /* panjang seragam */
  background: #f8fff8;
  border: 1.5px solid #cce8cc;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.kontak-item:hover {
  background: #e6f7e6;
  transform: translateY(-2px);
}

/* Lingkaran hijau dengan ikon putih */
.wa-icon-circle {
  background: #0b6b30;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.wa-icon-circle img {
  width: 20px;
  height: 20px;
  filter: invert(100%) brightness(100%);
  /* ubah ikon jadi putih */
}

.kontak-text strong {
  color: #0b6b30;
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.kontak-text p {
  color: #333;
  font-size: 0.9rem;
  margin: 0;
}


/* Responsif */
@media (max-width: 600px) {
  .kontak-item {
    width: 100%;
    justify-content: flex-start;
  }
}

/* RESPONSIVE HP: 1 kolom */
@media (max-width: 768px) {
  #info-kontak .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   FOOTER
================================*/
footer {
  background: #0b6b30;
  color: white;
  text-align: center;
  padding: 20px 5%;
  font-family: "Poppins", sans-serif;
}

.footer-social {
  margin-bottom: 12px;
  color: white;
}

.footer-social a {
  display: inline-block;
  margin: 0 8px;
  transition: transform 0.3s, opacity 0.3s;
}

.footer-social a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.footer-social img {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  font-size: 0.85rem;
}
/* ===============================
   ANIMASI FADE IN SAAT SCROLL
================================*/

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


