/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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: 0px;
}


/* ==========================================
   NAVBAR SEKOLAH - CLEAN & RESPONSIVE
========================================== */

.navbar {
    min-height: 75px;
    padding: 0 30px;
    z-index: 9999;
}


/* ==========================================
   CONTAINER
========================================== */

.navbar .container,
.navbar .container-fluid {
    width: 100%;
}


/* ==========================================
   LOGO & BRAND
========================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-right: 25px;
    padding: 8px 0;

    flex-shrink: 0;
}


.school-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;
    flex-shrink: 0;
}


.school-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.school-name {
    font-family: 'Nunito', sans-serif;

    font-size: 26px;
    font-weight: 800;

    color: var(--primary);

    line-height: 1.2;

    white-space: nowrap;
}


.website-name {
    font-family: 'Heebo', sans-serif;

    font-size: 12px;
    font-weight: 500;

    color: #6c757d;

    margin-top: 2px;
}


/* ==========================================
   NAVBAR COLLAPSE
========================================== */

.navbar-collapse {
    align-items: center;
}


/* ==========================================
   MENU DESKTOP
========================================== */

.navbar-light .navbar-nav {
    align-items: center;
}


.navbar-light .navbar-nav .nav-link {
    color: var(--dark);

    font-size: 14px;
    font-weight: 600;

    text-transform: uppercase;

    padding: 27px 13px;

    margin: 0;

    white-space: nowrap;

    transition: .3s;
}


.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}


/* ==========================================
   DROPDOWN ICON
========================================== */

.navbar .dropdown-toggle::after {
    border: none;

    content: "\f107";

    font-family: "Font Awesome 5 Free";

    font-weight: 900;

    vertical-align: middle;

    margin-left: 7px;
}


/* ==========================================
   DROPDOWN DESKTOP
========================================== */

@media (min-width: 1200px) {

    .navbar .nav-item .dropdown-menu {
        display: block;

        margin-top: 0;

        opacity: 0;
        visibility: hidden;

        transition: .25s;
    }


    .navbar .dropdown-menu.fade-down {
        top: 100%;

        transform: translateY(10px);
    }


    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;

        transform: translateY(0);

        visibility: visible;
        opacity: 1;
    }

}


/* ==========================================
   DROPDOWN MENU
========================================== */

.navbar .dropdown-menu {
    border: none;

    border-radius: 10px;

    padding: 10px;

    min-width: 220px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}


.navbar .dropdown-item {
    padding: 10px 15px;

    border-radius: 6px;

    font-size: 14px;
}


.navbar .dropdown-item:hover {
    background: var(--light);

    color: var(--primary);
}


/* ==========================================
   SEARCH NAVBAR
========================================== */

.navbar-search-wrapper {
    position: relative;

    margin-left: 15px;

    flex-shrink: 0;
}


/* Tombol Search */

.navbar-search-toggle {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: var(--dark);

    font-size: 18px;

    cursor: pointer;

    transition: .3s;
}


.navbar-search-toggle:hover {
    background: var(--primary);

    color: #FFFFFF;
}


/* Box Search */

.navbar-search-box {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 350px;

    padding: 12px;

    background: #FFFFFF;

    border-radius: 10px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: .3s;

    z-index: 99999;
}


/* Search terbuka */

