/* =======================
   Reset dan Gaya Dasar
   ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, Roboto, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

/* =======================
   Variabel Warna
   ======================= */
:root {
  --daleman-green: #4f7530;
  --daleman-dark-brown: #492f20;
  --daleman-medium-brown: #52402a;
  --daleman-dark-green: #2c3c1f;
  --daleman-content-bg: rgba(217, 217, 217, 0.5);
}

/* =======================
   Struktur Umum
   ======================= */
.container {
  min-height: 100vh;
  background-color: #ffffff;
}

/* =======================
   Header & Navigasi
   ======================= */
.header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 50;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link,
.nav-link-mobile {
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link {
  font-size: 1.25rem;
}

.nav-link:hover,
.nav-link-mobile:hover {
  color: var(--daleman-green);
}

.nav-link.active,
.nav-link-mobile.active {
  color: var(--daleman-green);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #000000;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--daleman-green);
}

.menu-icon,
.close-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 1rem 0.75rem;
}

.nav-link-mobile {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1.125rem;
}

/* =======================
   Hero Section
   ======================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 1rem; /* padding-top agar tidak tertutup header */
}

.hero-tujuan {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem; /* padding-top agar tidak tertutup header */
}


.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 64rem;
  line-height: 1.2;
}

/* =======================
   Content Card
   ======================= */
