:root {
    /* Palet Warna Ceria & Islami */
    --primary: #10B981;    /* Hijau Segar Islami */
    --secondary: #FBBF24;  /* Kuning Matahari Ceria */
    --tertiary: #0EA5E9;   /* Biru Langit Ceria */
    --dark: #374151;       /* Abu-abu gelap untuk teks agar lembut dibaca */
    --light: #F0FDF4;      /* Hijau sangat muda untuk background */
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Quicksand', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    background-color: #FAFAFA;
}
.container { width: 90%; max-width: 1100px; margin: auto; }
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
    font-size: 2.2rem; 
    color: var(--primary); 
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 0px rgba(251, 191, 36, 0.4); /* Efek bayangan lucu */
}

/* NAVBAR */
.navbar { 
    background: var(--white); 
    padding: 15px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 3px solid var(--primary);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo img { height: 55px; width: auto; display: block; transition: 0.3s; }
.nav-menu { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: 0.95rem; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }

/* Tombol Navigasi Bergaya Ceria */
.btn-nav { 
    background: var(--secondary); 
    color: #854D0E !important; 
    padding: 8px 20px; 
    border-radius: 25px; 
    box-shadow: 0 4px 0 #D97706; /* Efek 3D ringan */
    transition: all 0.2s;
}
.btn-nav:hover { transform: translateY(2px); box-shadow: 0 2px 0 #D97706; }
.btn-admin { background: var(--tertiary); color: #fff !important; box-shadow: 0 4px 0 #0284C7; }
.btn-admin:hover { box-shadow: 0 2px 0 #0284C7; }

/* HERO */
.hero { 
    background: linear-gradient(rgba(16, 185, 129, 0.8), rgba(14, 165, 233, 0.8)), url('images/banner1.jpeg');
    background-size: cover; 
    background-position: center; 
    color: #fff; 
    text-align: center; 
    padding: 120px 0;
}
.hero h1 { font-size: calc(2rem + 1.5vw); margin-bottom: 20px; font-family: 'Poppins', sans-serif; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 800px; margin-inline: auto; font-weight: 600; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { 
    padding: 15px 30px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem;
    min-width: 180px; 
    transition: all 0.2s;
    box-shadow: 0 5px 0 rgba(0,0,0,0.15);
}
.btn-primary { background: var(--secondary); color: #854D0E; }
.btn-primary:hover { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.btn-secondary { background: var(--white); color: var(--primary); }
.btn-secondary:hover { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); color: var(--tertiary); }

/* GRID PROGRAM (Kartu Berbentuk Kubah Masjid) */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { 
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 80px 80px 20px 20px; /* Bentuk Kubah */
    text-align: center; 
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1); 
    border-bottom: 6px solid var(--primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { transform: translateY(-10px); }
.card i { 
    font-size: 2.5rem; 
    color: #fff; 
    background: var(--primary);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 20px; 
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}
.card:nth-child(2) { border-bottom-color: var(--secondary); }
.card:nth-child(2) i { background: var(--secondary); box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4); }
.card:nth-child(3) { border-bottom-color: var(--tertiary); }
.card:nth-child(3) i { background: var(--tertiary); box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4); }
.card h3 { font-family: 'Poppins', sans-serif; margin-bottom: 10px; font-size: 1.3rem; }

/* FORM (Gaya Kertas Menggemaskan) */
.form-wrapper { 
    max-width: 600px; 
    margin: auto; 
    background: #fff; 
    padding: 35px; 
    border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 3px dashed var(--primary); /* Efek buku tulis/kerajinan */
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary); }
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid #E5E7EB; 
    border-radius: 15px; 
    font-family: inherit; 
    font-size: 1rem;
    background: #F9FAFB;
    transition: 0.3s;
}
.form-group input:focus { border-color: var(--secondary); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.btn-submit { 
    width: 100%; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 18px; 
    border-radius: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 1.1rem; 
    box-shadow: 0 6px 0 #059669;
    transition: 0.2s;
}
.btn-submit:active { transform: translateY(6px); box-shadow: none; }
.status-msg { margin-top: 15px; text-align: center; font-weight: bold; font-size: 1.1rem; }

/* FAQ STYLE */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { 
    background: #fff; 
    border: 2px solid #E5E7EB;
    border-left: 6px solid var(--secondary); 
    margin-bottom: 15px; 
    border-radius: 15px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.faq-item[open] { border-color: var(--secondary); box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15); }
summary { padding: 20px 25px; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; color: var(--dark); transition: color 0.3s; }
summary:hover { color: var(--primary); background-color: #F8FAFC; }
summary::after { content: '✿'; position: absolute; right: 25px; font-size: 1.5rem; color: var(--secondary); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--primary); }
.faq-content { padding: 0 25px 20px 25px; color: #4B5563; line-height: 1.6; border-top: 1px dashed #E5E7EB; padding-top: 15px; animation: slideDown 0.4s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* STYLE GALERI FOTO */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; padding-bottom: 20px; }
.gallery-item { 
    position: relative; 
    overflow: hidden; 
    border-radius: 25px; 
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
    cursor: pointer; 
    height: 250px; 
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1) rotate(2deg); }
.gallery-caption { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(16, 185, 129, 0.95), transparent); 
    color: white; padding: 25px 20px 20px; 
    transform: translateY(100%); transition: transform 0.4s ease-in-out; 
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--secondary); font-family: 'Poppins', sans-serif;}
.gallery-caption p { font-size: 0.95rem; margin: 0; }

/* FOOTER */
footer { 
    background: var(--primary); 
    /* Pola background Islami tipis */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #fff; 
    padding: 40px 0; 
    text-align: center; 
    border-top: 5px solid var(--secondary);
}
.footer-content { display: flex; flex-direction: column; gap: 15px; }
.social-links { display: flex; justify-content: center; gap: 20px; font-size: 1.8rem; }
.social-links a { color: #fff; transition: 0.3s; }
.social-links a:hover { color: var(--secondary); transform: scale(1.2); }

/* WA Float dengan Animasi Bouncing */
.wa-float { 
    position: fixed; bottom: 40px; right: 40px; 
    background: #25d366; color: white; 
    padding: 12px 25px; border-radius: 50px; 
    text-decoration: none; display: flex; align-items: center; gap: 10px; 
    font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); 
    z-index: 1000; 
    animation: bounceWA 2s infinite;
}
@keyframes bounceWA {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* HAMBURGER & RESPONSIVE */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--primary); border-radius: 5px; }

@media (max-width: 768px) {
    .nav-wrapper { position: relative; }
    .hamburger { display: block; z-index: 1000; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.4rem; z-index: 10; }
    .logo img { height: 45px; }
    
    .nav-menu {
        position: fixed; left: -100%; top: 75px; flex-direction: column;
        background-color: #fff; width: 100%; text-align: center;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1); padding: 30px 0; z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .btn-admin { display: inline-block; margin-top: 10px; }
    .hero { padding: 80px 0; }
    .btn-primary, .btn-secondary { width: 100%; box-sizing: border-box; }
    .section-title { font-size: 1.8rem; }
    .wa-float { bottom: 20px; right: 20px; padding: 10px 20px; font-size: 1rem; }
}