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

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    /* Efek Pola Titik (Dotted Background) */
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 25px 25px;
    color: #333;
    margin: 0;
    padding: 20px; 
}

h2 { 
    color: #2d6a4f; 
}

/* =========================================
   2. NAVBAR CUSTOM (PILL-SHAPE) - UPDATED
   ========================================= */
.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;
}

.text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 14px;
    text-align: center;
}

/* =========================================
   3. HEADER TEKS (HEYACAMP INDONESIA)
   ========================================= */
.header-heya {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 4.5rem; 
    font-weight: 900; 
    margin: 0;
    line-height: 1;
    letter-spacing: -2px; 
}

.logo-text .heya {
    color: #1e293b; /* Warna navy/hitam pekat */
}

.logo-text .camp {
    color: #ed8805; /* Warna oranye terang HeyaCamp */
}

.subtitle {
    color: #334155;
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0 15px 0;
}

.tags {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
    word-spacing: 10px; 
}

/* =========================================
   4. GALERI BISA DIGESER (HORIZONTAL SCROLL)
   ========================================= */
/* =========================================
   GALERI CAROUSEL OTOMATIS (INFINITE LOOP)
   ========================================= */
.gallery-section {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: transparent;
}

/* Pembungkus utama untuk menyembunyikan scrollbar */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Track yang akan bergeser ke kiri */
.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Memastikan track memanjang mengikuti jumlah foto */
    animation: geserKiri 20s linear infinite; /* Jalankan animasi konstan */
}

/* Efek Pause saat Kursor Mouse Diarahkan ke Foto */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Pengaturan Kartu Foto */
.gallery-card {
    width: 300px; /* Lebar seragam kartu foto */
    height: 200px; /* Tinggi seragam kartu foto */
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto otomatis memotong rapi, tidak gepeng */
    display: block;
}

/* Efek interaktif saat foto didekati */
.gallery-card:hover {
    transform: scale(1.03);
}

/* =========================================
   KEYFRAMES ANIMASI BERGESER
   ========================================= */
@keyframes geserKiri {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Geser tepat setengah dari total lebar track (karena ada 2 set duplikat) */
        transform: translateX(calc(-50% - 10px)); 
    }
}

