/* ======================================================================
    RESET & DASAR
    ====================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skema Warna:
    * Biru Tua: #004d80
    * Oranye: #ff7f27
    * Kuning Aksen: #f3cc0b
    * Putih: #ffffff
    */

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.section-title-light,
.main-menu>li>a,
.school-name,
.cta-button {
    font-family: 'Fredoka', sans-serif;
}

a {
    text-decoration: none;
    color: #333333;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #ff7f27;
}

ul {
    list-style: none;
}

/* Utilitas */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 600;
    color: #004d80;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background-color: #ff7f27;
    border-radius: 10px;
}

.section-title-light {
    font-size: 2.5em;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subtitle-light {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tombol CTA Umum */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-orange {
    background-color: #ff7f27;
    color: #ffffff;
}

.cta-orange:hover {
    background-color: #e86a14;
}

.cta-white {
    background-color: #ffffff;
    color: #004d80;
}

.cta-white:hover {
    background-color: #f0f0f0;
}

.cta-dark-blue {
    background-color: #004d80;
    color: #ffffff;
}

.cta-dark-blue:hover {
    background-color: #00375a;
}

.center-button-container {
    text-align: center;
    margin-top: 40px;
}

/* ======================================================================
    HEADER & NAVIGASI
    ====================================================================== */
#wrapper {
    overflow: hidden;
    position: relative;
}

#main-header {
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

#main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #f3cc0b;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    gap: 40px;
}

.logo a {
    display: block;
}

.logo a img {
    height: auto;
    max-height: 130px;
    width: auto;
    display: block;
}

/* Menu Desktop */
#main-nav {
    display: block;
}

.main-menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu>li {
    position: relative;
    padding: 0 15px;
    /* Jarak antar item menu */
    height: 100px;
    /* Menyamakan tinggi dengan header agar hover full height */
    display: flex;
    align-items: center;
}

.main-menu>li>a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333333;
    gap: 8px;
}

.main-menu>li>a i {
    color: #ff7f27;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.main-menu>li:hover>a i {
    transform: scale(1.2);
}

.main-menu>li:hover>a,
.main-menu>li.current-menu-item>a {
    color: #007bff;
}

/* Dropdown Desktop */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    border-top: 3px solid #f3cc0b;
    border-radius: 0 0 8px 8px;
    padding: 0;
    transform: translateY(10px);
}

.main-menu>li:hover>.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    color: #555555;
    font-family: 'Nunito', sans-serif;
}

.sub-menu a:hover {
    background-color: #fffcf0;
    color: #ff7f27;
    padding-left: 25px;
    /* Efek geser sedikit saat hover */
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
}

/* ======================================================================
    HERO SLIDESHOW
    ====================================================================== */
#hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #004d80;
}

#hero-slideshow .slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fade 1.5s;
}

#hero-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#hero-slideshow .slide-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: 20px;
    z-index: 2;
    width: 80%;
    max-width: 800px;
    backdrop-filter: blur(3px);
}

#hero-slideshow .slide-caption h1 {
    font-size: 2.8em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

#hero-slideshow .slide-caption p {
    font-size: 1.3em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* === NEW: WA GROUP FLOATING CENTER STYLE === */
/* Posisi absolute di bawah tengah slider, menimpa gambar */

.hero-wa-group {
    position: absolute;
    /* Floating di atas slider */
    bottom: 25px;
    /* Jarak dari bawah slider (sejajar atau di atas running text) */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 20;
    /* Lebih tinggi dari slide dan caption */
    width: 100%;
    background: transparent;
    /* Tidak ada background blok putih */
}

