/* Reset dan font dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #128C7E;
  line-height: 1.6;
  background-color: #F7F7F7;
  /* Menjadikan body sebagai flex container untuk sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #06744B;
  color: #3a2c1a;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky; /* Membuat header "lengket" */
  top: 0; /* Menempel di bagian paling atas */
  width: 100%;
  z-index: 999; /* Memastikan header di atas konten lain */
}

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

/* Mengganti h1 menjadi .logo-container untuk flexbox */
.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px; /* Atur tinggi logo */
  margin-right: 10px; /* Jarak antara logo dan teks */
}

.logo-container span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 300;
  transition: 0.3s;
  font-size: small;
}

nav ul li a:hover {
  color: #FFD47F;
}
nav ul li a.active {
  color: #FFD47F;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #F7F7F7;
  transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  color: #fff;
  text-align: center;
  /* Menyesuaikan padding dan menghapus background statis */
  padding: 0; 
  height: 70vh; /* Menyesuaikan tinggi slider */
  min-height: 450px;
  position: relative;
  overflow: hidden; /* Sembunyikan bagian slide yang keluar dari container */
  /* Menambahkan properti agar lebar slider sama dengan kontainer lain */
  width: 90%;
  max-width: 1100px;
  margin: 30px auto 0 auto; /* Memberi jarak atas dan membuatnya terpusat */
  border-radius: 10px; /* Menambahkan sudut melengkung agar serasi */
}

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

.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 {
  opacity: 1;
  z-index: 2;
}

/* Latar belakang untuk setiap slide */
.slide-1 {
  background-image: url('/images/slider-1.jpg');
}

.slide-2 {
  background-image: url('/images/slider-2.jpg');
}

.slide-3 {
  background-image: url('/images/slider-3.jpg');
}


.slide::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(58, 44, 26, 0.1); /* Overlay semi-transparan */
  z-index: 1; /* Pastikan overlay di bawah konten */
}

.hero-content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 10px;
  display: inline-block;
  z-index: 2; /* Pastikan konten di atas overlay */
}

.hero h2 {
  /* Mengembalikan warna h2 di hero section menjadi putih */
  color: #fffaf3;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #128C7E;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  border: none; /* Menghilangkan border */
  text-decoration: none;
  transition: 0.3s;
}

.btn-green {
  display: inline-block;
  margin-top: 15px;
  background-color: #42a745;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  border: none; /* Menghilangkan border */
  text-decoration: none;
  transition: 0.3s;
}

.btn-red {
  display: inline-block;
  margin-top: 15px;
  background-color: #e85e34;
  color: #fff;
  padding: 15px 25px;
  border-radius: 5px;
  border: none; /* Menghilangkan border */
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #29A399;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  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;
}

.dot.active {
  background-color: #fff;
}

/* Section umum */
section {
  padding: 60px 0;
}

.container {
  width: 90%;
  margin: auto;
  max-width: 1100px;
}

/* Menengahkan konten di dalam section donasi */
.donate .container {
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #128C7E;
}

/* Berita / Blog Section */
.berita {
  /* Mengurangi jarak atas dari section sebelumnya */
  padding-top: 40px;
}

.berita-list {
  display: grid;
  /* Aturan kolom akan diatur secara spesifik di bawah */
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #D1F297;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  /* Membuat card menjadi flex container agar tingginya sama */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  /* Memungkinkan konten untuk tumbuh dan mengisi ruang */
  flex-grow: 1;
}

.post-date {
  font-size: 0.8rem;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.card h3 {
  padding: 0; /* Reset padding */
  color: #128C7E;
  margin-bottom: 8px;
}

.card p {
  padding: 0; /* Reset padding */
  margin-bottom: 15px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #128C7E;
  text-decoration: none;
  transition: color 0.3s;
}

.more-news-container {
  text-align: center;
  margin-top: 40px;
}

/* Sambutan Rais Section */
.sambutan-rais {
  background-color: #fff; /* Memberi latar putih agar kontras */
  padding-bottom: 30px; /* Mengurangi padding bawah agar tidak terlalu jauh dengan section berikutnya */
}

/* Sambutan Ketua Section */
.sambutan-ketua {
  background-color: #a7f19d;
}

.sambutan-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.sambutan-img {
  flex-basis: 30%;
  max-width: 250px;
  margin: 0 auto;
}

.sambutan-img img {
  width: 100%;
  border-radius: 0%;
  border: 5px solid #a7f19d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sambutan-content {
  flex-basis: 70%;
}

.sambutan-content h3 {
  color: #128C7E;
  margin-bottom: 15px;
}

.sambutan-content p {
  margin-bottom: 15px;
  text-align: justify;
  color: #333;
}

.sambutan-content strong {
  display: block;
  font-style: normal;
  color: #128C7E;
}

.sambutan-content .signature {
  line-height: 0.8; /* Mengurangi jarak antar baris */
  margin-bottom: 0; /* Menghilangkan margin bawah */
}

/* Garis pemisah di dalam section sambutan */
.sambutan-ketua hr {
  border: none;
  border-top: 1px solid #32B285; /* Warna dan ketebalan sama seperti di footer */
  margin: 50px 0; /* Memberi jarak vertikal */
}

/* Mengurangi jarak atas section donasi */
.donate {
  padding-top: 0;
}

/* Form Donasi */
.donate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.donate-form input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #31B1A7;
  border-radius: 5px;
  background-color: #fffaf3;
}

