body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f8f8;
}
body a {
    color: #202020;
}
body a:hover {
    color: gray;
    text-decoration: none;
}
/* TOP BAR */
.top-bar {
    background: linear-gradient(145deg, #16a34a, #16a34a);
    color: #fff;
    font-size: 14px;
    padding: 16px 0 0;
}
.top-bar a {
    color: #fbff00;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar i {
    margin-right: 5px;
}
/* Close button bulat merah */
.close-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #ee3925; /* merah agak gelap yang keren */
    color: white;
    font-size: 25px;
    line-height: 5px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.close-btn:hover,
.close-btn:focus {
    background: #c0392b; /* merah lebih gelap saat hover/focus */
    outline: none;
    transform: scale(1.15);
}

/* ===== Overlay ===== */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 40, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    will-change: opacity;
}
.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== Offcanvas Kanan SUB Menu Mobile ===== */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(145deg, #117a03, #3bc021);
    box-shadow: -8px 0 24px rgba(22, 7, 240, 0.45);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 0 24px;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    transform: translateX(100%) translateY(-15px);
    transition: right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mobile-offcanvas.show {
    right: 0;
    opacity: 1;
    transform: translateX(0) translateY(0);
}
/* === SUBMENU MULTI-LEVEL STABIL === */

/* Submenu dasar */
.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(6, 90, 4, 0.911), rgba(18, 173, 4, 0.164));
    border-left: 3px solid #00A884;
    border-radius: 0 10px 10px 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Saat terbuka */
.submenu.show {
    max-height: 1000px; /* besar agar muat isi submenu */
    opacity: 1;
}

/* Submenu level 2 (di dalam submenu lain) */
.submenu .submenu {
    padding-left: 18px;
    background: rgba(0, 0, 0, 0.05);
    border-left: 2px dashed #00A884;
    border-radius: 0 8px 8px 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Saat level-2 terbuka */
.submenu .submenu.show {
    max-height: 600px;
    opacity: 1;
}

/* Item link dalam submenu */
.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 15px;
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(5px);
}

/* Panah toggle */
.submenu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    background: none;
    border: none;
    cursor: pointer;
    color: #f7f77a;
    font-size: 16px;
    padding: 8px;
    transition: transform 0.3s ease, color 0.25s ease;
}

.submenu-toggle[aria-expanded="true"] {
    transform: translateY(-50%) rotate(90deg);
    color: #ffffff;
}

/* ===== Header ===== */
.mobile-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255 255 255 / 0.1);
    box-shadow: 0 3px 8px rgba(138, 43, 226, 0.3);
    backdrop-filter: saturate(180%) blur(10px);
    flex-shrink: 0;
    border-radius: 0 0 24px 0;
    user-select: none;
}
.brand-box {
    display: flex;
    align-items: center;
}
.brand-logo {
    width: 40px;
    height: 40px;
    margin-right: 14px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(160, 100, 255, 0.6);
    transition: transform 0.35s ease;
}
.brand-logo:hover {
    transform: scale(1.1) rotate(6deg);
}
.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    color: #dcdcff;
    text-shadow: 0 0 10px #9a6cffaa;
    letter-spacing: 0.07em;
    user-select: none;
}

/* ===== Menu List ===== */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 14px 0;
    flex-grow: 1;
}
.menu-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.295);
    position: relative;
    user-select: none;
}
.menu-list a {
    display: block;
    padding: 16px 28px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-15px);
    animation-fill-mode: forwards;
}
.menu-list a.show-anim {
    animation: slideDownFade 0.4s forwards;
}
@keyframes slideDownFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon di Home */
.menu-list > li > a i.fa {
    margin-right: 14px;
    font-size: 1.3rem;
}

/* ===== Submenu Toggle Button ===== */
.submenu-toggle {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b19ff0;
    font-size: 16px;
    padding: 8px;
    transition: color 0.35s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border-radius: 8px;
}
.submenu-toggle:hover {
    color: #fff;
    background: rgba(245, 241, 0, 0.856);
}
.submenu-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
    transition: transform 0.4s ease;
}

/* ===== Submenu Mobile ===== */
.submenu {
    max-height: 0;
    overflow: hidden;
    padding-left: 24px;
    background: linear-gradient(90deg, rgba(6, 90, 4, 0.911), rgba(18, 173, 4, 0.164));
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    border-left: 3px solid #ad6fff;
    border-radius: 0 10px 10px 0;
    opacity: 0;
}
.submenu.show {
    max-height: 1000px;
    opacity: 1;
}

