/* ========================================
   PAGE HEADER
======================================== */
.page-header {
    background: linear-gradient(135deg, #154360 0%, #1a5276 60%, #16a085 100%);
    color: white;
    padding: 45px 0 65px;
    margin-top: 0; /* diatur JS */
    clip-path: ellipse(100% 100% at 50% 0%);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1rem;
    opacity: .88;
}

/* ========================================
   FEATURED NEWS SECTION
======================================== */
.featured-section {
    position: relative;
}

.featured-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-img:hover img {
    transform: scale(1.05);
}

.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.featured-content {
    padding: 20px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.featured-excerpt {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ========================================
   FILTER SECTION
======================================== */
.filter-section {
    position: sticky;
    top: 72px;
    z-index: 99;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #1e3c72;
    background: white;
    color: #1e3c72;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* ========================================
   NEWS CARD
======================================== */
.berita-item {
    transition: all 0.3s ease;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.news-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: #212529;
    line-height: 1.4;
}

.news-card-text {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: #764ba2;
    gap: 10px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   BADGES
======================================== */
.badge-kategori {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-penting { 
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white; 
}

.badge-berita { 
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white; 
}

.badge-baru { 
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white; 
}

.badge-pengumuman { 
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #000; 
}

/* ========================================
   STATS SECTION
======================================== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 25px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }

    .featured-img img {
        height: 300px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-excerpt {
        font-size: 0.95rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .news-card-img {
        height: 200px;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .news-card-text {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 25px 15px 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.875rem;
    }

    .featured-img img {
        height: 250px;
    }

    .featured-content {
        padding: 10px;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .filter-section h5 {
        font-size: 1rem;
    }

    .news-card-img {
        height: 180px;
    }

    .news-card-body {
        padding: 1rem;
    }
    
    .news-card-title {
        font-size: 0.95rem;
    }
    
    .news-card-text {
        font-size: 0.8rem;
    }
    
    .news-meta {
        font-size: 0.75rem;
    }
    
    .btn-read-more {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

.news-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-title-link:hover {
    color: var(--primary, #0d6efd);
}