.layout-main {
    justify-content: flex-start;
}
/* =====================
   News Item Card
   ===================== */
.news-item-card {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 18px;
    margin-bottom: 18px;
    transition: none;
}

    .news-item-card:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.news-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 230px;
    overflow: hidden;
    border-radius: 8px;
}

.news-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-card:hover .news-item-image {
    transform: scale(1.05);
}

.news-item-category-badge {
    position: absolute;
    top: 8px;
    left: 16px;
    background: #0D9C4A;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

    .news-item-category-badge:hover {
        color: white;
    }

/* =====================
   News Item Content
   ===================== */
.news-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 4px 0 4px 14px;
}

.news-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

    .news-item-title a {
        color: #212529;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .news-item-title a:hover,
        .news-item-card:hover .news-item-title a {
            color: #0D9C4A;
        }

.news-item-date {
    color: #6c757d;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .news-item-date i {
        font-size: 16px;
    }

.news-item-excerpt {
    color: #495057;
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 61px;
}

.news-item-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-read-more {
    color: #0D9C4A;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .btn-read-more:hover {
        background: #0D9C4A;
        color: white;
    }

/* =====================
   Empty State
   ===================== */
.news-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #6c757d;
}

    .news-empty-state i {
        font-size: 48px;
        display: block;
        margin-bottom: 12px;
        opacity: 0.4;
    }

/* =====================
   Pagination
   ===================== */
.pagination {
    gap: 4px;
}

.page-link {
    border: 1px solid #dee2e6;
    color: #0D9C4A;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

    .page-link:hover {
        background: #0D9C4A;
        color: white;
        border-color: #0D9C4A;
    }

.page-item.active .page-link {
    background: #0D9C4A;
    border-color: #0D9C4A;
    color: white;
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .news-item-image-wrapper {
        max-height: 160px;
        min-height: 120px;
    }

    .news-item-content {
        padding: 0 0 0 10px;
    }

    .news-item-title {
        font-size: 16px;
    }

    .news-item-excerpt {
        display: none;
    }

    .news-item-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .news-item-card .row {
        flex-direction: column;
    }

    .news-item-card .col-5,
    .news-item-card .col-7 {
        width: 100%;
    }

    .news-item-image-wrapper {
        max-height: 200px;
        min-height: 160px;
    }

    .news-item-content {
        padding: 10px 0 0 0;
    }

    .news-item-excerpt {
        display: -webkit-box;
    }

    .news-item-footer {
        justify-content: center;
    }

    .btn-read-more {
        width: 100%;
        justify-content: center;
    }

    .news-item-date {
        font-size: 12px;
    }
}
