* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #fefbf5;
  color: #1a3a2a;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #e8e0d0;
}
::-webkit-scrollbar-thumb {
  background: #2d6a4f;
  border-radius: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-green {
  color: #2d6a4f;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #2d6a4f;
}

.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1b5e20;
}

.logo-text small {
  font-size: 0.55rem;
  display: block;
  color: #6b7b5e;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #2c3e2b;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #d4a373;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #2d6a4f;
}

/* ==================== HERO SLIDESHOW ==================== */
.hero {
  margin-top: 62px;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.fade {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 90%;
  max-width: 700px;
}

.caption-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 5px 16px;
  border-radius: 40px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.slide-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.slide-caption h1 .highlight {
  color: #f9d56e;
}

.slide-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.slide-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.3s;
}

.btn-primary {
  background: #f9d56e;
  color: #1b5e20;
}

.btn-primary:hover {
  background: #ffb347;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1.5px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: #1b5e20;
  transform: translateY(-2px);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
  transition: 0.3s;
  text-decoration: none;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: #f9d56e;
  color: #1b5e20;
}

.prev {
  left: 15px;
}
.next {
  right: 15px;
}

.dots-container {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.dot.active,
.dot:hover {
  background-color: #f9d56e;
  transform: scale(1.2);
}

/* ==================== UMUM ==================== */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  background: #e8f0e8;
  color: #2d6a4f;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #1a3a2a;
  margin-top: 10px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: #f9d56e;
  margin: 12px auto;
  border-radius: 3px;
}

.section-subtitle {
  color: #6b7b5e;
  max-width: 550px;
  margin: 0 auto;
  font-size: 0.85rem;
}

/* ==================== TENTANG ==================== */
.tentang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.tentang-card {
  background: white;
  padding: 28px 20px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}

.tentang-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.tentang-card i {
  font-size: 42px;
  color: #f9d56e;
  margin-bottom: 15px;
}

.tentang-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tentang-card p {
  font-size: 0.8rem;
  color: #6b7b5e;
  line-height: 1.5;
}

/* ==================== PROGRAM ==================== */
.program {
  background: #faf6ed;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.program-item {
  background: white;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
}

.program-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.program-item i {
  font-size: 38px;
  color: #2d6a4f;
}

.program-item h3 {
  font-size: 1rem;
  margin: 12px 0 5px;
}

.program-item p {
  font-size: 0.8rem;
  color: #6b7b5e;
}

.program-tag {
  display: inline-block;
  background: #e8f0e8;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 10px;
  color: #2d6a4f;
}

