* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #263746;
    background: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   COLOR
========================= */

:root {
    --blue: #4682B4;
    --blue-dark: #315f86;
    --blue-light: #6b9bc3;
    --blue-soft: #eaf3fa;
    --yellow: #f5b942;
    --yellow-dark: #e6a82e;
    --white: #ffffff;
    --text: #263746;
    --gray: #687582;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: min(1200px, 90%);
    margin: auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 95px;
    background: rgba(255, 255, 255, 0.97);
    position: relative;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: min(1220px, 90%);
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box {
    width: 58px;
    height: 58px;

    background: var(--blue);
    color: white;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 800;
	gap: 15px;

    box-shadow: 0 10px 25px rgba(70, 130, 180, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: var(--blue);
    font-size: 19px;
    line-height: 1.2;
}

.logo-text span {
    color: #697582;
    font-size: 11px;
}


/* NAVIGATION */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 31px;
}

.nav-menu a {
    color: #38434e;
    font-size: 15px;
    font-weight: 500;

    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--blue);
}

.nav-menu .nav-spmb {
    color: white;
    background: var(--blue);

    padding: 14px 25px;
    border-radius: 30px;

    font-weight: 700;
}

.nav-menu .nav-spmb:hover {
    color: white;
    background: var(--blue-dark);
}

.nav-menu .active {
    background: var(--blue-dark);
}


/* MOBILE BUTTON */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: var(--blue);
    font-size: 25px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.spmb-hero {
    min-height: 760px;

    position: relative;
    overflow: hidden;

   background:
    linear-gradient(
        135deg,
        #315f86 0%,
        #4682B4 55%,
        #6b9bc3 100%
    );

    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,0.08),
            transparent 30%
        );
}

.spmb-container {
    width: min(1220px, 90%);
    min-height: 760px;

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 70px;

    position: relative;
    z-index: 2;
}


/* HERO LEFT */

.hero-content h1 {
    font-size: 58px;
    line-height: 1.1;
    margin: 15px 0 20px;
    font-weight: 800;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.hero-content h1 {
    font-size: clamp(60px, 6vw, 82px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -3px;

    margin-bottom: 35px;
}

.hero-content h1 span {
    display: block;
    color: var(--yellow);
}

.hero-content p {
    max-width: 650px;

    font-size: 17px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 35px;
}


/* BUTTONS */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 17px 28px;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;

    transition: 0.3s;
}

.btn-primary {
    color: #202c35;
    background: var(--yellow);

    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px);
}

.btn-outline {
    color: white;

    border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
    background: white;
    color: var(--blue);
}


/* =========================
   HERO CARD
========================= */

.hero-card {
    width: 100%;
    max-width: 480px;
    min-height: 360px;
	overflow: hidden;
	padding: 0;

    margin-left: auto;

    border-radius: 25px;

    border: 1px solid rgba(255,255,255,0.3);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.14),
            rgba(255,255,255,0.06)
        );

    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    box-shadow:
        0 30px 70px rgba(22, 55, 80, 0.18);

    transition: 0.4s;
}
.school-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 25px;
}
.school-image {
    transition: transform 0.5s ease;
}

.hero-card:hover .school-image {
    transform: scale(1.03);
}

.hero-card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 90px;
    height: 90px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.12);

    font-size: 42px;

    margin-bottom: 25px;
}

.hero-card h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.hero-card p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.hero-card strong {
    color: var(--yellow);

    font-size: 32px;

    margin-top: 5px;
}

.card-line {
    width: 80px;
    height: 2px;

    background: rgba(255,255,255,0.3);

    margin: 20px 0;
}

.hero-card > span {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;
}

.section-heading span {
    color: var(--blue);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;
}

.section-heading h2 {
    color: #263746;

    font-size: 40px;

    margin: 12px 0 15px;

    font-weight: 800;
}

.section-heading p {
    color: var(--gray);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================
   INFORMATION
========================= */

.information {
    padding: 110px 0;
    background: white;
}

.info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.info-card {
    padding: 40px 32px;

    border-radius: 22px;

    background: #fff;

    border: 1px solid #e8eef3;

    box-shadow: 0 15px 40px rgba(30,60,80,0.07);

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 50px rgba(30,60,80,0.12);
}

.info-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 25px;

    margin-bottom: 25px;
}

.info-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray);

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.info-card strong {
    color: var(--blue);
    font-size: 14px;
}


/* =========================
   ALUR
========================= */

.alur {
    padding: 110px 0;

    background: var(--blue-soft);
}

