/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    body{
    font-family: 'Poppins', sans-serif;
    }
    
    html{
    scroll-behavior: smooth;
    }

body {
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #0b1d28;
}

/* --- FIXED BACKGROUND --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #09202a 0%, #0e4b52 50%, #172a3a 100%);
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: rgba(18, 148, 144, 0.5); /* Teal Logo */
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(184, 134, 11, 0.35); /* Gold Logo */
    bottom: -100px;
    right: -50px;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: rgba(0, 168, 150, 0.4);
    top: 40%;
    left: 30%;
}

/* --- NAVBAR GLASSMORPHISM --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.88rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

.nav-btn {
    padding: 8px 18px !important;
    background: linear-gradient(45deg, #129490, #b8860b);
    color: #fff !important;
    border-radius: 20px;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 148, 144, 0.4);
}

/* --- CONTENT CONTAINER --- */
.content-container {
    position: relative;
    z-index: 1;
    padding: 120px 5% 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- EFEK GLASSMORPHISM KARTU UTAMA --- */
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 70vh;
}

.hero-text {
    flex: 1.2;
}

.hero-text .tagline {
    display: inline-block;
    background: rgba(18, 148, 144, 0.2);
    border: 1px solid rgba(18, 148, 144, 0.5);
    color: #20b2aa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-text h1 span {
    color: #129490;
    text-shadow: 0 1px 1px rgba(255, 165, 0);
}

.hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #129490, #b8860b);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 148, 144, 0.4);
}

.hero-image {
    flex: 0.8;
    text-align: center;
}

.hero-image img {
    max-width: 260px;
    width: 100%;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #d4af37;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.swipe-hint {
    text-align: right;
    font-size: 0.8rem;
    color: #20b2aa;
    margin-bottom: 10px;
    font-style: italic;
}

/* --- SWIPEABLE CARD CAROUSEL (SWIPE KANAN-KIRI) --- */
.swipe-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

/* Styling Scrollbar */
.swipe-container::-webkit-scrollbar {
    height: 6px;
}
.swipe-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.swipe-container::-webkit-scrollbar-thumb {
    background: rgba(18, 148, 144, 0.5);
    border-radius: 10px;
}

