.semua-berita-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.sec-title {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.berita-terbaru {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.semua-berita-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
    box-sizing: border-box;
}

.article-card {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.article-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.article-content {
    width: 100%;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.article-meta span {
    font-size: 14px;
    color: #666;
}

.article-meta a {
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.article-meta a:hover {
    color: #1d4ed8;
}

/* Large Desktop */
@media screen and (max-width: 1400px) {
    .semua-berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Desktop / Large Tablet */
@media screen and (max-width: 1200px) {
    .semua-berita-section {
        padding: 0 20px;
    }

    .sec-title {
        padding: 0 20px;
    }

    .berita-terbaru {
        font-size: 28px;
    }

    .semua-berita-grid {
        gap: 20px;
        margin: 30px 0;
    }
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .semua-berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content {
        padding: 16px;
    }

    .article-title {
        font-size: 17px;
    }
}

/* Mobile Large */
@media screen and (max-width: 768px) {
    .semua-berita-section {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .sec-title {
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .berita-terbaru {
        font-size: 24px;
    }

    .semua-berita-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
        width: 100%;
    }

    .article-card {
        width: 100%;
        margin: 0;
        border-radius: 6px;
    }

    .article-content {
        padding: 16px;
        width: 100%;
    }

    .article-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .article-excerpt {
        font-size: 14px;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
    }

    .article-meta {
        padding-top: 12px;
        width: 100%;
    }

    .article-meta span,
    .article-meta a {
        font-size: 13px;
    }
}

/* Mobile Small */
@media screen and (max-width: 480px) {
    .semua-berita-section {
        padding: 0 12px;
        overflow: hidden;
    }

    .sec-title {
        padding: 0 12px;
        margin-bottom: 12px;
    }

    .berita-terbaru {
        font-size: 22px;
        padding: 0 4px;
    }

    .semua-berita-grid {
        gap: 12px;
        margin: 20px 0;
        width: 100%;
    }

    .article-card {
        width: 100%;
        margin: 0;
    }

    .article-content {
        padding: 12px;
    }

    /* Hide all page numbers except active and immediate siblings */
    .page-number:not(.active) {
        display: none;
    }

    .page-number.active,
    .page-number.active + .page-number,
    .page-number.active ~ .page-number:first-child {
        display: inline-flex;
    }

    .page-dots {
        display: none;
    }
}

/* Pagination Styles */
.pagination-container {
    margin: 48px 0;
    display: flex;
    justify-content: center;
    padding: 0 24px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 4px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    gap: 4px;
}

.page-number,
.page-prev,
.page-next,
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number {
    color: #555;
}

.page-number:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.page-number.active {
    background: #2563eb;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.page-prev,
.page-next {
    padding: 0 16px;
}

.page-prev:hover,
.page-next:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.page-dots {
    color: #999;
    cursor: default;
    letter-spacing: 2px;
    padding-top: 5px;
}

@media screen and (max-width: 768px) {
    .pagination-container {
        margin: 32px 0;
        padding: 0 16px;
    }

    .pagination {
        padding: 3px;
    }

    .page-number,
    .page-prev,
    .page-next {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .page-prev,
    .page-next {
        padding: 0 12px;
    }
}

@media screen and (max-width: 480px) {
    .pagination-container {
        margin: 24px 0;
        padding: 0 12px;
    }

    .pagination {
        padding: 2px;
    }

    .page-number,
    .page-prev,
    .page-next {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .page-prev,
    .page-next {
        padding: 0 10px;
    }

    /* Hide all page numbers except active and immediate siblings */
    .page-number:not(.active) {
        display: none;
    }

    .page-number.active,
    .page-number.active + .page-number,
    .page-number.active ~ .page-number:first-child {
        display: inline-flex;
    }

    .page-dots {
        display: none;
    }
}