/*
 * CSS khusus untuk tampilan daftar kampanye dan detail kategori.
 * Diadaptasi untuk tampilan card yang rapi dan responsif.
 */

/* Kontainer utama untuk mengatur padding */
.content-padding {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Penyesuaian untuk header detail (tidak digunakan di campaign list, tapi dipertahankan untuk referensi) */
.detail-header {
    height: 150px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Styling tambahan agar elemen filter terlihat seragam */
.form-control-height {
    height: 45px !important;
}
.filter-bar-container {
    border-bottom: 2px solid #e9ecef; /* Pemisah halus */
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.filter-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 0.9rem;
}

.detail-content {
    background-color: rgba(0, 0, 0, 0.4); /* Overlay gelap agar teks terbaca */
    padding: 15px 30px;
    border-radius: 8px;
}

.detail-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Styling untuk daftar kampanye */
#campaignList {
    display: grid;
    /* Responsive Grid Layout */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Jarak antar kartu */
}

/* Styling untuk card kampanye */
.campaign-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden; /* Penting agar gambar dan card-body tidak keluar batas */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 100%; /* Memastikan semua kartu memiliki tinggi yang sama dalam grid */
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.campaign-img {
    width: 100%;
    height: 180px; /* Ukuran gambar yang konsisten */
    object-fit: cover; /* Memastikan gambar terisi penuh tanpa distorsi */
}

.campaign-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    /* Batasi ke 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px; /* Sekitar 2 baris * 24px tinggi baris */
}

.progress-bar-primary {
    background-color: #00b34a; /* Warna hijau untuk progress bar, sesuaikan jika perlu */
}

.campaign-info-text {
    font-size: 0.85rem;
}

/* Styling untuk pagination */
.pagination {
    justify-content: center; /* Pusatkan pagination */
}

/* Badge styling */
.badge-danger {
    background-color: #dc3545;
    color: white;
}
.badge-success {
    background-color: #28a745;
    color: white;
}