/********** Template CSS **********/
:root {
    --primary: #5B8C51;
    --secondary: #EDDD5E;
    --light: #F7F7F7;
    --dark: #404A3D;
}

/*.back-to-top {*/
/*    position: fixed;*/
/*    display: none;*/
/*    right: 30px;*/
/*    bottom: 30px;*/
/*    z-index: 99;*/
/*}*/

.back-to-top {
    position: fixed;
    display: none; /* Ini akan diatur oleh JavaScript untuk tampil/sembunyi */
    left: 15px; /* Ubah ini: Pindah ke kiri halaman */
    bottom: 15px; /* Jarak dari bawah halaman */
    z-index: 999; /* Pastikan z-index sedikit di bawah WhatsApp */
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}



.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 6px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/*** Service ***/
.service-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 1;
}

.service-item .service-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.service-item:hover .service-img::after {
    width: 0;
    left: auto;
    right: 0;
}

.service-item .service-text .service-icon {
    width: 140px;
    height: 140px;
    padding: 15px;
    margin-top: -70px;
    margin-bottom: 40px;
    background: #FFFFFF;
    border-radius: 140px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .1);
}

.service-item .service-text h5,
.service-item .service-text p {
    transition: .5s;
}

.service-item:hover .service-text h5,
.service-item:hover .service-text p {
    color: #FFFFFF;
}

.service-item .service-text .btn {
    color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.service-item .service-text .btn:hover {
    color: var(--dark);
    background: var(--secondary);
}


/*** Product ***/
.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

/* Tambahkan kode ini ke CSS Anda */
.row.gx-4 > .col-md-6:nth-child(n+4) {
    margin-top: 30px; /* Sesuaikan nilai sesuai kebutuhan */
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.product-item:hover .product-overlay {
    opacity: 1;
    padding-top: 0;
}

.product-item .position-relative {
    height: 250px; /* Atur tinggi yang diinginkan untuk semua gambar produk */
    overflow: hidden; /* Pastikan gambar yang kelebihan tinggi terpotong */
}

.product-item img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Pastikan gambar mengisi wadah dengan rapi */
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .btn {
    border-color: transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

    .team-img-container {
        height: 400px; /* Atur tinggi yang diinginkan di sini */
        width: 100%;
        overflow: hidden;
        margin-bottom: 1rem;
    }
    
    .team-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
}

.testimonial-img::after {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 200px;
    color: #EEEEEE;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.testimonial-img img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-img img:nth-child(1) {
    top: 0;
    left: 0;
}

.testimonial-img img:nth-child(2) {
    top: 60%;
    left: 20%;
}

.testimonial-img img:nth-child(3) {
    top: 20%;
    left: 60%;
}

.testimonial-img img:nth-child(4) {
    bottom: 0;
    right: 0;
}

.testimonial-img img .animated.pulse {
    animation-duration: 2s;
}

    .testimonial-carousel .testimonial-item {
        background: #F8F6F3; /* Warna krem lembut */
        padding: 40px;
        border-radius: 10px;
        position: relative;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    .testimonial-carousel .testimonial-item:hover {
        transform: translateY(-10px);
    }
    
    .testimonial-carousel .testimonial-item .testimonial-text {
        font-size: 1.1rem;
        font-style: italic;
        color: #555555;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .testimonial-carousel .testimonial-item .testimonial-client {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 25px;
    }
    
    .testimonial-carousel .testimonial-item img.testimonial-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
    }

    .testimonial-carousel .testimonial-item h5 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #333333;
        margin-bottom: 5px;
    }
    
    .testimonial-carousel .testimonial-item span {
        color: #888888;
        font-size: 1rem;
    }
    
    .testimonial-carousel .owl-nav {
        margin-top: 30px;
        display: flex;
        justify-content: center;
    }
    
    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        background: var(--primary) !important;
        color: white !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        margin: 0 10px;
        transition: all 0.3s ease;
    }
    
    .testimonial-carousel .owl-nav .owl-prev:hover,
    .testimonial-carousel .owl-nav .owl-next:hover {
        background: var(--dark) !important;
        color: white !important;
        transform: translateY(-3px);
    }


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

        /* Custom Colors for Roasted Earth Palette */
        :root {
            --rich-brown: #2c2018; /* Warna Utama - Teks, Judul */
            --burnt-orange: #B36734; /* Warna Aksen - Button, Icon */
            --beige-background: #F5F5DC; /* Warna Netral - Background Sekunder */
            --terracotta-highlight: #C87A5B; /* Warna Tambahan - Highlights */
        }

        body {
            background-color: var(--beige-background); /* Mengubah background body jika perlu */
        }

        /* Mengubah warna latar belakang section-title */
        .section-title.bg-white {
            background-color: var(--beige-background) !important; /* Latar belakang section title */
        }

        /* Mengubah warna teks section-title */
        .section-title.text-primary {
            color: var(--burnt-orange) !important; /* Warna teks section title */
        }

        /* Mengubah warna experience box */
        .about-experience.bg-secondary {
            background-color: var(--burnt-orange) !important; /* Latar belakang kotak '25+ Coffee Regions' */
            color: white; /* Mengubah teks di dalamnya menjadi putih agar terlihat */
        }

        /* Mengubah warna teks Judul (h1, h2, etc.) */
        h1, h2, h3, h4, h5, h6 {
            color: var(--rich-brown);
        }

        /* Mengubah warna paragraph text */
        p {
            color: var(--rich-brown); /* Atau gunakan warna yang lebih gelap dari beige */
        }

        /* Mengubah warna tombol (btn-secondary) */
        .btn-secondary.rounded-pill {
            background-color: var(--burnt-orange) !important;
            border-color: var(--burnt-orange) !important;
            color: white !important; /* Pastikan teks tombol putih */
        }

        .btn-secondary.rounded-pill:hover {
            background-color: #9C562D !important; /* Warna sedikit lebih gelap saat hover */
            border-color: #9C562D !important;
        }

        /* Mengubah warna ikon */
        .fa-leaf, .fa-award {
            color: var(--burnt-orange) !important; /* Warna aksen untuk ikon */
        }

