/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

.hero {
    background: linear-gradient(90deg, #e3eafc 0%, #f7faff 100%);
    color: #2c3e50;
    padding: 2.5rem 1rem 2rem 1rem;
    text-align: center;
    border-radius: 0 0 18px 18px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.hero p {
    font-size: 1.1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 1.2rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: block;
}

.main-news {
    margin-bottom: 2rem;
}

.main-news img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-category {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.main-news h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.news-meta span {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 0.3rem;
}

.main-news p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.read-more {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #2980b9;
}

.latest-news {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
}

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

.news-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.news-card-content {
    padding: 1rem 1.2rem;
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.news-card p {
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
}

.news-card .news-meta {
    margin-bottom: 0;
}

.sidebar {
    display: none !important;
}

.popular-news {
    margin-bottom: 2rem;
}

.popular-list {
    list-style: none;
}

.popular-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.popular-list a:hover {
    color: var(--accent);
}

.popular-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.popular-list h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.popular-list .news-meta {
    font-size: 0.8rem;
}

.categories {
    margin-bottom: 2rem;
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-list li a {
    display: inline-block;
    background-color: white;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.category-list li a:hover {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Pagination - Elegan dan Modern */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.pagination a {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
    background: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    margin: 0 2px;
    position: relative;
    letter-spacing: 0.5px;
}

.pagination a.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    z-index: 2;
    box-shadow: 0 4px 16px rgba(52,152,219,0.13);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(44,62,80,0.13);
}

.pagination .prev-link,
.pagination .next-link {
    font-weight: 600;
    background: var(--light);
    color: var(--primary);
    border-color: var(--secondary);
}

.pagination .prev-link:hover,
.pagination .next-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Tambahan untuk grid berita dan populer */
.berita-populer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.berita-terkini {
    width: 100%;
}

.populer-kategori {
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .berita-populer-grid {
        grid-template-columns: 1fr;
    }
    .populer-kategori {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }

    .main-news img {
        height: 300px;
    }

    .main-news h2 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .main-news img {
        height: 250px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pagination a {
        padding: 0.4rem 0.7rem;
        font-size: 0.95rem;
    }
    .populer-kategori, .news-card-content {
        padding: 1rem 0.5rem;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1rem;
    }
}