@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* TEMA COBALT SKY */
    --primary: #0047AB;
    --primary-dark: #000080;
    --primary-light: #EAF6FC;
    --secondary: #82C8E5;

    /* WARNA PENDUKUNG */
    --steel-blue: #6D8196;
    --text-dark: #172033;
    --text-light: #F5FAFF;
    --white: #FFFFFF;

    /* LATAR BELAKANG */
    --bg-light: #F4F8FC;
    --bg-blue: #EAF6FC;

    /* BAYANGAN */
    --shadow-blue: 0 10px 30px rgba(0, 71, 171, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 95px 0;
}


/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 20px rgba(0,0,0,.07);
    transition: .3s;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(70,130,180,.25);
}

.logo img {
	display: block;
    width: 100%;
    height: 100%;
    max-width: 40%;
    max-height: 40%;
    object-fit: contain;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(70,130,180,.25);
}


.school-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.school-name strong {
    color: var(--primary);
    font-size: 16px;
}

.school-name span {
    color: var(--text);
    font-size: 10px;
}

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

.nav-menu a {
    color: #39434b;
    font-size: 13px;
    font-weight: 500;
    transition: .3s;
}

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

.nav-menu .nav-btn {
    background: var(--primary);
    color: white;
    padding: 9px 19px;
    border-radius: 30px;
}

.nav-menu .nav-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 25px;
    cursor: pointer;
}


/* HERO */
.hero {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 130px 0 70px;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(135deg, #000080, #0047AB);
    );
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

.hero-content {
    min-width: 0;
    animation: fadeUp 0.9s ease;
}

.hero-small {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #dcecf8;
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.12;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.92;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 13px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: #202020;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

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

.btn-white {
    background: white;
    color: var(--primary-dark);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-image {
    width: 100%;
    min-width: 0;
    animation: fadeUp 1.1s ease;
}

.hero-image img.school-image {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 25px;
}

/* TAMPILAN HP */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 110px 0 45px;
    }

    .hero-container {
        width: 90%;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 8vw, 44px);
    }

    .hero-image img.school-image {
        height: 280px;
    }

    .hero-buttons {
        gap: 12px;
    }
}


.image-placeholder {
    min-height: 320px;
    border-radius: 22px;
    background: linear-gradient(145deg, #dcecf8, #b9d3e8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.hero-placeholder {
    min-height: 400px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: white;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.image-placeholder i {
    font-size: 55px;
}

.image-placeholder span {
    font-weight: 600;
}

/* SECTION */
.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title .subtitle,
.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title h2,
.about-content h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 650px;
    margin: auto;
    color: var(--text);
}

/* ABOUT */
.about {
    background: var(--light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 45px;
}

.about-image .image-placeholder {
    min-height: 420px;
}

/* GAMBAR TENTANG SEKOLAH */
.about-container > .hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.about-container > .hero-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-content p {
    color: var(--text);
    margin-bottom: 15px;
}

.about-list {
    margin-top: 25px;
}

.about-list li {
    margin-bottom: 12px;
    color: var(--text);
}

.about-list i {
    color: var(--primary);
    margin-right: 9px;
}

/* STATS */
.stats {
    padding: 35px 0;
    background: var(--primary);
    color: white;
}

.stats-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 27px;
    margin-bottom: 7px;
}

.stat-item h3 {
    color: white;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.stat-item p {
    opacity: .85;
}

/* CARDS */
.program-grid,
.features-grid,
.achievement-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.card,
.feature-item,
.news-card,
.achievement-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,.04);
    transition: .35s;
}

.card:hover,
.feature-item:hover,
.news-card:hover,
.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card {
    padding: 30px;
}

.card-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--primary-dark);
    color: var(--primary);
    font-size: 25px;
    margin-bottom: 20px;
}

.card h3,
.feature-item h3,
.achievement-content h3,
.news-content h3 {
    margin-bottom: 10px;
}

.card p,
.feature-item p,
.achievement-content p,
.news-content p {
    color: var(--text);
    font-size: 14px;
}

