* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: url('./image/BG_DESA1.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  color: #000;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;


}

main {
  flex: 1;
}
/* Navbar */
.navbar {
  background-color: #3f5d45;
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 999;
  top:0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: slideDown 0.6s ease;
}
.container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.logo {
  font-weight: 600;
  font-size: 22px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #ffd700;
}

.burger {
    display: none; /* Sembunyikan burger di tampilan desktop */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}
.auth-buttons .btn {
  padding: 8px 15px;
  margin-left: 10px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}
.login {
  background-color: #ffffff;
  color: #4d6e4c;
}
.signup {
  background-color: #0044cc;
  color: white;
}
.login:hover {
  background-color: #f3f3f3;
}
.signup:hover {
  background-color: #0033a0;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./image/BG_DESA1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh; /* Tinggi 70% dari layar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero-content {
    max-width: 800px;
}
.hero-title {
    font-size: 52px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
}
.hero-text {
  background: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 10px;
  animation: fadeInUp 1.2s ease forwards;
}
.hero-text h1 {
  font-size: 40px;
  color: #222;
  font-weight: 700;
}
.hero-text h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

/* Struktur dasar untuk setiap seksi */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}
/* Seksi Jelajahi Desa */
.explore-section {
    background-color: #ffffff;
}

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

.explore-card {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.explore-icon {
    font-size: 40px;
    color: #3f5d45;
    margin-bottom: 15px;
}

.explore-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.explore-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* .video-section {
 background-color: #f4f6f9;
  padding: 40px 0;
  padding: 60px 20px 100px;
  text-align: center;
  min-height: 100px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-container h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #222;
  animation: fadeInUp 1s ease;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: white;
  animation: fadeInUp 1.5s ease;
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: cover;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  display: block;
}
 */

.video-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.video-section .section-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.video-section .section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px; /* Sudut melengkung */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Bayangan */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Style untuk Peta Gambar --- */

.peta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9; /* Ganti warna jika perlu */
}

.peta-wrapper {
    max-width: 900px; /* Atur lebar maksimal gambar peta */
    margin: 0 auto; /* Posisi di tengah */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Memastikan gambar mengikuti border radius */
}

.peta-wrapper img {
    width: 100%; /* Membuat gambar responsif */
    height: auto; /* Menjaga rasio aspek gambar */
    display: block; /* Menghilangkan spasi bawah yang tidak perlu */
}


.tokoh-section {
  background-color: transparent;
  padding: 60px 20px 100px;
  text-align: center;
  color: #222;
  flex: 1;
}

.tokoh-section h2 {
  font-size: 26px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

.tokoh-grid {
  display: flex;
    flex-direction: column; /* Baris akan tersusun ke bawah */
    align-items: center; /* Pusatkan semua baris secara horizontal */
    gap: 30px; /* Jarak antar baris */
    max-width: 1000px;
    margin: auto;
}
.tokoh-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; /* Ini kunci agar kartu berada di tengah baris */
    gap: 30px; /* Jarak antar kartu di dalam satu baris */
    width: 100%;
}

.tokoh-card {
  width: 180px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.09);
  text-align: center;
  animation: fadeInUp 1.5s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tokoh-card img {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

.tokoh-card p {
  font-weight: 600;
  font-size: 14px;
}

.footer-section {
  background-color: #3f5d45;
  color: white;
  padding: 40px 20px;
  font-size: 14px;
}

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

.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-contact p {
  margin-bottom: 30px;
  color: #e0e0e0;
}

.footer-social h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.social-icons a img {
  width: 24px;
  height: 24px;
}

.social-icons a:hover {
  opacity: 0.8;
}

.footer-section .copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #cccccc;
}

/* Hero Section Halaman Berita */
.hero-berita {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./image/suasana_desa.jpg'); /* Ganti dengan gambar yang sesuai */
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin-top: 60px; /* Jarak dari navbar */
}

.hero-berita h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-berita p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
/* Konten Utama Berita */
.berita-section-content {
    padding: 60px 20px;
    background-color: #f9fafb;
}

.berita-section {
  padding: 60px 20px 100px;
  text-align: center;
  color: #222;
}