.carousel-track {
    display: flex;
    gap: 20px; 
    padding: 20px;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    
    /* Menyembunyikan scrollbar bawaan */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.carousel-track::-webkit-scrollbar {
    display: none; 
}

.gallery-card {
    flex: 0 0 auto; 
    width: 260px; 
    height: 380px; 
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    background-color: white; 
}

/* Gambar sedikit miring seperti di contoh Anda */
.gallery-card:nth-child(odd) { transform: rotate(-2deg); }
.gallery-card:nth-child(even) { transform: rotate(2deg); }

.gallery-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

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

/* =========================================
   5. KOMPONEN LAINNYA (KATALOG & TABEL BOOKING)
   ========================================= */
.container { 
    max-width: 900px; 
    margin: 20px auto; 
    padding: 20px; 
}

.card { 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
}

.item { 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 10px; 
    text-align: center; 
    background: #fff; 
}

.item img { 
    width: 100%; 
    border-radius: 5px; 
    height: 150px; 
    object-fit: cover; 
}

.btn { 
    background: #2d6a4f; 
    color: white; 
    border: none; 
    padding: 8px; 
    border-radius: 5px; 
    cursor: pointer; 
    width: 100%; 
    margin-top: 10px; 
    font-size: 0.9rem; 
}

.counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.btn-qty {
    background: #eee;
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-qty:hover { background: #2d6a4f; color: white; }
.qty-val { font-weight: bold; font-size: 1.1rem; min-width: 20px; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #2d6a4f; color: white; }
.status { padding: 5px 10px; border-radius: 20px; font-size: 12px; background: #ffeaa7; }
.tags span {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #475569;
    margin-right: 5px;
    display: inline-block;
    transition: 0.3s;
}

.tags span:hover {
    background: #ed8805;
    color: white;
}
@media (max-width: 768px) {
    .agenda-title { font-size: 32px; }
    .agenda-grid { grid-template-columns: 1fr; }
    .agenda-card { padding: 30px; }
}

/* --- SECTION AGENDA (BERSIH & MINIMALIS) --- */
.agenda-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px; /* Lebar maksimal agar rapi di tengah */
    margin: 0 auto;
}

.agenda-title {
    font-size: 42px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 50px;
    line-height: 1.2;
}

.agenda-title span {
    color: #ed8805;
    display: block; /* Membuat teks turun ke bawah */
}

.agenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* KUNCI: Membuat tag <a> berperilaku seperti kartu dan tidak berwarna biru */
.agenda-card {
    display: block; 
    text-decoration: none !important; /* Hilangkan garis bawah link */
    color: inherit; /* Cegah teks berubah biru */
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #ed8805; /* Border berubah oranye saat disorot */
}

.agenda-icon {
    font-size: 32px;
    margin-bottom: 20px;
}
.icon-orange { color: #ed8805; }
.icon-blue { color: #3b82f6; }
.icon-green { color: #22c55e; }   /* Hijau */
.icon-yellow { color: #eab308; }  /* Kuning Emas */
.icon-red { color: #ef4444; }     /* Merah */
.icon-purple { color: #a855f7; }  /* Ungu */
.icon-cyan { color: #06b6d4; }    /* Cyan/Teal */

.agenda-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 12px;
}

.agenda-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Teks tambahan saat di-hover (Opsional tapi keren) */
.explore-text {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ed8805;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.agenda-card:hover .explore-text {
    opacity: 1;
    transform: translateX(0);
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .agenda-title { font-size: 32px; }
    .agenda-grid { grid-template-columns: 1fr; }
    .agenda-card { padding: 30px; }
}
@media (max-width: 768px) {
    /* 1. Sembunyikan Navbar Atas yang lama */
    .navbar {
        display: none; 
    }

    /* 2. Buat Navbar Baru di Bawah (Fixed Bottom) */
    .mobile-nav {
        display: flex !important; /* Pastikan muncul di HP */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        border-radius: 20px 20px 0 0;
        padding-bottom: 5px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 10px;
        gap: 4px;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item.active {
        color: #ed8805;
    }

    /* 3. Beri jarak di bawah body agar konten tidak tertutup navbar baru */
    body {
        padding-bottom: 80px;
    }
}

/* Sembunyikan Mobile Nav di Desktop */
.mobile-nav {
    display: none;
}
@media (max-width: 480px) {
    .post-container h1 {
        font-size: 28px !important;
    }
}
/* =========================================
   GAYA KARTU FITUR KOMUNITAS
   ========================================= */
.features-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Jarak antar baris grid */
}

/* Baris Atas: 3 Kolom sejajar */
.features-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Baris Bawah: 2 Kolom sejajar */
.features-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Gaya Kartu Utama */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px; /* Sudut membulat halus sesuai gambar */
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Shadow sangat tipis */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Efek Hover Angkat Halus */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Styling Ikon Base */
.feature-icon {
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VARIASI WARNA IKON SESUAI SCREENSHOT */
.icon-green { color: #22c55e; }   /* Hijau */
.icon-yellow { color: #eab308; }  /* Kuning Emas */
.icon-red { color: #ef4444; }     /* Merah */
.icon-purple { color: #a855f7; }  /* Ungu */
.icon-cyan { color: #06b6d4; }    /* Cyan/Teal */

/* Judul Fitur */
.feature-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a; /* Warna teks gelap kokoh */
    margin: 0 0 15px 0;
}

/* Deskripsi Teks */
.feature-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b; /* Warna Slate sekunder */
    margin: 0;
}

/* =========================================
   RESPONSIVE MOBILE (HP)
   ========================================= */
@media (max-width: 768px) {
    .features-container {
        gap: 15px;
        padding: 0 15px;
    }

    /* Paksa semua grid baris atas dan bawah menjadi 1 kolom saja di HP */
    .features-grid-top, 
    .features-grid-bottom {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .feature-card {
        padding: 25px; /* Kurangi padding di HP agar space efisien */
        border-radius: 20px;
    }

    .feature-icon {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .feature-desc {
        font-size: 13.5px;
    }
}