.content-card {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.card-layout {
  background-color: var(--daleman-content-bg);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-section {
  display: flex;
  justify-content: center;
}

.village-logo {
  width: 12rem;
  height: auto;
  object-fit: contain;
}

.text-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.website-label,
.village-name,
.administrative-info,
.location {
  font-weight: 700;
  color: #000000;
}

.website-label {
  font-size: 1.125rem;
}

.village-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.administrative-info {
  font-size: 1.25rem;
  color: var(--daleman-medium-brown);
  line-height: 1.3;
}

.location {
  font-size: 1rem;
  color: var(--daleman-dark-green);
}

.button-section {
  padding-top: 1rem;
}

.about-btn {
  background-color: var(--daleman-dark-brown);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.about-btn:hover {
  background-color: rgba(73, 47, 32, 0.9);
  transform: scale(1.05);
}

/* =======================
   Utilitas
   ======================= */
.hidden {
  display: none;
}

/* =======================
   Responsive Design
   ======================= */
@media (min-width: 768px) {
  .header-content {
    height: 5rem;
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-desktop {
    display: flex;
    gap: 3rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    position: relative;
    min-height: calc(100vh - 4rem);
    overflow: hidden;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
  }

  .card-layout {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
  }

  .village-logo {
    width: 16rem;
  }

  .text-content {
    text-align: left;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-content {
    padding: 0 2rem;
  }

  .nav-desktop {
    gap: 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .card-layout {
    padding: 3rem;
  }

  .village-logo {
    width: 18rem;
  }

  .website-label {
    font-size: 1.5rem;
  }

  .village-name {
    font-size: 2.25rem;
  }

  .administrative-info {
    font-size: 2rem;
  }

  .location {
    font-size: 1.25rem;
  }

  .about-btn {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 3rem;
  }

  .village-name {
    font-size: 2.5rem;
  }

  .administrative-info {
    font-size: 2.25rem;
  }

  .location {
    font-size: 1.5rem;
  }
}

/* =======================
   Kata Sambutan Pak Dukuh
   ======================= */
/* Layout untuk kata sambutan */
.sambutan-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.foto-dukuh-bulat {
  display: flex;
  justify-content: center;
  align-items: center;
}

.foto-dukuh-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 9999px;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive: ubah ke row untuk layar besar */
@media (min-width: 768px) {
  .sambutan-layout {
    display: flex;
    flex-direction: row; /* ubah dari column ke row */
    align-items: center;
    justify-content: center;
  }

  .foto-dukuh-bulat {
    flex: 0 0 auto;
    margin-right: 2rem;
    margin-left: 3rem;
  }

  .sambutan-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .hero-title {
    text-align: center;
    margin-bottom: 1rem;
  }
}


/* Tokoh Masyarakat */
.tokoh-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 0;
}

.tokoh-card {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tokoh-card:hover {
  transform: scale(1.05);
}

.tokoh-img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.tokoh-nama {
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}

.tokoh-jabatan {
  font-size: 0.875rem;
  color: #333;
}

/* =======================
   Footer Section
   ======================= */
.footer {
  background-color: #ffffff;
  z-index: 100;
  position: relative;
  padding: 2rem 1rem;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  width: 100px;
  height: auto;
}

.footer-contact h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.footer-contact p {
  font-size: 1rem;
  color: #555;
  margin: 0.2rem 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =======================
   Section Visi dan Misi
   ======================= */
.visi-misi-section {
  background-color: #ffffff;
}

.visi-misi-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visi-misi-card {
  flex: 1;
  background-color: var(--daleman-content-bg);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.visi-misi-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--daleman-dark-green);
  margin-bottom: 1rem;
}

.visi-misi-text {
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
}

/* Responsive dua kolom */
@media (min-width: 768px) {
  .visi-misi-container {
    flex-direction: row;
  }
}

.video-section {
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

/* Dropdown Desktop */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.dropdown-menu:hover {
  color: #A0522D;
  cursor: pointer;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: black;
}

/* Dropdown Mobile (selalu terlihat saat menu dibuka) */
.dropdown-menu-mobile a {
  display: block;
  margin-left: 10px;
  padding: 4px 0;
  text-decoration: none;
  color: #8B4513;
}

.dropdown-menu-mobile {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.dropdown-menu-mobile.show {
  display: flex;
}

.dropdown-menu-mobile:hover {
  color: #A0522D;
  cursor: pointer;
}

/* --- Kontak dan Lokasi (Kiri dan Kanan) --- */
.contact-location {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Kolom Kontak */
.contact-info {
  flex: 1;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Kolom Peta */
.map-section {
  flex: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.map-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: none;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
  .contact-location {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info,
  .map-section {
    padding: 1.2rem;
  }

  .contact-info h2,
  .map-section h2 {
    font-size: 1.25rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

.contact-section {
  padding: 2rem;
  max-width: 2400px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
  gap: 1rem;
}

.kkn-section {
  position: relative;
  padding: 2rem;
  max-width: 2400px;
  margin: 0 auto;
  z-index: 0;
  min-height: 100vh;
}

/* Tambahkan ini */
.kkn-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/kkn.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  filter: blur(4px);
  z-index: -1;
  inset: 0;
  background-attachment: fixed;
}



.kontak-peta {
  display: flex;
  flex-direction: column; /* tumpuk vertikal */
  gap: 1.5rem; /* jarak antar elemen di dalamnya */
  padding-bottom: 2rem;
}

/* Hero Section */
.hero-content {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Section Titles & Descriptions */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: burlywood;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: honeydew;
}

/* Ketua Layout */
.kwt-ketua-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.kwt-ketua-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.kwt-ketua-img img:hover {
  transform: scale(1.05);
}

.kwt-ketua-sambutan {
  max-width: 550px;
  background: #ffffffc9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

/* Gallery Section */
.kwt-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.kwt-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kwt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.kwt-card-info {
  padding: 1rem 1.25rem;
}

.kwt-card-info h3 {
  margin: 0 0 0.5rem;
  color: #2c3e50;
  font-size: 1.2rem;
}

.kwt-card-info p {
  font-size: 0.98rem;
  color: #555;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.kwt-date {
  font-size: 0.85rem;
  color: #888;
}

/* Responsiveness */
@media (max-width: 768px) {
  .kwt-ketua-layout {
    flex-direction: column;
    text-align: center;
  }

  .kwt-ketua-sambutan {
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}


/* --- Perbaikan Hero Section agar lebih terbaca --- */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* --- CSS PETA --- */

.peta-rawan-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.peta-rawan-text {
  text-align: center;
  max-width: 800px;
}

.peta-title {
  font-size: 2rem;
  font-weight: 700;
  color:  white;
  margin-bottom: 1rem;
}

.peta-description {
  font-size: 1.125rem;
  color: wheat;
  line-height: 1.8;
}

.peta-gambar-wrapper {
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.peta-gambar {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.peta-admin-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.peta-info {
  flex: 1 1 300px;
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.peta-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.peta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.peta-image-box {
  flex: 2 1 600px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem;
}

.peta-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .peta-admin-container {
    flex-direction: column;
    align-items: center;
  }

  .peta-info,
  .peta-image-box {
    width: 100%;
  }
}

/* Responsif */
@media (max-width: 768px) {
  .peta-title {
    font-size: 1.5rem;
  }

  .peta-description {
    font-size: 1rem;
  }
}

.struktur-gambar {
  width: 100%;
  height: auto;
  max-width: 1000px; /* batas maksimum lebar gambar */
  display: block;
  margin: 0 auto;
}

.tokoh-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 250px;
  height: 100%; /* Biar tingginya konsisten */
  position: relative;
}

.tokoh-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tokoh-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  padding: 15px;
}

.text-wrapper {
  margin-bottom: 10px;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-detail, .btn-maps {
  padding: 8px 12px;
  text-decoration: none;
  color: white;
  background-color: #4CAF50; /* Warna hijau */
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-maps {
  background-color: #4285F4; /* Warna biru khas Google Maps */
}

.btn-detail:hover, .btn-maps:hover {
  opacity: 0.8;
}

.btn-detail:hover {
  background-color: #1abc9c;
}

.hero-kontak {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.potensi-alam-section {
  padding: 40px 20px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

.potensi-title {
  text-align: center;
  color: bisque;
  font-size: 2rem;
}

.potensi-alam-card {
  background-color: rgba(194, 173, 173, 0.15); /* semi transparan */
  color: #000;
  padding: 40px;
  border-radius: 15px;
  max-width: 900px;
  backdrop-filter: blur(8px); /* efek blur di belakang */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.potensi-deskripsi {
  text-align: justify;
  margin-bottom: 20px;
  font-size: 16px;
  color: whitesmoke;
}

.swiper {
  width: 100%;
  height: 300px;
}

.swiperut {
  width: 100%;
  height: 500px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  height: auto;
  display: block;
}

/* Custom posisi tombol */
.swiper-button-next,
.swiper-button-prev {
  color: #2c3e50;
}

.potensi-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}



/* ==== Umum: Pastikan semua card tetap dalam batas layar ==== */
.content-card,
.potensi-alam-card,
.tokoh-card {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

/* ==== Perbaiki layout grid/flex yang menyebabkan overflow ==== */
.potensi-wrapper,
.tokoh-wrapper,
.kt-kegiatan-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sub-title {
  text-align: center;
  color: #f2d2a9;
  font-weight: 600;
  font-size: 1.8rem;
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .tokoh-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .tokoh-card {
    width: calc(50% - 1rem);  /* 2 kolom, dikurangi gap */
    max-width: none;
  }
}

.kt-kegiatan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Card */
.kt-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Gambar */
.kt-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Info dalam card */
.kt-info {
  padding: 1rem;
  color: #333;
}

.kt-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.kt-info p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.kt-date {
  font-size: 0.8rem;
  color: #777;
}

/* Responsive 1 kolom di layar kecil */
@media (max-width: 768px) {
  .kt-kegiatan-gallery {
    grid-template-columns: 1fr;
  }
}

/* Swiper */
.swiper {
  width: 100%;
  height: 220px;
  border-radius: 10px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2c3e50;
}

@media (max-width: 768px) {
  .swiper {
    height: 200px;
  }
}

.hero-kegiatan {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
  max-width: 64rem;
  line-height: 1.2;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

@media (max-width: 768px) {
    .kt-kegiatan-gallery {
        grid-template-columns: 1fr;
    }
}

/* === Bagian Sejarah Dukuh Daleman === */
.sejarah-section {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', sans-serif;
}

.sejarah-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.sejarah-section .timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  background: white;
  border-left: 6px solid #2a5d9f;
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: #eef5ff;
}

.timeline-item::before {
  content: '📌';
  position: absolute;
  left: -1.8rem;
  top: 1rem;
  font-size: 1.2rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1f2f4d;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}
