:root {
  --primary-blue: #0056b3;
  --royal-blue: #4169e1;
  --dark-blue: #003366;
  --light-gray: #f8f9fa;
  --dark-gray: #333;
}

/* ======================
   Base & Typography
====================== */
body {
  padding-top: 130px;
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  background: linear-gradient(to bottom right, #eef3ff, #ffffff);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Optional background pattern image (kanan atas) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: url('assets/img/pattern.svg') no-repeat top right;
  background-size: contain;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.bg-royal {
  background-color: var(--royal-blue);
}

.text-royal {
  color: var(--royal-blue) !important;
}

.page-header {
  margin-top: 50px;
}

.btn-royal {
  background-color: var(--royal-blue);
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-royal:hover {
  background-color: #2d4bbd; /* sedikit lebih gelap untuk efek hover */
  color: #fff;
}


/* ======================
   Top Navbar
====================== */
.top-navbar {
  background-color: var(--royal-blue);
  font-size: 0.9rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  z-index: 1030;
  position: relative;
  overflow: hidden;
}

.navbar-overlay-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('assets/img/nav-shape-left.svg') left top no-repeat,
              url('assets/img/nav-shape-right.svg') right top no-repeat;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}


.language-selector {
  display: flex;
  align-items: center;
  padding-top: 10px;
  position: relative; /* ⬅️ agar dropdown bisa diposisikan relatif terhadap ini */
  z-index: 1061; /* ⬅️ Lebih tinggi dari .main-navbar (1050) */
}

.language-selector .dropdown-toggle {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: absolute;
  z-index: 1062;
}

/* Search box styled as oval */
.custom-search {
  max-width: 300px;
  width: 100%;
  border-radius: 50px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 0 2px white;
}

.custom-search input.form-control {
  border: none;
  padding: 10px 16px;
  border-radius: 50px 0 0 50px;
  font-size: 0.9rem;
}

.custom-search .input-group-text {
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 0 16px;
  cursor: pointer;
}


/* ======================
   Main Navbar
====================== */
.main-navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1050;
}

.main-navbar .nav-link {
  color: var(--dark-blue);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  position: relative;
  transition: color 0.3s ease;
}

.main-navbar .nav-link:hover {
  color: var(--primary-blue);
}

.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.main-navbar .nav-link:hover::after {
  width: 100%;
}
/* Fix: Navbar terlalu tinggi karena konflik Tailwind */
.navbar {
  padding-top: 0.75rem !important;  /* = Bootstrap's py-3 */
  padding-bottom: 0.75rem !important;
}

/* Fix: Tailwind apply display block to everything */
.navbar-nav .nav-link {
  display: inline-block !important;
}

/* Fix: Tailwind h2 in navbar */
.navbar h2,
.navbar h1 {
  font-size: 1.25rem !important;
  margin-bottom: 0 !important;
}


/* ======================
   Dropdown Menu
====================== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
  display: none;
  z-index: 1050;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu > a::after {
  display: none;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f1f1f1;
  color: var(--primary-blue);
}

/* ======================
   Carousel Hero Section
====================== */
.carousel-caption {
  top: 0 !important;
  transform: translateY(20%);
  bottom: auto;
  color: #000;
  padding-top: 0rem;
  text-align: center;
}

.carousel-caption h2,
.carousel-caption p {
  color: #f8f9fa !important;
  text-shadow: none;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-blue);
}

@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

/* ======================
   Section Title
====================== */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  display: center; /* biar bisa center */
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--primary-blue);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* biar garisnya center */
}


/* ======================
   Product Cards
====================== */

.product-card {
  border: none;
  border-radius: 8px;
  transition: transform 0.3s;
  margin-bottom: 30px;
  background: white;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card .card-img-top {
  border-radius: 8px 8px 0 0;
  height: 200px;
  object-fit: contain; /* <--- ubah dari cover ke contain */
  background-color: #f8f9fa; /* fallback warna latar belakang */
}

.product-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}


/* Custom Timeline CSS */
 .timeline-horizontal {
  overflow-x: auto;
  padding: 30px 0; /* ↓ jarak antar row */
  gap: 10px;       /* opsional: spacing antar card */
  position: relative;
}

.timeline-horizontal .timeline-line {
  position: absolute;
  top: 100px; /* sesuaikan jarak dari atas card */
  height: 3px;
  background-color: #ccc; /* warna garis */
  width: 100%;
  left: 0;
}

  .timeline-line-svg {
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
  }

  .timeline-line-svg path {
  transition: all 0.4s ease-in-out;
  }

  .timeline-item {
  position: relative;
  z-index: 2;
  width: 150px; /* ← Ukuran diperkecil */
  background: #fff;
  padding: 16px; /* ← padding sedikit dikurangi */
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  flex: 1;
  min-width: 140px;
  max-width: 140px;
}

.timeline-line {
  position: absolute;
  top: 100px;
  left: 10%;
  right: 10%;
  width: 89%;
  height: 2px;
  background-color: #ccc;
  z-index: 0;
}

  .timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .text-royal {
    color: var(--royal-blue);
  }



.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

/* Timeline Connector Dynamic */
.timeline-connector {
  position: absolute;
  width: 3px;
  background-color: #ccc;
  z-index: 0;
  transition: all 0.4s ease-in-out;
}


