/* Global Reset for Shadow */
    *, *::before, *::after {
      box-shadow: none !important;      
    }

    /* Custom Variables & Color Palette */
    :root {
      --bg-primary: #F8F7E8;
      --bg-secondary: #000000;
      --bg-dark: #0A0A0A;
      --text-primary: #000000;
      --text-accent: #E7DE83;
      --bs-border-color: #eee; /* Replace with your custom hex color */
      --bs-primary: #E7DE83;
      --bs-primary-rgb: 231, 222, 131; /* Keep RGB values matching your hex */
    }

    /* Menjaga posisi scroll saat modal/offcanvas dibuka & ditutup */
    html {
      scroll-behavior: smooth !important;
    }
    body {
      font-family: 'Barlow', sans-serif;
      color: #1A1A1A;
      background-color: #ffffff;
      overflow-x: hidden;
    }
    
    h1, h2, h3, h4, h5, h6, .oswald {
      font-family: 'Barlow Condensed', sans-serif;
      text-transform: uppercase;
    }

    /* Custom Utility Classes */
    .bg-custom-primary { background-color: var(--bg-primary) !important; }
    .bg-custom-secondary { background-color: var(--bg-secondary) !important; }
    .text-custom-primary { color: var(--text-primary) !important; }
    .text-accent { color: #9A850F !important; }
    .border-accent { border-color: var(--text-accent) !important; }
    
    .btn-custom-primary { 
      background-color: var(--bg-secondary); 
      color: #ffffff; 
      transition: all 0.3s ease; 
      border: none;
      text-transform: uppercase;
      font-weight: 700;
    }
    .btn-custom-primary:hover { 
      transform: translateY(-2px) scale(1.02); 
      background-color: #1A1A1A; 
      color: #ffffff;
    }
    
    .btn-custom-secondary { 
      background-color: var(--text-accent); 
      color: var(--text-primary); 
      transition: all 0.3s ease; 
      border: none;
      text-transform: uppercase;
      font-weight: 700;
    }
    .btn-custom-secondary:hover { 
      transform: translateY(-2px) scale(1.02); 
      background-color: #d1c875; 
      color: var(--text-primary);
    }

    /* Scroll Progress Bar */
    #scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 4px;
      background-color: var(--text-accent);
      z-index: 1055;
      transition: width 0.1s ease-out;
    }

    /* Marquee Horizontal Animation */
    @keyframes marquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .animate-marquee {
      display: flex;
      width: max-content;
      animation: marquee 30s linear infinite;
    }
    .animate-marquee:hover {
      animation-play-state: paused;
    }

    /* Marquee Vertical Animation */
    @keyframes marquee-vertical {
      0% { transform: translateY(0); }
      100% { transform: translateY(-50%); }
    }
    .animate-marquee-vertical {
      display: flex;
      flex-direction: column;
      animation: marquee-vertical 25s linear infinite;
    }
    .animate-marquee-vertical:hover {
      animation-play-state: paused;
    }
    .marquee-container-vertical {
      height: 480px;
      overflow: hidden;
      position: relative;
      mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
      -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    }

    /* Animations & Transitions */
    @media (prefers-reduced-motion: no-preference) {
      .animate-section {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .animate-section.in-view {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
      }
      .animate-section.out-view {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        filter: blur(16px);
      }
      
      .stagger-child {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .in-view .stagger-child, .in-view.stagger-child {
        opacity: 1;
        transform: translateY(0);
      }
      .out-view .stagger-child, .out-view.stagger-child {
        opacity: 0;
        transform: scale(0.95);
      }
      
      @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
      }
      .animate-float {
        animation: float 4s ease-in-out infinite;
      }
    }

    .nav-link-custom {
      position: relative;
      display: inline-block;
      text-decoration: none;
    }
    .nav-link-custom::after {
      content: '';
      position: absolute;
      width: 100%;
      transform: scaleX(0);
      height: 2px;
      bottom: -2px;
      left: 0;
      background-color: currentColor;
      transform-origin: bottom right;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-link-custom:hover::after {
      transform: scaleX(1);
      transform-origin: bottom left;
    }

    .border-start.border-end {
      border-top: 4px solid #F7E988;
    }
    .border-0.border-start {
      border-left: 4px solid #F7E988 !important;
    }
    .card-hover {
      border-radius: 0 !important;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card-hover:hover {
      transform: translateY(-8px);
    }

    .img-zoom-hover img {
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .img-zoom-hover:hover img {
      transform: scale(1.08);
    }

    #back-to-top {
      transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 0;
      transform: translateY(20px) scale(0.9);
      pointer-events: none;
    }
    #back-to-top.show {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
    #back-to-top:hover {
      transform: translateY(-4px) scale(1.1);
    }

    /* Custom Accordion override */
    .accordion-button:not(.collapsed) {
      background-color: transparent;
    }
    .accordion-button::after {
      filter: invert(20%);
    }


    /* Container Utama Timeline */
    .timeline-wrapper {
      position: relative;
      padding-left: 28px;
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }

    /* Garis Vertikal Latar */
    .timeline-wrapper::before {
      content: '';
      position: absolute;
      top: 10px;
      bottom: 10px;
      left: 7px;
      width: 2px;
      background-color: var(--text-accent) ;
      z-index: 1;
    }

    /* Item Timeline */
    .timeline-item {
      position: relative;
      /* Menerapkan Animasi Berbasis Scroll */
      animation: timelineScrollInOut linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    /* Titik / Bullet Timeline */
    .timeline-dot {
      position: absolute;
      left: -28px;
      top: 4px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: #ffffff;
      border: 3px solid var(--text-accent);
      z-index: 2;
      /* Animasi perubahan warna titik saat scroll */
      animation: dotActivate linear both;
      animation-timeline: view();
      animation-range: entry 10% exit 90%;
    }

    .video-container{
      max-height: 540px;
    }
    /* KEYFRAMES ANIMASI */

    /* 1. Efek In & Out untuk Isi Content */
    @keyframes timelineScrollInOut {
      /* Masuk dari bawah (Scroll Down) */
      0% {
        opacity: 0;
        transform: translateY(40px);
      }
      /* Sepenuhnya terlihat di tengah layar */
      20%, 80% {
        opacity: 1;
        transform: translateY(0);
      }
      /* Keluar ke atas (Scroll Up / Lanjut Scroll) */
      100% {
        opacity: 0;
        transform: translateY(-40px);
      }
    }

    /* 2. Efek Menyala untuk Titik/Dot */
    @keyframes dotActivate {
      0%, 100% {
        border-color: var(--text-accent) ;
        background-color: var(--text-accent) ;
        box-shadow: none;
      }
      20%, 80% {
        border-color: var(--text-accent);
        background-color: var(--text-accent);
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
      }
    }

    .sticky-right-space {
      height: 24px;
    }
    .sticky-left-column .image-container {
      height: auto;
    }
    .sticky-left-column.vh-100 {
      height: auto !important;
    }

    /* Hanya jalankan efek sticky pada layar Desktop/Tablet (Layar Medium ke atas) */
    @media (min-width: 768px) {
      .sticky-left-column {
        position: sticky;
        top: 2rem; /* Jarak dari atas layar saat diam/sticky */
        height: calc(100vh - 4rem); /* Ketinggian otomatis menyesuaikan tinggi layar */
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      @supports (height: 100dvh) {
        .sticky-left-column {
          height: calc(100dvh - 4rem);
        }
      }
      .sticky-left-column .image-container {
        height: 100%;
      }
      .sticky-left-column.vh-100 {
      height: 100vh !important;
    }
    @supports (height: 100dvh) {
      .sticky-left-column.vh-100 {
        height: 100dvh !important;
      }
    }
    .sticky-right-space {
      height: 120px;
    }

      .video-container {
        flex-grow: 1;
        max-height: 70vh; /* Agar video tidak terlalu jangkung dan pas di layar */
        width: 100%;
      }
    }

    /* Penyesuaian agar overflow dari parent tidak merusak sticky behavior */
    section.bg-custom-primary {
      overflow: visible !important;
    }






.auto-contrast-btn {
  color: #ffffff !important; /* Warna dasar diset putih */
  mix-blend-mode: difference; /* Membalikkan warna secara otomatis terhadap latar belakang */
  isolation: isolate;
}

/* Pastikan SVG ikut berubah warna */
.auto-contrast-btn svg {
  display: block;
  fill: currentColor;
}

.navbar-brand.position-fixed,
.btn.position-fixed {
  margin: 32px 48px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#main-header .bg-backdrop {
  display: none;
}

/* ===================================================
   STYLE SAAT HALAMAN DI-SCROLL (.scrolled)
   =================================================== */
#main-header.scrolled .bg-backdrop {
  background: linear-gradient(180deg, #F8F7E8 0%, rgba(248, 247, 232, 0) 100%);
  height: 80px;
  display: block;
}
#main-header.scrolled .navbar-brand img {
  max-height: 60px;
}
#main-header.scrolled .navbar-brand,
#main-header.scrolled .auto-contrast-btn {
  /* Margin menyusut saat di-scroll agar lebih compact */
  margin: 16px 24px; 
}

#main-header.scrolled .navbar-logo {
  /* Logo sedikit mengecil */
  transform: scale(0.85); 
  transform-origin: left center;
}

#main-header.scrolled .auto-contrast-btn {
  /* Tombol sedikit mengecil */
  transform: scale(0.9);
  transform-origin: right center;
}

