.news-hero {
    padding: 30px 0 10px;
}

.news-hero-card {
    min-height: 300px;
    border-radius: 18px;
    padding: 60px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0.65)
        ),
        url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.title-line {
    width: 55px;
    height: 3px;
    background: #198754;
    margin-top: 12px;
}

.search-box {
    height: 56px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.search-box input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 15px;
}

.news-select {
    border-radius: 12px;
    border-color: #e8e8e8;
    height: 56px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition: 0.2s;
}

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

.news-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-img-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #e8f5ee, #cfeedd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.news-content {
    padding: 24px 28px;
}

.news-category {
    display: inline-block;
    background: #d8f3e4;
    color: #08783b;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
}

.news-meta {
    color: #666;
    font-size: 13px;
}

.read-more {
    color: #08783b;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover {
    color: #065f2f;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.category-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #222;
}

.category-list li.active,
.category-list li:hover {
    background: #e8f5ee;
    color: #08783b;
}

.category-list strong {
    background: #e8f5ee;
    color: #08783b;
    border-radius: 50%;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popular-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.popular-img {
    width: 80px;
    height: 65px;
    border-radius: 10px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.popular-item h6 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.popular-item small {
    color: #777;
}

.pagination-custom {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pagination-custom a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-custom a.active,
.pagination-custom a:hover {
    background: #08783b;
    color: #fff;
}
.news-detail-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.news-detail-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.news-detail-image-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #e8f5ee, #cfeedd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.news-detail-body {
    padding: 40px;
}

.news-detail-meta {
    color: #666;
    font-size: 14px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 18px;
}
.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.popular-img {
    width: 70px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf5f0;
    border-radius: 10px;
    overflow: hidden;
}

.popular-item h6 {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.popular-item small {
    color: #6c757d;
}

.pagination-custom .pagination {
    margin-bottom: 0;
    gap: 6px;
}

.pagination-custom .page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.pagination-custom .page-item.active .page-link {
    color: #fff;
    background: #198754;
    border-color: #198754;
}

.pagination-custom .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 14px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .news-detail-image,
    .news-detail-image-placeholder {
        height: 260px;
    }

    .news-detail-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .news-hero-card {
        padding: 35px;
    }

    .news-img,
    .news-img-placeholder {
        height: 220px;
    }

    .news-content {
        padding: 22px;
    }

    .d-flex.justify-content-between.align-items-center.mt-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
}