.wa-btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #1DA851;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.wa-btn:hover {
  background-color: #128C7E;
}

.donate-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #31B1A7;
  border-radius: 5px;
  background-color: #fffaf3;
  font-family: "Poppins", sans-serif;
}

/* Article / Post Form */
.container-article-form-1 {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 28px;
}

.container-article-form-1 h1 {
  color: #128C7E;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.article-form-1 {
  display: grid;
  grid-template-columns: 1fr; /* single-column layout */
  gap: 18px;
  align-items: start;
}

.article-form-1 .main-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-form-1 .side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-form-1 .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-form-1 label {
  font-weight: 600;
  color: #2b6b5f;
  font-size: 0.95rem;
}

.article-form-1 input[type="text"],
.article-form-1 input[type="file"],
.article-form-1 textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6eae6;
  border-radius: 8px;
  background-color: #fbfff9;
  font-family: "Poppins", sans-serif;
  color: #1f423b;
}

.article-form-1 textarea {
  min-height: 240px;
  resize: vertical;
}

.article-form-1 .image-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed #cfeee7;
  padding: 6px;
  background: #fcfffe;
  max-height: 400px; /* allow taller preview in single-column */
}

.article-form-1 .image-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-form-1 .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-form-1 .btn {
  background-color: #128C7E;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  width: 100%; /* full width in single-column layout */
}

.article-form-1 .btn:hover { background-color: #0f6f5e; }

@media (max-width: 880px) {
  .article-form-1 { grid-template-columns: 1fr; }
  .container-article-form-1 { padding: 18px; }
}

/* QRIS Section */
.qris-container {
  margin-top: 40px;
}

.qris-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Jarak antara gambar dan tombol */
  margin-top: 15px;
}

.qris-image {
  max-width: 250px; /* Perkecil ukuran gambar */
  width: 100%;
  height: auto;
  /* margin tidak lagi diperlukan di sini */
}

.download-btn {
  background-color: #555; /* Warna berbeda untuk tombol download */
  margin-top: 0; /* Hapus margin atas karena sudah diatur oleh gap */
}

/* Footer */
footer {
  background-color: #06744B;
  color: #fff;
  padding: 40px 10px 20px 10px;
  font-size: 0.9em;
  font-weight: 300;
  /* Mendorong footer ke bawah */
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  text-align: left;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid #32B285;
  padding-bottom: -5px;
  display: inline-block;
}

.footer-col p, .footer-col li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.footer-col ul {
  list-style: none;
}

.footer-col .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* Menghapus dekorasi default dari link di dalam list */
  text-decoration: none; 
}

.footer-col .footer-link img {
  height: 24px;
  width: 24px; /* Menetapkan lebar yang sama untuk semua ikon */
  object-fit: contain; /* Memastikan ikon tidak terdistorsi */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #32B285;
  font-size: 0.85em;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
}

/* Promo Popup */
.promo-popup {
    /* Posisi diatur oleh container */
    position: absolute;
    bottom: 0;
    right: 0;
    background: #203D43;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 320px;
    width: calc(100vw - 40px); /* Lebar popup di mobile */
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.promo-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.promo-popup p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

#closePromo {
    background: #DC4E4E;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closePromo:hover {
    background: #c74242; /* A slightly darker shade of primary */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-link {
    color: #F8C674;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.popup-link:hover {
    color: white;
    text-decoration: underline;
}

/* Sembunyikan tombol ke atas saat popup promo muncul */
.promo-popup.show + #toTopBtn.show {
    opacity: 0;
    pointer-events: none;
}

.promo-popup p {
    font-size: 14px;
    text-align: center;
}

/* Wadah untuk elemen fixed */
.fixed-elements-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Profil Organisasi Section (Visi, Proker, Struktur) */
.profil-organisasi {
  padding: 50px 0;
  background-color: #F7F7F7; /* Warna latar yang sama dengan body */
}

