* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding-top: 120px;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  color: #002b5c; /* biru tua branding */
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6rem;
  letter-spacing: 0.2px;
}

/* Ukuran heading responsif (opsional, rapi di mobile & desktop) */
h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }


.nav-links a.active {
  color: #0056b3; /* biru lebih gelap */
  font-weight: bold;
  border-bottom: 2px solid #0056b3;
}


/*.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}*/

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px 0;
}

/*header {
  background: #2c3e50;
  color: white;
  padding: 10px 0;
}

.logo {
  font-size: 24px;
}*/

/* --- Header Styling --- */
/* --- Header Styling --- */
/*header {*/
/*  background: white;*/
/*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
/*  position: sticky;*/
/*  top: 0;*/
/*  z-index: 1000;*/
/*}*/

/* ==== HEADER ==== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 999;

  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* supaya konten tidak ketutup header */


/* hanya sembunyikan header di layar kecil */
@media (max-width: 768px) {
  header.hidden {
    transform: translateY(-100%);
    opacity: 0;
  }
}


/* Header Container */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Logo dengan animasi */
.logo-kanan img {
  max-height: 60px;
  width: auto;
  display: block;
  opacity: 0;
  transform: scale(0.9);
  animation: zoomInLogo 0.8s ease forwards;
}

/* Nama Yayasan dengan animasi */
.nama {
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 10px;
  color: #333;
  opacity: 0;
  transform: translateY(-5px);
  animation: fadeInNama 0.8s ease forwards;
  animation-delay: 0.3s;
  transition: color 0.3s ease;
}

.nama:hover {
  color: #007bff;
}

/* Animasi Logo */
@keyframes zoomInLogo {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animasi Nama */
@keyframes fadeInNama {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-kanan img {
    max-height: 50px;
  }

  .nama {
    margin-left: 0;
    margin-top: 5px;
    font-size: 1.2rem;
  }
}



/* Menu Utama */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0097b2;
}

/* Tombol Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* --- Responsif untuk HP --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-kanan {
    align-self: center;
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }
}


/*.hero {
  background: url('img/hero-bg.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero .btn {
  background: #e67e22;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
}*/

/* --- Hero Slider --- */


.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}


.hero .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;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero .slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .slide .container {
  position: relative;
  z-index: 1;
}

.hero .slide.active {
  opacity: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
  color: #e6f8fc;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

/* Tombol Next & Prev */
.hero .prev,
.hero .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s ease;
}

.hero .prev:hover,
.hero .next:hover {
  background: rgba(0,0,0,0.8);
}

.hero .prev {
  left: 20px;
}

.hero .next {
  right: 20px;
}

/* Dot indikator */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