.berita-section h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}
/* Container yang diisi oleh JavaScript */
.berita-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.berita-card {
  background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-card:hover {
  transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.berita-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  background-color: #e0e0e0;
}
.berita-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Membuat body kartu mengisi sisa ruang */
}
.berita-card-kategori {
    display: inline-block;
    background-color: #3f5d45;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.berita-card-snippet {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}
.berita-card p {
  font-weight: 600;
  font-size: 14px;
}

.btn-berita {
    display: inline-block;
    background-color: #ffffff;
    color: #3f5d45;
    border: 2px solid #3f5d45;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start; /* Tombol menempel di kiri bawah */
}
.btn-berita:hover {
    background-color: #3f5d45;
    color: #ffffff;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    color: #3f5d45;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: #3f5d45;
    color: white;
    border-color: #3f5d45;
}

.login-container {
  max-width: 350px;
  margin: 0 auto 200px;
  padding: 30px 30px 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
  margin-top: 200px;
 
}

.login-container h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #111;
}

/* Input Groups */
.input-group {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 30px;
  padding: 8px 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.input-group i {
  margin-right: 10px;
  font-size: 30px;
  color: #0f0c0c;
}

.input-group input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  background: transparent;
}

/* Hero Section untuk Sejarah */
.hero-sejarah {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./image/gunung.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-sejarah h1 {
  font-size: 50px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}
.hero-sejarah p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
}

/* Timeline Section */
.timeline-section {
    background-color: #f4f6f9;
    padding: 60px 20px;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Garis vertikal di tengah timeline */
    border-left: 3px solid #dcdcdc;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    left: -32px; /* Posisi ikon tepat di garis */
    top: 50%;
    transform: translateY(-50%);
    background-color: #3498db;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 4px solid #f4f6f9;
    z-index: 1;
}

.timeline-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.timeline-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #3f5d45;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.timeline-content img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Konten Sejarah */
.sejarah-section {
  background-color: white;
  padding: 80px 20px 100px;
}

.sejarah-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.sejarah-image img {
  width: 240px;
  border-radius: 12px;
}

.sejarah-text {
  flex: 1;
  max-width: 600px;
}

.sejarah-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.sejarah-text p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* Button */
.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #ffffff;
  color: #4d6e4c;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #f3f3f3;
}

.btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn.tambah-berita {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  font-weight: 600;
}

.btn.tambah-berita:hover {
  background-color: #218838;
}

.btn.edit-berita {
  background-color: #ffc107;
  color: black;
}

.btn.edit-berita:hover {
  background-color: #e0a800;
}

.btn.delete-berita {
  background-color: #dc3545;
}

.btn.delete-berita:hover {
  background-color: #c82333;
}

.btn.edit-tokoh {
  background-color: #ffc107;
  color: black;
  margin-top: 20px;
}

.btn.edit-tokoh:hover {
  background-color: #e0a800;
}

.btn.delete-tokoh {
  background-color: #dc3545;
}

.btn.delete-tokoh:hover {
  background-color: #c82333;
}
.admin-controls {
            text-align: right;
            margin-bottom: 25px;
        }

