/* BASE STYLES */
:root {
    --primary-color: #40E0D0; /* Tosca */
    --primary-dark: #36C8B8;
    --secondary-color: #333;
    --background-light: #f4f4f9;
    --text-dark: #2c3e50;
    --star-gold: #FFD700;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: var(--text-dark);
}

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

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-card {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-card {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
}

/* HERO SECTION */
.hero {
    background: var(--text-dark) url('assets/images/hero_image.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ARTICLE SECTION */
.article-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}
.article-title {
    color: var(--primary-dark);
    font-size: 2em;
    margin-bottom: 10px;
}
.keyword {
    color: var(--primary-color);
    font-weight: 800;
}

/* CARDS SECTION */
.cards-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.cards-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}
.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-square {
    width: 100%;
    height: 250px; /* Ukuran Banner Persegi */
    overflow: hidden;
}
.banner-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-card h3 {
    margin: 15px 0 5px;
    color: var(--primary-dark);
}
.page-card p {
    padding: 0 15px;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* FAQ SECTION STYLES (Untuk dipoles oleh JS) */
.faq-section {
    padding: 60px 0;
}

/* ALAMAT LOKASI */
.address-section {
    padding: 40px 0;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
}
.address-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
address {
    font-style: normal;
    line-height: 1.8;
}

/* FOOTER */
.main-footer {
    background-color: var(--secondary-color);
    color: #bbb;
    padding: 20px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 40px;
}

.copyright {
    display: flex;
    align-items: center;
}

.flag-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%; /* Membuat Bendera Bulat */
    margin-left: 8px;
    border: 1px solid #fff;
}

/* Responsive Dasar */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .copyright {
        margin-top: 10px;
    }
}

/* --- Tambahan Styling untuk FAQ yang Keren (Accordion) --- */

.faq-section {
    padding: 60px 0;
    background-color: var(--background-light); /* Memberi latar belakang untuk kontras */
}

#faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background-color: white;
    color: var(--text-dark);
    padding: 18px 25px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.05em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
}

.faq-question:hover {
    background-color: #f0f0f5;
}

.faq-question.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--primary-dark);
}

.faq-rating {
    margin-left: 15px;
    font-size: 1.1em;
    /* Memberi warna pada bintang jika aktif, atau warna default jika tidak */
    color: var(--star-gold); 
}

.faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg); /* Mengubah tanda '+' menjadi 'x' saat aktif */
    color: white;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0; /* Penting untuk animasi tertutup */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #fff;
    font-size: 0.95em;
    color: #555;
}

.faq-answer p {
    padding: 15px 0;
}

/* ========================================= */
/* --- 1. Container & Posisi Tengah --- */
/* ========================================= */
.button-center-container {
    display: flex; /* Menggunakan Flexbox untuk mensejajarkan item */
    justify-content: center; /* Posisi horizontal ke tengah */
    align-items: center; /* Posisi vertikal ke tengah */
    gap: 30px; /* Jarak antar tombol */
    padding: 40px 0; /* Padding atas dan bawah */
}

/* ========================================= */
/* --- 2. Gaya Dasar Tombol CTA --- */
/* ========================================= */
.btn-cta {
    /* Ukuran dan Teks */
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px; 
    min-width: 200px;
    text-align: center;
    
    /* Bentuk dan Transisi */
    border: 3px solid transparent; /* Border awal transparan */
    border-radius: 10px; 
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    
    /* Tema Gelap */
    background-color: #0d1a2f; /* Warna latar belakang gelap */
    color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ========================================= */
/* --- 3. Warna Dasar & Glow (Electric Cyan) --- */
/* ========================================= */

/* Warna dan Glow untuk Tombol LOGIN */
.login-btn {
    /* Warna Cyan */
    border-color: #00ffff; 
    color: #ffffff;
    
    /* Efek Neon Glow Default (Box Shadow) */
    box-shadow: 
        0 0 10px #00ffff, /* Glow kecil */
        0 0 20px #00ffff; /* Glow sedang */
}

/* Warna dan Glow untuk Tombol DAFTAR */
.register-btn {
    /* Warna Magenta/Purple untuk kontras */
    border-color: #ff00ff; 
    color: #ffffff;
    
    /* Efek Neon Glow Default (Box Shadow) */
    box-shadow: 
        0 0 10px #ff00ff, /* Glow kecil */
        0 0 20px #ff00ff; /* Glow sedang */
}


/* ========================================= */
/* --- 4. Animasi Glow Bergerak (Pulsing Neon) --- */
/* ========================================= */

/* Aturan Keyframes untuk Animasi Kedip/Pulsing */
@keyframes neon-pulse-login {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    }
    50% {
        transform: scale(1.03); /* Sedikit membesar */
        box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff; /* Glow lebih terang */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    }
}

@keyframes neon-pulse-register {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    }
    50% {
        transform: scale(1.03); /* Sedikit membesar */
        box-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff; /* Glow lebih terang */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    }
}

/* Menerapkan Animasi ke Tombol */
.login-btn {
    animation: neon-pulse-login 2s infinite alternate; /* Animasi berjalan terus menerus */
}

.register-btn {
    animation: neon-pulse-register 2s infinite alternate 0.5s; /* Delay 0.5s agar animasinya tidak bersamaan */
}

/* Efek Hover (membuat glow lebih intens saat disentuh) */
.btn-cta:hover {
    animation: none; /* Hentikan pulsing saat hover */
    transform: scale(1.05);
}

.login-btn:hover {
    box-shadow: 
        0 0 15px #00ffff,
        0 0 40px #00ffff,
        0 0 80px #00ffff; /* Glow sangat terang saat hover */
}

.register-btn:hover {
    box-shadow: 
        0 0 15px #ff00ff,
        0 0 40px #ff00ff,
        0 0 80px #ff00ff; /* Glow sangat terang saat hover */
}