/* ====================================================================================
   FILE: style.css (VERSI FINAL - LOGO FITUR TENGAH & EFEK HOVER)
   Tujuan: Menyempurnakan tampilan kartu fitur dan efek hover.
   ==================================================================================== */

/* --- Variabel dan Reset Dasar --- */
:root {
    --primary-color: #004d40; /* Hijau Tua */
    --secondary-color: #ff9800; /* Oranye untuk Diskon */
    --background-light: #e0f2f1; /* Hijau Sangat Muda */
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigasi --- */
header {
    background: var(--primary-color);
    color: white;
    padding: 1em 0;
    text-align: center;
}

header img {
    height: 50px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.5em;
    font-weight: 400;
}

/* --- Tombol (Buttons) --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 10px 5px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--background-light);
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 10px;
}

/* --- Grid Umum (Stats, Features, Testimonials) --- */
.grid-container {
    display: grid;
    gap: 30px;
    margin-top: 30px;
    padding: 0 20px;
}

.madrasah-stats .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
}

.features .grid-container,
.testimonials .grid-container,
.pricing .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ----------------------------------------------------------------------
   Gaya Kartu (Card Styling) - Diperbarui untuk fitur dan pricing
   ---------------------------------------------------------------------- */
.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    text-align: center; /* Set default text-align to center for cards */
}

/* Efek Hover Umum untuk semua kartu (kecuali pricing, yang memiliki efek khusus) */
.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); 
}

/* ----------------------------------------------------------------------
   Gaya Fitur (Features Section) - LOGO TENGAH, BORDER, EFEK HOVER
   ---------------------------------------------------------------------- */
.features .card {
    /* Menimpa border 1px default dan menerapkan gaya seragam seperti pricing cards */
    border: 3px solid var(--primary-color); /* Border warna primary */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
    /* Pastikan gambar berada di tengah */
    display: flex; /* Menggunakan flexbox */
    flex-direction: column; /* Tata elemen secara vertikal */
    align-items: center; /* Tengahkan elemen horizontal */
}

.features .card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px; /* Memberi sedikit jarak antara gambar dan teks */
}

.features .card h3 {
    color: var(--primary-color);
    margin-top: 0; /* Hapus margin top yang sebelumnya ada */
    margin-bottom: 10px;
}

/* Efek Hover KHUSUS untuk kartu fitur */
.features .card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0, 77, 64, 0.25); 
    border-color: #008066; /* Ubah warna border sedikit saat di-hover */
}


/* ----------------------------------------------------------------------
   Gaya Pricing Section - TETAP SAMA DENGAN BORDER SERAGAM
   ---------------------------------------------------------------------- */
#pricing h2 {
    text-align: center;
    margin-bottom: 40px;
}

.pricing .card {
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
    text-align: left; /* Biarkan teks dalam pricing card rata kiri */
}

/* Efek Hover untuk SEMUA Kartu Harga */
.pricing .card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0, 77, 64, 0.25); 
    border-color: #008066; 
}

.pricing .card h3 {
    text-align: center;
    color: var(--primary-color);
}

.pricing .card p {
    text-align: center;
}

.pricing .card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing .card li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.pricing .card .btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* --- Testimonials Section --- */
.testimonials .card {
    text-align: center; /* Pastikan teks testimoni di tengah */
    border: 1px solid #ddd; /* Border default untuk testimoni */
}

/* --- FAQ Section --- */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-item h3 {
    color: var(--primary-color);
    cursor: pointer;
    margin: 0;
}

/* --- Footer --- */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 25px 0;
}

/* --- Pop-up Diskon --- */
.popup-discount {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    border: 2px solid var(--secondary-color);
    padding: 20px;
    background: #fff8e1;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
    position: relative; 
    transform: translateX(120%); 
    transition: transform 0.5s ease-out;
}

.popup-discount.show {
    transform: translateX(0); 
}

.popup-discount h3 {
    color: var(--secondary-color);
    font-size: 2.2em;
    margin: 5px 0;
}

.popup-discount .btn {
    background-color: var(--secondary-color);
    color: white;
}

/* --- Gaya untuk Tombol Tutup (CLOSE BUTTON) --- */
.close-popup {
    position: absolute; 
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color); 
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #ff0000;
}

/* --- Responsif (untuk layar kecil) --- */
@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .popup-discount {
        width: 90%;
        bottom: 10px;
        right: 5%;
        left: 5%;
        position: fixed; 
        transform: translateY(120%);
    }
    .popup-discount.show {
        transform: translateY(0);
    }
}