/* ==================== KETUA ==================== */
.ketua {
  background: linear-gradient(135deg, #fff8ef, #fef6ea);
}

.ketua-card {
  display: flex;
  flex-wrap: wrap;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.ketua-foto {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(145deg, #2d6a4f, #1b5e20);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.foto-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f9d56e;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.foto-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-ketua {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f9d56e;
  color: #1b5e20;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.ketua-info {
  flex: 2;
  padding: 30px;
}

.ketua-info h3 {
  font-size: 1.5rem;
  color: #1a3a2a;
}

.ketua-jabatan {
  background: #e8f0e8;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  display: inline-block;
  margin: 12px 0;
}

.ketua-quote {
  background: #faf6ed;
  padding: 18px;
  border-radius: 20px;
  margin: 15px 0;
}

.ketua-quote i {
  color: #f9d56e;
  font-size: 24px;
  opacity: 0.5;
}

.ketua-quote p {
  font-style: italic;
  color: #4a5a3a;
  margin-top: 6px;
  font-size: 0.85rem;
}

.ketua-motto {
  background: #2d6a4f;
  color: white;
  padding: 8px 18px;
  border-radius: 40px;
  display: inline-block;
  font-size: 0.75rem;
  margin: 10px 0;
}

.ketua-sosial a {
  color: #2d6a4f;
  font-size: 22px;
  margin-right: 18px;
  transition: 0.2s;
}

.ketua-sosial a:hover {
  color: #f9d56e;
}

/* ==================== LOGO DESA ==================== */
.logo-desa {
  background: white;
  padding: 30px 0;
}

.logo-desa-card {
  background: #e8f0e8;
  border-radius: 30px;
  padding: 30px;
  text-align: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-wrapper img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-wrapper-text h3 {
  font-size: 1.4rem;
  color: #1b5e20;
}

.logo-wrapper-text p {
  font-size: 0.8rem;
  color: #5a6e4a;
}

.logo-wrapper-text span {
  font-size: 0.75rem;
  color: #2d6a4f;
}

/* ==================== JADWAL ==================== */
.jadwal-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.jadwal-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.jadwal-card.special {
  border-left: 4px solid #f9d56e;
}

.jadwal-day {
  background: #2d6a4f;
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jadwal-day i {
  font-size: 24px;
}

.jadwal-day h4 {
  font-size: 1rem;
}

.jadwal-day span {
  font-size: 0.65rem;
  opacity: 0.8;
}

.jadwal-list {
  padding: 16px;
}

.jadwal-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.8rem;
  color: #3a5a3a;
}

.jadwal-item:last-child {
  border-bottom: none;
}

/* ==================== GALERI ==================== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.galeri-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.galeri-item:hover img {
  transform: scale(1.05);
}

.galeri-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 15px;
  transform: translateY(100%);
  transition: 0.3s;
}

.galeri-item:hover .galeri-overlay {
  transform: translateY(0);
}

.galeri-overlay span {
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
}

/* ==================== KONTAK ==================== */
.kontak {
  background: #faf6ed;
}

.kontak-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.kontak-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: white;
  padding: 22px;
  border-radius: 20px;
  text-align: center;
}

.info-card i {
  font-size: 36px;
  color: #2d6a4f;
  margin-bottom: 10px;
}

.info-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.info-card p {
  font-size: 0.8rem;
  color: #6b7b5e;
}

.kontak-form {
  flex: 1;
  background: white;
  padding: 28px;
  border-radius: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0d8cc;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.85rem;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f9d56e;
  box-shadow: 0 0 0 3px rgba(249, 213, 110, 0.1);
}

.btn-submit {
  background: #2d6a4f;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  font-size: 0.85rem;
}

.btn-submit:hover {
  background: #f9d56e;
  color: #1b5e20;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== MODAL NOTIFIKASI ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 32px 28px;
  border-radius: 32px;
  text-align: center;
  max-width: 380px;
  width: 85%;
  animation: slideUp 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-icon i {
  font-size: 70px;
  color: #2d6a4f;
  margin-bottom: 16px;
}

.modal-icon.error i {
  color: #e74c3c;
}

.modal-content h3 {
  font-size: 1.5rem;
  color: #1b5e20;
  margin-bottom: 12px;
}

.modal-content p {
  color: #6b7b5e;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-btn {
  background: #2d6a4f;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.85rem;
}

.modal-btn:hover {
  background: #f9d56e;
  color: #1b5e20;
  transform: scale(1.02);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: #1a3a2a;
  color: #cfe3cf;
  padding: 35px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 5px;
}

.footer-logo h4 {
  color: #f9d56e;
  font-size: 1rem;
}

.footer-logo p {
  font-size: 0.7rem;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #cfe3cf;
  text-decoration: none;
  font-size: 0.8rem;
  transition: 0.2s;
}

.footer-nav a:hover {
  color: #f9d56e;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid #3a5a45;
  font-size: 0.65rem;
}

/* ==================== RESPONSIVE HP ==================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 62px;
    flex-direction: column;
    background: white;
    width: 75%;
    height: 100vh;
    padding: 25px;
    transition: 0.3s;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    gap: 18px;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero {
    margin-top: 62px;
  }

  .slideshow-container {
    height: 65vh;
    min-height: 400px;
  }

  .slide-caption h1 {
    font-size: 1.6rem;
  }

  .slide-caption p {
    font-size: 0.75rem;
  }

  .btn-primary,
  .btn-outline-light {
    padding: 8px 16px;
    font-size: 0.7rem;
  }

  .prev,
  .next {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }

  section {
    padding: 45px 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .ketua-info h3 {
    font-size: 1.3rem;
  }

  .foto-wrapper {
    width: 170px;
    height: 170px;
  }

  .badge-ketua {
    font-size: 0.6rem;
    bottom: 10px;
  }

  .logo-wrapper img {
    width: 60px;
    height: 60px;
  }

  .logo-wrapper-text h3 {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .modal-content {
    padding: 25px 20px;
    width: 90%;
  }

  .modal-icon i {
    font-size: 55px;
  }

  .modal-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    height: 55vh;
    min-height: 350px;
  }

  .slide-caption h1 {
    font-size: 1.3rem;
  }

  .caption-badge {
    font-size: 0.6rem;
    padding: 3px 12px;
  }

  .slide-buttons {
    gap: 8px;
  }

  .btn-primary,
  .btn-outline-light {
    padding: 6px 14px;
    font-size: 0.65rem;
  }

  .tentang-grid,
  .program-grid,
  .jadwal-container,
  .galeri-grid {
    grid-template-columns: 1fr;
  }

  .ketua-card {
    flex-direction: column;
  }

  .ketua-foto {
    padding: 25px;
  }

  .foto-wrapper {
    width: 150px;
    height: 150px;
  }

  .ketua-info {
    padding: 20px;
  }

  .kontak-grid {
    flex-direction: column;
  }
}
