:root {
  --primary: #1e6c44;
  --secondary: #d4af37;
  --light: #f8f9fa;
  --dark: #1e2a38;
  --accent: #2c8c5d;
  --light-accent: #e9f5ef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #fefefe;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Header & Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.4s ease;
}

.navbar-brand {
  font-weight: 700;
  color: #2c8c5d !important;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #1e6c44 !important;
}
.navbar-brand img {
  margin-right: 10px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: #2d8859 !important;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #269d60 !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  background-color: #1e6c44; /* Ganti background jadi hijau solid */
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 72px;
}

/* Hero Section */
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 120px 0 80px;
    margin-top: 0;
  }
}

.hero-content {
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-highlight {
  color: var(--secondary);
  position: relative;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(212, 175, 55, 0.3);
  z-index: -1;
}

.hero-logo {
  max-width: 300px; /* Sesuaikan ukuran logo */
  height: auto;
  margin-left: auto;
  display: block;
}

@media (max-width: 992px) {
  .hero-logo {
    max-width: 200px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
  }
}

.stats-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  margin-top: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* responsive */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 0 80px;
    margin-top: 0;
  }
}

/* Section Styling */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 20px auto 0;
  color: #666;
}

/* Visi Misi Section */
.vision-mission {
  background-color: var(--light);
}

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  background: white;
}

/* Efek hover pada semua card (Visi, Misi) */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 25px;
  transition: transform 0.3s ease;
}

/* Efek hover pada ikon di dalam card (Visi, Misi) */
.card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  color: var(--primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

/* Mengubah warna judul saat hover */
.card:hover .card-title {
  color: var(--secondary);
}

.vision-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 40px;
}

.vision-card .card-title {
  color: var(--secondary);
}

/* Mengembalikan warna judul Visi ke putih saat hover */
.vision-card:hover .card-title {
  color: white;
}

.vision-card:hover .card-text {
  color: white;
}

/* Tambahan: Mengubah warna ikon list item di kartu Misi */
.list-group-item .text-warning {
  color: var(--secondary) !important;
}

/* Fasilitas Section */
.facility-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.facility-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(26, 109, 63, 0.9), transparent);
  color: white;
  transform: translateY(100px);
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-overlay {
  transform: translateY(0);
}

.facility-card:hover .facility-img {
  transform: scale(1.05);
}

/* Galeri Section */
.gallery-section {
  background: linear-gradient(rgba(30, 42, 56, 0.95), rgba(30, 42, 56, 0.95)),
    url("https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80")
      center/cover fixed;
  color: white;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Modal Detail Galeri */
.modal {
  display: none;
  position: fixed;
  z-index: 1050; /* Pastikan di atas elemen lain */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px; /* bisa dikurangi jadi 600px biar lebih kecil */
  animation: modal-fade-in 0.5s;
}

.close-button {
  color: #666;
  float: right;
  font-size: 35px;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #333;
}

.modal-image {
  width: 100%;
  max-width: 600px; /* batas lebar gambar */
  height: auto;
  display: block;
  border-radius: 5px;
  margin: 0 auto 20px auto; /* biar tetap center */
}

.modal-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-description {
  flex-grow: 1;
  text-align: center;
  padding: 0 20px;
  color: #555;
  font-style: italic;
  background: fff;
}

.prev-button,
.next-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 24px;
  color: rgb(96, 54, 54);
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
  background-color: rgba(225, 232, 116, 0.5);
  transform: scale(1.1);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Program Section */
.program-card {
  display: flex;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Menambahkan transisi untuk animasi */
}

/* Animasi saat kursor mengarah ke card */
.program-card:hover {
  transform: translateY(-10px); /* Mengangkat kartu ke atas */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Memperkuat bayangan */
}

.program-icon {
  width: 80px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.3s ease; /* Transisi untuk ikon */
}

/* Animasi saat kursor mengarah ke card, ikon bergerak */
.program-card:hover .program-icon {
  transform: scale(1.1); /* Memperbesar ikon sedikit */
}

.program-content {
  padding: 30px;
  flex: 1;
}

.program-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-accent);
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
}

/* Tambahan: Transisi untuk judul dan paragraf */
.program-card h4,
.program-card p {
  transition: color 0.3s ease;
}

/* Mengubah warna teks saat hover */
.program-card:hover h4 {
  color: var(--secondary); /* Mengubah warna judul */
}

.program-card:hover p {
  color: var(--dark); /* Mengubah warna paragraf */
}

/* Kontak Section */
.contact-section {
  background-color: var(--light);
}

.contact-info {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 96%;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--light-accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
}
.contact-text p {
  margin: 0;
  word-break: break-word; /* biar kata panjang bisa pecah */
  overflow-wrap: break-word; /* standar modern */
  white-space: normal; /* biar turun baris */
  line-height: 1.4;
}
.contact-text h4 {
  color: var(--secondary);
  margin-bottom: 5px;
}

.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: var(--dark);
  color: white;
  padding: 70px 0 30px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  display: flex; /* Menggunakan flexbox untuk penataan sejajar */
  align-items: center; /* Menyelaraskan item secara vertikal */
}

.footer-logo img {
  height: 40px; /* Atur tinggi logo */
  margin-right: 10px; /* Beri jarak antara logo dan teks */
}

.footer-logo span {
  color: var(--secondary);
}

.footer-about {
  margin-bottom: 30px;
  max-width: 400px;
  font-size: 1.2rem;
  color: #d4af37;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}
/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .section {
    padding: 80px 0;
  }

  .program-card {
    flex-direction: column;
  }

  .program-icon {
    width: 100%;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 0 80px;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .stat-item {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }
}