.wa-btn {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wa-btn:hover {
    transform: translateY(-5px);
}

/* Lingkaran Ikon (Bubble) */
.wa-icon-bg {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    /* Shadow lebih tebal agar terlihat di atas gambar */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #f3cc0b;
    transition: border-color 0.3s ease;
    overflow: hidden;
    z-index: 2;
}

.wa-icon-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Label Teks (Tombol Pill) */
.wa-label {
    position: static;
    margin-left: 15px;
    background-color: #004d80;
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Shadow agar kontras dengan background gambar */
    border: 2px solid #ffffff;
    /* Border putih agar lebih jelas di atas gambar gelap */
}

.wa-label::after {
    display: none;
}

.wa-btn:hover .wa-icon-bg {
    border-color: #25D366;
}


@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* ======================================================================
    MARQUEE / RUNNING TEXT (ANIMASI MELINGKAR)
    ====================================================================== */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f3cc0b;
    /* Kuning Aksen */
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 50px;
    /* Tinggi bar running text */
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scroll-left 40s linear infinite;
    /* Kecepatan animasi */
}

/* Saat di-hover, animasi berhenti agar bisa dibaca */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-tag {
    background-color: #fff;
    color: #004d80;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    margin-left: 20px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marquee-item {
    display: inline-block;
    padding: 0 10px;
    font-size: 1.05em;
    font-weight: 500;
}

.separator-icon {
    color: #fff;
    font-size: 0.6em;
    margin: 0 15px;
    vertical-align: middle;
}

/* ======================================================================
    PROFILE BANNER
    ====================================================================== */
#profile-banner {
    background-color: #f7f7f7;
    padding: 50px 0;
    margin-top: -5px;
    /* Menutup celah kecil jika ada */
}

.banner-container {
    background-image: url('Asset/Bg3.png'), linear-gradient(135deg, #004d80 0%, #006bb3 100%);
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #f3cc0b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.profile-image-container {
    flex: 0 0 45%;
    padding: 30px;
    z-index: 2;
}

.profile-team-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid #fff;
}

.profile-text {
    flex: 1 1 50%;
    padding: 40px;
    text-align: right;
    z-index: 2;
}

.profile-text .school-name {
    font-size: 3em;
    font-weight: 700;
    color: #f3cc0b;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.profile-text .slogan-text {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

/* ======================================================================
    SECTIONS (General Layouts)
    ====================================================================== */
/* Profil Singkat */
#school-profile {
    background-color: #ffffff;
    background-image: url('Asset/texture.png');
    background-size: cover;
}

.school-profile-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-text-content {
    flex: 1;
}

.profile-text-content h2 {
    color: #004d80;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.profile-text-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05em;
}

.profile-image-content {
    flex: 1;
}

.profile-image-content img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 10px 10px 0px #f3cc0b;
    /* Efek bayangan solid lucu */
}

.divider {
    width: 60px;
    height: 5px;
    background-color: #f3cc0b;
    margin: 10px 0 25px;
    border-radius: 10px;
}

/* Keunggulan (Dark Blue) - UPDATED FOR 6 ITEMS */
.section-dark-blue {
    background-color: #4cb4ef;
    background-image: url('Asset/Bg3.png');
    background-size: cover;
    color: #ffffff;
}

.section-title-light {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.advantage-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 8px solid #f3cc0b;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* Ensures all cards are same height */
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    font-size: 3.5em;
    color: #4cb4ef;
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: #004d80;
    margin-bottom: 15px;
    font-size: 1.3em;
    line-height: 1.3;
}

.advantage-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Artikel */
#latest-articles {
    background-color: #f9f9f9;
    background-image: url('Asset/texture.png');
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    background-image: url('Asset/texture.png');
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-body {
    padding: 25px;
    flex-grow: 1;
}

