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

/* --- DASAR --- */
:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --accent: #ff6b6b;
    --dark: #2c3e50;
    --light: #f4f7f6;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--light);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}


/* --- NAVBAR --- */
.navbar {
    background: white !important;
    /* Override warna lama */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.navbar .menu a {
    color: var(--dark) !important;
    /* Override warna putih lama */
    font-weight: 500;
    margin-left: 25px;
    transition: 0.3s;
    position: relative;
}

.navbar .menu a:hover {
    color: var(--primary) !important;
}

/* Tombol Login di Navbar */
.btn-login {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
    transition: transform 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

/* --- HERO SECTION (Bagian Atas) --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    /* Lengkungan modern di bawah */
    margin-bottom: 50px;
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Animasi Bola-bola background (Opsional/Hiasan) */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* --- GRID KARTU --- */
.container-dark {
    background-color: #34495e;
    /* Warna gelap seperti di gambar */
    padding: 60px 0;
    margin-top: -30px;
    /* Sedikit naik agar overlap dengan hero section */
    border-radius: 50px 50px 0 0;
    /* Lengkungan di atas */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Garis bawah judul */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #f1c40f;
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Sesuaikan ukuran kartu */
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* Hapus border lama */
    position: relative;
    padding-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    /* Efek naik saat di-hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ekskul-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    /* Radius gambar lebih besar */
    margin-bottom: 15px;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-top: 0;
    color: var(--dark);
    font-size: 1.3rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.card .jadwal-info {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    /* Jarak sebelum tombol */
}

.card .jadwal-info span {
    margin-right: 8px;
    /* Icon calendar */
    color: var(--primary);
    font-size: 1rem;
}



/* Tombol Lihat Detail */
.btn-detail {
    display: block;
    /* Agar tombol memenuhi lebar */
    background: var(--primary);
    /* Warna biru */
    color: white;
    padding: 12px 20px;
    text-align: center;
    border-radius: 10px;
    /* Radius tombol */
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 0 20px;
    /* Agar tombol tidak terlalu lebar */
}

.btn-detail:hover {
    background: var(--secondary);
    /* Warna saat di hover */
}

/* Jika tidak ada gambar */
.ekskul-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom right, #a1c4fd, #c2e9fb);
    /* Gradasi placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e54c8;
    font-size: 3rem;
    border-radius: 15px 15px 0 0;
    /* Hanya di atas */
    margin-bottom: 15px;
}

/* Empty State untuk container dark */
.container-dark .empty-state {
    background: rgba(255, 255, 255, 0.1);
    /* Latar belakang transparan */
    color: white;
    box-shadow: none;
}

.container-dark .empty-state h3 {
    color: white;
}

.container-dark .empty-state p {
    color: #ddd;
}

.container-dark .empty-state .empty-icon {
    color: #f1c40f;
    /* Icon warna kuning */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

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

    .navbar .menu a {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .navbar .menu {
        display: none;
    }

    /* Sembunyikan menu di mobile, bisa diganti hamburger menu */
    .navbar {
        justify-content: center;
    }

    /* Logo di tengah */
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

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

    .container {
        width: 95%;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--dark) !important;
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}