.berita-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.berita-card-actions {
            display: flex;
            gap: 10px;
            padding: 15px 20px;
            background-color: #f8f9fa;
            border-top: 1px solid #e9ecef;
        }

 .form-container {
      max-width: 600px;
      margin: 100px auto;
      background-color: rgba(255, 255, 255, 0.7);
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
  .form-container form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

 .upload-area {
      border: 2px dashed #888;
      border-radius: 16px;
      padding: 40px;
      text-align: center;
      color: #666;
      margin-bottom: 25px;
      cursor: pointer;
    }

    .upload-area i {
      font-size: 32px;
      margin-bottom: 10px;
    }

    textarea {
      width: 100%;
      border-radius: 16px;
      border: none;
      padding: 16px;
      resize: none;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      margin-bottom: 20px;
    }
 .submit-btn {
      display: block;
      width: 150px;
      margin: 0 auto;
      padding: 12px;
      background-color: #4d774e;
      color: white;
      font-weight: 600;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.3s ease;
    }

    .submit-btn:hover {
      background-color: #3e5f3f;
    }

.kontak-container {
  max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.kontak-detail p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 16px;
    color: #333;
}

.kontak-detail .fas {
    font-size: 20px;
    color: #3f5d45;
    margin-right: 20px;
    margin-top: 5px;
    width: 22px;
    text-align: center;
}

.kontak-detail span {
    line-height: 1.6;
}


.kontak-kiri {
    flex: 1 1 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.kontak-kiri h2 {
    font-size: 32px;
    color: #3f5d45;
    margin-bottom: 15px;
}
.kontak-kiri > p {
    color: #666;
    margin-bottom: 30px;
}
.kontak-detail p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    color: #333;
}

.kontak-kiri .fas {
  font-size: 24px;
  color: #3f5d45; /* Warna hijau tema */
  margin-right: 20px;
  width: 30px;
  text-align: center;
  margin-top: 5px;
}

.kontak-kanan {
  flex: 1 1 50%;
  min-height: 550px;
}

.kontak-kanan iframe {
  width: 100%;
    height: 100%;
    border: none;
    vertical-align: middle;
}
.kontak-page-section {
    padding: 60px 20px;
    background-color: #f4f6f9; /* Latar belakang abu-abu lembut */
    margin-top: 65px; /* Memberi jarak dari navbar yang fixed */
}

.hero-panti {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./image/panti_asuhan_final.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px; /* Padding lebih besar */
    text-align: center;
    color: white;
    margin-top: 60px; /* Jarak dari navbar */
    position: relative;
}

 .hero-panti h1 {
    font-size: 48px; /* Ukuran font lebih besar */
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    }
    .info-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Warna latar belakang lembut */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    }
    .info-container {
        padding: 60px 20px;
        background-color: #f4f6f9; /* Latar belakang abu-abu lembut */
    }

    .info-card {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Agar bisa turun ke bawah di layar kecil */
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

    .info-details {
      flex: 1 1 60%;
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .info-details h3 {
    font-size: 28px;
    color: #3f5d45; /* Warna biru tua */
    margin-bottom: 20px;
    font-weight: 600;
}
    .info-details p {
      font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    }

    .info-details strong {
    color: #34495e; /* Warna lebih gelap untuk judul kecil */
}
    .info-photo {
    flex: 1 1 40%; /* Ruang untuk foto */
    min-height: 450px;
    background-size: cover;
    background-position: center;
    }
    .info-photo img {
      width: 100%;
      max-width: 650px; /* Atur ukuran maksimal gambar */
      height: auto;      /* Biar proporsional */
      border-radius: 10px;
      display: none;
      margin: 0 auto;
    }
    /* Merapikan daftar jam buka */
.jam-buka-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.jam-buka-list {
    list-style: none;
    padding: 0;
    font-size: 15px;
    color: #555;
}

.jam-buka-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.jam-buka-list li:last-child {
    border-bottom: none;
}

.jam-buka-list span {
    font-weight: 600;
}
 iframe {
      width: 100%;
      height: 400px;
      border: 0;
      margin-top: 10px;
    }
    .map-desc-wrapper {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap-reverse; /* Agar peta di kanan pada desktop, dan di atas pada mobile */
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.map-container, .desc-section {
    flex: 1 1 400px; /* Ukuran fleksibel */
    max-width: 550px;
}

.map-container iframe {
  width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px; /* Sudut tumpul untuk peta */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.desc-section p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #333;
      //center;
}

.desc-section p strong {
    margin-right: 10px;
    font-weight: 600;
}
.desc-section {
  flex: 1 1 400px;
  padding: 20px;
  color: #333;
}
.desc-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: #3f5d45;
    margin-bottom: 25px;
}
.desc-section .fas {
    font-size: 18px;
    color: #3f5d45;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px; /* Memberi lebar tetap agar teks sejajar */
}

.header-with-logo {
    display: flex;
    flex-direction: row; /* Memaksa elemen untuk berbaris horizontal (sebelahan) */
    align-items: center;
    justify-content: center;
    gap: 25px; /* Jarak antara logo dan tulisan */
}

.org-logo {
    height: 150px; /* Ukuran logo diperbesar agar lebih jelas */
    width: auto;   /* Lebar diatur otomatis agar proporsi gambar benar dan tidak gepeng */
    /* Hapus properti border-radius dan object-fit agar logo tidak terpotong */
}
.organisasi-header {
    background: linear-gradient(rgba(63, 93, 69, 0.8), rgba(63, 93, 69, 0.8)), url('https://via.placeholder.com/1500x400.png?text=Foto+Bersama+Anggota') no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-top: 70px; /* Sesuaikan dengan tinggi navbar */
    
}

.organisasi-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 0px;
}

.organisasi-container {
    padding: 40px 20px;
}

.organisasi-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.org-section {
    margin-bottom: 40px;
}

.org-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #3f5d45;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.org-section h2 .fas {
    margin-right: 15px;
    font-size: 24px;
}

