/**
* --------------------------------------------------------
* Template Name: Custom CSS - Banshu Plastic's Web Profile
* Updated: Nov 20 2025 with Bootstrap v5.3.3
* Author: Rizki Puji Lestari (IT)
* --------------------------------------------------------
*/

/* LOADING BAR */
#loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background-color: transparent;
}

#loading-bar {
    height: 100%;
    width: 0%;
    background-color: #ee6c20;
    transition: width 0.5s ease-out; /* Untuk animasi halus */
}

/* Class untuk menyembunyikan garis */
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}



#preloader {
    /* Pastikan menutupi seluruh layar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gunakan z-index tinggi agar berada di atas semua elemen */
    z-index: 9999;
    /* Warna latar belakang (misalnya putih atau transparan) */
    background-color: #ffffff; 
    /* Gunakan flexbox untuk menempatkan GIF di tengah */
    display: flex; 
    justify-content: center;
    align-items: center;
}

.loader-container {
    text-align: center;
}

.loader-gif {
    /* Sesuaikan ukuran GIF */
    width: 80px; 
    height: 80px; 
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    color: white;
}

.hero-subtitle {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: white;
}

.font-orange {
    color: #ee6c20;
}

.font-blue {
    color: #2b1870;
}

.font-gray {
    color: #f6f5f7;
}

.bg-orange {
    background-color: #ee6c20;
    border: 1px solid #ee6c20;
}

.bg-blue {
    background-color: #2b1870;
}

.bg-gray {
    background-color: #f6f5f7;
}

.btn-get-quote {
  color: #fff;
  background: #ee6c20;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 4px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.ql-align-left {
    text-align: left;
}
.ql-align-center {
    text-align: center;
}
.ql-align-right {
    text-align: right;
}
.ql-align-justify {
    text-align: justify;
}

/* Wrapper untuk Thumbnail Video */
.video-thumbnail-wrapper {
    position: relative;
    height: 200px; /* Atur tinggi yang diinginkan untuk kartu */
    cursor: pointer;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlay Tombol Play */
.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #ee6c20;
    border: none;
    font-size: 2rem;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-wrapper:hover .play-button {
    transform: scale(1.1);
    background-color: #ffffff;
}

/* Tampilan Modal Fullscreen */
.modal-dialog.modal-fullscreen .modal-content {
    background-color: rgba(0, 0, 0, 0.9); /* Latar belakang gelap transparan */
}

/* Tombol Close di Modal (dibuat putih agar terlihat) */
.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); 
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.footer-title {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.zoom-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden; 
    cursor: pointer;
}

.zoom-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
    z-index: 10;
}

.template {
    color: aliceblue;
}
.template a {
    color: aliceblue;
    text-decoration: none;
}

/* Custom CSS untuk blockquote yang dihasilkan CKEditor */
blockquote {
    font-size: 1.25rem;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-left: 0.25rem solid #ced4da;
    margin-bottom: 0; 
}

/* Styling untuk footer kutipan di dalam blockquote */
blockquote footer {
    display: block;
    margin-top: 1rem;
    font-size: 0.875em;
    color: #6c757d; /* text-muted */
}

.bordered-quote {
    max-width: 800px; 
    border-left: 5px solid #2b1870 !important;
}

.animated-underline {
    position: relative; /* Penting untuk memposisikan pseudo-element */
    text-decoration: none;
    color: inherit; /* Pertahankan warna teks asli */
    cursor: pointer;
}

.animated-underline::after {
    content: ''; /* Wajib */
    position: absolute;
    width: 100%;
    height: 2px; /* Tebal garis */
    bottom: 0;
    left: 0;
    background-color: currentColor; /* Gunakan warna teks saat ini */
    
    /* Awal: Garis tersembunyi/tidak terlihat */
    transform: scaleX(0); 
    transform-origin: bottom right; 
    
    /* Transisi: Agar animasi muncul perlahan */
    transition: transform 0.3s ease-out;
}

.animated-underline:hover::after {
    /* Akhir: Garis terlihat penuh */
    transform: scaleX(1); 
    transform-origin: bottom left; /* Garis muncul dari kiri ke kanan */
}

/* Custom Dropdown Language */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    /* Style button agar terlihat seperti kotak pilihan */
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 20px; /* Ukuran bendera */
    height: auto;
    margin-right: 8px;
}

