/* =========================================
   1. GLOBAL & BACKGROUND
   ========================================= */
@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: #ffffff;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 25px 25px;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* =========================================
   2. NAVBAR DESKTOP (PILL-SHAPE)
   ========================================= */
/* =========================================
   2. NAVBAR DESKTOP
   ========================================= */
.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
   ========================================= */
.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #fff9f2;
    border-radius: 20px;
}

.tag-regional {
    background-color: #ffead4;
    color: #ed8805;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-group h1 {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
    margin: 10px 0 0;
}

.title-group .highlight { color: #ed8805; }

.btn-create {
    background-color: #ed8805;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* =========================================
   4. COMMUNITY GRID & CARDS
   ========================================= */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
}

.card-link { text-decoration: none; color: inherit; display: block; }

.community-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.community-card:hover { transform: translateY(-8px); }

.card-cover { height: 140px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; position: relative; padding-top: 45px; }

.card-logo {
    position: absolute;
    top: -30px; left: 20px;
    width: 60px; height: 60px;
    background: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-logo img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }

.card-title { font-size: 1.1rem; font-weight: 800; color: #1e293b; margin: 0; }
.card-stats { font-size: 0.85rem; color: #64748b; margin: 5px 0 10px; }
.card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   5. RESPONSIVE MOBILE (HP)
   ========================================= */
@media (max-width: 768px) {
    body { padding: 10px; padding-bottom: 100px; }

    .navbar { display: none !important; }

    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 70px;
        background: white;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        border-radius: 20px 20px 0 0;
    }

    /* Sinkronisasi Header Komunitas */
    .community-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin: 20px auto;
    }

    .tag-regional { margin: 0 auto; }

    .title-group h1 { font-size: 28px; }
    .title-group p { font-size: 15px; }

    .btn-create { width: 100%; justify-content: center; margin-top: 10px; }

    /* Grid 2 Kolom */
    .community-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin-top: 20px;
    }

    .card-cover { height: 100px; }
    .card-logo { width: 45px; height: 45px; top: -22px; }
    .card-body { padding: 12px; padding-top: 30px; }
    .card-title { font-size: 0.9rem; }
    .card-stats { font-size: 0.75rem; }
    .card-desc { display: none; } /* Sembunyikan deskripsi di HP agar tidak sesak */
}

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