/* =========================================
   1. GLOBAL & NAVBAR FIX (Wajib Ada)
   ========================================= */
html,
body {
    overflow-y: auto !important;
    /* Unlock Scroll */
    overflow-x: hidden;
    height: auto !important;
    min-height: 100vh;
}

/* FIX: Reset page-wrapper untuk halaman class */
.page-wrapper {
    padding: 0 !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
}

/* =========================================
   2. CLASS LAYOUT
   ========================================= */
.class-section {
    position: relative;
    padding-top: 8rem;
    /* Jarak dari navbar */
    padding-bottom: 8rem;
    /* Jarak dari footer */
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #DAA520;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Lato', sans-serif;
    color: #ccc;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 5rem;
    opacity: 0.8;
}

/* =========================================
   3. DESIGN KARTU BARU (Dark Glass Luxury)
   ========================================= */
.class-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.class-card {
    position: relative;
    width: 350px;
    min-height: 480px;
    /* Kartu tinggi agar elegan */

    /* Background: Kaca Gelap Hitam */
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    /* Blur background belakangnya */
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Border halus */
    border-radius: 20px;
    padding: 3rem 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* --- ICON BULAT --- */
.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #666;
    /* Warna mati sebelum hover */
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    z-index: 2;
}

/* --- TYPOGRAPHY --- */
.card-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.card-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 3rem;
    z-index: 2;
    position: relative;
}

/* FIX: Styling langsung di class-card untuk h3 dan p */
.class-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.class-card p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 3rem;
    z-index: 2;
    position: relative;
}

/* --- BUTTON (Ghost Style) --- */
.class-btn {
    margin-top: auto;
    /* Dorong ke paling bawah */
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    background: transparent;
}

/* =========================================
   4. HOVER EFFECTS & COLOR THEMES
   ========================================= */

/* A. OCEANOLOGY (Blue) */
.class-card.ocean:hover {
    border-color: #00BFFF;
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
}

.class-card.ocean:hover .card-icon {
    color: #00BFFF;
    border-color: #00BFFF;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

.class-card.ocean:hover .class-btn {
    background: #00BFFF;
    border-color: #00BFFF;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

/* B. POP CULTURE (Red) */
.class-card.popculture:hover {
    border-color: #e74c3c;
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.2);
}

.class-card.popculture:hover .card-icon {
    color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.4);
}

.class-card.popculture:hover .class-btn {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

/* C. MYTHOLOGY (Purple) */
.class-card.mythology:hover {
    border-color: #9b59b6;
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.2);
}

.class-card.mythology:hover .card-icon {
    color: #9b59b6;
    border-color: #9b59b6;
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.4);
}

.class-card.mythology:hover .class-btn {
    background: #9b59b6;
    border-color: #9b59b6;
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

/* D. HISTORY OF EGYPT (Gold/Orange) */
.class-card.egypthistory:hover {
    border-color: #f39c12;
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(243, 156, 18, 0.2);
}

.class-card.egypthistory:hover .card-icon {
    color: #f39c12;
    border-color: #f39c12;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
}

.class-card.egypthistory:hover .class-btn {
    background: #f39c12;
    border-color: #f39c12;
    color: #000;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

/* E. ASTRONOMY (Green) */
.class-card.astro:hover {
    border-color: #2ecc71;
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.2);
}

.class-card.astro:hover .card-icon {
    color: #2ecc71;
    border-color: #2ecc71;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.4);
}

.class-card.astro:hover .class-btn {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #000;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

/* --- BACKGROUND GLOW ANIMATION (Optional Pemanis) --- */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.class-card:hover .card-glow {
    opacity: 0.2;
}

/* =========================================
   RESPONSIVE CLASS PAGE
   ========================================= */

@media (max-width: 992px) {
    .class-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 3rem;
    }

    .class-grid {
        gap: 2rem;
    }

    .class-card {
        width: 100%;
        max-width: 350px;
        min-height: 420px;
    }
}