/********** Template CSS **********/

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.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 ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@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;
          
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
/* 1. Kontainer Item Tim */
.team-item {
    /* Pastikan h-100 di HTML bekerja dengan baik */
    height: 100%; 
    background-color: #75b99d; /* Latar belakang untuk item */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan untuk efek kedalaman */
    border-radius: 8px; /* Sudut membulat */
    overflow: hidden; /* Penting untuk efek zoom */
}

/* 2. Gambar */
.team-item img {
    /* Pastikan tinggi yang ditentukan di style HTML (350px) dipatuhi */
    width: 100%;
    height: 350px; 
    /* Penting: Pastikan gambar menutupi area tanpa terdistorsi */
    object-fit: cover; 
    transition: all .5s ease-in-out;
    display: block;
}

/* 3. Efek Hover */
.team-item:hover img {
    /* Zoom gambar */
    transform: scale(1.1); 
}

/* 4. Overlay */
.team-overlay {
    position: absolute;
    padding: 20px; /* Kurangi sedikit padding agar lebih elegan */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    /* Ubah gradien agar lebih menarik */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%); 
    z-index: 1;
    opacity: 1; /* Selalu tampil, atau ubah menjadi 0 dan buat transisi hover jika mau */
    transition: background 0.3s ease;
}

.team-overlay small {
    display: inline-block;
    padding: 5px 15px;
    color: #fff;
    background: var(--bs-primary);
    font-weight: bold;
    border-radius: 3px;
}

/* 5. Kontrol Karosel (Panah) */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Kurangi lebar agar tidak terlalu menutupi gambar */
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* Perbesar ikon panah */
    width: 2rem;
    height: 2rem;
    /* Ubah warna ikon untuk kontras yang lebih baik, contohnya putih dengan latar belakang hitam transparan */
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 50%;
    padding: 10px;
}

/* Pastikan panah lebih terlihat pada hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Pastikan ada jarak antar gambar di karosel inner jika perlu */
.carousel-item .row {
    margin: 0; /* Hapus margin default row jika ada */
}

/* CSS Responsif */
@media (max-width: 768px) {
    .team-item img {
        height: 250px; /* Kurangi tinggi gambar untuk tampilan mobile */
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.stats__v3 .content {
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: var(--bs-primary);
    color: var(--bs-white);
    overflow: hidden;
    position: relative;
}

.stats__v3 .content h3 {
    color: var(--bs-white);
}

.stats__v3 .content .rounded-borders {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
}

.stats__v3 .content .rounded-borders .rounded-border-1,
.stats__v3 .content .rounded-borders .rounded-border-2,
.stats__v3 .content .rounded-borders .rounded-border-3 {
    border: 1px solid var(--bs-white);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    position: absolute;
}

.stats__v3 .content .rounded-borders .rounded-border-1 {
    right: 20px;
    top: 20px;
}

.stats__v3 .content .rounded-borders .rounded-border-2 {
    right: 40px;
    top: 40px;
}

/*** berita ***/

.custom-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.custom-card img {
    height: 260px;
    object-fit: cover;
    width: 100%;
}

.custom-card-body {
    padding: 20px;
    min-height: 180px;
}

.custom-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #0e3c23;
}

.custom-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0e3c23;
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.custom-btn-detail:hover {
    background: #136c3b;
    color: white;
}

.custom-btn-detail i {
    font-size: 15px;
}

/* SIDEBAR WRAPPER */
.sidebar-box {
    background: #fff;
    padding: 18px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-top: 3px solid #0e3c23;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* JUDUL */
.sidebar-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}

/* LIST DEFAULT */
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    padding: 6px 0;
    border-bottom: 1px solid #e9e9e9;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #222;
    text-decoration: none;
}

.sidebar-list a:hover {
    color: #0e3c23;
}

/* ========== AGENDA ========== */
.agenda-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e6e6;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    width: 52px;
    height: 52px;
    background: #f4f4f4;
    border-radius: 6px;
    text-align: center;
    margin-right: 12px;
    padding-top: 4px;
}

.agenda-date .day {
    font-size: 20px;
    font-weight: 800;
}

.agenda-date .month {
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
}

.agenda-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.agenda-title:hover {
    color: #0e3c23;
}

/* ========== POSTINGAN & GALERI ========== */
.post-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-thumb {
    width: 55px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

/* ========== daftar informasi ========== */
/* Styling Utama untuk Bagian Informasi */
.custom-block-wrap {
    /* Menambahkan sedikit bayangan agar kartu terlihat menonjol */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* Sudut membulat */
    overflow: hidden;
    /* Penting untuk gambar dan border radius */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
    /* Memastikan semua kartu memiliki tinggi yang sama di dalam grid kolom */
    display: flex;
    flex-direction: column;
}

/* Efek Hover untuk interaksi */
.custom-block-wrap:hover {
    transform: translateY(-5px);
    /* Sedikit naik saat di-hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Gambar */
.custom-block-image {
    width: 100%;
    /* Tinggi 400px dari HTML Anda mungkin terlalu besar, mari kita buat lebih dinamis, misalnya 250px-300px */
    height: 300px;
    /* Tinggi gambar yang disarankan untuk tampilan daftar informasi */
    object-fit: cover;
    /* Memastikan gambar mengisi area tanpa terdistorsi */
}

/* Konten Teks */
.custom-block {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Konten tumbuh untuk mengisi sisa ruang */
}

.custom-block-body {
    padding-bottom: 10px;
    /* Ruang di atas tombol Detail */
    flex-grow: 1;
}

/* Judul */
.custom-block-body h5 {
    color: #333;
    /* Warna gelap untuk judul */
    margin-bottom: 10px;
}

/* Deskripsi */
.custom-block-body p {
    color: #666;
    /* Warna abu-abu untuk teks deskripsi */
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tombol Detail (Link) */
.custom-block a.h3.text-center.text-dark {
    /* Ubah link Detail menjadi tombol yang menonjol */
    display: block;
    padding: 10px 15px;
    background-color: #0e3c23;
    /* Warna Utama: Hijau Gelap */
    color: #ffffff !important;
    /* Teks Putih */
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    /* Memastikan sudut bawah tombol sesuai dengan kartu */
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
    text-align: center;
    /* Memastikan teks Detail di tengah */
}

.custom-block a.h3.text-center.text-dark:hover {
    background-color: #1a5b3a;
    /* Sedikit lebih terang saat di-hover */
}

/* Styling untuk Header Bagian */
.section-padding h2 {
    color: #0e3c23;
    /* Warna Utama: Hijau Gelap */
    font-weight: 700;
}

.section-padding p {
    color: #6c757d;
}
.custom-block-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    /* Menambahkan rata kiri-kanan (justify) di CSS */
    text-align: justify;
}