.image-news-wd {
    width: 100%;
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.image-news-section {
    margin: 30px auto;
    max-width: 1296px;
    padding: 0;
    width: 100%;
}

.image-news-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.image-news-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2329;
    margin: 0;
}

.image-news-section .section-link {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.image-news-section .section-link a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.image-news-section .section-link a:hover {
    color: var(--color-primary-hover);
}

.image-news-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.image-news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.image-news-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.image-news-item .image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
    width: 100%;
}

.image-news-item .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-news-item:hover .news-image {
    transform: scale(1.08);
}

.image-news-item .image-label {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: rgba(52, 152, 219, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 2;
}

.image-title-container {
    padding: 15px;
    height: 80px;
    display: flex;
    align-items: center;
}

.image-news-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #1f2329;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.image-news-item:hover .image-news-title {
    color: var(--color-primary-hover);
}

@media (min-width: 1400px) {
    .image-news-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .image-news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .image-news-item .image-container {
        height: 170px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .image-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .image-news-item .image-container {
        height: 180px;
    }

    .image-news-section {
        padding: 0 15px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .image-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .image-news-item .image-container {
        height: 200px;
    }

    .image-news-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-news-section .section-link {
        gap: 15px;
        justify-content: flex-start;
    }

    .image-title-container {
        height: 70px;
        padding: 12px;
    }

    .image-news-title {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .image-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto;
    }

    .image-news-item .image-container {
        height: 200px;
    }

    .image-news-section {
        padding: 0 15px;
    }

    .image-news-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .image-news-section .section-link {
        gap: 10px;
        justify-content: flex-start;
    }

    .image-news-section .section-link a {
        font-size: 13px;
    }

    .image-title-container {
        height: auto;
        min-height: 60px;
        padding: 12px;
    }

    .image-news-title {
        font-size: 14px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    .image-news-section .section-title {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .image-news-grid {
        gap: 12px;
    }

    .image-news-item .image-container {
        height: 180px;
    }

    .image-news-section {
        padding: 0 12px;
    }

    .image-news-section .section-link a {
        font-size: 12px;
    }

    .image-news-title {
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
    .image-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media print {
    .image-news-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .image-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