.org-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.org-section p, .org-section li {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.org-section ol, .org-section ul {
    padding-left: 25px;
}

.struktur-list {
    list-style: none;
    padding-left: 0;
}
.struktur-list li {
    margin-bottom: 8px;
}

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

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.galeri-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.cta-gabung {
    background-color: #f8f9fa;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.btn-sosial {
    display: inline-block;
    background-color: #3f5d45;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-sosial:hover {
    background-color: #314737;
}

/* ====================================================== */
/* ==   GAYA UNTUK FORM ADMIN (TAMBAH/EDIT BERITA)     == */
/* ====================================================== */

/* Latar belakang dan container utama halaman form */
.admin-form-page {
    background-color: #f4f6f9;
    padding: 40px 20px;
    margin-top: 65px; /* Jarak dari navbar fixed */
    min-height: calc(100vh - 135px); /* Agar footer tetap di bawah */
}

/* Kartu form putih di tengah */
.form-card {
    max-width: 750px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 35px 45px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-card h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

/* Grup untuk setiap elemen form (label + input) */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 180px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3f5d45;
    box-shadow: 0 0 0 3px rgba(63, 93, 69, 0.15);
}

/* Area Upload Gambar yang Dipercantik */
.upload-area {
    border: 2px dashed #dcdcdc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    color: #888;
}

.upload-area:hover {
    border-color: #3f5d45;
    background-color: #f9fafb;
}

.upload-area .fa-solid {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
    color: #3f5d45;
}

/* Pratinjau Gambar */
.image-preview-container {
    margin-top: 15px;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
}

/* Tombol Submit */
.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #3f5d45;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #314737;
    transform: translateY(-2px);
}


/* =============================================== */
/* ==   GAYA UNTUK HALAMAN KELOLA TOKOH ADMIN   == */
/* =============================================== */



/* Header Halaman (Judul dan Tombol Tambah) */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.admin-page-header h1 {
    font-size: 32px; /* Ukuran font judul lebih besar */
    color: #333;
    margin-bottom: 0;
}
.admin-page-body {
    background-color: #f9f9f9; /* Latar belakang lebih lembut */
}
.admin-container {
    max-width: 1200px; /* Lebar maksimum container */
    margin: 100px auto 40px auto; /* Margin atas bawah dan tengah horizontal */
    padding: 20px;
    background-color: #fff; /* Latar belakang putih untuk konten */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Efek bayangan halus */
}

/* Penataan ulang grid tokoh di halaman admin */
.admin-tokoh-grid .tokoh-row {
    display: flex;
    justify-content: center; /* Tengah horizontal untuk setiap baris */
    gap: 20px;
    margin-bottom: 30px; /* Spasi antar baris */
    width: 100%; /* Lebar penuh untuk baris */
}

/* Kartu Tokoh di Halaman Admin */

.admin-tokoh-card {
    width: 220px; /* Lebar kartu diperkecil */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.admin-tokoh-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.admin-tokoh-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
}

.admin-tokoh-card-info {
    padding: 15px;
    flex-grow: 1;
}

.admin-tokoh-card-info p {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}
.admin-tokoh-card-info span {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}
/* Gaya untuk tombol tambah */
.btn-admin {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-decoration: none !important;
    color: white !important;
}

.btn-primary {
    background-color: #5cb85c; /* Warna hijau yang umum untuk tombol positif */
}

.btn-primary:hover {
    background-color: #4cae4c;
}

/* Tombol di dalam Kartu */
.admin-tokoh-card-actions {
    display: flex;
    border-top: 1px solid #eee;
}

