/* =========================================
   1. GLOBAL & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fefaf6;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 25px 25px;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 25px;
    border-radius: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    
    /* Tambahkan Kode di Bawah Ini */
    position: sticky;      /* Membuat navbar menempel */
    top: 20px;            /* Memberikan jarak dari atas layar saat melayang */
    z-index: 1000;         /* Memastikan navbar di atas elemen lain */
    margin: 0 auto 20px;   /* Margin otomatis ke tengah dan jarak bawah */
}

.nav-logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #4a5568; 
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ed8805; /* Warna hover menyesuaikan tema HeyaCamp */
}

.nav-links li a i {
    font-size: 18px;
}
/* =========================================
   3. HEADER SECTION
   ========================================= */
.header-komunitas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.header-komunitas h1 { font-size: 38px; font-weight: 900; color: #1e293b; margin: 0; }
.header-komunitas h1 span { color: #ea580c; }
.header-komunitas p { color: #64748b; font-size: 18px; margin-top: 5px; }

/* TOMBOL BUAT AKTIVITAS */
.btn-create {
    background: #ed8805;
    color: white;
    padding: 14px 28px;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(237, 136, 5, 0.3);
    transition: 0.3s;
}

/* =========================================
   4. SEARCH BAR (ULTRA CLEAN PILL)
   ========================================= */
.search-wrapper { display: flex; justify-content: center; padding: 0 20px; }

.search-bar-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 30px;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03); /* Shadow lebih halus */
    border: 1px solid #f1f5f9;
    width: 100%;
    max-width: 1100px;
}

.search-input-group { flex: 2; display: flex; align-items: center; gap: 15px; }
.search-input-group i { color: #94a3b8; font-size: 18px; }
.search-input-group input { border: none; outline: none; width: 100%; font-size: 16px; color: #1e293b; }

.vertical-divider {
    width: 1px;
    height: 35px;
    background: #e2e8f0;
    margin: 0 25px;
}

/* FILTER GROUP DENGAN IKON HIJAU */
.filter-group { flex: 1; display: flex; align-items: center; gap: 12px; position: relative; }

/* Warna Hijau untuk Ikon Tag & Filter sesuai screenshot */
/* =========================================
   PERBAIKAN TEKS DROPDOWN (TIDAK BOLD)
   ========================================= */
.filter-group select {
    appearance: none;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px; /* Sedikit dikecilkan agar elegan */
    font-weight: 500; /* Ganti dari 800 ke 500 agar tidak tebal */
    color: #475569; /* Warna abu-abu gelap yang lebih lembut */
    cursor: pointer;
    width: 100%;
    font-family: 'Nunito', sans-serif;
}

/* Pastikan Ikon tetap menonjol walau teksnya tipis */
.filter-group i:first-child { 
    color: #22c55e !important; 
    font-size: 16px;
    opacity: 0.9;
}

.chevron { color: #94a3b8; font-size: 12px; margin-left: 5px; }

/* =========================================
   5. GRID KARTU AKTIVITAS
   ========================================= */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.activity-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.card-img-wrapper { position: relative; height: 210px; width: 100%; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.card-tags { position: absolute; bottom: 15px; left: 15px; display: flex; flex-direction: column; gap: 6px; }
.tag-community, .tag-location { 
    background: rgba(0, 0, 0, 0.7); 
    color: white; padding: 5px 12px; 
    border-radius: 8px; font-size: 11px; 
    backdrop-filter: blur(4px); font-weight: 700;
}

.card-content { padding: 25px; }
.card-title { font-size: 20px; font-weight: 800; color: #1e293b; margin-bottom: 15px; }

/* TANGGAL BERSIH */
.card-date { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 14px; font-weight: 600; }
.card-date i { font-size: 18px; }

/* =========================================
   6. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .navbar { display: none !important; }
    
    .header-komunitas { flex-direction: column; text-align: center; gap: 20px; }
    
    .search-bar-container {
        flex-direction: column;
        border-radius: 25px;
        padding: 20px;
        gap: 15px;
    }

    .vertical-divider { display: none; }
    
    .search-input-group, .filter-group {
        width: 100%;
        background: #f8fafc;
        padding: 12px 15px;
        border-radius: 12px;
    }

    .activity-grid { grid-template-columns: 1fr !important; }
    
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 75px;
        background: white;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 9999;
        border-radius: 25px 25px 0 0;
    }
}

/* Nav Mobile Utility */
.mobile-nav { display: none; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #94a3b8; font-size: 11px; font-weight: 700; gap: 5px; }
.mobile-nav-item.active { color: #ed8805; }
.mobile-nav-item i { font-size: 22px; }