.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.profil-item {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profil-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.profil-item img {
  height: 60px;
  margin-bottom: 15px;
}

.profil-item h3 {
  color: #128C7E;
  margin-bottom: 10px;
}

.profil-item p {
  font-size: 0.9rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start; /* Align items to the start for mobile */
  }

  .logo-container {
    width: 100%;
  }

  .hamburger {
    display: block; /* Show hamburger on mobile */
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: fixed;
    right: -100%; /* Mulai dari luar layar sebelah kanan */
    top: 70px; /* Sesuaikan dengan tinggi header yang baru */
    gap: 0;
    flex-direction: column;
    background-color: #06744B; /* Samakan dengan warna header */
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 100; /* Menempatkan navigasi di lapisan paling atas */
  }

/* Penyesuaian untuk related-posts di mobile */
  .related-posts .berita-list {
    grid-template-columns: 1fr; /* Paksa menjadi 1 kolom */
  }

  /* Memastikan semua daftar berita di mobile menjadi 1 kolom */
  .berita-list {
    grid-template-columns: 1fr;
  }

  /* Penyesuaian untuk .related-posts di mobile: Hanya judul */
  .related-posts .card img,
  .related-posts .card .post-date {
    display: none; /* Sembunyikan gambar dan tanggal */
  }

  .related-posts .card {
    background-color: #f0f0f0; /* Warna latar sedikit beda */
    box-shadow: none; /* Hilangkan bayangan */
    border-radius: 5px;
  }

  .related-posts .card .card-content {
    padding: 12px 15px; /* Sesuaikan padding untuk judul */
  }

  nav.active {
    right: 0; /* Geser masuk dari kanan */
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin: 16px 0;
  }

  .hero {
    height: 45vh; /* Sesuaikan tinggi untuk mobile */
    min-height: 280px;
    /* Membuat slider full-width dan menempel ke header di mobile */
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .agenda-item {
    flex-direction: column; /* Tumpuk vertikal di mobile */
  }

  .agenda-image {
    height: 250px; /* Tinggi gambar tetap di mobile */
  }

  .agenda-content {
    padding: 20px;
  }

  .sambutan-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-top {
  text-align: left; /* Mengubah perataan teks menjadi kiri di mobile */
    flex-direction: column;
  }

  .footer-bottom {
    text-align: center; /* Mengubah perataan teks menjadi tengah di mobile */
  }

  .sambutan-content p {
    text-align: center;
  }
}

/* Agenda Terdekat Section */
.agenda-terdekat {
  background-color: #ced4cd; 
}

.agenda-item {
  display: flex;
  gap: 0; /* Hilangkan gap agar gambar dan konten menyatu */
  align-items: center;
  margin-top: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.agenda-image {
  flex: 1; /* Mengambil 1 bagian dari flex container */
  height: 350px;
}

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

.agenda-content {
  flex: 1.2; /* Sedikit lebih besar dari gambar */
  padding: 40px;
}

.agenda-terdekat h2 {
  margin-top: -20px;
  padding-bottom: 10px;
}

/* Tombol Scroll to Top */
.to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #32B285; /* Warna sama dengan footer */
  color: #fff; /* Warna panah */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1000;
}

.to-top-btn.active {
  opacity: 1;
  visibility: visible;
}

/* Single Post Page */
.single-post-container {
  /* Mengembalikan background putih agar konten mudah dibaca */
  padding: 10px 0;
  background-color: #fff;
  margin-top: 0px; /* Memberi jarak dari header */
}

.single-post-container .container {
  max-width: 800px; /* Lebar konten artikel lebih sempit agar nyaman dibaca */
}

.post-header {
  text-align: center;
  /* Membuat hanya bagian header post yang transparan */
  background-color: transparent;
  margin-bottom: 30px;

  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  
}

.post-header h1 {
  font-size: 2.2rem;
  color: #128C7E;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 0.9rem;
  color: #777;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.post-body {
color: #333;
}
.post-body p {
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  
  text-align: justify;
}

.post-body strong {
  color: #128C7E;
}

.back-to-blog-container {
  margin-top: 40px;
  margin-bottom: 40px;
}

.back-to-blog {
  text-decoration: none;
  color: #128C7E;
  font-weight: 600;
}

/* Penyesuaian untuk Halaman Single Post */
.single-post-page header {
  position: static; /* Menghilangkan efek sticky pada header utama */
}

/* Related Posts Section */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.related-posts h2 {
  text-align: left; /* Judul rata kiri */
  font-size: 1.8rem;
}

/* Mengatur kolom untuk daftar berita di halaman utama dan arsip */
.berita .berita-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.related-posts .berita-list {
  /* Paksa menjadi 3 kolom di desktop */
  grid-template-columns: repeat(3, 1fr);
}

.card-link {
  text-decoration: none;
  color: inherit;
}

/* Halaman Statis (Visi-Misi, dll) */
.static-page-container {
  padding: 40px 0;
  background-color: #fff;
  min-height: 60vh;
}

.static-page-container h3 {
  color: #128C7E;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.static-page-container p, .static-page-container li {
  color: #333;
  text-align: justify;
}

.static-page-container ol {
  padding-left: 25px;
  list-style-position: outside;
}

.static-page-container ol li {
  margin-bottom: 10px;
}

.pengurus-list p {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin-bottom: 8px;
}

.pengurus-list span {
  font-weight: 600;
  color: #555;
}

.penetapan-container {
  margin-top: 50px;
}

.penetapan-container p {
  text-align: left;
  margin-bottom: 5px;
}

.tanggal-penetapan {
  display: flex;
}

.tanggal-penetapan span {
  margin-right: 5px;
  white-space: nowrap;
  color: #333; /* Menyamakan warna dengan teks lainnya */
}

/* === GAYA UNTUK HALAMAN SPESIFIK === */

/* Halaman Kontak */
.contact-page-container {
  text-align: center;
}

.contact-page-container h2 {
  margin-top: 0px;
}

.contact-page-container p {
  text-align: center; /* Menimpa text-align: justify dari .static-page-container p */
}

/* Halaman Arsip Berita (blogpost.html) */
.blog-archive-header {
  margin-top: 0px;
}

/* Halaman Single Post */
.center-text-container {
  text-align: center;
}

/* Halaman Program Kerja */
.program-kerja-container h2 {
  margin-top: 0px;
  text-align: center;
}
/* Menambahkan .program-kerja-container untuk meningkatkan spesifisitas */
.program-kerja-container .program-kerja-subtitle {
  text-align: center;
  font-weight: bold;
}
.program-kerja-intro {
  margin-top: 20px;
}
.program-kerja-sublist {
  margin-left: 20px;
}

/* Halaman Struktur Organisasi */
.struktur-organisasi-container h2,
.struktur-organisasi-container .struktur-subtitle {
  text-align: center;
}

.struktur-organisasi-container h2 {
  margin-top: 0px;
}

.struktur-subtitle {
  font-weight: bold;
}

/* Link Google Maps di Footer */
.footer-gmaps-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex; /* Membuat container menjadi flexbox */
  align-items: center;  /* Menyejajarkan ikon dan teks secara vertikal */
  gap: 10px;            /* Memberi jarak antara ikon dan teks */
}