/* FEATURES */
.features {
    background: var(--light);
}

.feature-item {
    padding: 35px 25px;
    text-align: center;
}

.feature-item i {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 18px;
}

/* ACHIEVEMENT */
.achievement-card {
    overflow: hidden;
}

.achievement-icon {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #d5e7f4);
    color: var(--primary);
    font-size: 55px;
}

.achievement-content {
    padding: 25px;
}

/* SPMB CTA */
.spmb-cta {
    color: #fff;
    background: linear-gradient(135deg, #315f86, #4682b4);
}

.spmb-cta .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.spmb-cta .spmb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.spmb-cta .spmb-content {
    max-width: 720px;
}

.spmb-cta .spmb-content > span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.spmb-cta .spmb-content h2 {
    margin: 12px 0 15px;
    font-size: 42px;
    line-height: 1.2;
}

.spmb-cta .spmb-content p {
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .spmb-cta .spmb-container {
        justify-content: center;
        text-align: center;
    }

    .spmb-cta .spmb-content h2 {
        font-size: 32px;
    }
}
/* NEWS */
.news-card {
    overflow: hidden;
}

.news-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #cbddea);
    color: var(--primary);
    font-size: 45px;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* GALLERY */
.gallery {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.gallery-item {
    height: 230px;
    border-radius: 17px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #cbddea);
    color: var(--primary);
}

.gallery-item > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-item i {
    font-size: 42px;
}

/* FAQ */
.faq-container {
    max-width: 850px;
    margin: auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: var(--text);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* FOOTER */
.footer {
    background: #172633;
    color: white;
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer h3 {
    margin-bottom: 20px;
}

.footer p,
.footer li {
    color: #b8c5ce;
    font-size: 14px;
}

.footer li {
    margin-bottom: 10px;
}

.footer li a:hover {
    color: white;
}

.footer-logo {
    margin-bottom: 15px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    transition: .3s;
}

.socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    color: #91a0aa;
    font-size: 13px;
}

/* ANIMATION */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */
@media (max-width: 992px) {

    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 650px;
        width: 100%;
        margin: auto;
    }

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

    .program-grid,
    .features-grid,
    .achievement-grid,
    .news-grid {
        grid-template-columns: repeat(2,1fr);
    }

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

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

/* MOBILE */
@media (max-width: 768px) {

    .nav-container {
        height: 70px;
    }

    .school-name span {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 5%;
        background: white;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

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

    .nav-menu a {
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu .nav-btn {
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding-top: 120px;
    }

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

    .hero-placeholder {
        min-height: 300px;
    }

    .section-title h2,
    .about-content h2 {
        font-size: 30px;
    }

    .program-grid,
    .features-grid,
    .achievement-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .spmb-container {
        text-align: center;
    }

    .spmb-content h2 {
        font-size: 32px;
    }

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

/* SMALL MOBILE */
@media (max-width: 480px) {

    section {
        padding: 70px 0;
    }

    .logo {
        width: 43px;
        height: 43px;
    }

    .school-name strong {
        font-size: 14px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

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

    .gallery-item {
        height: 250px;
    }
}


/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* =================================
   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;
    }
}




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

.hero-content {
    animation: heroContentIn 1s ease 0.3s both;
}

.hero-image {
    animation: heroImageIn 1.2s ease 0.5s both;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 768px) {

    .intro-logo {
        width: 90px;
        height: 90px;
    }

    .intro-content h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .intro-content p {
        font-size: 13px;
    }

}




/* =====================================
   VISI & MISI - SMPN 2 GEBOG
===================================== */

.vision-mission {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 6%;
    background-image:
        linear-gradient(
            rgba(16, 67, 112, 0.78),
            rgba(15, 62, 105, 0.82)
        ),
        url("images/gedung%20belakang.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vm-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(70, 130, 180, 0.25),
        rgba(15, 48, 80, 0.25)
    );
    pointer-events: none;
}

.vm-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.vm-heading {
    text-align: center;
    color: #fff;
    margin-bottom: 58px;
}

.vm-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #d8ecff;
}

.vm-heading h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
}

.vm-heading p {
    margin: 0 auto;
    max-width: 700px;
    color: #f0f6ff;
    font-size: 17px;
    line-height: 1.8;
}

.vm-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.vm-card {
    box-sizing: border-box;
    padding: 42px;
    border-radius: 25px;
    min-width: 0;
    box-shadow: 0 18px 45px rgba(0, 25, 55, 0.2);
}

.vm-vision {
    color: #fff;
    background: rgba(55, 139, 211, 0.91);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vm-mission {
    color: #244765;
    background: rgba(255, 255, 255, 0.96);
}

.vm-number {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    color: #ffbf3f;
    font-size: 17px;
    font-weight: 800;
}

.vm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    color: #145587;
    background: #e0efff;
    font-size: 30px;
}

.vm-card h3 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.3;
}

.vm-vision h3 {
    color: #fff;
}

.vm-mission h3 {
    color: #173e61;
}

.vm-card p,
.vm-card li {
    font-size: 16px;
    line-height: 1.85;
}

.vm-card p {
    margin: 0;
}

.vm-vision p {
    color: #fff;
}

.vm-card ul {
    margin: 0;
    padding-left: 24px;
}

.vm-card li {
    margin-bottom: 10px;
    padding-left: 3px;
}

.vm-mission li::marker {
    color: #1687d9;
}

/* TABLET DAN HP */
@media (max-width: 768px) {
    .vision-mission {
        padding: 70px 20px;
        background-position: center;
    }

    .vm-heading {
        margin-bottom: 32px;
    }

    .vm-heading p {
        font-size: 15px;
    }

    .vm-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .vm-card {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .vm-card h3 {
        font-size: 30px;
    }

    .vm-card p,
    .vm-card li {
        font-size: 15px;
        line-height: 1.8;
    }

    .vm-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 25px;
    }
}

@media (max-width: 380px) {
    .vision-mission {
        padding: 55px 15px;
    }

    .vm-card {
        padding: 24px 20px;
    }

    .vm-heading h2 {
        font-size: 34px;
    }
}


/* =====================================
   PETA LOKASI SMPN 2 GEBOG
===================================== */

.location-section {
    padding: 80px 0;
    background: #f3f8fd;
}

.location-container {
    width: 88%;
    max-width: 1280px;
    margin: 0 auto;
}

.location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.location-label {
    display: block;
    margin-bottom: 8px;
    color: #4682b4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.location-heading h2 {
    margin: 0;
    color: #173e61;
    font-size: clamp(25px, 3vw, 36px);
}

.maps-link {
    color: #173e61;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.maps-link:hover {
    color: #4682b4;
}

.location-map {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 22px;
    background: #e0eaf4;
    box-shadow: 0 15px 40px rgba(31, 72, 112, 0.12);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(31, 72, 112, 0.06);
}

.location-info h3 {
    margin: 0 0 8px;
    color: #173e61;
    font-size: 21px;
}

.location-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.location-button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 30px;
    background: #4682b4;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.location-button:hover {
    background: #315f86;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .location-section {
        padding: 55px 0;
    }

    .location-container {
        width: 90%;
    }

    .location-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .location-heading h2 {
        font-size: 26px;
    }

    .location-map {
        height: 330px;
        border-radius: 16px;
    }

    .location-info {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .location-button {
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .location-map {
        height: 280px;
    }
}


/* ==========================================
   AESTHETIC HERO ANIMATIONS
   SMPN 2 GEBOG
========================================== */

/* Cahaya lembut pada background */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    top: 5%;
    left: -180px;
    border-radius: 50%;
    background: rgba(130, 205, 255, 0.16);
    filter: blur(65px);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 350px;
    height: 350px;
    right: 0;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(255, 190, 65, 0.13);
    filter: blur(70px);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

/* Teks muncul secara bertahap */
.hero-content > * {
    animation: heroFadeUp 0.85s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.55s;
}

/* Foto muncul dengan efek zoom */
.hero-image {
    animation: heroImageIn 1.1s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: 0.2s;
}

.hero-image img {
    transition:
        transform 0.7s cubic-bezier(.2, .7, .2, 1),
        filter 0.7s ease;
    will-change: transform;
}

.hero-image:hover img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

/* Tombol dengan efek kilau */
.hero-content .btn,
.hero-content a {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.hero-content .btn::after,
.hero-content a::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.hero-content .btn:hover,
.hero-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 48, 79, 0.2);
}

.hero-content .btn:hover::after,
.hero-content a:hover::after {
    left: 140%;
}

/* Animasi keyframes */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(35px, -20px, 0) scale(1.12);
    }
}

