/* Pengaturan Dasar dan Tipografi */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f8f0; /* Hijau muda sebagai latar belakang utama */
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.navbar-nav .nav-link,
.section-title,
.program-item h5,
.facility-caption h5,
.footer p {
  color: #1e3d2c; /* Hijau tua sebagai warna teks utama */
}

/* --- Navbar --- */
.navbar {
  transition: background-color 0.4s ease-out;
}

.navbar.transparent {
  background-color: transparent !important;
}

.navbar.scrolled {
  background-color: rgba(
    30,
    61,
    44,
    0.85
  ) !important; /* Hijau tua agak transparan saat di-scroll */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #ffffff !important; /* Kuning sebagai warna brand dan link navbar */
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mengubah warna ikon toggler navbar agar terlihat */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(253, 216, 53, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Ikon toggler kuning */
}

/* Styling untuk Logo di Navbar */
.navbar-logo {
  height: 40px; /* Sesuaikan tinggi logo di sini */
  width: auto; /* Lebar akan menyesuaikan secara otomatis */
  margin-right: 10px; /* Memberi jarak antara logo dan teks */
}

/* Animasi untuk link di Navbar */
.navbar-nav .nav-link {
  transition: transform 0.2s ease-out, color 0.2s ease-out;
  padding-top: 0.5rem; /* Menambah sedikit ruang di atas */
  padding-bottom: 0.5rem; /* Menambah sedikit ruang di bawah */
}

.navbar-nav .nav-link:hover {
  transform: scale(1.1) translateY(-2px); /* Membesar 10% dan naik 2px */
  color: #fdd835 !important; /* Berubah menjadi kuning saat di-hover */
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(rgba(30, 61, 44, 0.6), rgba(30, 61, 44, 0.8)),
    /* Gradien hijau tua */ url("photo/navbar/4.jpg");

  background-size: cover;
  background-position: center;
  padding: 180px 0 120px 0;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-section h1 {
  font-size: 3.5rem;
  color: #ffffff; /* Kuning untuk judul hero */
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto;
  color: #f0f8f0; /* Hijau muda untuk teks hero */
}

.hero-section .btn-primary {
  background-color: transparent;
  border-color: transparent;
}

.hero-section .btn-primary:hover {
  background-color: #1e3d2c;
  border-color: #1e3d2c;
}

/* --- Pengaturan Section Umum --- */
.section {
  padding: 80px 0;
}

#tentang-kami {
  background-color: #fff; /* Putih atau krem */
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #43a047; /* Hijau sedang untuk subjudul */
  margin-bottom: 40px;
}

/* --- Section Program Unggulan (Desain Baru) --- */
.program-item h5 {
  margin-top: 1rem;
  font-weight: 600;
}

.program-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background-color: #fdd835; /* Kuning untuk latar belakang ikon */
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.program-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-item:hover .program-icon-wrapper {
  background-color: #43a047; /* Hijau sedang saat di-hover */
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(67, 160, 71, 0.25);
}

/* --- Styling Komponen Lainnya --- */
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.facility-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 280px;
  border: 1px solid #e0e0e0;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(30, 61, 44, 0.8),
    transparent
  ); /* Gradien hijau tua */
  color: white; /* Warna teks diubah menjadi putih */
  padding: 30px 20px 20px 20px;
}
.facility-caption h5 {
  color: white; /* Secara eksplisit membuat h5 di dalam caption menjadi putih */
}

/* --- Animasi Masuk & Keluar Section --- */
.animasi-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.animasi-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Carousel Galeri --- */
.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-indicators button {
  background-color: #43a047 !important; /* Indicator aktif berwarna hijau sedang */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(
    30,
    61,
    44,
    0.5
  ); /* Kontrol carousel semi-transparan hijau tua */
  border-radius: 50%;
  padding: 10px;
}

.carousel-img {
  height: 500px;
  object-fit: cover;
}

/* --- Media Queries untuk Responsif --- */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .carousel-img {
    height: 350px;
  }
}
/* --- Styling Modal Galeri --- */
.modal-backdrop.show {
  opacity: 1 !important; /* Pastikan backdrop terlihat */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
}

#galleryModal .modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

#galleryModal .modal-dialog {
  max-width: 800px; /* Atur lebar maksimal gambar */
}

#galleryModal .modal-body {
  position: relative;
}

#galleryModal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  filter: invert(1) grayscale(100%) brightness(200%); /* Membuat tombol close menjadi putih */
  opacity: 0.8;
}

#galleryModal .modal-description-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 40px 20px 20px;
}

#modalDescription {
  margin: 0;
}

/* --- Footer (Desain Baru) --- */
.footer {
  background-color: #1e3d2c; /* Warna hijau tua */
  color: #e0e0e0; /* Warna teks putih pudar agar nyaman dibaca */
  padding: 60px 0 20px 0;
  font-size: 0.95rem;
}

.footer-logo {
  max-width: 120px;
}

.footer-tagline {
  color: #a5d6a7; /* Warna hijau lebih muda untuk tagline */
  margin-right: 1rem;
}

.footer-title {
  font-weight: 700;
  color: #fdd835; /* Warna kuning untuk judul */
  margin-bottom: 1.5rem;
}

.footer-contact-list {
  padding-left: 0;
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-list .bi {
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  color: #fdd835; /* Warna ikon kuning */
}

.footer a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff; /* Warna teks menjadi putih terang saat di-hover */
}

.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fdd835;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons .social-icon:hover {
  background-color: #fdd835;
  color: #1e3d2c;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0 20px 0;
}

.copyright-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #a5d6a7;
}