/* Bungkus video */
.video-box {
    display: flex;
    align-items: center;   /* posisi tengah vertikal */
    justify-content: center; /* posisi tengah horizontal kalau videonya kecil */
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* Video agar cover penuh dan center */
.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* isi penuh tanpa distorsi */
    object-position: center;  /* ambil bagian tengah, bukan dari atas */
    border-radius: 0.5rem;
}

/* Optional: tombol play styling kalau mau pakai */
.video-box .btn-play {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 5rem;
    transition: transform 0.3s ease;
}

.video-box .btn-play:hover {
    transform: scale(1.1);
}

.video-box .btn-play i {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* certificate */
/* Custom CSS untuk efek scroller sertifikat */
/* CSS untuk efek scroller sertifikat yang terus bergerak */
.certificate-scroller {
    overflow: hidden; /* Sembunyikan item yang tidak terlihat */
    white-space: nowrap; /* Pastikan semua item berada dalam satu baris */
}

.certificate-scroller-inner {
    display: inline-block; /* Agar semua item berada dalam satu baris horizontal */
    animation: scroll-right 30s linear infinite; /* Animasi geser ke kanan */
}

/* Menghentikan animasi saat mouse berada di atasnya */
.certificate-scroller-inner:hover {
    animation-play-state: paused;
}

.certificate-item {
    display: inline-block; /* Menjadikan setiap item sejajar */
    margin: 0 15px; /* Memberi jarak antar gambar */
}

.certificate-item img {
    height: 120px; /* Atur tinggi gambar agar seragam, misalnya 100px */
    width: auto; /* Jaga rasio aspek gambar */
    max-width: 150px; /* Batasi lebar maksimum agar tidak terlalu besar */
    /* Properti lain yang mungkin ada */
}



/* Keyframes untuk animasi gerakan ke kanan */
@keyframes scroll-right {
    0% {
        transform: translateX(-50%); /* Mulai dari posisi yang menggeser set kedua ke depan */
    }
    100% {
        transform: translateX(0%); /* Geser ke kanan kembali ke posisi awal */
    }
}

.whatsapp-btn {
    position: fixed; /* Membuat elemen tetap di posisinya saat di-scroll */
    bottom: 15px;    /* Jarak dari bawah halaman */
    right: 15px;     /* Jarak dari kanan halaman (WhatsApp di pojok kanan) */
    z-index: 1000;   /* Pastikan tombol berada di atas elemen lain */
    display: block;  /* Memastikan link berperilaku seperti blok untuk penataan */
    border-radius: 50%; /* Membuat tombol bulat jika gambar Anda kotak */
    overflow: hidden; /* Memastikan gambar tidak keluar dari bentuk bulat */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sedikit bayangan untuk efek timbul */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efek transisi saat hover */
}

.whatsapp-btn img {
    width: 50px; /* Ukuran ikon WhatsApp, sesuaikan sesuai kebutuhan */
    height: 50px; /* Tinggi harus sama dengan lebar untuk proporsi bulat */
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}

.whatsapp-btn:hover {
    transform: scale(1.05); /* Sedikit membesar saat di-hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Bayangan sedikit lebih besar saat di-hover */
}

/* news */
/* Untuk meratakan tinggi gambar pada News Card */
.blog-item .img-box {
    height: 200px; /* Atur tinggi yang diinginkan */
    overflow: hidden; /* Penting untuk menyembunyikan bagian gambar yang berlebih */
    display: flex; /* Memastikan img-fluid berada di tengah vertikal/horizontal */
    align-items: center; 
    justify-content: center;
}

.blog-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Penting! Memastikan gambar menutupi seluruh box tanpa mengubah aspect ratio */
}

/* Galerry */
.gallery-img-container {
    /* Atur tinggi wadah (container) gambar yang Anda inginkan */
    height: 200px; 
    /* Pastikan gambar yang kelebihan akan terpotong (cropping) */
    overflow: hidden; 
}

.gallery-img-container img {
    /* Paksa gambar memiliki tinggi 100% dari wadahnya */
    height: 100%; 
    /* Paksa gambar mengisi wadah sambil mempertahankan rasio aspek */
    width: 100%;
    object-fit: cover; 
}