.dropdown-menu {
    display: none; /* Sembunyikan secara default */
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-menu.show {
    display: block; /* Tampilkan ketika di-klik */
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.nav-item.active a {
    color: #ffc107 !important; /* Ubah warna teks menjadi hitam/gelap agar kontras */
}

/* CONTAINER NAVBAR SUBMENU */
.mega-menu-wrapper {
    /* Perbaikan agar rata kiri penuh */
    position: absolute; 
    left: 0;
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
    min-height: 20rem;   
    top: 100%;    
    background-color: #2a126e;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 999;    
    display: none; 
    /* Gunakan class 'active' untuk menampilkan, lihat di JavaScript */
}

.mega-menu-wrapper.active {
    display: block;
}

.menu-legend {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    color:#ccc459; 
    font-weight:bolder;
    margin-bottom: 3rem;
}

/* 2. KONTEN DI DALAM (4 Kolom) */
.mega-menu-content-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column {
    flex: 1 1 23%; /* Flex: grow shrink basis. Mengatur basis 23% untuk 4 kolom */
    padding: 0 15px; 
    color: white;
}

/* 3. STYLING ITEM MENU */
.mega-menu-column a {
    text-decoration: none;
    display: block;
    color: white;
    padding: 10px 0;
}

.menu-title {
    display: block; 
    font-weight: bold; 
    font-size: 1.1em;
    margin-bottom: 5px;
}

.menu-subtitle {
    display: block;
    font-size: 0.85em; 
    color: rgba(255, 255, 255, 0.8);
}

/* Container Utama Slider */
.slider-container {
    position: relative; /* Penting untuk menempatkan tombol relatif terhadap container */
    max-width: 100%; /* Lebar maksimum slider */
    margin: 40px auto; /* Pusatkan slider */
    padding: 0 50px; /* Beri ruang untuk tombol navigasi */
    text-align: center;
}

/* Judul (Opsional) */
.slider-container h2 {
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #333399; /* Warna biru pada gambar */
}

/* Wrapper yang Menyembunyikan Item di Luar Tampilan */
.slider-wrapper {
    overflow: hidden; /* **PENTING** - Menyembunyikan item yang tidak terlihat */
}

/* Track untuk Menggeser Item */
.slider-track {
    display: flex; /* Mengatur item secara horizontal */
    transition: transform 0.5s ease-in-out; /* Animasi geser */
}

/* Setiap Item (Slide) */
.slide-item {
    min-width: calc(100% / 4); /* Menampilkan 4 item per tampilan (untuk desktop) */
    box-sizing: border-box;
    padding: 10px;
    flex-shrink: 0; /* Mencegah item menyusut */
    /* Styling card agar mirip gambar */
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

/* Styling Gambar di Dalam Item */
.slide-item img, .slide-item video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 150px; /* Contoh tinggi */
    object-fit: cover;
    border-radius: 4px;
}

/* Tombol Navigasi */
.nav-button {
    position: absolute;
    top: 50%; /* Pusatkan secara vertikal */
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

/* Media Query untuk Responsivitas (Misalnya, Tampilkan 2 Item di Tablet) */
@media (max-width: 768px) {
    .slide-item {
        min-width: calc(100% / 2); /* Menampilkan 2 item */
    }
}

/* Media Query untuk Mobile */
@media (max-width: 480px) {
    .slide-item {
        min-width: 100%; /* Menampilkan 1 item */
    }
    .slider-container {
        padding: 0 30px;
    }
}

/* IMAGE SLIDER */
/* Container Utama Slider */
.img-slider-container {
    position: relative; 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 50px; 
}

/* Wrapper yang Menyembunyikan Item di Luar Tampilan */
.img-slider-wrapper {
    overflow: hidden; 
}

/* Track untuk Menggeser Item */
.img-slider-track {
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

/* Setiap Item (Slide) */
.img-slide-item {
    min-width: calc(100% / 5); /* Tepat 5 kolom untuk layar lebar */
    box-sizing: border-box;
    flex-shrink: 0; 
    margin: 0 10px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Wrapper Gambar */
.img-image-wrapper {
    width: 100%;
    padding-top: 75%; /* Rasio 4:3 */
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.img-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* Media Queries untuk Responsivitas */
@media (max-width: 1280px) {
    .img-slide-item { min-width: calc(100% / 4); } 
}
@media (max-width: 1024px) {
    .img-slide-item { min-width: calc(100% / 3); } 
}
@media (max-width: 768px) {
    .img-slide-item { min-width: calc(100% / 2); } 
}
@media (max-width: 480px) {
    .img-slide-item { min-width: 100%; } 
    .img-slider-container { padding: 0 30px; }
}
