/* --------------------------------------
   GLOBAL STYLE (umum seluruh website)
-----------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #fefcf8; /* Changed to cream background */
}

img {
  transition: transform 0.3s ease-in-out;
}
img:hover {
  transform: scale(1.02);
}

/* Navigasi */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #8b4513; /* Changed to brown */
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #8b4513; /* Changed to brown */
  background-color: #f5f5dc; /* Changed to cream */
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  background-color: #a0522d; /* Changed to brown */
  color: white;
}

/* Mobile Navigation */
.nav-link-mobile {
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  display: block;
}
.nav-link-mobile:hover {
  background-color: #f5f5dc; /* Changed to cream */
}
.nav-link-mobile.active {
  background-color: #a0522d; /* Changed to brown */
  color: white;
}

/* Efek hover umum kartu */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ikon wrapper bulat */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.5rem;
  background-color: #f5f5dc; /* Changed to cream */
  color: #8b4513; /* Changed to brown */
}

.icon {
  height: 1.5rem;
  width: 1.5rem;
}

/* --------------------------------------
   RESPONSIVE DESIGN - MEDIA QUERIES
-----------------------------------------*/

/* Mobile First - Base styles for mobile */
@media (max-width: 640px) {
  /* Typography */
  h1 {
    font-size: 1.875rem !important; /* 30px */
    line-height: 2.25rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 2rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.75rem !important;
  }
  
  /* Hero Section */
  .hero-content {
    padding: 1.5rem !important;
    max-width: 95% !important;
    max-height: none !important;
  }
  
  .hero-title {
    font-size: 1.875rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-text {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Navigation */
  .mobile-menu-button {
    display: block;
  }
  
  /* Grid adjustments */
  .grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Spacing */
  .container-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Cards */
  .card-mobile {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Typography */
  h1 {
    font-size: 2.25rem; /* 36px */
  }
  
  h2 {
    font-size: 1.875rem; /* 30px */
  }
  
  /* Hero Section */
  .hero-content {
    padding: 2rem;
    max-width: 90%;
  }
  
  /* Grid adjustments */
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  /* Grid adjustments */
  .grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .container-xl {
    max-width: 1280px;
    margin: 0 auto;
  }
}

/* --------------------------------------
   FORM LOGIN
-----------------------------------------*/
#loginForm select,
#loginForm input[type="email"],
#loginForm input[type="password"],
#loginForm button {
  transition: all 0.2s ease-in-out;
}

#loginForm input:focus,
#loginForm select:focus {
  border-color: #a0522d; /* Changed to brown */
  outline: none;
  box-shadow: 0 0 0 1px #a0522d; /* Changed to brown */
}

#loginForm button:hover {
  background-color: #8b4513; /* Changed to brown */
}

/* Mobile form adjustments */
@media (max-width: 640px) {
  #loginForm {
    padding: 1rem;
  }
  
  #loginForm input,
  #loginForm select,
  #loginForm button {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* --------------------------------------
   HALAMAN BATIK (contoh background)
-----------------------------------------*/
.batik-bg {
  background-image: url("https://source.unsplash.com/1600x400/?batik");
  background-size: cover;
  background-position: center;
  min-height: 24rem;
}

@media (max-width: 640px) {
  .batik-bg {
    min-height: 20rem;
    background-attachment: scroll;
  }
}

/* --------------------------------------
   HALAMAN KELOLA ALAM KELUARGA INKLUSIF
-----------------------------------------*/
.section-kelola-alam {
  margin-bottom: 5rem;
}

@media (max-width: 640px) {
  .section-kelola-alam {
    margin-bottom: 3rem;
  }
}

.judul-section {
  font-size: 2rem;
  font-weight: bold;
  color: #8b4513; /* Changed to brown */
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .judul-section {
    font-size: 1.5rem;
    text-align: center;
  }
}

.deskripsi-section {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .deskripsi-section {
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
  }
}

.kontainer-program {
  background-color: #f5f5dc; /* Changed to cream */
  border-radius: 1rem;
  padding: 2rem;
}

@media (max-width: 640px) {
  .kontainer-program {
    padding: 1rem;
    border-radius: 0.5rem;
  }
}

.gambar-program {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.judul-program {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .judul-program {
    font-size: 1.25rem;
    text-align: center;
  }
}

.teks-program {
  color: #4b5563;
  margin-bottom: 1rem;
}

.daftar-fitur {
  list-style: none;
  padding: 0;
  color: #4b5563;
}

.daftar-fitur li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .daftar-fitur li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.icon-fitur {
  color: #a0522d; /* Changed from green to brown */
}

/* --------------------------------------
   EDUKASI - LIST PROGRAM KEGIATAN
-----------------------------------------*/
.card-edukasi {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-edukasi {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .item-edukasi {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
}

.item-edukasi .ikon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  background-color: #f5f5dc; /* Changed to cream */
  padding: 0.5rem;
  border-radius: 0.5rem;
}

@media (max-width: 640px) {
  .item-edukasi .ikon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.judul-edukasi {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.waktu-edukasi {
  color: #6b7280;
  font-size: 0.875rem;
}

/* --------------------------------------
   KOMUNITAS / SEKOLAH KOMUNITAS (contoh)
-----------------------------------------*/
.program-box {
  background-color: #f5f5dc; /* Changed from blue to cream */
  color: #8b4513; /* Changed from blue to brown */
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .program-box {
    text-align: center;
    padding: 1rem;
  }
}

/* --------------------------------------
   UTILITY CLASSES FOR RESPONSIVE
-----------------------------------------*/
.text-responsive {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .text-responsive {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .text-responsive {
    font-size: 1.25rem;
  }
}

.container-responsive {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-responsive {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-responsive {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
