/* ====================================
   Berita & Informasi Page Styles
   ==================================== */

/* Hero Section */
.news-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0 60px;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

.news-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.news-hero-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Search Bar */
.news-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.news-search-input {
    height: 56px;
    padding: 0 130px 0 50px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.news-search-input:focus {
    outline: none;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

.news-search-input::placeholder {
    color: #999;
}

.news-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 30px;
    border-radius: 50px;
    background: #dc3545;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-search-btn:hover {
    background: #c82333 !important;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Main Section */
.news-main-section {
    padding: 60px 0 80px;
    background: #fff;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #f8f9fa;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 2;
}

.news-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-card:hover .news-card-link {
    gap: 12px;
}

.news-card:hover .news-card-link svg {
    transform: translateX(4px);
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.news-empty-state h4 {
    color: #666;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-empty-state p {
    color: #999;
    font-size: 0.95rem;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.news-pagination .pagination {
    display: flex;
    gap: 8px;
    margin: 0;
}

.news-pagination .page-link {
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-pagination .page-link:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.news-pagination .page-item.active .page-link {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.news-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Load More Button */
.btn-load-more {
    padding: 14px 40px;
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-load-more:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero-section {
        padding: 60px 0 40px !important;
    }

    .news-hero-section h1 {
        font-size: 2rem !important;
    }

    .news-hero-section p {
        font-size: 1rem !important;
    }

    .news-search-input {
        height: 50px !important;
        padding: 0 110px 0 45px !important;
        font-size: 14px !important;
    }

    .news-search-btn {
        padding: 0 20px !important;
        font-size: 13px !important;
        height: 36px !important;
    }

    .news-card-image {
        height: 200px !important;
    }

    .news-card-content {
        padding: 20px !important;
    }

    .news-card-title {
        font-size: 1.1rem !important;
    }

    .news-main-section {
        padding: 40px 0 60px !important;
    }

    .mb-40 {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 576px) {
    .news-hero-section h1 {
        font-size: 1.75rem !important;
    }

    .news-search-wrapper {
        padding: 0 15px;
    }

    .news-search-input {
        padding: 0 100px 0 40px !important;
        font-size: 13px !important;
    }

    .news-search-btn {
        padding: 0 16px !important;
        font-size: 12px !important;
    }

    .news-date-badge {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* Grid Spacing */
.mb-40 {
    margin-bottom: 40px;
}

.mt-50 {
    margin-top: 50px;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