/* Hormati pengaturan pengurangan animasi perangkat */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .hero-content > *,
    .hero-image {
        animation: none !important;
    }

    .hero-image img,
    .hero-content .btn,
    .hero-content a {
        transition: none !important;
    }
}

/* Animasi lebih ringan di HP */
@media (max-width: 768px) {
    .hero::before {
        width: 260px;
        height: 260px;
        filter: blur(45px);
    }

    .hero::after {
        width: 220px;
        height: 220px;
        filter: blur(45px);
    }

    .hero-image:hover img {
        transform: none;
    }
}


/* ANIMASI SAAT SECTION MASUK KE LAYAR */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* BACKGROUND HERO AESTHETIC */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255, 193, 76, 0.16),
            transparent 28%
        ),
        linear-gradient(125deg, #315f86, #4682b4 55%, #5795c5);
}

/* Lingkaran dekorasi */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -190px;
    left: 38%;
    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.035),
        0 0 0 75px rgba(255, 255, 255, 0.025);
    animation: circleFloat 12s ease-in-out infinite alternate;
}

.hero::after {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -100px;
    border-color: rgba(255, 193, 76, 0.35);
    box-shadow:
        0 0 0 30px rgba(255, 193, 76, 0.06),
        0 0 0 65px rgba(255, 255, 255, 0.035);
    animation: circleFloat 10s ease-in-out infinite alternate-reverse;
}

