* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222;
}

/* --- HEADER & FOOTER --- */
.site-header {
    background: linear-gradient(135deg, #ef1d25, #b50910);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.header-inner {
    max-width: 1100px;
    min-height: 78px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-name {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .4px;
    white-space: nowrap;
}

.search-form {
    display: flex;
    width: min(100%, 390px);
}

.search-form input {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 5px 0 0 5px;
    padding: 0 13px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    height: 40px;
    border: 0;
    padding: 0 16px;
    background: #202020;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.search-form button:hover {
    background: #000;
}

.site-footer {
    background: #202020;
    color: #d8d8d8;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1100px;
    min-height: 75px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
}

.footer-inner strong {
    color: #fff;
}

/* --- LAYOUT UTAMA --- */
.container {
    max-width: 1100px;
    margin: 30px auto 45px;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .content-wrapper {
        grid-template-columns: 2.3fr 1fr;
    }
}

/* --- HERO FEATURED (BERITA UTAMA) --- */
.hero-featured {
    margin-bottom: 30px;
}

.hero-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    background: #000;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-card:hover .hero-image img {
    transform: scale(1.03);
    opacity: 0.95;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.hero-overlay .badge {
    background: #ef1d25;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-overlay h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
    color: #fff;
}

.hero-overlay time {
    font-size: 12px;
    color: #ddd;
}

/* --- SECTION HEADING --- */
.section-heading {
    border-bottom: 2px solid #ef1d25;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
    color: #202020;
}

/* --- GRID BERITA --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.news-card {
    background: #fff;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.card-media {
    position: relative;
    display: block;
    height: 160px;
    background: #e6e8eb;
    text-decoration: none;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body time {
    color: #7a7f87;
    font-size: 12px;
}

.card-body h3 {
    margin: 8px 0 12px;
    font-size: 16px;
    line-height: 1.4;
}

.card-body h3 a {
    color: #202020;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: #ef1d25;
}

.read-more {
    margin-top: auto;
    color: #ef1d25;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

/* --- SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}

.sidebar-widget h3 {
    margin: 0 0 15px;
    font-size: 18px;
    border-left: 4px solid #ef1d25;
    padding-left: 10px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e3e6eb;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.list-num {
    font-size: 18px;
    font-weight: bold;
    color: #ef1d25;
}

.sidebar-info a {
    color: #202020;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.sidebar-info a:hover {
    color: #ef1d25;
}

.sidebar-info time {
    font-size: 11px;
    color: #888;
}

/* --- PAGINASI & EMPTY STATE --- */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 5px;
    background: #ef1d25;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.pagination a:hover {
    background: #b50910;
}

.empty-state {
    background: #fff;
    text-align: center;
    padding: 45px 20px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 650px) {
    .header-inner, .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .search-form {
        width: 100%;
    }

    .hero-card {
        height: 260px;
    }

    .hero-overlay h2 {
        font-size: 18px;
    }
}