.steps {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.step {
    background: white;

    padding: 30px 25px;

    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(40,80,110,0.06);
}

.step-number {
    color: var(--blue);

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 18px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================
   REQUIREMENTS
========================= */

.requirements {
    padding: 110px 0;
}

.requirements-box {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    padding: 65px;

    border-radius: 30px;

    background:
    linear-gradient(
        135deg,
        #315f86,
        #4682B4
    );

    color: white;

    box-shadow: 0 25px 60px rgba(45,90,125,0.2);
}

.requirements-content span {
    color: var(--yellow);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;
}

.requirements-content h2 {
    font-size: 40px;

    line-height: 1.15;

    margin: 15px 0 20px;
}

.requirements-content p {
    color: rgba(255,255,255,0.85);

    line-height: 1.8;
}

.requirement-list {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 18px;
}

.requirement-list div {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px 20px;

    border-radius: 13px;

    background: rgba(255,255,255,0.1);

    border: 1px solid rgba(255,255,255,0.12);
}

.requirement-list i {
    color: var(--yellow);
}


/* =========================
   REGISTRATION
========================= */

.registration {
    padding: 0 0 110px;
}

.registration-box {
    padding: 60px;

    border-radius: 28px;

    background: #eaf3fa;

    border: 1px solid #e5edf3;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.registration-box span {
    color: var(--blue);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;
}

.registration-box h2 {
    font-size: 35px;

    margin: 10px 0;
}

.registration-box p {
    color: var(--gray);
}

.registration-btn {
    white-space: nowrap;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    background: var(--blue);

    color: white;

    padding: 17px 28px;

    border-radius: 50px;

    font-weight: 700;

    transition: 0.3s;
}

.registration-btn:hover {
    background: var(--blue-dark);

    transform: translateY(-3px);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #315f86;

    color: white;

    padding: 55px 0 25px;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 35px;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;

    align-items: center;

    gap: 15px;
}

.footer-logo .logo-box {
    background: rgba(255,255,255,0.15);

    box-shadow: none;
}

.footer-logo strong {
    font-size: 18px;
}

.footer-logo p {
    color: rgba(255,255,255,0.6);

    font-size: 12px;

    margin-top: 4px;
}

.footer-links {
    display: flex;

    gap: 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.75);

    font-size: 14px;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    padding-top: 25px;

    color: rgba(255,255,255,0.5);

    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-menu {
        gap: 18px;
    }

    .spmb-container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .navbar {
        height: 80px;
    }

    .logo-text span {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        padding: 20px;

        background: white;

        display: none;

        flex-direction: column;

        align-items: stretch;

        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 15px;
    }

    .spmb-container {
        grid-template-columns: 1fr;

        padding: 80px 0;
    }

    .spmb-hero {
        min-height: auto;
    }

    .hero-card {
        min-height: 350px;

        margin: 0 auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .requirements-box {
        grid-template-columns: 1fr;

        padding: 40px;
    }

    .registration-box {
        flex-direction: column;

        align-items: flex-start;

        padding: 40px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

}


@media (max-width: 550px) {

    .logo-box {
        width: 50px;
        height: 50px;

        border-radius: 14px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 50px;

        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .requirements-content h2 {
        font-size: 30px;
    }

    .footer-links {
        flex-direction: column;

        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }

}


/* =================================
   LOADING SCREEN SPMB SMPN 2 GEBOG
================================= */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(96, 165, 250, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255, 190, 70, 0.12),
            transparent 30%
        ),
        linear-gradient(135deg, #173e61, #315f86 55%, #4682b4);
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}

#loading-screen::before,
#loading-screen::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

#loading-screen::before {
    width: 420px;
    height: 420px;
    animation: loader-orbit 12s linear infinite;
}

#loading-screen::after {
    width: 580px;
    height: 580px;
    border-style: dashed;
    animation: loader-orbit 24s linear infinite reverse;
}

.loader-content {
    position: relative;
    z-index: 1;
    width: min(90%, 380px);
    text-align: center;
    color: #fff;
    animation: loader-appear 0.8s ease both;
}

.loader-logo {
    position: relative;
    width: 118px;
    height: 118px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
    animation: loader-breathe 2.4s ease-in-out infinite;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #ffc044;
    border-right-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: loader-orbit 2.2s linear infinite;
}

.loader-ring-2 {
    inset: 9px;
    border-top-color: rgba(255, 255, 255, 0.9);
    border-right-color: transparent;
    border-bottom-color: rgba(255, 192, 68, 0.65);
    animation-duration: 3.2s;
    animation-direction: reverse;
}

.loader-content h2 {
    margin: 0 0 9px;
    font-size: clamp(21px, 5vw, 28px);
    font-weight: 800;
    letter-spacing: 2px;
}

.loader-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
}

.loader-progress {
    width: 190px;
    height: 4px;
    margin: 30px auto 15px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.loader-progress span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #ffc044;
    animation: loader-progress-move 1.5s ease-in-out infinite;
}

.loader-status {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.72);
}

#loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loader-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes loader-appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loader-progress-move {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(360%);
    }
}

@media (max-width: 480px) {
    #loading-screen::before {
        width: 290px;
        height: 290px;
    }

    #loading-screen::after {
        width: 390px;
        height: 390px;
    }

    .loader-logo {
        width: 100px;
        height: 100px;
    }

    .loader-logo-img {
        width: 66px;
        height: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-ring,
    .loader-logo-img,
    .loader-content,
    .loader-progress span {
        animation: none;
    }

    #loading-screen {
        transition: opacity 0.2s ease;
    }
}

/* PENYESUAIAN AKSEN WARNA SPMB */

/* Judul utama */
.hero-content h1 span {
    color: #ffffff;
}

/* Tombol Daftar Sekarang */
.btn-primary {
    background: #4682B4;
    color: #ffffff;
}

.btn-primary:hover {
    background: #315f86;
}

/* Tahun pelajaran pada kartu gedung */
.hero-card strong {
    color: #ffffff;
}