/* Penyesuaian Responsif Mobile */
@media (max-width: 768px) {
  #main-header .navbar-brand,
  #main-header .auto-contrast-btn {
    margin: 20px 24px;
  }

  /* Logo lebih kecil di mobile agar masuk hirarki (sejajar tombol menu,
   * tidak menimpa judul hero). SVG 90x90 diskalakan via width. */
  #main-header .navbar-brand img {
    width: 48px;
    height: 48px;
    display: block;
  }

  #main-header.scrolled .navbar-brand,
  #main-header.scrolled .auto-contrast-btn {
    margin: 12px 16px;
  }

  #main-header.scrolled .navbar-brand img {
    max-height: 40px;
    width: 40px;
    height: 40px;
  }
}







    /* Container Utama Carousel */
.testimonial-carousel-wrapper {
  position: relative;
/*  background-color: #ffffff;*/
}
.testimonial-video-wrapper {
  min-height: 540px;
}
/* Penyesuaian Tombol Navigasi */
.custom-carousel-btn {
  width: 42px;
  height: 42px;
/*  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 50%;*/
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  color: #212529;
/*  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
  transition: all 0.3s ease;
}

.custom-carousel-btn:hover {
  background-color: var(--bs-primary, #0d6efd);
  color: #ffffff;
  border-color: var(--bs-primary, #0d6efd);
/*  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);*/
}