.article-body h4 {
    color: #004d80;
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Galeri */
#gallery {
    background-image: url('Asset/texture.png');
    background-size: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Contact */
.section-orange-bg {
    background-color: #ff7f27;
    background-image: linear-gradient(45deg, #ff7f27 0%, #ff9955 100%);
}

.contact-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-cta-content .section-title-light {
    text-align: center;
    font-size: 1.5em;
}

/* ======================================================================
VISI & MISI STYLES (SPLIT LAYOUT REDESIGN)
====================================================================== */

#visi-misi-modern {
    background-color: #eef9ff;
    position: relative;
    overflow: hidden;
}

.vm-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Kiri: Visi */
.vm-visi {
    flex: 1;
    background: linear-gradient(135deg, #004d80 0%, #006bb3 100%);
    border-radius: 30px;
    padding: 60px 40px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 77, 128, 0.2);
    overflow: hidden;
}

.vm-label {
    display: inline-block;
    background-color: #f3cc0b;
    color: #004d80;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.vm-visi-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5em;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Dekorasi Bintang/Bulan di Visi */
.vm-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vm-decoration i {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
}

.star-1 {
    top: 20px;
    right: 20px;
    font-size: 4em;
    animation: float 4s ease-in-out infinite;
}

.star-2 {
    bottom: 40px;
    left: 20px;
    font-size: 2.5em;
    animation: float 6s ease-in-out infinite;
}

.moon-1 {
    top: 50%;
    right: -20px;
    font-size: 8em;
    transform: translateY(-50%);
    opacity: 0.1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Kanan: Misi (List Modern) */
.vm-misi {
    flex: 1;
}

.vm-misi-title {
    font-size: 2em;
    color: #004d80;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid #f3cc0b;
}

.vm-misi-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vm-item {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.vm-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #f3cc0b;
}

.vm-icon {
    width: 50px;
    height: 50px;
    background-color: #eef9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004d80;
    font-size: 1.2em;
    margin-right: 20px;
    flex-shrink: 0;
}

.vm-content h4 {
    font-size: 1.1em;
    color: #004d80;
    margin-bottom: 5px;
    font-weight: 700;
}

.vm-content p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ======================================================================
GALLERY BENTO GRID (MOSAIC)
====================================================================== */

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    /* Magic untuk mengisi celah kosong */
    gap: 15px;
}

.mosaic-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Ukuran Spesifik untuk Efek Bento/Mosaic */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

.item-tall {
    grid-row: span 2;
}

/* Overlay Effect */
.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mosaic-overlay span {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item:hover .mosaic-overlay {
    transform: translateY(0);
}

/* Responsif Visi Misi & Gallery */
@media (max-width: 768px) {
    .vm-layout {
        flex-direction: column;
        gap: 30px;
    }

    .vm-visi {
        padding: 40px 20px;
        text-align: center;
    }

    .vm-visi-text {
        font-size: 1.8em;
    }

    .vm-item:hover {
        transform: translateY(-5px);
        /* Geser ke atas di HP */
    }

    /* Reset Grid Mosaic di HP agar 1 kolom */
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .item-large,
    .item-wide,
    .item-tall {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ======================================================================
    FOOTER
    ====================================================================== */
#main-footer {
    background-color: #2a2a2a;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 20px;
    border-top: 8px solid #f3cc0b;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer-grid>div {
    flex: 1;
    min-width: 250px;
}

.footer-logo-section img {
    margin-bottom: 20px;
}

.footer-links-section h3,
.footer-contact-section h3 {
    color: #f3cc0b;
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-links-section ul li a {
    color: #ccc;
}

.footer-links-section ul li a:hover {
    color: #f3cc0b;
    padding-left: 5px;
}

.footer-contact-section p {
    margin-bottom: 12px;
    color: #ddd;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-section p i {
    color: #f3cc0b;
    margin-top: 5px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #f3cc0b;
    color: #333;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9em;
    color: #888;
}

/* ======================================================================
    MEDIA QUERIES (MOBILE RESPONSIVE)
    ====================================================================== */

@media (max-width: 900px) {

    /* Header Adjustment */
    .header-container {
        padding: 10px 20px;
        justify-content: space-between;
        position: relative;
    }

    .logo a img {
        max-height: 100px;
        position: center;
    }

    /* Mobile Menu Toggle Button Styles */
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle button {
        background: none;
        border: none;
        font-size: 24px;
        color: #004d80;
        padding: 10px;
        cursor: pointer;
    }

    /* Mobile Navigation Style */
    #main-nav {
        display: none;
        /* Default hidden */
        position: absolute;
        top: 100%;
        /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 2px solid #f3cc0b;
        padding-bottom: 20px;
        z-index: 999;
    }

    /* Class untuk menampilkan menu via JS */
    #main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .main-menu {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .main-menu>li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #eee;
        padding: 0;
    }

    .main-menu>li>a {
        padding: 15px 20px;
        width: 100%;
        justify-content: flex-start;
    }

    /* Sub Menu Mobile */
    .sub-menu {
        position: static;
        /* Tidak floating lagi */
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        display: none;
        /* Hidden by default */
        visibility: visible;
        opacity: 1;
        transform: none;
        padding-left: 20px;
        /* Indentasi */
    }

    .sub-menu a {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Sections Responsiveness */
    .section-padding {
        padding: 50px 0;
        /* Padding section lebih kecil */
    }

    .section-title,
    .section-title-light {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Hero Slideshow Mobile */
    #hero-slideshow {
        height: 350px;
        /* Lebih pendek di HP */
    }

    #hero-slideshow .slide-caption {
        bottom: 20px;
        padding: 15px;
        width: 90%;
    }

    #hero-slideshow .slide-caption h1 {
        font-size: 1.5em;
    }

    #hero-slideshow .slide-caption p {
        font-size: 0.9em;
    }

    /* =========================================
        UPDATED: WA Group Mobile (Scrollable) 
        ========================================= */
    .hero-wa-group {
        width: 100%;
        /* Lebar penuh */
        left: 0;
        /* Mulai dari kiri mentok */
        bottom: 25px;
        /* Posisi dari bawah */
        transform: none;
        /* Hapus centering default */
        background: transparent;
        position: absolute;

        display: flex;
        justify-content: flex-start;
        /* Mulai item dari kiri untuk scroll */
        align-items: center;
        gap: 15px;
        /* Jarak antar tombol */

        overflow-x: auto;
        /* Aktifkan scroll samping */
        padding: 10px 20px;
        /* Padding kiri kanan */

        /* Agar scroll halus di HP */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;

        /* Sembunyikan Scrollbar agar terlihat bersih */
        scrollbar-width: none;
        /* Firefox */
    }

    /* Sembunyikan scrollbar untuk Chrome/Safari/Opera */
    .hero-wa-group::-webkit-scrollbar {
        display: none;
    }

    .wa-btn {
        flex: 0 0 auto;
        /* PENTING: Mencegah tombol gepeng/mengecil */
        margin-right: 0;
    }

    .wa-icon-bg {
        width: 45px;
        /* Sedikit diperkecil agar proporsional */
        height: 45px;
        border-width: 2px;
    }

    .wa-label {
        font-size: 0.85rem;
        /* Ukuran font disesuaikan */
        padding: 6px 15px;
        margin-left: 10px;
        white-space: nowrap;
        /* Teks tidak akan turun baris */
        display: block;
    }


    /* Marquee di Mobile - tetap terlihat */
    .marquee-wrapper {
        height: 40px;
        font-size: 0.9em;
    }

    .marquee-tag {
        padding: 3px 10px;
        margin-left: 10px;
    }

    /* Profile Banner Mobile */
    .banner-container {
        flex-direction: column;
        text-align: center;
        padding: 0;
        border: none;
        background-image: linear-gradient(180deg, #004d80 0%, #006bb3 100%);
    }

    .profile-image-container {
        padding: 30px 30px 0 30px;
        flex: none;
        width: 100%;
    }

    .profile-text {
        padding: 20px 20px 40px 20px;
        text-align: center;
    }

    .profile-text .school-name {
        font-size: 2em;
    }

    /* School Profile */
    .school-profile-content {
        flex-direction: column-reverse;
        /* Gambar di atas teks */
        gap: 30px;
    }

    .profile-image-content img {
        box-shadow: none;
        /* Hilangkan shadow solid di mobile agar rapi */
    }

    .divider {
        margin: 10px auto 20px;
        /* Center divider */
    }

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

    /* Advantages - Mobile grid fix (already handled by auto-fit) but removing old flex props just in case */
    .advantages-grid {
        /* No extra rules needed, grid handles it */
    }

    /* Contact CTA */
    .contact-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-cta-content .section-title-light {
        text-align: center;
        font-size: 1.5em;
    }

    /* Footer Mobile */
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-contact-section p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }
}

/*WA FLOAT SECTION*/
.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 50px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-weight: bold;
    border: 2px solid white;
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 20px;
        font-size: 40px;
    }

    .whatsapp-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}