/* 
 * HIMABISDIG - Berita List Styles (CLEAN & MINIMALIST)
 * Version: 1.0
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0A2463;
    --primary-light: #3E92CC;
    --secondary: #F7931E;
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-light: #718096;
    --border: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.berita-hero-section {
    position: relative;
    background-color: var(--primary);
    padding: 8rem 0 6rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9), rgba(62, 146, 204, 0.8));
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    opacity: 0.4;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.breadcrumb-nav {
    position: relative;
    z-index: 3;
    margin-bottom: 2rem;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    display: inline-flex;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== FILTER SECTION ===== */
.filter-section {
    padding: 3rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.filter-container {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Search Form */
.search-form {
    margin-top: 0.75rem;
}

.search-wrapper {
    position: relative;
    display: flex;
}

.search-wrapper .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid var(--border);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.search-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
    outline: none;
}

.btn-search {
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.btn-search:hover {
    background: var(--primary-light);
}

/* Select Filters */
.form-control {
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
    outline: none;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.remove-filter {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    margin-left: 0.25rem;
}

.clear-all {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.clear-all:hover {
    text-decoration: underline;
}

/* ===== BERITA SECTION ===== */
.berita-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

/* ===== BERITA GRID ===== */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* ===== BERITA CARD ===== */
.berita-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Image Section */
.berita-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.berita-card:hover .berita-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 3rem;
}

/* Date Badge */
.date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem 0.625rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    z-index: 2;
}

.date-badge .day {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.date-badge .month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-body);
    text-transform: uppercase;
}

/* Kategori Badge */
.kategori-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: var(--shadow-md);
}

/* Body */
.berita-body {
    padding: 1.5rem;
}

.berita-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.berita-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.berita-title a:hover {
    color: var(--primary);
}

.berita-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-body);
    font-size: 0.875rem;
}

.info-item i {
    color: var(--text-light);
    font-size: 1rem;
}

.berita-excerpt {
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.berita-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white !important;
}

.cta-content {
    color: white;
}

.cta-content h3,
.cta-content p {
    color: white !important;
}

.btn-cta-contact {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-cta-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .berita-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .berita-hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .filter-container {
        padding: 1.5rem;
    }
    
    .berita-section {
        padding: 3rem 0;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}