/* Submenu Links */
.submenu li a {
    padding: 12px 28px;
    font-size: 1rem;
    color: #f3f3f3;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-12px);
    animation-fill-mode: forwards;
}
.submenu li a.show-anim {
    animation: slideDownFade 0.35s forwards;
}
.submenu li a:hover,
.submenu li a:focus {
    background: rgba(255 255 255 / 0.2);
    color: #f0eaff;
    outline: none;
    transform: scale(1.05);
}

/* ===== Custom Scrollbar ===== */
.mobile-offcanvas::-webkit-scrollbar {
    width: 6px;
}
.mobile-offcanvas::-webkit-scrollbar-track {
    background: transparent;
}
.mobile-offcanvas::-webkit-scrollbar-thumb {
    background: rgba(173, 111, 255, 0.7);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}
.mobile-offcanvas::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 192, 255, 0.9);
}
/* Firefox scrollbar */
@-moz-document url-prefix() {
    .mobile-offcanvas {
        scrollbar-width: thin;
        scrollbar-color: rgba(173, 111, 255, 0.7) transparent;
    }
}

/* ===== Responsive tweaks ===== */
@media (max-width: 360px) {
    .mobile-offcanvas {
        width: 100vw;
    }
    .submenu-toggle {
        right: 14px;
    }
    .menu-list a,
    .submenu li a {
        padding-left: 22px;
    }
}