.btn {
  background: #007bff;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animasi teks */
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.section {
  padding: 60px 0;
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: #e6f8fc;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.feature-card:hover {
  background: #0097b2;
  color: white;
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2.5rem;
  color: #0097b2;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

.feature-card:hover i {
  color: white;
}

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.visi-misi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.visi-card {
  background: rgba(0, 151, 178, 0.1); /* biru transparan */
  border: 1px solid rgba(0, 151, 178, 0.3);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.visi-card:hover {
  background: #0097b2;
  color: white;
  transform: translateY(-5px);
}

.visi-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #0097b2;
  transition: color 0.3s ease;
}

.visi-card:hover h3 {
  color: white;
}

.visi-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.grid-3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.gallery-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 320px; /* bikin semua card sama tinggi */
}

.gallery-card img {
  width: 100%;
  height: 200px; /* seragamkan tinggi gambar */
  object-fit: cover; /* crop otomatis supaya rapi */
  display: block;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.gallery-card p {
  margin: 12px 0;
  font-weight: 500;
  color: #002b5c;
}


.card {
  background: rgba(0, 151, 178, 0.1); /* biru transparan */
  padding: 20px;
  border: 1px solid rgba(0, 151, 178, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card h4 {
  color: #0097b2; /* biru judul */
  margin-bottom: 10px;
}

.card p {
  color: #333;
  line-height: 1.6;
}

.card:hover {
  background: rgba(0, 151, 178, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/*galeri*/

/* Grid untuk folder */

/* Thumbnail Folder */
/* Folder Grid Tetap */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.folder {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.folder img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.folder:hover { transform: scale(1.05); }

/* Overlay Grid Foto (Layer 2) */
/* Overlay Grid Foto (Layer 2) */
.photo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 998;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* agar bisa scroll jika konten panjang */
  padding: 20px;
}

.photo-container {
  max-width: 900px;
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
  max-height: 90vh; /* batasi tinggi supaya tidak melebihi layar */
  overflow-y: auto; /* scroll dalam container jika isinya banyak */
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .photo-container {
    padding: 15px;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.photo-grid img:hover { transform: scale(1.05); }

.back {
  display: inline-block;
  margin-bottom: 10px;
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
}
.back:hover { text-decoration: underline; }

/* Modal Foto Besar (Layer 3) */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.modal.show img {
  opacity: 1;
  transform: scale(1);
}

/*.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transform: translateY(-50%);
}
.prev { left: 20px; }
.next { right: 20px; }
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}*/

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Tambahan untuk animasi keluar */
.photo-overlay.hide {
  animation: fadeOut 0.3s ease forwards;
}

.modal.hide {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}


/*.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 10;
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

.nav-btn:hover {
  background: rgba(0,0,0,0.8);
}
*/

/*fullscreen*/

.fullscreen-view {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}

.fullscreen-view img.fullscreen-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.fullscreen-view .close-fullscreen {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.fullscreen-view .prev-btn,
.fullscreen-view .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.fullscreen-view .prev-btn:hover,
.fullscreen-view .next-btn:hover {
  background: rgba(255,255,255,0.6);
}

.fullscreen-view .prev-btn { left: 20px; }
.fullscreen-view .next-btn { right: 20px; }


/* --- Kontak Section --- */
.kontak-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.kontak-info {
  flex: 1 1 45%;
}

.kontak-map {
  flex: 1 1 45%;
}

.kontak-map iframe {
  width: 100%;
  min-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Kontak Info --- */
.kontak-info p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 1rem;
}

.kontak-info i {
  color: #007bff;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Link Google Maps */
.kontak-info a {
  color: #007bff;
  text-decoration: none;
}

.kontak-info a:hover {
  text-decoration: underline;
}



/* Media Sosial Modern */
.kontak-sosmed {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.kontak-sosmed i {
  color: white;
}

.kontak-sosmed a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* << ini bikin lingkaran kelihatan */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#kontak {
  padding-top: 50px;
  padding-bottom: 100px; /* ✅ Tambahan agar lebih lapang */
  min-height: 50vh; /* ✅ Minimal setengah layar supaya bisa kena highlight */
}

/* Warna sesuai brand */
.kontak-sosmed a.fb { background-color: #1877f2; }   /* Facebook */
.kontak-sosmed a.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); } /* Instagram */
.kontak-sosmed a.wa { background-color: #25D366; }   /* WhatsApp */
.kontak-sosmed a.yt { background-color: #FF0000; }   /* YouTube */
.kontak-sosmed a.tiktok { background: #000; color: white; }

/* Hover efek */
.kontak-sosmed a:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}



.section-bawah {
  background: rgba(0, 123, 255, 0.2); /* biru terang transparan */
  text-align: center;
  padding: 50px 0;
  font-weight: bold;
  font-size: 1.2rem;
}


/*.bg-light {*/
/*  background: #e6f8fc ;*/

  /*linear-gradient(
    135deg,
    rgba(0, 88, 122, 0.25),
    rgba(0, 88, 122, 0.08)
  )*/;
}
  



/*.bg-light {
  background: #f4f4f4;
}*/
/*
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
*/
img {
  width: 100%;
  border-radius: 5px;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}