.carousel-control-prev.custom-carousel-btn {
  left: 10px;
}

.carousel-control-next.custom-carousel-btn {
  right: 10px;
}

/* Indicators (Titik Navigasi Bawah) */
.custom-indicators {
  position: relative;
  margin-top: 1.5rem;
}

.custom-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-primary);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.custom-indicators .active {
  width: 28px;
  border-radius: 12px;
  background-color: var(--bg-dark);
}

/* Typography Accent */
.tracking-wide {
  letter-spacing: 0.05em;
}

/* Responsif Mobile: Sesuaikan posisi tombol panah */
@media (max-width: 576px) {
  .custom-carousel-btn {
    display: none; /* Sembunyikan tombol panah di HP agar fokus ke swipe / indicator */
  }
}

/* Style khusus untuk Avatar Indicators */
.custom-avatar-indicators {
  margin-left: 0 !important;
  margin-right: auto !important;
  gap: 0px;
}

.custom-avatar-indicators [data-bs-target] {
  width: 40px !important;
  height: 40px !important;
  text-indent: 0 !important; /* Menghilangkan efek hide-text bootstrap */
  background: none !important;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  padding: 0 !important;
  opacity: 0.24;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.custom-avatar-indicators [data-bs-target] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Status Aktif */
.custom-avatar-indicators .active {
  opacity: 1 !important;
  border-color: var(--text-accent) !important; /* Warna ring aktif */
  transform: scale(1.1); /* Efek sedikit membesar saat aktif */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hover Effect */
.custom-avatar-indicators [data-bs-target]:hover {
  opacity: 0.85;
}


/*BREADCRUMB*/
.breadcrumb li.breadcrumb-item,
.breadcrumb li.breadcrumb-item.active,
.breadcrumb li.breadcrumb-item a,
.breadcrumb-item+.breadcrumb-item::before {
  font-size: 12px;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
}

/* 1. Pembungkus Breadcrumb: 1 baris & Scroll Horizontal */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;          /* Memaksa semua item tetap 1 baris */
  white-space: nowrap;        /* Mencegah teks turun ke bawah */
  overflow-x: auto;           /* Mengaktifkan scroll horizontal */
  -webkit-overflow-scrolling: touch; /* Biar scroll smooth di iOS / Safari */
  width: 100%;
  
  /* Sembunyikan scrollbar di Firefox & IE/Edge */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;  /* IE dan Edge lama */
}

/* 2. Sembunyikan scrollbar di Chrome, Safari, Opera, dan Browser berbasis Chromium */
.breadcrumb::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 3. Mencegah item di dalamnya mengecil/mungret */
.breadcrumb .breadcrumb-item {
  flex-shrink: 0;             /* Menjaga setiap item tetap sesuai ukuran aslinya */
}



/* Style Dasar Form Search */
.search-expandable {
  width: 100%;
  max-width: 380px; /* Lebar default saat diam */
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efek Melebar saat Input di dalam Form di-Klik / Fokus */
.search-expandable:focus-within {
  max-width: 650px; /* Lebar maksimal saat aktif/fokus */
}

/* Kustomisasi Efek pada Input Group & Shadow */
.search-expandable .input-group {
  transition: border-color 0.3s ease;
  border: 1px solid var(--bs-white);
}

.search-expandable:focus-within .input-group {
  border: 1px solid var(--text-accent);
}

/* Responsif Mobile (Mulai dari tablet/desktop efek beraksi) */
@media (max-width: 576px) {
  .search-expandable,
  .search-expandable:focus-within {
    max-width: 100%; /* Pada layar HP kecil, biarkan 100% penuh */
  }
}




/*ARROW*/
.line-animated {
  width: 2px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.24);
  margin: 32px auto;
  z-index: 3;
  overflow: hidden;
  position: relative;
}
@keyframes heroBar {
  0% {
    transform: translateY(0) scaleY(0);
  }

  50% {
    transform: translateY(0) scaleY(1);
  }

  100% {
    transform: translateY(100%) scaleY(1);
  }
}
.line-animated:before {
  animation: heroBar 2s infinite normal;
    background-color: #000;
    content: "";
    height: 120px;
    position: absolute;
    transform: scaleY(0);
    transform-origin: top;
    width: 2px;
}

/* ============================================================
 * Mobile viewport helpers
 * ============================================================ */

/* Utility tinggi dipakai template (tidak ada di Bootstrap 5 standar). */
.min-vh-50 { min-height: 50vh; }

/* Tinggi viewport dinamis (mobile): mencegah konten terpotong/loncat
 * akibat address bar browser mobile (Safari iOS, Chrome Android). */
@supports (min-height: 100dvh) {
  .min-vh-50 { min-height: 50dvh; }
  .min-vh-100 { min-height: 100dvh; }
  .vh-100 { height: 100dvh; }
}

@media (min-width: 768px) {
  .min-vh-md-100 { min-height: 100vh; }
  @supports (min-height: 100dvh) {
    .min-vh-md-100 { min-height: 100dvh; }
  }
}


footer a svg {
  margin-top: -4px;
}


.entry-content a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #9A850F;
  text-decoration: none;
}
.entry-content a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-content a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.entry-content h2:first-child,
.entry-content h3:last-child {
  font-size: inherit;
  font-family: inherit;
  text-transform: none;
  font-weight: bold;
  margin-bottom: 24px;
}
.entry-content ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.5rem;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  top: 0.26rem; /* sesuaikan vertical alignment */
  left: 0;
  width: 1rem;
  height: 1rem;
  background-image: url('../img/check-circle-fill.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}









/*==============================================================================
PHOTOSWIPE GALLERY
==============================================================================*/
.psgal {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  float: left !important;
  padding: 24px 0 !important;
  text-align: left !important;
}
.psgal figure {
  float: left;
  text-align: center;
  width: 32.33% !important;
  height: 150px;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  box-sizing: border-box;
  position: static !important;
}
.psgal figure a img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.psgal figure a:hover img {
  transform: scale(1.08);
}
.psgal a {
  display: block;
  width: 100%;
  height: 100% !important; /* Disesuaikan agar memenuhi container figure */
}
.psgal img {
  margin: 0;
  width: 100% !important;
  height: 100% !important; /* Dibuat 100% mengisi tinggi pembungkus */
  object-fit: cover; /* Memastikan gambar full & proporsional tanpa distorsi */
  object-position: center; /* Memastikan posisi tengah gambar selalu fokus */
  border: 0;
  margin-bottom: 0;
}
.entry-content .psgal figure {
  height: 125px;
}
@media (max-width: 991.98px) {
  .psgal figure, 
  .entry-content .psgal figure {
    height: 90px;
  }
}
@media (max-width: 767.98px) {
  .psgal figure, 
  .entry-content .psgal figure {
    height: 90px;
  }
}
@media (max-width: 575.98px) {
  .psgal figure {
    width: 32% !important;
  }
}
