/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
  --bg-primary: #26667f;
  /* Biru Laut */
  --bg-secondary: #ddf4e7;
  /* Hijau Mint */
  --text-dark: #13434b;
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  /* Mencegah scroll samping */
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
}

/* =========================================
   2. NAVBAR (DESKTOP MODE)
   ========================================= */
.navbar {
  width: 100%;
  background-color: var(--bg-secondary);
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar nav {
  display: flex;
  /* MENU DI KIRI (DEKAT LOGO) */
  justify-content: start;
  align-items: center;
  padding: 0 5%;
  height: 80px;
  max-width: 1800px;
  margin: 0 auto;
  background-color: #ddf4e7;
}


/* Logo */
.navbar nav img {
  height: 50px;
  width: auto;
  cursor: pointer;
  /* Jarak antara Logo dan Menu */
  margin-right: 60px;
}

/* Container Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Link & Dropdown Button */
.nav-links a,
.dropbtn {
  font-size: 16px;
  font-weight: 500;
  color: var(--bg-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.nav-links a:hover,
.dropbtn:hover {
  color: #1a4a5e;
}

.nav-links a.active {
  color: #1a4a5e;
  font-weight: 700;
}

/* Optional: Add an underline or indicator for the active state */
.nav-links a.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a4a5e;
  border-radius: 2px;
}

/* Icon Burger & Close (Hidden di Desktop) */
.menu-icon,
.close-icon {
  display: none;
  cursor: pointer;
  color: var(--bg-primary);
  font-size: 28px;
}

/* Dropdown Content */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 101;
  border-radius: 8px;
  padding: 10px 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 20px;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* =========================================
   3. MOBILE & TABLET (SIDEBAR MODE)
   ========================================= */
@media (max-width: 1024px) {

  /* Kembalikan space-between agar Logo Kiri, Burger Kanan */
  .navbar nav {
    justify-content: space-between;
  }

  .navbar nav img {
    margin-right: 0;
    /* Reset margin logo */
  }

  .menu-icon {
    display: block;
  }

  /* SIDEBAR SETTING */
  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    /* Sembunyi */
    height: 100vh;
    width: 250px;
    background-color: var(--bg-secondary);

    /* Paksa Vertikal */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;

    padding: 80px 20px 30px 20px;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    overflow-y: auto;
  }

  .close-icon {
    display: block;
    position: absolute;
    top: 25px;
    left: 25px;
  }

  /* Item Menu di Sidebar */
  .nav-links>a,
  .nav-links>.dropdown {
    width: 100%;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 18px;
  }

  .nav-links a,
  .dropbtn {
    width: 100%;
    justify-content: space-between;
  }

  /* Dropdown Mobile */
  .dropdown {
    width: 100%;
  }

  .dropdown:hover .dropdown-content {
    position: relative;
    top: 0;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.5);
    width: 100%;
    padding-left: 10px;
    margin-top: 5px;
  }
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.about,
.about1,
.about2,
.about3,
.about4 {
  background-size: cover;
  background-position: center;
  color: var(--bg-secondary);
  padding: 120px 5% 60px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background Images */
.about {
  background-image: url("../img/cover1.png");
  text-align: center;
}

.about1 {
  background-image: url("../img/rinjani.png");
  text-align: left;
}

.about2 {
  background-image: url("../img/cover1.png");
  text-align: left;
}

.about3 {
  background-image: url("../img/cover1.png");
  text-align: left;
}

.about4 {
  background-image: url("../img/b.souvenir.jpg");
  text-align: left;
}

.about h1,
.about1 h1,
.about2 h1,
.about3 h1,
.about4 h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.about p,
.about1 p,
.about2 p,
.about3 p,
.about4 p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
}

.about .about-me p {
  margin: 0 auto;
}

/* Center text */

@media (max-width: 768px) {

  .about,
  .about1,
  .about2,
  .about3,
  .about4 {
    text-align: center;
    padding: 80px 20px;
  }

  .about h1,
  .about1 h1,
  .about4 h1 {
    font-size: 2.5rem;
  }
}

/* =========================================
   5. INFO CARDS (LAYOUT FIXED: TOMBOL & GAMBAR)
   ========================================= */

/* --- TAMPILAN DESKTOP --- */
.info-card {
  display: flex;
  flex-direction: row;
  /* Wajib Row: Kiri Teks, Kanan Visual */
  background-color: var(--bg-primary);
  color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Ukuran & Posisi */
  width: 95%;
  max-width: 1800px;
  margin: 40px auto;
  margin-left: 3.5rem;
  /* Margin kiri sesuai request */
  min-height: 350px;
}

/* Kolom Kiri: Teks */
.card-content {
  flex: 1 1 60%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Kolom Kanan: Visual (Gambar + Tombol) */
.card-visual {
  flex: 0 0 40%;
  /* Lebar fix 40% */
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  /* Stack Vertikal */
  align-items: center;
  /* Rata Tengah */
  padding: 20px;
}

/* Gambar */
.card-visual img {
  width: 100%;
  height: 250px;
  /* Tinggi Fix */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  /* Jarak ke caption */
  display: block;
}

/* Judul */
.title {
  background-color: #cce8e2;
  color: #2a6a6f;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  align-self: flex-start;
}

.description {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

/* Caption */
.location-caption {
  font-size: 14px;
  font-style: italic;
  text-align: center;
  color: #cce8e2;
  margin-bottom: 15px;
}

/* Tombol Booking */
.book-button {
  display: inline-block;
  width: 80%;
  background-color: transparent;
  border: 2px solid #cce8e2;
  color: #cce8e2;
  padding: 12px 0;
  text-align: center;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.book-button:hover {
  background-color: #cce8e2;
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* --- RESPONSIVE CARD (TABLET & HP) --- */
@media (max-width: 1024px) {
  .info-card {
    flex-direction: column;
    /* Stack Vertikal */
    margin: 30px auto;
    /* Tengah Otomatis */
    width: 90%;
    max-width: 600px;
    height: auto;
  }

  .card-visual {
    width: 100%;
    order: -1;
    /* Gambar pindah ke atas teks */
    padding: 20px;
  }

  .card-visual img {
    height: 250px;
  }

  .card-content {
    padding: 30px 20px;
  }

  .title,
  .book-button {
    align-self: center;
    text-align: center;
  }
}

/* =========================================
   6. FOOTER
   ========================================= */
.custom-footer {
  background-color: #dff5ec;
  /* Warna hijau muda sesuai gambar */
  padding: 40px 5%;
  font-family: "Poppins", sans-serif;
  color: #13434b;
  /* Warna teks hijau tua/teal */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Opsional: garis halus di atas */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Vertikal center */
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  /* Agar responsif di HP */
  gap: 30px;
}

/* --- BAGIAN KIRI (LOGO) --- */
.logo-section {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.footer-logo {
  max-width: 200px;
  /* Sesuaikan ukuran logo */
  height: auto;
}

/* --- BAGIAN TENGAH (KONTAK) --- */
.contact-section {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

.email {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  word-wrap: break-word;
  /* Ensure long emails wrap */
  overflow-wrap: break-word;
  max-width: 100%;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  text-decoration: none;
  color: #13434b;
  font-size: 1.5rem;
  border: 2px solid #13434b;
  /* Kotak outline */
  border-radius: 8px;
  /* Sudut tumpul */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #13434b;
  color: #dff5ec;
}

/* --- BAGIAN KANAN (PAYMENT) --- */
.payment-section {
  flex: 1;
  text-align: left;
  /* Sesuai gambar, judul rata kiri relatif terhadap grupnya */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Taruh di sebelah kanan container */
}

.payment-section h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #13434b;
  text-align: center;
  width: 100%;
  max-width: 250px;
  /* Batasi lebar agar align dengan grid logo */
}

.payment-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 Kolom logo */
  gap: 10px;
  max-width: 250px;
}

.payment-logos img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-height: 40px;
  /* Batasi tinggi logo */
}

@media (max-width: 768px) {
  .custom-footer {
    padding: 40px 20px;
    width: 100%;
    /* Ensure it doesn't get squished */
    box-sizing: border-box;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 30px;
    padding: 0;
    /* Clear potential side padding in container */
  }

  .logo-section {
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    /* Ensure logo section takes full space */
  }

  .payment-section {
    align-items: center;
    width: 100%;
  }

  .payment-section h3 {
    text-align: center;
    font-size: 1rem;
    /* Kecilkan judul payment */
  }

  /* Kecilkan Logo */
  .footer-logo {
    max-width: 150px;
  }

  .phone-number {
    font-size: 1rem;
    /* Lebih kecil lagi */
    text-align: center;
    width: 100%;
  }

  .email {
    font-size: 0.9rem;
    /* Lebih kecil lagi */
    text-align: center;
    width: 100%;
    word-break: break-all;
  }

  /* Kecilkan icon socmed */
  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  /* Kecilkan logo payment */
  .payment-logos {
    max-width: 220px;
    /* Batasi lebar container logo payment */
  }
}

/* =========================================
   7. SLIDER (HOME)
   ========================================= */
.slider-container {
  position: relative;
  width: 90%;
  max-width: 1800px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

@media (max-width: 768px) {
  .slide {
    min-width: 100%;
  }

  /* 1 Gambar di HP */
}

/* =========================================
   8. NEW HOMEPAGE SECTIONS
   ========================================= */

/* Why Choose Us */
#why-choose-us .rounded-2xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-choose-us .rounded-2xl:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
#testimonials {
  background-image: linear-gradient(rgba(38, 102, 127, 0.9), rgba(38, 102, 127, 0.9)), url('../img/rinjani.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* FAQ */
#faq button:focus {
  outline: none;
}

#faq .rotate-180 {
  transform: rotate(180deg);
}



/* --- 9. SLIDER (GALLERY/TEAM) --- */
.team {
  padding: 4rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
}

.slider {
  width: 100%;
  max-width: 1600px;
  /* Increased max-width for better 4-column view */
  position: relative;
  overflow: hidden;
  padding: 0 1rem;
}

.track {
  display: flex;
  gap: 20px;
  /* Fixed gap */
  cursor: grab;
  touch-action: pan-y;
  padding: 2rem 0;
  transition: transform 0.3s ease-out;
  /* Smooth slide */
}

.track:active {
  cursor: grabbing;
}

.slide {
  /* Logic for 4 items: (100% - 3*gap) / 4 */
  flex: 0 0 calc((100% - 60px) / 4);
  height: 400px;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  user-select: none;
  background: white;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: translateY(-5px);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  pointer-events: none;
}

.name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.role {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #26667f;
  /* Primary color for visibility */
  color: white;
  border: 2px solid white;
  width: 4rem;
  /* Larger buttons */
  height: 4rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.arrow:hover {
  background: #1a4a5e;
  transform: translateY(-50%) scale(1.1);
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.dot[aria-current="true"] {
  background: var(--bg-primary);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .slide {
    flex: 0 0 calc((100% - 20px) / 2);
    /* 2 items on tablet */
  }
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
    /* 1 item on mobile */
    height: 450px;
  }

  .arrow {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }

  .slider {
    padding: 0 1rem;
  }
}