* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Navbar */
.navbar {
  background-color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
}

.nama-sekolah h1 {
  font-size: 1.2rem;
  font-weight: bold;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar ul li a:hover {
  color: #59a0e7;
}

.navbar nav {
  margin-left: auto;
}

/* === HERO BANNER (BERANDA) === */

.profil-section {
  background-color: white;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 100px;
}

.profil-text {
  flex: 1;
}

.profil-text h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.profil-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.profil-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profil-image img {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profil-image img:hover {
  transform: scale(1.02);
}

/* Modal gaya melayang */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: zoomIn 0.3s ease;
}

/* Tombol close */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}

/* Animasi zoom */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Section Guru === */
.guru-section {
  text-align: center;
  padding: 60px 100px;
  background-color: #fff;
}

.judul-guru {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #0a3d91;
  text-transform: uppercase;
  border-bottom: 3px solid #f4b400;
  display: inline-block;
  padding-bottom: 8px;
}

/* Baris atas - kepala sekolah */
.guru-container.atas {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Baris bawah - guru lain */
.guru-container.bawah {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  margin-left: -10px;
}

.guru-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guru-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.guru-img {
  background: linear-gradient(135deg, #f4f4f4, #e8f5e9);
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.guru-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guru-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 15px 0 5px;
  color: #222;
  text-transform: uppercase;
}

.guru-card p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #666;
}

/* Background gambar blur biru */
.page-banner {
  position: relative;
  min-height: 280px;
  padding: 120px 20px;
  color: white;
  overflow: hidden;
}

/* Background gambar */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  z-index: 1;
}

/* Overlay biru */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 119, 218, 0.69);
  z-index: 2;
}

/* Konten */
.page-banner .banner-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  margin-left: 30px;
}

.page-banner h1,
.page-banner p {
  margin-top: 10px;
  text-align: left;
}

.page-banner h1 {
  font-size: 60px;
  font-weight: 600;
}

.page-banner p {
  font-size: 20px;
  color: #e2e2e2;
  margin-top: -5px;
}

h2 {
  text-align: center;
  margin: 40px 0 30px;
  font-size: 2rem;
  color: #222;
}