/* Titik-titik kecil seperti bintang */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

@keyframes circleFloat {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    to {
        transform: translate3d(-25px, 20px, 0) rotate(12deg);
    }
}

/* Tampilan HP */
@media (max-width: 768px) {
    .hero::before {
        width: 250px;
        height: 250px;
        top: -90px;
        left: 25%;
    }

    .hero::after {
        width: 180px;
        height: 180px;
        right: -80px;
        bottom: -40px;
    }
}

/* Menghormati pengaturan pengurangan gerakan */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* ==========================================
   SUMMER BREEZE - SMPN 2 GEBOG
   Cahaya matahari dan partikel musim panas
========================================== */

.leaf-animation-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 999;
}

/* Cahaya matahari lembut */
.summer-sun-glow {
    position: fixed;
    top: -150px;
    right: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 218, 130, 0.16) 0%,
        rgba(255, 226, 160, 0.08) 40%,
        transparent 72%
    );

    animation: summer-sun-pulse 7s ease-in-out infinite alternate;
}

/* Partikel cahaya yang melayang */
.summer-particle {
    position: absolute;
    top: -20px;
    left: 0;

    width: var(--particle-size, 4px);
    height: var(--particle-size, 4px);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #FFF8D6 0%,
        #FFD779 55%,
        rgba(255, 215, 121, 0) 100%
    );

    box-shadow: 0 0 10px rgba(255, 215, 121, 0.35);

    opacity: 0;
    animation:
        summer-float var(--float-duration, 12s) linear forwards,
        summer-twinkle var(--twinkle-duration, 3s) ease-in-out infinite alternate;

    will-change: transform, opacity;
}

/* Cahaya bergerak perlahan dari atas ke bawah */
@keyframes summer-float {
    0% {
        transform: translate3d(0, -5vh, 0);
    }

    50% {
        transform: translate3d(var(--drift, 30px), 50vh, 0);
    }

    100% {
        transform: translate3d(var(--drift-end, -20px), 110vh, 0);
    }
}

