body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background: rgba(248, 200, 220, 0.95);
  padding: 25px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Saat di-scroll */
header.scrolled {
  padding: 10px 0;
  background: #f06292;
}

/* Logo */
.logo {
  font-size: 24px;
  transition: all 0.3s ease;
}

header.scrolled .logo {
  font-size: 18px;
}

/* Link navbar */
nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
}

header.scrolled nav a {
  font-size: 14px;
  color: white;
}


.navbar {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.hero {
  background: linear-gradient(to right, #f8c8dc, #fce4ec);
  padding: 60px 20px;
  text-align: center;
}

.content {
  width: 90%;
  margin: 40px auto;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.profile-img {
  width: 200px;
  border-radius: 50%;
}

footer {
  background: #fce4ec;
  text-align: center;
  padding: 12px 10px;   /* lebih tipis */
  margin-top: 30px;
  font-size: 14px;      /* lebih kecil */
  color: #555;
  border-top: 1px solid #f8c8dc;  /* garis halus */
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

button {
  background: #f06292;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* NAVBAR */
header {
  background: rgba(248, 200, 220, 0.95);
  padding: 25px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  background: #f06292;
}

.navbar {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  transition: 0.3s;
}

header.scrolled .logo {
  font-size: 18px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
  position: relative;
}

nav a:hover {
  color: #f06292;
}

/* Active menu */
nav a.active {
  color: #f06292;
}

nav a.active::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #f06292;
  position: absolute;
  bottom: -5px;
  left: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #f8c8dc;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.empty-data {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Pastikan card tidak punya height tetap */
.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.no-image {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  border-radius: 10px;
}

.tanggal {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.card {
  transition: 0.3s;
}

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

.btn-detail {
  margin-top: 10px;
  padding: 8px 15px;
  background: #f06292;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-detail:hover {
  background: #e91e63;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: white;
  margin: 8% auto;
  padding: 25px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.btn-wa {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn-wa:hover {
  background: #1ebe5d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  width: 90%;
  max-width: 700px;
  border-radius: 15px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  position: relative;
}

/* Gambar di modal */
.modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Isi modal */
.modal-body {
  padding: 25px;
}

.modal-body h2 {
  margin-bottom: 10px;
}

.modal-text {
  margin-top: 15px;
  line-height: 1.6;
  color: #444;
}

/* Close button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===============================
   MODAL LAYOUT KIRI-KANAN
================================= */

.modal-content {
  max-width: 900px;
}

.modal-flex {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* Gambar kiri */
.modal-image {
  flex: 1;
  min-width: 300px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Teks kanan */
.modal-body {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.modal-body h2 {
  margin-top: 0;
}

.modal-text {
  margin-top: 15px;
  line-height: 1.6;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .modal-flex {
    flex-direction: column;
  }

  .modal-image img {
    height: 250px;
  }
}

/* ===============================
   SCROLL KHUSUS BAGIAN TEXT MODAL
================================= */

/* Batasi tinggi modal */
.modal-content {
  height: 85vh;              /* tinggi maksimal modal */
}

/* Layout kiri-kanan */
.modal-flex {
  height: 100%;
  display: flex;
}

/* Gambar kiri tetap penuh */
.modal-image {
  flex: 1;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bagian teks bisa scroll */
.modal-body {
  flex: 1;
  padding: 30px;
  overflow-y: auto;          /* ini yang bikin scroll */
}

/* Scrollbar lebih halus */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #f06292;
  border-radius: 10px;
}

/* =================================
   DESKTOP: TEXT SAJA YANG SCROLL
================================= */
.modal-content {
  height: 85vh;
}

.modal-flex {
  height: 100%;
  display: flex;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
}

/* =================================
   MOBILE: SEMUA MODAL YANG SCROLL
================================= */
@media (max-width: 768px) {

  .modal-content {
    height: auto;          /* hilangkan tinggi tetap */
    max-height: 90vh;      /* tetap batasi layar */
  }

  .modal-flex {
    flex-direction: column;
    height: auto;
  }

  .modal-body {
    overflow-y: visible;   /* matikan scroll khusus text */
  }

  .modal {
    overflow-y: auto;      /* scroll seluruh modal */
  }

}

/* ======================================
   MOBILE FIX SCROLL TOTAL
====================================== */

@media (max-width: 768px) {

  /* Modal boleh scroll */
  .modal {
    overflow-y: auto !important;
    align-items: flex-start !important;
  }

  /* Hapus batas tinggi */
  .modal-content {
    max-height: none !important;
    height: auto !important;
  }

  /* Layout jadi column */
  .modal-flex {
    flex-direction: column !important;
    height: auto !important;
  }

  /* Jangan batasi scroll di body */
  .modal-body {
    overflow: visible !important;
  }

}

/* ===============================
   PROFIL SECTION
================================= */

.profil-section {
  padding: 50px 0;
}

.profil-container {
  width: 90%;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

/* ===============================
   GALERI
================================= */

.profil-gallery {
  flex: 1;
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===============================
   CONTENT
================================= */

.profil-content {
  flex: 1;
}

.profil-content h2 {
  margin-top: 0;
  color: #f06292;
}

.profil-content ul {
  padding-left: 20px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {

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

  .profil-gallery {
    width: 100%;
    height: 250px;
  }

}

/* ===============================
   PROFIL SECTION
================================= */

.profil-section {
  padding: 60px 0;
  background: #fff5f8;
}

.profil-container {
  width: 90%;
  margin: auto;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* ===============================
   SLIDESHOW
================================= */

.profil-gallery {
  flex: 1;
  height: 450px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===============================
   RIGHT SIDE
================================= */

.profil-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profil-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.profil-card h2 {
  margin-top: 0;
  color: #f06292;
}

/* ===============================
   CARD KETUA
================================= */

.ketua-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ketua-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f06292;
}

.ketua-info h3 {
  margin: 5px 0;
  color: #333;
}

.ketua-info p {
  margin: 0;
  color: #777;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {

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

  .profil-gallery {
    height: 250px;
  }

  .ketua-card {
    flex-direction: column;
    text-align: center;
  }

}

/* ================= KONTAK ================= */

.kontak-section {
  width: 90%;
  margin: 40px auto;
}

.kontak-title {
  font-size: 28px;
  margin-bottom: 5px;
}

.kontak-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.kontak-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* LEFT */
.kontak-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 15px;
}

.kontak-map {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-wa {
  display: inline-block;
  margin: 15px 0;
  padding: 10px 18px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

/* RIGHT */
.kontak-right {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kontak-right h2 {
  margin-bottom: 25px;
}

/* FORM */
.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: white;
  padding: 0 6px;
  color: #777;
  transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -9px;
  font-size: 12px;
  color: #f06292;
}

.kontak-form button {
  width: 100%;
  padding: 12px;
  background: #f06292;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .kontak-wrapper {
    grid-template-columns: 1fr;
  }
}

/* CARD INFO UTAMA */
.kontak-info-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 2px solid #f06292;
  padding-bottom: 8px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.info-item span {
  font-size: 22px;
}

.info-item strong {
  display: block;
  margin-bottom: 3px;
}

.info-item p {
  margin: 0;
  color: #555;
}

/* ================= POPUP MODERN ================= */

.popup-overlay {
  display: none;
  position: fixed;
  z-index: 5000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: white;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  text-align: center;
  animation: popupFade 0.3s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.popup-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.popup-box h3 {
  margin-bottom: 10px;
}

.popup-box p {
  color: #555;
  margin-bottom: 20px;
}

.popup-box button {
  padding: 10px 20px;
  border: none;
  background: #f06292;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.popup-box button:hover {
  background: #e91e63;
}

@keyframes popupFade {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.kontak-map {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.kontak-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ================= LOGO HEADER ================= */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: 0.3s;
}

.logo-text {
  font-size: 22px;
  margin: 0;
  transition: 0.3s;
}

/* Saat scroll mengecil */
header.scrolled .logo-img {
  width: 35px;
  height: 35px;
}

header.scrolled .logo-text {
  font-size: 18px;
}

.program-pkk {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 30px;
  line-height: 1.7;
}

.program-pkk h2 {
  margin-bottom: 15px;
  border-bottom: 2px solid #f06292;
  padding-bottom: 8px;
}

.program-list {
  margin: 15px 0;
  padding-left: 20px;
}

.program-list li {
  margin-bottom: 8px;
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(to right, #f8c8dc, #fce4ec);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  color: #555;
}

/* ================= HOME SECTION ================= */
.home-section {
  width: 90%;
  margin: 60px auto;
}

.home-section h2 {
  margin-bottom: 20px;
  border-bottom: 2px solid #f06292;
  padding-bottom: 8px;
}

.home-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.7;
}

/* ================= PROGRAM GRID ================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.program-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.3s;
}

.program-card:hover {
  background: #fce4ec;
  transform: translateY(-5px);
}

/* ================= HOME BUTTON ================= */
.home-more {
  text-align: center;
  margin-top: 20px;
}

/* ================= WRAPPER 2 KOLOM ================= */
.home-wrapper {
  width: 90%;
  margin: 20px auto;
  display: flex;
  gap: 40px;
}

.home-left {
  flex: 2;
}

.home-right {
  flex: 1;
}

/* ================= SIDEBAR ================= */
.sidebar-section {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.sidebar-section h3 {
  margin-bottom: 15px;
  border-bottom: 2px solid #f06292;
  padding-bottom: 5px;
}

.sidebar-card {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.sidebar-card img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-card h4 {
  margin: 0;
  font-size: 14px;
}

.sidebar-card small {
  color: #777;
}

.sidebar-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #f06292;
  text-decoration: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .home-wrapper {
    flex-direction: column;
  }
}
