/********** Template CSS **********/
:root {
    --primary: #3b5704; /* Hijau tua sesuai permintaan */
    --light: #fff3b0;
    --dark: #103741;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: 0.5s;
}

.btn.btn-primary {
    color: #ffffff;
}

.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;
    border-radius: 50px;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: "Lobster Two", cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: "Lobster Two", cursive;
}

/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 45px;
    font-size: 22px;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: 0.5s;
}

.facility-item:hover * {
    color: #ffffff !important;
}

/*** About ***/
.about-img img {
    transition: 0.5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
    transition: 0.5s;
}

.classes-item:hover {
    margin-top: -10px;
}

/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #ffffff;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: 0.5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, 0.3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.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) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
    color: #ffffff;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.text-primary,
.page-item.active .page-link,
.border-primary {
    color: #3b5704 !important;
    border-color: #3b5704 !important;
}

.bg-primary,
.btn-primary,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    background-color: #3b5704 !important;
    border-color: #3b5704 !important;
    color: #fff !important; /* pastikan teks pada tombol dan bg-primary tetap putih */
}

article {
    --img-scale: 1.001;
    --title-color: black;
    --link-icon-translate: -20px;
    --link-icon-opacity: 0;
    position: relative;
    border-radius: 16px;
    box-shadow: none;
    background: #fff;
    transform-origin: center;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

article a::after {
    position: absolute;
    inset-block: 0;
    inset-inline: 0;
    cursor: pointer;
    content: "";
}

/* basic article elements styling */
article h2 {
    margin: 0 0 18px 0;
    font-family: "Bebas Neue", cursive;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
    color: var(--title-color);
    transition: color 0.3s ease-out;
}

figure {
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

article img {
    max-width: 100%;
    transform-origin: center;
    transform: scale(var(--img-scale));
    transition: transform 0.4s ease-in-out;
}

.article-body {
    padding: 24px;
}

article a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #28666e;
}

article a:focus {
    outline: 1px dotted #28666e;
}

article a .icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    transform: translateX(var(--link-icon-translate));
    opacity: var(--link-icon-opacity);
    transition: all 0.3s;
}

/* using the has() relational pseudo selector to update our custom properties */
article:has(:hover, :focus) {
    --img-scale: 1.1;
    --title-color: #28666e;
    --link-icon-translate: 0;
    --link-icon-opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
        rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

/************************ 
Generic layout (demo looks)
**************************/

*,
*::before,
*::after {
    box-sizing: border-box;
}

.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.articles article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    width: 320px;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.articles article:hover {
    box-shadow: 0 4px 16px rgba(95, 143, 0, 0.15);
}

.articles figure {
    margin: 0;
    padding: 0;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles figure img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.articles .article-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.articles .article-body h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #5f8f00;
}

.articles .article-body p {
    color: #444;
    font-size: 1rem;
}

.material-symbols-outlined {
    display: block;
    text-align: center;
}

a,
a:hover,
a:focus {
    color: #3b5704 !important;
}

.footer h3 {
    font-family: "Fredoka One", cursive;
}

/* Custom Navbar */
.custom-navbar {
    background: #fff !important;
    min-height: 80px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15); /* shadow hitam lebih tebal */
    font-family: "Fredoka One", Arial, sans-serif !important;

    padding: 0 !important;
}

.custom-navbar .navbar-brand img {
    height: 56px;
    width: auto;
}

.custom-navbar .brand-title {
    font-size: 2rem;
    font-family: "Fredoka One", Arial, sans-serif !important;
    font-weight: 900;
    color: #3b5704;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px #222;
    margin-left: 10px;
    line-height: 56px;
    display: inline-block;
    vertical-align: middle;
}

.custom-navbar .navbar-nav {
    align-items: center;
    height: 80px;
    display: flex;
    gap: 0.5rem;
}

.custom-navbar .navbar-nav .nav-link {
    color: #222 !important; /* warna teks hitam */
    font-family: "Fredoka One", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.1rem;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 3px #eee;
    transition: color 0.2s, background 0.2s,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s,
        font-weight 0.2s;
    z-index: 1;
    border-radius: 8px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 56px;
    background: none !important;
    border-bottom: none !important;
}

.custom-navbar .navbar-nav .nav-link:hover {
    font-weight: 900 !important;
    color: #222 !important; /* tetap hitam saat hover */
    transform: scale(1.05);
    box-shadow: 0 0 32px 8px rgba(59, 87, 4, 0.85);
    z-index: 1;
}

.custom-navbar .navbar-nav .nav-link.active {
    font-weight: 900 !important;
    color: #3b5704 !important; /* hijau tua saat aktif */
    background: transparent !important;
    transform: none;
    box-shadow: none;
    border-bottom: none !important;
}

/* Efek holographic */
.custom-navbar .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg,
        transparent,
        transparent 30%,
        rgba(59, 87, 4, 0.7)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
}

.custom-navbar .navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #43345d;
    min-height: 800px;
}

.container {
    position: relative;
    width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px;
}

.container .card {
    position: relative;
    max-width: 300px;
    height: 215px;
    background-color: #fff;
    margin: 30px 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease-in-out;
    border-radius: 15px;
}
.container .card:hover {
    height: 320px;
}

.container .card .image {
    position: relative;
    width: 260px;
    height: 260px;
    top: -40%;
    left: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.container .card .image img {
    max-width: 100%;
    border-radius: 15px;
}

.container .card .content {
    position: relative;
    top: -140px;
    padding: 10px 15px;
    color: #111;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.container .card:hover .content {
    margin-top: 30px;
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s;
}

/* Sidebar Mobile Offcanvas Styles */
.mobile-sidebar-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100dvh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
    z-index: 1200;
    padding: 24px 16px 16px 16px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-sidebar-offcanvas.show {
    transform: translateX(0);
}

.mobile-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.mobile-sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .mobile-header,
    .mobile-sidebar-offcanvas,
    .mobile-sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .container-xxl {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body {
        padding: 0 !important;
        margin: 0 !important;
        background: #43345d !important;
    }
    html {
        width: 100vw;
        overflow-x: hidden;
    }
}

/* Pastikan konten utama tidak overflow di mobile */
@media (max-width: 575.98px) {
    .container,
    .container-xxl,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
}