.navbar-search-wrapper.show-search .navbar-search-box {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Form */

.navbar-search-box .input-group {
    flex-wrap: nowrap;
}


/* Input */

.navbar-search-box input {
    width: 100%;

    height: 50px;

    border: 1px solid #dee2e6;

    border-right: none;

    outline: none;

    box-shadow: none;
}


.navbar-search-box input:focus {
    border-color: var(--primary);
}


/* Tombol Submit */

.navbar-search-box button {
    width: 55px;
    height: 50px;

    flex-shrink: 0;

    border-radius: 0 6px 6px 0;
}


/* ==========================================
   DESKTOP BESAR
========================================== */

@media (min-width: 1600px) {

    .navbar {
        padding-left: 40px;
        padding-right: 30px;
    }


    .navbar-light .navbar-nav .nav-link {
        padding-left: 17px;
        padding-right: 17px;
    }

}


/* ==========================================
   LAPTOP
========================================== */

@media (min-width: 1200px) and (max-width: 1599.98px) {

    .navbar {
        padding-left: 25px;
        padding-right: 20px;
    }


    .school-logo {
        width: 52px;
        height: 52px;
    }


    .school-name {
        font-size: 22px;
    }


    .navbar-brand {
        gap: 10px;

        margin-right: 15px;
    }


    .navbar-light .navbar-nav .nav-link {
        font-size: 12px;

        padding-left: 8px;
        padding-right: 8px;
    }


    .navbar-search-wrapper {
        margin-left: 8px;
    }


    .navbar-search-toggle {
        width: 44px;
        height: 44px;
    }

}


/* ==========================================
   TABLET & COLLAPSE
========================================== */

@media (max-width: 1199.98px) {

    .navbar {
        min-height: 75px;

        padding: 10px 30px;
    }


    /* Collapse */

    .navbar-collapse {
        width: 100%;

        margin-top: 10px;
        padding-top: 10px;

        border-top: 1px solid #eeeeee;
    }


    /* Menu */

    .navbar-light .navbar-nav {
        width: 100%;

        align-items: stretch;
    }


    .navbar-light .navbar-nav .nav-link {
        padding: 12px 10px;

        font-size: 15px;

        margin: 0;
    }


    /* Dropdown */

    .navbar .dropdown-menu {
        box-shadow: none;

        border-left: 3px solid var(--primary);

        border-radius: 0;

        margin-left: 10px;
    }


    /* Search */

    .navbar-search-wrapper {
        width: 100%;

        margin: 15px 0 10px;
    }


    .navbar-search-toggle {
        width: 100%;
        height: 50px;

        border-radius: 6px;

        background: var(--light);

        justify-content: flex-start;

        padding-left: 18px;
    }


    .navbar-search-toggle::after {
        content: "Cari Informasi";

        margin-left: 10px;

        font-family: 'Nunito', sans-serif;

        font-size: 14px;
        font-weight: 600;
    }


    .navbar-search-box {
        position: static;

        width: 100%;

        margin-top: 10px;

        padding: 0;

        box-shadow: none;

        border-radius: 0;

        display: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }


    .navbar-search-wrapper.show-search .navbar-search-box {
        display: block;
    }


    .navbar-search-box input {
        height: 55px;
    }


    .navbar-search-box button {
        width: 60px;
        height: 55px;
    }

}


/* ==========================================
   TABLET KECIL
========================================== */

@media (max-width: 991.98px) {

    .navbar {
        padding-left: 25px;
        padding-right: 25px;
    }


    .navbar-brand {
        gap: 10px;

        margin-right: 0;
    }


    .school-logo {
        width: 48px;
        height: 48px;
    }


    .school-name {
        font-size: 20px;
    }


    .website-name {
        display: none;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 575.98px) {

    .navbar {
        min-height: 65px;

        padding-left: 15px;
        padding-right: 15px;
    }


    .navbar-brand {
        gap: 8px;
    }


    .school-logo {
        width: 42px;
        height: 42px;
    }


    .school-name {
        font-size: 16px;
    }


    .navbar-toggler {
        padding: 6px 10px;

        margin-right: 0 !important;
    }


    .navbar-search-toggle {
        height: 52px;
    }


    .navbar-search-box input {
        height: 52px;
    }


    .navbar-search-box button {
        width: 55px;
        height: 52px;
    }

}

/*** Header carousel ***/
.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;
    font-size: 22px;
    transition: .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(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/atas.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    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;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.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;
}

/* ========================================
   Kepala Sekolah
======================================== */

.kepsek-content p {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.kepsek-content h2 {
    font-weight: 700;
}

.kepsek-content h4 {
    font-weight: 600;
}

.kepsek-content .row p {
    line-height: 1.5;
}

.position-sticky img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

html {
    scroll-behavior: smooth;
}

section,
[id] {
    scroll-margin-top: 100px;
}

.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #181d38;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
}

/*** Header Carousel — Split Layout ***/
.slider-item {
    min-height: 700px;
    overflow: hidden;
}

/* Layer 0: background */
.slider-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.5);
    transform: scale(1.15);
    /* biar tepi blur ga keliatan putih */
    z-index: 0;
}

.slider-bg-gradient {
    background: linear-gradient(135deg, #0c1230 0%, #181d38 55%, #06333a 100%);
}

/* Layer 1: overlay gelap */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 30, .55);
    z-index: 1;
}

/* Layer 2: konten (WAJIB z-index eksplisit) */
.slider-content {
    z-index: 2;
}

/* OUTER: shadow doang, TANPA overflow:hidden */
.slider-media-card-outer {
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

/* INNER: radius + overflow:hidden buat motong video/gambar */
.slider-media-card-inner-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.slider-media-card-inner {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .slider-item {
        min-height: auto;
        padding: 60px 0;
    }

    /* Bootstrap's position-absolute/h-100 utility classes on .slider-content
       leave .slider-item with no in-flow children, so the padding above
       collapses to ~120px and everything inside gets squeezed/overflows.
       On mobile & tablet let the content flow normally so it actually
       defines the slide's height; the bg photo + overlay (inset:0) will
       then stretch to match it automatically. */
    .slider-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
    }

    .slider-media-card-inner {
        height: 280px;
    }

    /* With text + media card now stacked, a nav arrow vertically centered
       on the whole slide lands on top of the paragraph/button. Pin it to
       the bottom-right instead. */
    .header-carousel .owl-nav {
        top: auto;
        bottom: 16px;
        right: 16px;
        transform: none;
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .slider-media-card-inner {
        height: 220px;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
/* ==========================================
   STATISTIK SEKOLAH
========================================== */

.school-statistics {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}


.school-statistics .stat-card {
    height: 100%;
    background: #F0FBFC;
    border-radius: 10px;

    padding: 22px 15px;

    transition: .3s;

    text-align: center;
}


.school-statistics .stat-card:hover {
    transform: translateY(-7px);

    background: var(--primary);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}


.school-statistics .stat-card i {
    font-size: 38px;

    margin-bottom: 12px;

    transition: .3s;
}


.school-statistics .stat-number {
    font-size: 28px;

    font-weight: 800;

    margin-bottom: 5px;

    color: var(--primary);

    line-height: 1.2;

    transition: .3s;
}


.school-statistics .stat-title {
    font-size: 17px;

    font-weight: 700;

    margin-bottom: 8px;

    color: var(--dark);

    transition: .3s;
}


.school-statistics .stat-description {
    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 0;

    color: #666;

    transition: .3s;
}


/* Hover */

.school-statistics .stat-card:hover i,
.school-statistics .stat-card:hover .stat-number,
.school-statistics .stat-card:hover .stat-title,
.school-statistics .stat-card:hover .stat-description {
    color: #FFFFFF !important;
}


/* Mobile */

@media (max-width: 575.98px) {

    .school-statistics .stat-card {
        padding: 18px 12px;
    }


    .school-statistics .stat-card i {
        font-size: 32px;
    }


    .school-statistics .stat-number {
        font-size: 25px;
    }


    .school-statistics .stat-description {
        font-size: 12px;
    }

}