.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.2);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eaf8f0;
}

.news-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.news-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text);
}

.news-excerpt {
    color: var(--paragraph);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-empty {
    text-align: center;
    color: var(--muted);
    padding: 32px 0;
}

.detail-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.detail-card header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.detail-card .badge {
    margin: 0;
}

.detail-card h1 {
    margin: 4px 0 10px;
    line-height: 1.25;
}

.detail-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.detail-card figure {
    margin: 18px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eaf8f0;
}

.detail-card figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.detail-body {
    color: var(--paragraph);
    line-height: 1.7;
    white-space: pre-line;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    text-decoration: none;
}

.not-found {
    text-align: center;
    color: var(--muted);
    padding: 32px 0;
}

.badge-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-kegiatan {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-berita {
    background: rgba(234, 179, 8, 0.1);
    color: #a16207;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