/* --- Sambutan Kepala Sekolah --- */
.sambutan-container {
  width: 98%;
  max-width: 1600px;
  background: #fff;
  border-radius: 20px;
  margin: 40px auto;
  display: flex; /* Biar foto & teks sejajar */
  align-items: center;
  gap: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.sambutan-foto {
  order: 1;
  flex: 1;
  text-align: center;
  background: #f9f9f9;
  display: flex;
  flex-direction: column; /* Foto di atas, nama di bawah */
  justify-content: center;
}

.sambutan-foto img {
  width: 400px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sambutan-nama {
  background: #59a0e7;
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
}

.sambutan-teks {
  order: 2;
  flex: 2;
  padding: 30px;
}

.sambutan-isi {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.sambutan-isi span {
  font-style: italic;
  font-weight: bold;
  color: #0066cc;
}

.sambutan-judul {
  order: 0;
  text-align: center;
  margin-bottom: 20px;
  background: #59a0e7; /* warna biru topbar */
  color: white;
  padding: 12px 10px;
  border-radius: 8px;
}

.sambutan-judul h3 {
  color: #e0e0e0; /* abu-abu muda untuk teks kecil */
  font-size: 13px;
  margin: 0;
}

.sambutan-judul h2 {
  color: #fff;
  margin: 5px 0 0;
}
/* --- Grid utama Fasilitas --- */
.fasilitas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.fasilitas-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.fasilitas-card:hover {
  transform: translateY(-5px);
}

.image-box {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.fasilitas-card:hover img {
  transform: scale(1.05);
}

.fasilitas-card h3 {
  text-align: center;
  padding: 15px;
  font-size: 1.1rem;
  color: #333;
  background-color: #fff;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s;
}

.lightbox .close:hover {
  color: #59a0e7;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Section Utama === */
.kegiatan-section {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  padding: 60px 30px;
}

.kegiatan-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 40px;
  margin-top: -5px;
  color: #0a3d91;
}

/* === Grid 3 Kolom === */
.kegiatan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Card Kegiatan === */
.kegiatan-card {
  background: linear-gradient(145deg, #ffffff, #f6faff);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kegiatan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Gambar */
.kegiatan-card .image-box {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.kegiatan-card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kegiatan-card:hover .image-box img {
  transform: scale(1.05);
}

/* Isi Card */
.kegiatan-info {
  padding: 20px 25px;
}

.kegiatan-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  margin-top: -5px;
}

.kegiatan-info p {
  margin: 6px 0;
  color: #555;
  font-size: 0.95rem;
}

.kegiatan-info i {
  color: #59a0e7;
  margin-right: 8px;
}

/* === Footer === */
.topbar {
  background: #59a0e7;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}

.topbar i {
  margin-right: 6px;
}

.topbar span {
  margin: 0 15px;
}

.sejarah-section {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
}

.sejarah-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sejarah-header .tag {
  background: #1e64c8;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.sejarah-header h2 {
  color: #0a3d91;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

.line {
  width: 80%;
  height: 3px;
  background: #f4b400;
  margin: 10px auto 30px;
}

.sejarah-content img {
  width: 100%;
  max-width: 1000px;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.sejarah-text {
  max-width: 900px;
  margin: 25px auto 0;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
  color: #333;
}

.sejarah-text b {
  color: #0a3d91;
}


#sejarah-lengkap {
  display: none;
}

.btn-sejarah {
  margin-top: 15px;
  background-color: #0a3d91;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.btn-sejarah:hover {
  background-color: #08306b;
}

/* ===== Visi & Misi ===== */
.visimisi-section {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.visimisi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.visimisi-header .tag {
  background: #1e64c8;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.visimisi-header h2 {
  margin: 0;
  color: #0a3d91;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.vm-underline {
  width: 80%;
  height: 3px;
  background: #f4b400;
  /* garis bawah kuning */
  margin: 10px auto 28px;
  border-radius: 2px;
}

/* grid dua kotak */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.vm-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.vm-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0a3d91;
  margin-bottom: 12px;
  font-size: 20px;
  position: relative;
}

.vm-title::after {
  content: "";
  display: block;
  height: 3px;
  /* garis kecil di bawah judul kotak */
  width: 60px;
  background: #59a0e7;
  /* pakai biru situsmu */
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.vm-text {
  margin-top: 10px;
  line-height: 1.8;
  color: #333;
  font-size: 17px;
}

.vm-list {
  margin-top: 14px;
  padding-left: 18px;
  line-height: 1.8;
}

/* --- Footer --- */
.main-footer {
  background-color: #59a0e7;
  color: white;
  padding: 40px 5% 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
}

.footer-kolom {
  flex: 1;
  min-width: 260px;
}

.footer-kolom h4 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.footer-kolom ul {
  list-style: none;
  padding: 0;
}

.footer-kolom ul li {
  margin-bottom: 8px;
}

.footer-kolom ul li a {
  color: #eee;
  transition: color 0.3s;
}

.footer-kolom ul li a:hover {
  color: #ff69b4;
}

.social-links a {
  margin-right: 15px;
  display: inline-block;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
}

/* --- Section Lokasi --- */

.lokasi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.lokasi-info p {
  font-size: 14px;
  margin-bottom: 6px;
}

.lokasi-map iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* === HAMBURGER BUTTON === */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  margin-left: auto; /* KUNCI: dorong ke kanan */
}

/* =====================================================
RESPONSIVE
   ===================================================== */

/* ---------- TABLET (<= 992px) ---------- */
@media (max-width: 992px) {
  /* NAVBAR */
  .navbar {
    padding: 10px 16px;
  }

  .nama-sekolah h1 {
    font-size: 1rem;
  }

  /* HERO */
  .hero {
    height: 45vh;
  }

  .hero-content h2 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* PROFIL */
  .profil-section {
    flex-direction: column;
    padding: 50px 40px;
    text-align: center;
  }

  .profil-image img {
    max-width: 90%;
  }

  /* SAMBUTAN */
  .sambutan-container {
    flex-direction: column;
  }

  .sambutan-foto img {
    width: 75%;
  }

  /* VISI MISI */
  .vm-grid {
    grid-template-columns: 1fr;
  }

  /* KEGIATAN */
  .kegiatan-section h2 {
    font-size: 2.5rem;
  }
}

/* ---------- MOBILE (<= 576px) ---------- */
@media (max-width: 576px) {
  /* NAVBAR */
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo {
    gap: 6px;
  }

  .logo img {
    height: 38px;
  }

  .nama-sekolah h1 {
    font-size: 0.85rem;
    max-width: 160px;
    line-height: 1.2;
  }

  .navbar nav {
    width: 100%;
    display: none;
  }

  .navbar nav.active {
    display: block;
  }

  .navbar nav ul {
    flex-direction: column;
    background: white;
    margin-top: 10px;
    border-top: 1px solid #eee;
  }

  .navbar nav ul li {
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .navbar nav ul li a {
    padding: 14px;
    display: block;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .menu-toggle i {
    transition: transform 0.3s ease;
  }

  .menu-toggle.active i {
    transform: rotate(90deg);
  }

  /* HERO */
  .hero {
    height: 38vh;
    padding: 20px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* PAGE BANNER */
  .page-banner h1 {
    font-size: 36px;
  }

  .page-banner p {
    font-size: 16px;
  }

  /* PROFIL */
  .profil-section {
    padding: 40px 20px;
  }

  .profil-text h2 {
    font-size: 2rem;
  }

  .profil-text p {
    font-size: 1rem;
  }

  /* GURU */
  .guru-container.bawah {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .guru-card {
    max-width: 220px; /* ⬅ lebih kecil dari desktop */ /* 🔥 ini kuncinya */
    width: 100%;
  }

  /* Tinggi foto diperkecil */
  .guru-img {
    height: 220px;
  }

  /* Nama guru */
  .guru-card h3 {
    font-size: 0.95rem;
  }

  /* Jabatan */
  .guru-card p {
    font-size: 0.85rem;
  }

  /* FASILITAS */
  .fasilitas-container {
    grid-template-columns: 1fr;
  }

  /* KEGIATAN */
  .kegiatan-container {
    grid-template-columns: 1fr;
  }

  .kegiatan-info h3 {
    font-size: 1.3rem;
  }

  /* LOKASI */
  .lokasi-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* FOOTER */
  .footer-grid {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  /* FLOATING WA */
  .floating-wa {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  /* SAMBUTAN */
  .sambutan-container {
    display: flex !important;
    flex-direction: column;
  }

  /* HILANGKAN WRAPPER TEKS (KUNCI UTAMA) */
  .sambutan-teks {
    display: contents;
  }

  /* JUDUL NAIK KE PALING ATAS */
  .sambutan-judul {
    order: -1;
    text-align: center;
    margin-top: 17px;
    margin-bottom: -15px;
  }

  /* FOTO DI TENGAH */
  .sambutan-foto {
    order: 0;
    text-align: center;
  }

  .sambutan-foto img {
    width: 85%;
    display: block;
    margin: 15px auto;
  }

  /* ISI PESAN DI BAWAH */
  .sambutan-isi {
    order: 1;
    padding: 20px;
    font-size: 16px;
    text-align: justify;
  }

}


