/* ============================================================
   MAIN LAYOUT
============================================================ */

.news-layout {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}


/* ============================================================
   ARTICLES
============================================================ */

.news-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.news-item-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* IMAGE */
.news-thumb {
    width: 220px;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

/* CONTENT */
.news-category {
    display: block;
    text-align: center;
    color: #c1121f;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.news-content h2 {
    text-align: center;
    margin: 6px 0;
    font-size: 1.4rem;
}

.news-meta {
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-content p {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.read-more {
    display: block;
    text-align: center;
    color: #c1121f;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
}


/* ============================================================
   SIDEBAR
============================================================ */

.news-sidebar {
    position: sticky;
    top: 100px;
}

/* SIDEBAR BOX */
.sidebar-box {
    margin-bottom: 30px;
}

.sidebar-box h3 {
    margin-bottom: 12px;
}

/* SEARCH */
.sidebar-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}

/* CATEGORY LIST */
.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li {
    margin-bottom: 8px;
}

.sidebar-box ul li a {
    text-decoration: none;
    color: #333;
}


/* ============================================================
   RECENT POSTS (FIXED SPACING)
============================================================ */

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.recent-post img {
    width: 75px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-post div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-post a {
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.recent-post span {
    font-size: 0.75rem;
    color: #777;
}


/* ============================================================
   PAGINATION
============================================================ */

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    margin: 0 8px;
    text-decoration: none;
    color: #333;
}


/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .news-layout {
        padding: 40px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .news-item-inner {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
    }

    .news-thumb img {
        height: 180px;
    }

    .recent-post img {
        width: 65px;
        height: 55px;
    }
}