/* Efek kelap-kelip */
@keyframes summer-twinkle {
    0% {
        opacity: 0.15;
        scale: 0.7;
    }

    100% {
        opacity: 0.8;
        scale: 1.15;
    }
}

/* Cahaya matahari bernapas perlahan */
@keyframes summer-sun-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.65;
    }

    100% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Tampilan ponsel */
@media (max-width: 768px) {
    .summer-sun-glow {
        width: 260px;
        height: 260px;
        top: -100px;
        right: -100px;
    }

    .summer-particle {
        box-shadow: 0 0 6px rgba(255, 215, 121, 0.3);
    }
}

/* Hormati pengaturan aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .summer-particle,
    .summer-sun-glow {
        display: none;
        animation: none;
    }
}

/* =====================================
   AESTHETIC SCROLL INDICATOR
   SMPN 2 GEBOG
===================================== */

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: #FFFFFF;
    text-decoration: none;
    z-index: 10;

    opacity: 0.85;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    color: #82C8E5;
}

/* Bentuk mouse */
.scroll-mouse {
    width: 25px;
    height: 39px;

    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;

    display: flex;
    justify-content: center;

    padding-top: 7px;
    box-sizing: border-box;
}

/* Roda mouse bergerak */
.scroll-wheel {
    width: 3px;
    height: 7px;

    border-radius: 5px;
    background: #FFFFFF;

    animation: scroll-wheel-move 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel-move {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(10px);
        opacity: 0.2;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tulisan petunjuk */
.scroll-text {
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-align: center;
}

/* Panah bergerak lembut */
.scroll-arrow {
    font-size: 12px;
    animation: scroll-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Perangkat mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 15px;
        gap: 6px;
    }

    .scroll-mouse {
        width: 22px;
        height: 34px;
    }

    .scroll-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .scroll-wheel,
    .scroll-arrow {
        animation: none;
    }

    .scroll-indicator {
        transition: none;
    }
}

/* =========================================
   COBALT SKY MOTION - HERO EFFECTS
   SMPN 2 GEBOG
========================================= */

/* Dasar hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Lapisan cahaya bergerak */
.hero::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 25% 35%,
            rgba(130, 200, 229, 0.24),
            transparent 28%
        ),
        radial-gradient(
            circle at 75% 65%,
            rgba(255, 255, 255, 0.12),
            transparent 25%
        );

    animation: hero-light-drift 14s ease-in-out infinite alternate;
}

/* Kilau diagonal */
.hero::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 45%;
    height: 160%;
    z-index: 0;
    pointer-events: none;

   background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 15%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.22) 60%,
    rgba(255, 255, 255, 0.03) 85%,
    transparent 100%
);

    transform: rotate(20deg);
    animation: hero-shimmer 9s ease-in-out infinite;
}

@keyframes hero-light-drift {
    0% {
        transform: translate(-2%, -1%) scale(1);
    }

    100% {
        transform: translate(3%, 2%) scale(1.08);
    }
}

@keyframes hero-shimmer {
    0%, 15% {
        left: -60%;
    }

    55%, 100% {
        left: 130%;
    }
}

/* FOTO GEDUNG - FLOATING EFFECT */

.hero-image {
    perspective: 1000px;
}

.hero-image img {
    display: block;
    width: 100%;
    transition:
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.6s ease,
        filter 0.6s ease;

    box-shadow:
        0 20px 50px rgba(0, 0, 128, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.15);

    animation: building-float 6s ease-in-out infinite;
}

.hero-image img:hover {
    transform: translateY(-8px) scale(1.025);
    filter: saturate(1.08);

    box-shadow:
        0 30px 65px rgba(0, 0, 128, 0.3),
        0 0 30px rgba(130, 200, 229, 0.25);
}

@keyframes building-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}
/* ANIMASI MASUK HERO */