.swipe-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.swipe-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.swipe-card .badge {
    align-self: flex-start;
    font-size: 0.75rem;
    background: rgba(184, 134, 11, 0.2);
    color: #d4af37;
    border: 1px solid rgba(184, 134, 11, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.swipe-card h3 {
    color: #d39c1b;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(8, 100, 97, 0.5);
}

.swipe-card p, .swipe-card ul {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.swipe-card ul {
    list-style-type: none;
    padding-left: 0;
}

.swipe-card ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.swipe-card ul li::before {
    content: "•";
    color: #d4af37;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.swipe-card p.learning-flow {
    margin-top: 10px;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    line-height: 1.8;
}

/* =========================================
   DESKTOP CAROUSEL NAVIGATION
========================================= */

.swipe-wrapper {
    position: relative;
    padding-inline: 56px;
    min-width: 0;
}


/* TOMBOL */

.swipe-btn {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(9, 32, 42, 0.85);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #d4af37;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;

    z-index: 50;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.45);

    transition: 0.25s ease;
}


/* PREVIOUS */

.swipe-prev {
    left: 0;
}


/* NEXT */

.swipe-next {
    right: 0;
}


/* HOVER */

.swipe-btn:hover {
    background: #129490;

    color: #ffffff;

    transform:
        translateY(-50%)
        scale(1.1);
}

/* QURMA EXAMPLE BOX */
.qurma-example {
    background: rgba(18, 148, 144, 0.1);
    border: 1px dashed rgba(18, 148, 144, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* MISI LIST */
.misi-list {
    list-style: none;
}

.misi-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.misi-list li::before {
    content: "🌿";
    position: absolute;
    left: 0;
    top: 0;
}

/* CONTACT & LOCATION GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
}

.contact-box h3 {
    color: #d4af37;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}


/* =========================
   HAMBURGER
========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.menu-toggle span {
    width: 21px;
    height: 2px;

    background: #ffffff;

    border-radius: 5px;

    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {

    .swipe-wrapper {
        padding-inline: 0;
    }

    .swipe-btn {
        display: none;
    }

}

/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 992px) {

    /* =========================
       NAVBAR
    ========================= */

    nav {
        padding: 12px 5%;
    }

    .menu-toggle {
        display: flex;
    }


    /* =========================
       MENU MOBILE
    ========================= */

    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 15px 5% 25px;

        background: rgba(9, 32, 42, 0.92);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        border-bottom:
            1px solid rgba(255, 255, 255, 0.15);

        /* MENU TERTUTUP */
        opacity: 0;
        visibility: hidden;

        transform: translateY(-15px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s;
    }


    /* MENU DIBUKA */

    .nav-links.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }


    /* LINK */

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 12px 5px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }


    /* PPDB */

    .nav-links .nav-btn {
        margin-top: 12px;

        text-align: center;

        border-bottom: none;
    }


    /* =========================
       CONTENT
    ========================= */

    .content-container {
        padding: 100px 4% 40px;
    }


    /* =========================
       HERO
    ========================= */

    .hero {
        flex-direction: column-reverse;

        text-align: center;

        gap: 25px;

        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-image img {
        max-width: 200px;
    }


    /* =========================
       BUTTON
    ========================= */

    .btn-group {
        justify-content: center;
    }


    /* =========================
       CARD
    ========================= */

    .swipe-card {
        flex: 0 0 280px;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 600px) {

    /* BODY */
    body {
        overflow-x: hidden;
    }


    /* =========================
       NAVBAR
    ========================= */

    nav {
        padding: 12px 20px;
    }

    .nav-logo {
        font-size: 0.9rem;
        gap: 8px;
    }

    .nav-logo img {
        height: 38px;
    }


    /* =========================
       CONTENT
    ========================= */

    .content-container {
        width: 100%;
        padding: 90px 15px 30px;
    }


    /* =========================
       GLASS CARD
    ========================= */

    .glass-card {
        padding: 25px 18px;

        border-radius: 16px;

        margin-bottom: 30px;
    }


    /* =========================
       HERO
    ========================= */

    .hero {
        flex-direction: column-reverse;

        min-height: auto;

        gap: 25px;

        text-align: center;
    }

    .hero-image img {
        max-width: 150px;
    }

    .hero-text .tagline {
        font-size: 0.72rem;

        padding: 5px 12px;
    }

    .hero-text h1 {
        font-size: 1.7rem;

        line-height: 1.3;

        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 0.88rem;

        line-height: 1.7;
    }


    /* =========================
       BUTTON
    ========================= */

    .btn-group {
        flex-direction: column;

        gap: 10px;
    }

    .btn {
        width: 100%;

        padding: 11px 20px;

        text-align: center;

        font-size: 0.88rem;
    }


    /* =========================
       SECTION TITLE
    ========================= */

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;

        line-height: 1.6;
    }


    /* =========================
       SWIPE
    ========================= */

    .swipe-hint {
        text-align: center;

        font-size: 0.72rem;
    }

    .swipe-container {
        gap: 14px;

        padding-bottom: 15px;
    }

    .swipe-card {
        flex: 0 0 85%;

        padding: 20px;

        border-radius: 14px;
    }

    .swipe-card h3 {
        font-size: 1.1rem;
    }

    .swipe-card p,
    .swipe-card ul {
        font-size: 0.84rem;
    }


    /* Tombol next/previous tidak perlu
       di mobile karena menggunakan swipe */

    .swipe-btn {
        display: none;
    }


    /* =========================
       QURMA EXAMPLE
    ========================= */

    .qurma-example {
        padding: 16px;
    }


    /* =========================
       CONTACT
    ========================= */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .contact-box {
        padding: 20px;
    }
    
}

    .social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    }

    .social-btn {
        display: flex;
        align-items: center;
        gap: 12px;
    
        width: 100%;
        padding: 12px 15px;
    
        color: #ffffff;
        text-decoration: none;
    
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 12px;
    
        transition: 0.3s;
    }
    
    .social-btn img {
        display: block;
    
        width: 28px !important;
        height: 28px !important;
    
        max-width: 28px !important;
        max-height: 28px !important;
    
        flex: 0 0 28px;
    }
    
    .social-btn span {
        font-size: 0.9rem;
    }
    
    .social-btn:hover {
        background: rgba(18, 148, 144, 0.25);
        border-color: #129490;
        transform: translateX(4px);
    }


    /* =========================
       FOOTER
    ========================= */

    footer {
    padding: 20px 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    }
    


/* PPDB dan FAQ — mengikuti warna teal/gold website sekolah */
#ppdb { scroll-margin-top: 110px; }
.ppdb-faq { border: 1px solid rgba(255,255,255,.16); border-radius: 12px; margin-bottom: 12px; background: rgba(255,255,255,.04); }
.ppdb-faq summary { padding: 18px 20px; cursor: pointer; font-weight: 600; line-height: 1.6; }
.ppdb-faq[open] summary { color: #e2c769; }
.ppdb-faq p { padding: 0 20px 20px; color: rgba(255,255,255,.9); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ppdb-faq summary:focus-visible { outline: 2px solid #d4af37; outline-offset: 3px; border-radius: 12px; }
.ppdb-note { color: rgba(255,255,255,.75); line-height: 1.7; margin: 22px 0; font-size: .88rem; }
.ppdb-actions { margin-top: 20px; }
#ppdb-register[hidden] { display: none; }
#ppdb-register { min-width: 250px; text-align: center; }
#ppdb-register[aria-disabled="true"] { opacity: .7; cursor: default; transform: none; pointer-events: none; }
@media(max-width:600px) { .ppdb-faq summary { padding: 15px; font-size: .9rem; } .ppdb-faq p { padding: 0 15px 16px; font-size: .87rem; } }

.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; font-size: 25px; font-weight: 700; }