.footer-gmaps-link img {
  height: 24px; /* Menyamakan tinggi ikon dengan ikon sosial media */
  margin-left: -5px;
}

/* === HALAMAN GALERI === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery-item {
  background: #D1F297; /* Warna senada dengan card berita */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-caption {
  padding: 15px;
  text-align: center;
  color: #333;
  font-size: 0.9rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  cursor: pointer; /* Menambahkan kursor pointer saat diarahkan ke gambar */
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05); /* Efek zoom kecil saat hover */
}

/* === LIGHTBOX (MODAL) === */
.lightbox {
  display: none; /* Sembunyikan secara default */
  position: fixed; /* Tetap di posisi yang sama */
  z-index: 1001; /* Tampil di atas segalanya */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Izinkan scroll jika konten lebih besar dari layar */
  background-color: rgba(0, 0, 0, 0.9); /* Latar belakang gelap */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  /* Menambahkan padding atas untuk menurunkan posisi gambar */
  padding-top: 60px;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-caption-text {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90vw; /* Batas lebar maksimal 90% dari lebar viewport */
  max-height: 80vh; /* Batas tinggi maksimal 80% dari tinggi viewport */
  animation: zoom 0.6s;
}

.admin-panel {
  margin: 0 auto 30px auto;
  width: 300px;
  max-width: 100%;
  text-align: center;
}

.flash {
  margin: 50px auto 30px auto;
  padding: 20px;
  width: 500px;
  max-width: 100%;
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: #128C7E;
  border-radius: 8px;
}


/* Form Donasi */
.article-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.article-form input {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border: 1px solid #31B1A7;
  border-radius: 5px;
  background-color: #fffaf3;
}
.article-form textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border: 1px solid #31B1A7;
  border-radius: 5px;
  background-color: #be9459;
  font-family: "Poppins", sans-serif;
}
.trumbowyg-editor {
  color: black;

}

.container-article-form {
  width: 90%;
  margin: auto;
  max-width: 800px;
}

.single-post-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}