.timeline-corner {
  position: absolute;
  width: 100%;
  height: 80px;
  z-index: 0;
  pointer-events: none;
}
.timeline-corner path {
  stroke: #ccc;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column !important;
    align-items: center !important;
    position: relative;
  }

  .timeline-horizontal .timeline-line {
    display: block !important;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #ccc;
    z-index: 0;
  }

  .timeline-horizontal .timeline-item {
    width: 90%;
    position: relative;
    margin-bottom: 2.5rem;
  }

  .timeline-horizontal .timeline-icon {
    position: relative;
    z-index: 1;
  }
}




/*   Animasi Hoover */

.card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

/*<!-- popup klik all product -->*/

 .product-card {
    border-radius: 0.75rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
  }
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .product-img {
    object-fit: cover;
    height: 300px;
    transition: transform 0.3s ease;
  }
  .product-img:hover {
    transform: scale(1.05);
  }
  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .product-card:hover .overlay {
    opacity: 1;
  }

.overlay {
    opacity: 0;
}
.card:hover .overlay {
    opacity: 1;
}
.modal-content {
    border: none;
}
.modal-header .btn-close {
    background-size: 10px;
    opacity: 0.5;
}
.modal-header .btn-close:hover {
    opacity: 0.75;
}


/* ======================*/
/*   Footer*/
/*====================== */
.main-footer {
  background-color: var(--royal-blue);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-links h5 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: white;
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #aaa;
}

/*Logo Customer (grid Version)*/
.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.grayscale-hover:hover {
  filter: grayscale(0%);
}

/* carousel efek zoom in/out di gambar fasilitas index*/

.carousel-item img {
  transform: scale(1);
  transition: transform 8s ease;
  object-fit: cover;
  height: 500px;
  object-position: center;
}

.carousel-item.active img {
  transform: scale(1.08);
}

.carousel-caption.left-align {
  position: absolute;
  left: 5%;
  top: 20%;
  text-align: left;
  max-width: 500px;
  z-index: 10;
}

.text-wrapper {
  max-width: 500px;
}

@media (max-width: 768px) {
  .caption.left-align {
    top: 10%;
    left: 5%;
    right: 5%;
    text-align: center;
  }
}

/*About Banner profile*/

.about-banner {
  height: 1000px; /* Atur tinggi sesuai kebutuhan */
  width: 100%;
  overflow: hidden;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.about-caption {
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 500px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

@media (max-width: 768px) {
  .about-banner {
    height: 400px; /* Lebih pendek di mobile */
  }
  
  .about-caption {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
    text-align: center;
  }
}


/* Style dasar untuk section gallery */
.gallery-section {
    padding: 3rem 0;
    background-color: white;
}

/* Container utama gallery */
.gallery-container {
    display: flex;
    justify-content: center; /* Pusatkan kolom */
    gap: 3rem; /* Jarak besar antar kolom */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Style untuk setiap kolom gallery */
.gallery-column {
    flex: 0 0 auto; /* Tidak grow/shrink */
}

/* Container untuk pasangan gambar */
.image-pair {
    display: flex;
    gap: 0.75rem; /* Jarak kecil horizontal antar gambar dalam pasangan */
    align-items: flex-start; /* Biarkan item tidak sejajar vertikal */
}

/* Gambar kedua dalam pasangan turun ke bawah */
.image-pair .gallery-item:nth-child(2) {
    margin-top: 30px; /* Turunkan 30px dari atas */
}

/* Style untuk setiap item gambar */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 160px; /* Lebar diperkecil */
    height: 190px; /* Tinggi diperkecil */
}

/* Style untuk gambar */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Efek hover untuk scaling */
.gallery-item:hover {
    transform: scale(1.08);
}


/*whatsapp float*/
.whatsapp-float {
  position: fixed;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  z-index: 9999;
  animation: floatWapp 3s ease-in-out infinite;
  transition: transform 0.3s;
}


.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes floatWapp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}



/* Responsive design untuk tablet */
@media (max-width: 992px) {
    .gallery-container {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .gallery-column {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .image-pair {
        justify-content: center;
    }
}

/* Responsive design untuk mobile */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery-column {
        flex: 0 0 100%;
    }
    
    .image-pair {
        justify-content: center;
    }
}

/* Optional: spacing and hover */
.col-md-6 a img {
  transition: transform 0.2s ease;
}

.col-md-6 a:hover img {
  transform: scale(1.1);
}

/* Language Switch Flags */
.language-switch {
  gap: 1rem;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.flag-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.flag-icon:hover {
  transform: scale(1.1);
}

/* Search Form (optional, improve spacing) */
.search-form .form-control {
  border-radius: 20px 0 0 20px;
}

.search-form .input-group-text {
  border-radius: 0 20px 20px 0;
}

 .hero-video {
  width: 100%;
  height: 500px;
  object-fit: cover;   /* biar lebar full, tapi crop dikit */
  display: block;
}

/* Responsif buat tablet */
@media (max-width: 992px) {
  .hero-video {
    height: 400px;
  }
}

/* Responsif buat HP */
@media (max-width: 576px) {
  .hero-video {
    height: 250px;
  }
}
