/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1.display-6 {
    position: relative;
    display: inline-block; /* Agar elemen h1 hanya mengambil lebar teks */
    color: #0E420F;
}

h1.display-7 {
    position: relative;
    display: inline-block; /* Agar elemen h1 hanya mengambil lebar teks */
    padding-bottom: 8px; /* Tambahkan jarak antara teks dan garis */
    color: #0E420F;
}

p.mb-4{
    color:var(--primary);

}


h1.display-8 {
    position: relative;
    display: inline-block; /* Agar elemen h1 hanya mengambil lebar teks */
    padding-bottom: 15px; /* Tambahkan jarak antara teks dan garis */
    font-size: 1rem; /* Ganti nilai ini untuk mengatur ukuran font */
}

h1.display-8::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Posisikan garis mulai dari sebelah kiri */
    width: 50%; /* Lebar garis setengah dari lebar elemen h1 */
    height: 3px; /* Ketebalan garis */
    background-color: var(--light); /* Warna garis */
}

h1.display-9 {
    position: relative;
    display: inline-block; /* Agar elemen h1 hanya mengambil lebar teks */
    padding-bottom: 15px; /* Tambahkan jarak antara teks dan garis */
    font-size: 1rem; /* Ganti nilai ini untuk mengatur ukuran font */
    color: #5D8219;
}

h1.display-9::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Posisikan garis mulai dari sebelah kiri */
    width: 50%; /* Lebar garis setengah dari lebar elemen h1 */
    height: 3px; /* Ketebalan garis */
    background-color: #5D8219; /* Warna garis */
}

h5{
    color:white;
}


h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.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-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;
}

.portfolio-inner {
    overflow: hidden;
}

.portfolio-inner img {
    width: 100%; /* Mengatur gambar agar memenuhi kolom */
    height: auto; /* Mengatur tinggi otomatis agar tidak terdistorsi */
}

.custom-img1 {
    border-radius: 0px 0px 0px 0px; /* Lekukan di kanan atas dan kiri bawah */
    width: 100%; /* Agar gambar responsif */
    height: auto; /* Otomatis menyesuaikan tinggi */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Custom Navbar */
#custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: none;
}

/* Background berubah jadi putih saat di-scroll */
#custom-navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Container untuk mengatur layout */
#custom-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styling untuk brand logo */
#custom-navbar .brand img {
    height: 50px;
}

/* Menu Styling */
#custom-navbar .menu {
    display: flex;
    gap: 20px; /* Space between menu items */
}

/* Tombol Hamburger */
#navbar-toggler {
    display: none; /* Sembunyikan tombol hamburger di layar besar */
    cursor: pointer; /* Ubah cursor menjadi pointer */
    color: white; /* Warna default */
}

/* Styling untuk link */
#custom-navbar .nav-link {
    color: white; /* Default text color */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

/* Warna link saat di-scroll */
#custom-navbar.scrolled .nav-link {
    color: black;
}

#custom-navbar.scrolled .nav-link.active,
#custom-navbar.scrolled .nav-link:hover{
  color: #006400; 
  font-weight: 900;
}

#custom-navbar.scrolled  #navbar-toggler {
    color: black;
}

/* Hover dan Active state */
#custom-navbar .nav-link:hover,
#custom-navbar .nav-link.active {
    /* color: #006400;  */
    color: white; /* Green color on hover and active */
    font-weight: 900;
}

/* Tombol Contact dengan lekukan di kanan atas dan kiri bawah */
#custom-navbar .contact-btn {
    position: relative;
    background-color: white; /* Background putih */
    color: black; /* Teks hijau */
    border-radius: 25px 25px 25px 25px; /* Lekukan di kanan atas dan kiri bawah */
    padding: 10px 20px;
    font-weight: bold;
    /* border: 2px solid white;  */
    transition: all 0.3s ease;
    text-align: center; /* Pusatkan teks */
    white-space: nowrap; /* Cegah teks terpotong */
}

/* Hover effect untuk tombol Contact */
#custom-navbar .contact-btn:hover {
    background-color: #006400; /* Background hijau saat hover */
    color: white; /* Teks putih saat hover */
}

/* Styling saat di-scroll */
#custom-navbar.scrolled .contact-btn {
    background-color: #006400;
    color: white;
}


/* Hover effect when cursor is on the card */
.hover-effect:hover {
    transform: translateY(-10px); /* Slightly lifts the card */
    box-shadow:  0 8px 12px rgba(0, 0, 0, 0.2);/* Adds a subtle shadow */
    height:100%;
}

/* Optional: Darken background color slightly when hovered */
.hover-effect:hover {
    background-color: #5D8219 !important; /* Darker shade for green background on hover */
    color: white;
}
.card:hover h1 {
    color: white;  /* Mengubah warna teks h1 menjadi putih saat hover */
}


/* Efek responsive di mobile */
@media (max-width: 768px) {
    #custom-navbar .menu {
        display: none; /* Sembunyikan menu secara default */
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: absolute;
        top: 60px; /* Tempatkan menu di bawah navbar */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9); /* Background menu */
        z-index: 1000;
    }

    #custom-navbar .menu.active {
        display: flex; /* Tampilkan menu saat active */
    }

    #navbar-toggler {
        display: block; /* Tampilkan tombol hamburger di layar kecil */
    }
}


.menu {
    display: flex;
}

.menu a {
    color: #fff; /* Warna teks normal */
    text-decoration: none; /* Menghilangkan garis bawah */
    margin: 0 15px; /* Margin antara link */
    transition: color 0.3s ease;
}

.menu a.active {
    color: rgba(255, 255, 255, 0.8); /* Warna saat aktif */
    font-weight: bold; /* Bold untuk item aktif */
}

.menu a:hover {
    color: rgba(255, 255, 255, 0.8); /* Warna saat hover */
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background: rgba(15, 66, 41, .6); */
    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: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.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);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}
/* Default Styling */
.text-heading {
    font-size: 2rem; /* Ukuran besar untuk layar desktop */
}
.text-content {
    font-size: 1rem;
}

/* Responsiveness untuk Mobile */
@media (max-width: 768px) {
    .text-heading {
        font-size: 1.5rem; /* Ukuran lebih kecil di perangkat mobile */
    }
    .text-content {
        font-size: 0.9rem; /* Menyesuaikan ukuran teks */
    }
}




