@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;700&display=swap');

/* Custom CSS */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f8f9fa;
}

/* Menambahkan padding bawah ke elemen <main> untuk memberi ruang scroll di mobile */
/* Ini PENTING agar konten terakhir tidak tertutup menu bawah */
main {
    padding-bottom: 120px;
}

.navbar-brand {
    color: #FFD700 !important; /* Emas */
}

/* New Header Style */
.hero-header {
    background-color: #004d40;
    color: white;
    padding: 2rem 1rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Search and Filter Bar */
.search-filter-bar {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    padding: 1rem 0;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.search-input {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding-left: 2.5rem;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.filter-btn {
    border-radius: 50px;
}

/* New Card Design */
.result-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.result-card .card-title a {
    text-decoration: none;
    color: #212529;
    font-weight: 700;
}
.result-card .card-title a:hover {
    color: #004d40;
}
.card-meta {
    font-size: 0.85rem;
    color: #6c757d;
}
.badge-kategori {
    background-color: #004d40 !important;
    color: #FFD700 !important;
    font-weight: 500;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1030;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
    color: #6c757d;
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
.bottom-nav a.active {
    color: #004d40;
    font-weight: bold;
}
.bottom-nav a i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

/* Gaya untuk Action Bar di halaman detail */
.action-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1029;
    border-top: 1px solid #eee;
    bottom: calc(60px + env(safe-area-inset-bottom));
}

/* Mengubah warna tombol primer agar sesuai tema */
.btn-primary {
    background-color: #004d40;
    border-color: #004d40;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #00382e;
    border-color: #00382e;
}

/* DIPERBARUI: Aturan untuk tampilan desktop/tablet */
@media (min-width: 992px) { /* Menggunakan breakpoint yang lebih besar */
    body {
        /* Beri warna latar belakang berbeda untuk 'luar' frame */
        background-color: #e9ecef;
        padding-top: 2rem; /* Memberi jarak dari atas */
    }

    /* Membatasi lebar dan memusatkan elemen utama */
    .navbar, main {
        max-width: 750px; /* Lebar maksimal diubah menjadi sedikit lebih lebar */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Membatasi lebar dan memusatkan menu bawah */
    .bottom-nav, .action-bar {
        max-width: 750px; /* Lebar maksimal diubah menjadi sedikit lebih lebar */
        left: 50%;
        transform: translateX(-50%);
    }

    /* Menyesuaikan tampilan di desktop */
    main {
        /*padding-bottom: 2rem; /* Mengurangi padding bawah di desktop */
        min-height: 80vh; /* Memastikan frame tidak terlalu pendek */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        background-color: #f8f9fa; /* Pastikan background konten sama dengan mobile */
    }

    .navbar {
        border-radius: 15px 15px 0 0; /* Memberi sudut pada navbar */
    }

    .bottom-nav {
        border-radius: 15px; /* Memberi sudut pada menu bawah */
        /* margin-bottom: 1rem; <-- INI DIHAPUS */
    }

    .action-bar {
        /* Menyesuaikan posisi di atas bottom-nav tanpa margin tambahan */
        bottom: 60px; 
    }
    
    
}


