/* ==========================================================================
   1. VARIABEL & GLOBAL RESETS
   ========================================================================== */
:root {
  --sp-green: #0b5345;      /* Hijau Utama */
  --sp-light-green: #25D366;     /* Aksen Hijau Terang */
  --sp-dark: #2c3e50;       /* Teks Utama */
  --sp-light-bg: #f8f9fa;   /* Latar Belakang */
  --sp-red-dark: #5C0000;      /* Merah Gelap */
  --white: #ffffff;
}

/* Reset Universal menggunakan tanda bintang (*) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--sp-dark);
  background-color: var(--sp-light-bg);
  line-height: 1.6;
}

/* Common Titles */
.section-title {
  text-align: center;
  color: var(--sp-green);
  margin-bottom: 10px;
  font-size: 2rem;
}

/* ==========================================================================
   2. NAVBAR STYLE & DROPDOWN MENU (INTEGRATED & FIXED)
   ========================================================================== */
.navbar {
  background-color: var(--white);
  padding: 12px 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.navbar-logo {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo:hover { 
  transform: scale(1.02); 
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer !important;
}

.toggler-icon-bar {
  width: 25px;
  height: 3px;
  background-color: var(--sp-green);
  border-radius: 2px;
}

.navbar-collapse { 
  display: block; 
}

.navbar-nav {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: var(--sp-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  display: block;
  transition: color 0.3s ease;
  cursor: pointer !important; /* Kursor tangan/penunjuk untuk link navbar */
}

.nav-link:hover, 
.nav-link.active { 
  color: var(--sp-light-green); 
}

/* --- STYLING DROPDOWN MENU --- */
.nav-item.dropdown {
  position: relative !important; /* Posisi relatif wajib untuk absolute menu */
}

/* Kursor Tangan untuk Toggle Dropdown */
.nav-link.dropdown-toggle,
.nav-item.dropdown > a,
#proyekDropdown,
#dropdownBtn {
  cursor: pointer !important;
  user-select: none;
}

/* Kendali Menu Dropdown (Tersembunyi secara default & Tanpa Titik) */
ul.dropdown-menu,
.dropdown-menu {
  display: none !important; /* Wajib tersembunyi secara default */
  position: absolute !important;
  top: 100%;
  left: 0;
  background-color: var(--white, #ffffff);
  min-width: 220px;
  list-style: none !important; /* Menghilangkan bullet points */
  list-style-type: none !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  z-index: 1050;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* Item List Dropdown */
.dropdown-menu li {
  list-style: none !important;
  list-style-type: none !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Link di Dalam Dropdown */
.dropdown-menu li a {
  display: block !important;
  color: var(--sp-dark, #2c3e50);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: var(--sp-light-bg, #f8f9fa);
  color: var(--sp-light-green, #25D366);
}

/* Tampilkan Dropdown saat Kelas .show atau .buka Ditambahkan JS */
.dropdown-menu.show,
.dropdown-menu.buka {
  display: block !important;
}

/* Responsif Mobile untuk Navbar & Dropdown */
@media (max-width: 991.98px) {
  .navbar-toggler { 
    display: flex; 
  }
  
  .navbar-collapse {
    display: none;
    width: 100%;
    margin-top: 15px;
  }
  
  .navbar-collapse.show { 
    display: block !important; 
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .nav-item.dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static !important; /* Mengikuti flow dokumen pada mode mobile */
    box-shadow: none !important;
    background-color: var(--sp-light-bg, #f8f9fa);
    padding-left: 15px !important;
    margin-top: 5px !important;
    border: none !important;
    width: 100%;
  }
}

@media (max-width: 576px) { 
  .navbar-logo { 
    height: 38px; 
  } 
}

/* ==========================================================================
   3. TEXT CAROUSEL BANNER
   ========================================================================== */
.hero-carousel-section {
  background: linear-gradient(rgba(11, 83, 69, 0.88), rgba(11, 83, 69, 0.94)), 
              url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 100px 5%;
  text-align: center;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  max-width: 800px;
  width: 100%;
  position: relative;
  height: 140px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  visibility: hidden;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.carousel-slide h1 { 
  font-size: 2.4rem; 
  margin-bottom: 15px; 
}

.carousel-slide p { 
  font-size: 1.15rem; 
  color: #eaedd0; 
}

/* ==========================================================================
   4. GALLERY CONTAINER SYSTEM
   ========================================================================== */
.gallery-section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-main-title {
  text-align: center;
  color: var(--sp-green);
  margin-bottom: 40px;
  font-size: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.gallery-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.gallery-body { 
  padding: 20px; 
}

.gallery-body h3 { 
  color: var(--sp-green); 
  margin-bottom: 10px; 
}

.gallery-price { 
  color: var(--sp-light-green); 
  font-weight: 700; 
  font-size: 1.2rem; 
  margin: 12px 0; 
}

.btn-info-unit {
  display: inline-block;
  width: 100%;
  background-color: var(--sp-light-green) !important;
  color: var(--white) !important;
  padding: 12px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer !important;
  transition: background 0.3s ease;
}

.btn-info-unit:hover { 
  background-color: #d35400 !important; 
}

/* Warna tombol saat status Sold Out */
.btn-info-unit.btn-sold-out {
  background-color: #5c0000 !important; /* Warna merah */
  color: var(--white) !important;
  cursor: not-allowed !important; /* Mengubah kursor menjadi tanda dilarang */
}

/* Warna tombol Sold Out saat di-hover (opsional, agar tidak berubah jadi cokelat/oranye) */
.btn-info-unit.btn-sold-out:hover {
  background-color: #c0392b !important; /* Warna merah yang lebih gelap */
}

/* ==========================================================================
   5. SECTION EVENT CAROUSEL (Testimoni-Style)
   ========================================================================== */

/* CONTAINER UTAMA DUA KOLOM (Desktop: Berdampingan Menyamping) */
.split-content-container {
  display: flex;
  flex-direction: row;       /* MEMAKSA konten berjejer menyamping di desktop */
  justify-content: center;   /* Membuat kedua kolom rata tengah */
  align-items: flex-start;   /* Menjaga bagian atas kartu sejajar rata */
  gap: 40px;                 /* Jarak spasi horizontal antara Dokumentasi dan Promo */
  max-width: 1200px;         /* Batas maksimal lebar area konten web */
  margin: 40px auto;         /* Jarak atas-bawah dan otomatis di tengah */
  padding: 0 20px;           /* Jarak aman di kanan-kiri desktop */
  box-sizing: border-box;
}

/* Mengatur masing-masing area kartu (Dokumentasi & Promo) */
.split-content-container .event-section {
  flex: 1;                   /* Membagi lebar seimbang 50% - 50% */
  width: 100%;
  max-width: 500px;          /* Batas lebar maksimal masing-masing card */
  margin: 0;                 
  padding: 0;                
  box-sizing: border-box;
}

.split-content-container .section-title {
  font-size: 24px;
  font-weight: bold;
  color: #0b5345;            
  margin-bottom: 20px;
  text-align: center;
}

/* STRUKTUR UTAMA WADAH CAROUSEL */
.event-carousel-wrapper {
  position: relative;
  width: 100%;               
  overflow: hidden;
  border-radius: 12px;
  background: transparent;   /* Mencegah kebocoran warna putih sudut gambar */
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.event-carousel-track { 
  display: flex; 
  transition: transform 0.5s ease; 
  width: 100%; 
}

.event-slide { 
  min-width: 100%; 
  box-sizing: border-box; 
  display: flex; 
  flex-direction: column; 
}

/* PERBAIKAN SUDUT & RASIO GAMBAR */
.event-img-box { 
  width: 100%; 
  aspect-ratio: 4 / 3;       /* Mengunci rasio 4:3 pas dengan ukuran flyer Anda */
  overflow: hidden; 
  background-color: transparent; 
  border-radius: 12px 12px 0 0; /* Sudut atas gambar melengkung rapi */
}

.event-img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain;       /* Gambar masuk utuh tanpa terpotong teksnya */
}

/* AREA INFO TEKS */
.event-info { 
  padding: 25px; 
  text-align: center; 
  background: var(--white); 
  border-radius: 0 0 12px 12px; /* Sudut bawah info melengkung rapi */
}

.event-info h4 { 
  color: var(--sp-green); 
  font-size: 1.25rem; 
  margin-bottom: 8px; 
}

.event-info p { 
  font-size: 0.95rem; 
  color: #566573; 
  line-height: 1.5; 
}

/* ==========================================================================
   TOMBOL NAVIGASI & DOTS (ANTI KURSOR POINTER GLOBAL)
   ========================================================================== */
.event-nav-btn {
  position: absolute;
  top: 50%; 
  transform: translateY(-130%); /* Menyelaraskan posisi tombol di tengah area gambar 4/3 */
  background: rgba(11, 83, 69, 0.7);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.3s;
  cursor: default !important;   /* Menghilangkan kursor tangan */
}

.event-nav-btn:hover { 
  background: var(--sp-light-green); 
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.event-dots-container { 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  padding-bottom: 20px; 
  background: var(--white); 
}

.event-dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: #d5dbdb; 
  transition: background 0.3s; 
  cursor: default !important;   /* Menghilangkan kursor tangan */
}

.event-dot.active { 
  background: var(--sp-light-green); 
  width: 20px; 
  border-radius: 5px; 
}

/* Mematikan kursor pointer untuk semua elemen anak di dalam tombol navigasi */
.event-nav-btn *, 
.event-dots-container * {
  cursor: default !important;
}

/* ==========================================================================
   MEDIA QUERY MOBILE (Otomatis responsif saat dibuka di layar HP < 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .split-content-container {
    flex-direction: column;  /* Mengubah susunan menyamping menjadi vertikal (tumpuk ke bawah) */
    align-items: center;
    gap: 45px;               /* Jarak vertikal pemisah antar kolom saat menumpuk */
    padding: 0 20px;         /* Batas jarak 20px di kiri & kanan layar HP agar tidak meluber */
  }

  .split-content-container .event-section {
    max-width: 100%;         /* Card otomatis melebar mengikuti lebar layar HP */
  }
}


/* ==========================================================================
   6. MAP MARKETING GALLERY
   ========================================================================== */
.map-section { 
  padding: 60px 5%; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.map-subtitle { 
  text-align: center; 
  color: var(--sp-dark); 
  margin-bottom: 30px; 
  font-size: 1rem; 
  opacity: 0.8; 
}

.map-container { 
  width: 100%; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
  border: 4px solid var(--white); 
}

/* ==========================================================================
   7. FOOTER SECTION & SOCIAL MEDIA
   ========================================================================== */
.site-footer { 
  background-color: #052620; 
  color: #bdc3c7; 
  padding: 70px 5% 0 5%; 
  font-size: 0.95rem; 
  margin-top: 60px; 
}

.footer-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 40px; 
  padding-bottom: 40px; 
}

.footer-column h3 { 
  color: var(--white); 
  margin-bottom: 25px; 
  position: relative; 
}

.footer-column h3::after { 
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: -8px; 
  width: 35px; 
  height: 3px; 
  background-color: var(--sp-light-green); 
}

.footer-column p { 
  margin-bottom: 15px; 
}

.footer-links { 
  list-style: none; 
}

.footer-links li { 
  margin-bottom: 10px; 
}

.footer-links a { 
  color: #bdc3c7; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  display: inline-block; 
  cursor: pointer !important;
}

.footer-links a:hover { 
  color: var(--sp-light-green); 
  transform: translateX(4px); 
}

.footer-newsletter { 
  display: flex; 
  margin-top: 15px; 
}

.footer-newsletter input { 
  width: 100%; 
  padding: 10px; 
  border: 1px solid rgba(255,255,255,0.1); 
  background: rgba(255,255,255,0.08); 
  color: var(--white); 
  border-radius: 4px 0 0 4px; 
  outline: none; 
}

.btn-submit { 
  background: var(--sp-light-green); 
  border: none; 
  color: var(--white); 
  padding: 0 15px; 
  border-radius: 0 4px 4px 0; 
  cursor: pointer !important; 
  font-weight: 600; 
}

.footer-social-wrapper { 
  margin-top: 20px; 
}

.social-title { 
  font-size: 0.9rem; 
  margin-bottom: 10px; 
  color: var(--white); 
}

.social-links { 
  display: flex; 
  gap: 10px; 
  list-style: none; 
}

.social-item a { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.06); 
  transition: all 0.3s ease; 
  cursor: pointer !important;
}

.social-item svg { 
  width: 18px; 
  height: 18px; 
  fill: #bdc3c7; 
}

.social-item a:hover { 
  background: var(--sp-light-green); 
  transform: translateY(-3px); 
}

.social-item a:hover svg { 
  fill: var(--white); 
}

.footer-copyright { 
  border-top: 1px solid rgba(255,255,255,0.06); 
  padding: 20px 5%; 
  text-align: center; 
  background: #031a16; 
}

.footer-copyright a { 
  color: var(--sp-light-green); 
  text-decoration: none; 
  cursor: pointer !important;
}

/* ==========================================================================
   8. FLOATING WHATSAPP
   ========================================================================== */
.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366; /* Warna latar hijau khas WhatsApp */
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.floating-wa:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/* Mengatur ukuran dan warna ikon SVG di dalam lingkaran tombol */
.floating-wa svg.wa-icon {
  width: 32px;
  height: 32px;
  fill: #ffffff; /* Warna logo putih */
}

