/* =========================================
   STYLE.CSS - FINAL (TOMBOL RAPI & MENU FIX)
   ========================================= */

:root {
    --primary: #064e3b; /* Hijau NU Gelap */
    --accent: #d97706;  /* Emas */
    --light: #f1f5f9;
    --dark: #1e293b;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: #fff; color: var(--dark); line-height: 1.6; }

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* ====================================================
   NAVBAR (SETTINGAN MENU)
   ==================================================== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.img-logo-kecil { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.logo-text { color: var(--primary); font-weight: bold; display: flex; flex-direction: column; }
.logo-text span { font-size: 1.2rem; }
.logo-text small { font-size: 0.7rem; color: var(--accent); letter-spacing: 2px; }

/* TOMBOL MENU (GARIS 3) */
.menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

/* MENU DROPDOWN (KOTAK PUTIH) */
.nav-links {
    display: none; /* Sembunyi Default */
    
    /* Posisi */
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px; 
    background: white;
    
    /* Tampilan Kotak */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    padding: 25px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Hilangkan Titik */
    list-style: none !important; 
    margin: 0 !important;
    padding-left: 0 !important;
}

.nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* ITEM MENU */
.nav-links li {
    list-style: none !important;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    display: block;
}

.nav-links a:hover { color: var(--primary); }

/* --- PERBAIKAN TOMBOL DI SINI --- */
.btn-nav {
    background: var(--primary);
    color: white !important;
    
    /* Agar rapi di tengah & ada jarak kanan kiri */
    width: 85% !important; /* Lebar 85% dari kotak */
    padding: 12px 0 !important; /* Tebal atas bawah */
    margin: 5px auto 0 auto; /* Posisi tengah */
    
    border-radius: 50px;
    font-size: 0.95rem;
    display: block; /* Wajib block agar width berfungsi */
    text-align: center;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================================== */

/* Hero */
.hero { height: 100vh; background: url('PENGURUS.jpeg'); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; color: white; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(6, 78, 59, 0.9), rgba(6, 78, 59, 0.8)); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-family: var(--font-head); font-size: 3.5rem; margin-bottom: 20px; }
.badge { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.4); display: inline-block; margin-bottom: 20px; }

/* Content */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content h3 { font-family: var(--font-head); margin: 10px 0; color: var(--primary); }
.img-rounded-shadow { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Form */
.contact-section { background-color: #f9fafb; }
.form-wrapper { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 5px solid var(--primary); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.btn-submit { width: 100%; background: #25D366; color: white; border: none; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1rem; display: flex; justify-content: center; gap: 10px; align-items: center; }

/* Footer */
.footer { background: #022c22; color: #ffffff; padding-top: 60px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #d97706; }
.footer-logo h3 { font-size: 1.2rem; line-height: 1.2; }
.footer-logo h3 span { font-size: 0.9rem; color: #ccc; font-weight: normal; }
.footer-links h4, .footer-social h4 { color: #d97706; margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #ccc; transition: 0.3s; }
.footer-bottom { padding: 20px 0; font-size: 0.9rem; color: #888; background: #011c16; }
.footer-social p { color: #cbd5e1; margin-bottom: 15px; font-size: 0.95rem; }

/* Sosmed List */
.social-list { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.social-item { display: flex; align-items: center; gap: 15px; text-decoration: none; color: white; transition: 0.3s; }
.social-item:hover { color: var(--accent); }
.icon-circle { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; transition: 0.3s; }
.social-item:hover .icon-circle { background: var(--accent); color: white; }
.social-item span { font-size: 0.95rem; font-weight: 500; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 9999; display: none; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background: white; width: 100%; max-width: 500px; border-radius: 15px; padding: 30px; position: relative; animation: muncul 0.3s ease-out; max-height: 90vh; overflow-y: auto; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #333; cursor: pointer; border: none; background: none; }
@keyframes muncul { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* MEDIA QUERY HP */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-logo { justify-content: center; text-align: left; }
    .social-list { align-items: center; }
}