/* =========================================================
   BK SMP NEGERI 2 MOYUDAN
   HOME / HERO
   GAYA PEMERINTAH MODERN
   ========================================================= */

:root {
    --bk-blue: #07549a;
    --bk-blue-dark: #043b70;
    --bk-blue-light: #1683d8;
    --bk-gold: #f4c542;

    --bk-white: #ffffff;
    --bk-text: #ffffff;

    --bk-shadow:
        0 20px 50px rgba(0, 45, 90, .22);
}


/* =========================================================
   RESET
   ========================================================= */

.bk-home,
.bk-home *,
.bk-home *::before,
.bk-home *::after {
    box-sizing: border-box;
}

.bk-home {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    width: 100%;
    height: 100vh;
    min-height: 650px;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   SLIDER
   ========================================================= */

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1.04);

    transition:
        opacity 1s ease,
        transform 7s ease;

    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 42, 78, .92) 0%,
            rgba(4, 59, 107, .76) 42%,
            rgba(4, 59, 107, .38) 70%,
            rgba(2, 35, 65, .60) 100%
        );

    z-index: 2;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.hero-container {
    width: min(1180px, calc(100% - 50px));
    height: 100%;

    margin: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;

    align-items: center;
    gap: 70px;

    position: relative;
    z-index: 5;

    padding-top: 75px;
}


/* =========================================================
   CONTENT KIRI
   ========================================================= */

.hero-content {
    max-width: 650px;
    color: var(--bk-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 15px;

    border: 1px solid rgba(255,255,255,.32);
    border-radius: 5px;

    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);

    color: #fff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.hero-badge span {
    width: 7px;
    height: 7px;

    background: var(--bk-gold);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(244,197,66,.12);
}


/* =========================================================
   TITLE
   ========================================================= */

.hero-content h1 {
    margin: 22px 0 18px;

    color: #fff;

    font-size: clamp(38px, 5vw, 65px);

    line-height: 1.08;

    font-weight: 400;

    letter-spacing: -.8px;
}

.hero-content h1 strong {
    display: block;

    color: #fff;

    font-weight: 800;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hero-content p {
    max-width: 570px;

    margin: 0;

    color: rgba(255,255,255,.86);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   BUTTON
   ========================================================= */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 30px;
}

.btn-main,
.btn-light {
    min-height: 48px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: .25s ease;
}

.btn-main {
    background: #fff;
    color: var(--bk-blue-dark);

    box-shadow:
        0 10px 25px rgba(0,0,0,.16);
}

.btn-main span {
    font-size: 20px;
    line-height: 0;
}

.btn-main:hover {
    transform: translateY(-2px);
    background: #f4f8fc;
}

.btn-light {
    color: #fff;

    border: 1px solid rgba(255,255,255,.4);

    background: rgba(255,255,255,.08);

    backdrop-filter: blur(8px);
}

.btn-light:hover {
    background: rgba(255,255,255,.17);
    border-color: rgba(255,255,255,.65);
}


/* =========================================================
   PANEL KANAN
   ========================================================= */

.hero-side {
    width: 100%;

    padding: 23px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(241,247,253,.91)
        );

    border: 1px solid rgba(255,255,255,.8);

    border-radius: 10px;

    box-shadow:
        0 25px 65px rgba(0,39,79,.30);

    backdrop-filter: blur(18px);

    color: #173b5d;
}


/* =========================================================
   SIDE HEADER
   ========================================================= */

.side-header {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-bottom: 19px;

    border-bottom: 1px solid #dbe7f1;
}

.side-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            var(--bk-blue),
            var(--bk-blue-dark)
        );

    color: #fff;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 8px 18px rgba(7,84,154,.25);
}

.side-header small {
    display: block;

    margin-bottom: 2px;

    color: #6b849a;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.side-header h2 {
    margin: 0;

    color: #073f72;

    font-size: 19px;
    font-weight: 800;
}


/* =========================================================
   SIDE MENU
   ========================================================= */