.admin-tokoh-card-actions .btn {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 0;
    margin: 0;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    color: white !important;
    transition: background-color 0.2s ease;
}

.btn-edit-tokoh { background-color: #007bff; }
.btn-edit-tokoh:hover { background-color: #0056b3; }

.btn-delete-tokoh { background-color: ##dc3545; }
.btn-delete-tokoh:hover { background-color: #c82333; }

/* ================================================= */
/* ==   PERCANTIK TAMPILAN INPUT TEXT DI FORM     == */
/* ================================================= */

.form-group input[type="text"] {
    width: 100%;
    padding: 15px; /* Membuat input lebih tebal */
    border: 1px solid #dcdcdc; /* Warna border lebih lembut */
    border-radius: 8px; /* Sudut lebih tumpul */
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Efek saat input di-klik/aktif */
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #3f5d45; /* Warna border berubah menjadi hijau tema */
    box-shadow: 0 0 0 4px rgba(63, 93, 69, 0.1); /* Memberi efek glow */
}

/* Mengubah warna placeholder */
.form-group input[type="text"]::placeholder {
    color: #aaa;
}



/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 800px) {
  .kontak-container {
    flex-direction: column;
    padding: 30px;
    margin-top: 100px;
  }
  .kontak-kiri h2 {
    text-align: center;
    font-size: 28px;
  }
}


/* Responsive untuk layar kecil */
@media (max-width: 768px) {
    .timeline-container {
        border-left: none;
    }
    .timeline-item {
        padding-left: 0;
    }
    .timeline-icon {
        position: static;
        transform: none;
        margin: 0 auto 20px; /* Ikon di tengah atas */
    }
}

/* Media Queries untuk Tampilan HP */
@media (max-width: 768px) {
  main {
        flex: none; /* atau flex-grow: 0; */
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .section-title {
        font-size: 28px;
    }
  .info-photo {
        min-height: 250px; /* Tinggi gambar lebih kecil di mobile */
    }
    .info-details {
        padding: 30px;
    }
    .map-desc-wrapper {
        padding: 40px 20px;
    }
  .kontak-page-section {
        padding-top: 20px;    /* Kurangi padding atas */
        padding-bottom: 30px; /* Kurangi padding bawah */
    }

    /* Sesuaikan tinggi peta untuk mobile */
    .peta iframe {
        height: 350px; /* Kurangi tinggi peta agar tidak terlalu makan tempat */
    }
  /* Mengatur ulang container kontak agar rapi di mobile */
    .kontak-container {
        flex-direction: column;
        margin-top: 0;
        padding: 15px;
    }
  .kontak-kiri p:last-of-type {
        margin-bottom: 0;
    }
  .kontak-kanan {
        min-height: auto;
    }

    /* Menyesuaikan tinggi peta */
    .kontak-kanan iframe {
        height: 350px;
    }
}
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh; /* Tinggi nav menu saat terbuka */
        top: 65px; /* Sesuaikan dengan tinggi navbar Anda */
        background-color: #3f5d45; /* Warna sama dengan navbar */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%; /* Lebar nav menu saat terbuka */
        transform: translateX(100%); /* Sembunyikan ke kanan */
        transition: transform 0.5s ease-in;
        padding-top: 20px;
        gap: 25px; /* Jarak antar menu */
    }
 .nav-links li {
        opacity: 0; /* Sembunyikan link menu sebelum animasi */
    }

    .auth-buttons {
        display: none; /* Sembunyikan tombol login di mobile agar tidak tumpang tindih */
    }

    .burger {
        display: block; /* Tampilkan burger di tampilan mobile */
    }
    
    /* Kelas ini ditambahkan oleh JavaScript saat burger di-klik */
    .nav-active {
        transform: translateX(0%); /* Tampilkan navigasi dari kanan */
    }

@keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    /* Animasi untuk ikon burger menjadi 'X' */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
/* @media (max-width: 900px) {
    .kontak-container {
        flex-direction: column; /* Konten ditumpuk ke bawah */
    }

    .kontak-kiri {
        padding: 40px 30px;
        width: 100%;
    }
    
    .kontak-kanan {
        width: 100%;
        height: 500px; /* Sesuaikan tinggi peta untuk mobile */
        min-height: 500px;
    }
} */