.hero-content > * {
    animation: hero-content-enter 0.9s ease-out both;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-image {
    animation: hero-image-enter 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.2s;
}

@keyframes hero-content-enter {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes hero-image-enter {
    from {
        opacity: 0;
        transform: translateX(35px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* DEKORASI LINGKARAN HERO */

.hero-content {
    position: relative;
}

.hero-content::before {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    left: -75px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    pointer-events: none;

    animation: decorative-orbit 10s ease-in-out infinite alternate;
}

.hero-content::after {
    content: "";
    position: absolute;

    width: 110px;
    height: 110px;

    top: -65px;
    left: -40px;

    border: 1px solid rgba(130, 200, 229, 0.2);
    border-radius: 50%;

    pointer-events: none;

    animation: decorative-orbit 7s ease-in-out infinite alternate-reverse;
}

@keyframes decorative-orbit {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(15px, 12px) rotate(20deg);
    }
}

/* =====================================
   BERITA SEKOLAH - COBALT SKY
===================================== */

.news-section {
    position: relative;
    padding: 90px 0 100px;
    overflow: hidden;
    background: #edf4ff;
}

.news-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 38px;
}

.news-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #0047AB;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.news-heading h2 {
    margin: 0 0 14px;
    color: #0b2858;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
}

.news-heading p {
    max-width: 650px;
    margin: 0;
    color: #52647e;
    font-size: 16px;
    line-height: 1.8;
}

/* Tombol navigasi */
.news-navigation {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.news-arrow {
    width: 52px;
    height: 52px;

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

    border: 1.5px solid #0047AB;
    border-radius: 50%;

    background: transparent;
    color: #0047AB;

    font-size: 17px;
    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.news-arrow:hover {
    background: #0047AB;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.2);
}

.news-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Carousel */
.news-track {
    display: grid;
    grid-auto-columns: calc((100% - 44px) / 3);
    grid-auto-flow: column;
    gap: 22px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 8px 2px 24px;

    scrollbar-width: none;
}

.news-track::-webkit-scrollbar {
    display: none;
}

/* Kartu berita */
.news-card {
    min-width: 0;
    overflow: hidden;

    background: #FFFFFF;
    border-radius: 22px;

    scroll-snap-align: start;

    box-shadow: 0 10px 35px rgba(24, 61, 112, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(24, 61, 112, 0.14);
}

/* Gambar berita */
.news-image-link {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background: #d9e5f5;
}

.news-image-link img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.news-card:hover .news-image-link img {
    transform: scale(1.06);
}

/* Label kategori */
.news-category {
    position: absolute;
    left: 16px;
    bottom: 16px;

    padding: 8px 13px;
    border-radius: 30px;

    background: rgba(0, 0, 128, 0.88);
    color: #FFFFFF;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;

    backdrop-filter: blur(8px);
}

/* Isi kartu */
.news-card-content {
    padding: 24px 23px 26px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 13px;

    color: #4778b7;
    font-size: 12px;
    font-weight: 600;
}

.news-card-content h3 {
    margin: 0 0 13px;

    color: #132b4f;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 750;
}

.news-card-content p {
    margin: 0 0 22px;

    color: #66758b;
    font-size: 14px;
    line-height: 1.8;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #0047AB;
    text-decoration: none;

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

    transition: gap 0.3s ease;
}

.news-read-more:hover {
    gap: 16px;
}

/* Garis indikator */
.news-progress {
    height: 4px;
    margin-top: 6px;

    overflow: hidden;
    border-radius: 10px;

    background: #cfdef5;
}

.news-progress span {
    display: block;
    width: 0;
    height: 100%;

    border-radius: inherit;
    background: linear-gradient(90deg, #0047AB, #82C8E5);

    transition: width 0.2s ease;
}

/* Tablet */
@media (max-width: 1000px) {
    .news-track {
        grid-auto-columns: calc((100% - 22px) / 2);
    }

    .news-image-link {
        height: 210px;
    }
}

/* Ponsel */
@media (max-width: 600px) {
    .news-section {
        padding: 65px 0 70px;
    }

    .news-container {
        width: 92%;
    }

    .news-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .news-heading h2 {
        font-size: 32px;
    }

    .news-heading p {
        font-size: 14px;
    }

    .news-navigation {
        align-self: flex-end;
    }

    .news-arrow {
        width: 44px;
        height: 44px;
    }

    .news-track {
        grid-auto-columns: 88%;
        gap: 16px;
    }

    .news-image-link {
        height: 215px;
    }

    .news-card-content {
        padding: 21px 19px 24px;
    }

    .news-card-content h3 {
        font-size: 18px;
    }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-image-link img,
    .news-arrow,
    .news-read-more,
    .news-progress span {
        transition: none !important;
    }

    .news-track {
        scroll-behavior: auto;
    }
}
/* =================================
   EFEK TIMBUL KARTU STATISTIK
   SMPN 2 GEBOG
================================= */

/* Ganti .stat-item jika nama class statistikmu berbeda */
.stat-item {
    position: relative;
    border-radius: 18px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;

    cursor: pointer;
}

/* Efek ketika kursor diarahkan */
.stat-item:hover {
    transform: translateY(-10px) scale(1.03);

    box-shadow:
        0 18px 35px rgba(0, 0, 60, 0.22),
        0 0 22px rgba(130, 200, 229, 0.22);

    background-color: rgba(255, 255, 255, 0.08);
}

/* Ikon ikut membesar */
.stat-item i {
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.stat-item:hover i {
    transform: scale(1.18) translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(130, 200, 229, 0.7));
}

/* Angka sedikit membesar */
.stat-item h2,
.stat-item h3,
.stat-item .stat-number {
    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

.stat-item:hover h2,
.stat-item:hover h3,
.stat-item:hover .stat-number {
    transform: scale(1.06);
    color: #82C8E5;
}

/* Efek pada layar sentuh dan aksesibilitas */
@media (hover: none) {
    .stat-item:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-item,
    .stat-item i,
    .stat-item h2,
    .stat-item h3,
    .stat-item .stat-number {
        transition: none;
    }
}

.social-links {
display: flex;
align-items: center;
gap: 16px;
margin-top: 24px;
flex-wrap: wrap;
}

.social-links a {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
font-size: 20px;
text-decoration: none;
transition: transform 0.3s ease,
background 0.3s ease,
box-shadow 0.3s ease;
}

.social-links a {
background: #4682B4;
transform: translateY(-5px) scale(1.08);
box-shadow: 0 8px 20px rgba(70, 130, 180, 0.35);
}


/* ==========================================
   BERITA & KEGIATAN SEKOLAH SMPN 2 GEBOG
========================================== */

.school-news {
    padding: 100px 0;
    background: #f5f8fc;
}

/* JUDUL SECTION */
.school-news-heading {
    max-width: 750px;
    margin-bottom: 42px;
}

.school-news-heading > span {
    color: #0047AB;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.school-news-heading h2 {
    color: #102d59;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0;
}

.school-news-heading p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

/* GRID KARTU BERITA */
.school-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* KARTU BERITA */
.school-news-card {
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 45, 89, 0.08);
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

.school-news-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
}

/* FOTO BERITA */
.school-news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2eaf3;
}

.school-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.school-news-card:hover .school-news-image img {
    transform: scale(1.07);
}

/* ISI KARTU */
.school-news-content {
    padding: 23px 22px 25px;
}

.school-news-date {
    color: #0755bd;
    font-size: 13px;
    font-weight: 600;
}

.school-news-content h3 {
    color: #102d59;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 750;
    margin: 12px 0;
}

.school-news-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* TOMBOL BACA BERITA */
.school-news-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0047AB;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.school-news-link:hover {
    gap: 12px;
    color: #000080;
}

/* TABLET */
@media (max-width: 1100px) {
    .school-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* HANDPHONE */
@media (max-width: 600px) {
    .school-news {
        padding: 70px 0;
    }

    .school-news-heading h2 {
        font-size: 32px;
    }

    .school-news-heading p {
        font-size: 15px;
    }

    .school-news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .school-news-content {
        padding: 20px;
    }
}