.side-menu {
    display: flex;
    flex-direction: column;

    margin-top: 6px;
}

.side-menu a {
    display: grid;

    grid-template-columns: 32px 1fr 20px;

    align-items: center;

    gap: 10px;

    padding: 16px 3px;

    text-decoration: none;

    color: #173b5d;

    border-bottom: 1px solid #e4edf4;

    transition: .25s ease;
}

.side-menu a:last-child {
    border-bottom: 0;
}

.side-menu a:hover {
    padding-left: 8px;

    color: var(--bk-blue);

    background:
        linear-gradient(
            90deg,
            rgba(7,84,154,.07),
            transparent
        );
}

.menu-number {
    color: #7b95aa;

    font-size: 11px;
    font-weight: 800;
}

.side-menu strong {
    display: block;

    margin-bottom: 3px;

    color: #16456d;

    font-size: 14px;
}

.side-menu small {
    display: block;

    color: #7b8f9f;

    font-size: 10px;
}

.side-menu b {
    color: var(--bk-blue);

    font-size: 22px;

    font-weight: 400;
}


/* =========================================================
   SLIDER CONTROL
   ========================================================= */

.slider-control {
    position: absolute;

    left: 50%;

    bottom: 27px;

    transform: translateX(-50%);

    z-index: 10;

    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-arrow {
    width: 35px;
    height: 35px;

    border: 1px solid rgba(255,255,255,.38);

    border-radius: 5px;

    background: rgba(255,255,255,.10);

    color: #fff;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(8px);

    transition: .25s ease;
}

.slider-arrow:hover {
    background: rgba(255,255,255,.22);
}


.slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.45);

    cursor: pointer;

    transition: .3s ease;
}

.dot.active {
    width: 26px;

    border-radius: 10px;

    background: #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .hero-container {
        grid-template-columns: minmax(0, 1fr) 330px;

        gap: 35px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-side {
        padding: 19px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .hero-section {
        height: auto;
        min-height: 720px;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3,42,78,.80),
                rgba(3,42,78,.82)
            );
    }

    .hero-container {
        width: min(100% - 30px, 600px);

        padding-top: 110px;
        padding-bottom: 85px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: stretch;

        gap: 28px;
    }

    .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-badge {
        font-size: 10px;
    }

    .hero-content h1 {
        margin-top: 18px;

        font-size: 38px;
        line-height: 1.12;
    }

    .hero-content p {
        margin: auto;

        max-width: 480px;

        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        justify-content: center;

        margin-top: 22px;
    }

    .btn-main,
    .btn-light {
        min-height: 44px;

        padding: 0 16px;

        font-size: 13px;
    }

    .hero-side {
        max-width: 500px;

        margin: 0 auto;

        padding: 17px;

        border-radius: 8px;
    }

    .side-menu a {
        padding: 13px 3px;
    }

    .side-menu small {
        font-size: 9px;
    }

    .slider-control {
        bottom: 18px;
    }

}


/* =========================================================
   MOBILE KECIL
   ========================================================= */

@media (max-width: 480px) {

    .hero-section,
    .hero-slider {
        min-height: 760px;
    }

    .hero-container {
        width: calc(100% - 24px);

        padding-top: 100px;
        padding-bottom: 80px;

        gap: 23px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn-main,
    .btn-light {
        flex: 1;

        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-side {
        padding: 14px;
    }

    .side-icon {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }

    .side-header h2 {
        font-size: 17px;
    }

    .side-menu a {
        grid-template-columns: 27px 1fr 15px;

        gap: 7px;
    }

    .side-menu strong {
        font-size: 12px;
    }

    .side-menu small {
        font-size: 8.5px;
    }

    .slider-arrow {
        width: 31px;
        height: 31px;

        font-size: 20px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-slide {
        transition: opacity .2s ease;
        transform: none !important;
    }

    .side-menu a,
    .btn-main,
    .btn-light,
    .slider-arrow {
        transition: none;
    }

}