/* Fungsi untuk menu dekstop pojok kanan atas agar bisa slide warna samping pencarian */
.btn-jenjang {
    border: none;
    color: #fff;
    padding: 8px 18px;
    margin: 2px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-tk,
.btn-sd,
.btn-smp,
.btn-sma {
    background-color: #3498db;
}
.btn-cari {
    background-color: #2004bd;
}
.btn-jenjang:hover {
    background-color: #ffc400 !important;
    color: #020327 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(255, 196, 0, 0.6);
}

/* MENU BAR Garis Menu */
.menu-bar {
    text-transform: uppercase;
    font-weight: bold;
    background-color: #026d19;
    border-bottom: 4px solid #f7f305;
}
.sticky.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.sm-clean {
    background: #026d19;
}
.sm-clean ul {
    background: linear-gradient(145deg, #027725, #3bc021);
}
.sm-clean ul a {
    color: #fff;
}
/* Dropdown hover background Menu */
.sm-clean ul a:hover,
.sm-clean ul a:focus,
.sm-clean ul a:active,
.sm-clean ul a.highlighted {
    background: #f7e702e7;
    color: #fff;
}

/* CAROUSEL */
.carousel-caption {
    border-top: 1px solid #fff;
    color: #fff;
    background: linear-gradient(145deg, #027725, #3bc021);
    opacity: 0.7;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: left;
    padding: 30px;
}
.carousel-caption h2 {
    color: #fff;
}
.carousel-indicators li {
    background-color: #fff;
}
.carousel-indicators .active {
    background-color: #44afae;
}

/*  LOGO */
.brand {
    font-family: Arial, sans-serif, 'Helvetica Neue', Helvetica;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

/* PAGE TITLE Garis 2 warna*/
.page-title {
    font-weight: bold;
    border-bottom: 3px solid #d9ff03;
    margin-bottom: 15px;
    padding-bottom: 10px;
    margin-top: 0px;
}
.page-title:after {
    border-bottom: 3px solid #01631f;
    width: 30%;
    display: block;
    position: absolute;
    content: '';
    padding-bottom: 10px;
}
footer .page-title:after {
    border-bottom: 3px solid #d9ff03;
}
/* TESTIMONI Teks Berjalan */
.quote {
    overflow: hidden;
    background-color: #026d19;
}
.quote-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    padding: 15px 15px;
    color: #020202;
    float: left;
    background-color: #f1e20e;
    left: 0px;
    top: 0px;
    height: 50px;
}
ul.quote {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
    height: 50px;
    background-color: transparent;
}
ul.quote li {
    color: #fff;
    position: absolute;
    top: -950em;
    left: 0;
    display: block;
    white-space: nowrap;
    font: 14px Helvetica, Arial, sans-serif;
    padding: 17px 15px 15px 15px;
}
ul.quote li span {
    color: #44afae;
    font-weight: bold;
}

/*  Conten */
h5.card-title {
    font-size: 16px;
    font-weight: bold;
}

/* Sidebar */
.sidebar .list-group-item {
    border: 1px solid #6c757d;
}
/* Hilangkan batas lebar container */
.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hilangkan margin default pada row */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hanya slider & banner yang benar-benar full width */
.slider-container img,
.carousel-inner img {
    width: 100% !important;
    height: auto;
}

/* Opsional: jika footer ingin full width */
footer {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Footer */
footer {
    color: #fff;
    font-size: 14px;
}
footer .widget-box {
    background: linear-gradient(145deg, #026e22, #35df13);
    padding: 30px 0;
}
footer .widget-box-1 {
    background: linear-gradient(145deg, #026e22, #35df13);
}
footer .widget-box-2 {
    background-color: #1a61a6;
}
footer .widget-box-3 {
    background: linear-gradient(145deg, #026e22, #35df13);
}
footer .widget-box-4 {
    background: linear-gradient(145deg, #026e22, #35df13);
}
footer .primary-footer {
    background-color: #026d19;
    padding: 30px 0;
}
footer .secondary-footer {
    border-top: 1px solid #f7fc00;
    background: linear-gradient(145deg, #027725, #3bc021);
    padding: 10px 0;
}
footer .copyright {
    color: #fff;
    /* border-top: 1px solid #fff; */
    font-size: 10px;
    letter-spacing: 1px;
}
footer a {
    color: #ffffff;
}
footer a:hover {
    color: yellow;
}
footer .page-title {
    color: #ffffff;
}
.social-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
    background-color: blue;
    color: #fff;
    text-align: center;
    margin-right: 10px;
    padding-top: 12px;
    border-radius: 50%;
}
.linked-in {
    background-color: #007bb6;
}
.facebook {
    background-color: #3b5998;
}
.twitter {
    background-color: #1da1f2;
}
.instagram {
    background-color: #44afae;
}
.youtube {
    background-color: #ef4e17;
}
.primary-footer nav ol.breadcrumb {
    background-color: transparent;
}

/* Tags */
.tag-content-block {
    display: block;
}
.tag a {
    border: 1px solid #fff;
    padding: 12px 10px 8px 10px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 11px;
    margin-bottom: 5px;
    margin-right: 2px;
    text-decoration: none;
}
.tag a:hover {
    border: 1px solid #44afae;
    color: #fff;
}

/* Fullscreen Search */
#search_form {
    z-index: 999999;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-transform: translate(0px, -100%) scale(0, 0);
    -moz-transform: translate(0px, -100%) scale(0, 0);
    -o-transform: translate(0px, -100%) scale(0, 0);
    -ms-transform: translate(0px, -100%) scale(0, 0);
    transform: translate(0px, -100%) scale(0, 0);

    opacity: 0;
}

#search_form.open {
    -webkit-transform: translate(0px, 0px) scale(1, 1);
    -moz-transform: translate(0px, 0px) scale(1, 1);
    -o-transform: translate(0px, 0px) scale(1, 1);
    -ms-transform: translate(0px, 0px) scale(1, 1);
    transform: translate(0px, 0px) scale(1, 1);
    opacity: 1;
}

#search_form input[type='search_form'] {
    position: absolute;
    top: 50%;
    width: 100%;
    color: rgb(255, 255, 255);
    background: rgba(0, 0, 0, 0);
    font-size: 60px;
    font-weight: 300;
    text-align: center;
    border: 0px;
    margin: 0px auto;
    margin-top: -51px;
    padding-left: 30px;
    padding-right: 30px;
    outline: none;
}
#search_form .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: 61px;
    margin-left: -45px;
}

/* Responsive */
/*  Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .top-left {
        text-align: center !important;
    }
    .top-right {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .top-left {
        text-align: center !important;
    }
    .top-right {
        display: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .top-left {
        text-align: center !important;
    }
    .top-right {
        display: none;
    }
}

/* Overide Toastr color */
.toast {
    background-color: #030303;
}
/* custom toastr success */
.toast-success {
    background-color: #00cb18;
}
/* custom toastr error */
.toast-error {
    background-color: #ef5137;
}
/* custom toastr info */
.toast-info {
    background-color: #4b8df8;
}
/* custom toastr warning */
.toast-warning {
    background-color: #ffb848;
}
.toast-title,
.toast-message {
    text-align: left;
}
.top-header {
    display: flex;
    align-items: center; /* vertical alignment */
}
/* return to top */
#return-to-top {
    opacity: 0.7;
    z-index: 10000;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #44afae;
    width: 30px;
    height: 30px;
    display: block;
    text-decoration: none;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 9px;
    top: 5px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:hover {
    background: #000;
}
#return-to-top:hover i {
    color: #fff;
}

.form-group:hover {
    background-color: #f9ffda;
}

.btn-success {
    background-color: #44afae !important;
    border-color: #44afae;
}
.btn-success:hover {
    background-color: #349997 !important;
    border-color: #44afae;
}
