/* ===== BERITA PAGE FIX ===== */

/* Page Container */
.berita-page {
    padding: 140px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.berita-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.berita-header {
    text-align: center;
    margin-bottom: 50px;
}

.berita-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.berita-header p {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 0 20px;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
    color: #d4af37;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn i {
    font-size: 14px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 60px;
}

.blog-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-placeholder img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Blog Content */
.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #d4af37;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
    color: #b8941f;
}

.blog-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-posts i {
    font-size: 80px;
    color: #d4af37;
    margin-bottom: 25px;
    opacity: 0.5;
}

.no-posts h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.no-posts p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
}

.no-posts .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-posts .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 25px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: #d4af37;
    color: #ffffff;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.pagination-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.pagination-number:hover {
    background: #f8f9fa;
    border-color: #d4af37;
    color: #d4af37;
}

.pagination-number.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .berita-page {
        padding: 120px 0 60px;
    }

    .berita-page .container {
        padding: 0 30px;
    }

    .berita-header h1 {
        font-size: 32px;
    }

    .berita-header p {
        font-size: 16px;
    }

    .category-filter {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .blog-image {
        height: 220px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-content h3 {
        font-size: 18px;
    }

    .blog-content p {
        font-size: 14px;
    }

    .pagination {
        gap: 10px;
        margin-top: 50px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .berita-page .container {
        padding: 0 20px;
    }

    .berita-header {
        margin-bottom: 40px;
    }

    .berita-header h1 {
        font-size: 26px;
    }

    .berita-header p {
        font-size: 15px;
    }

    .category-filter {
        gap: 8px;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .blog-grid {
        gap: 20px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-category {
        top: 15px;
        left: 15px;
        padding: 6px 15px;
        font-size: 11px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-meta {
        gap: 15px;
        font-size: 12px;
    }

    .blog-content h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .blog-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .blog-link {
        font-size: 13px;
    }

    .no-posts {
        padding: 60px 20px;
    }

    .no-posts i {
        font-size: 60px;
    }

    .no-posts h3 {
        font-size: 22px;
    }

    .no-posts p {
        font-size: 14px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }

    .pagination-numbers {
        justify-content: center;
    }

    .pagination-number {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card.visible {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.blog-card.loading {
    opacity: 0.5;
    pointer-events: none;
}
