/* ==========================================================================
   NEWS SECTION (Tạp chí / Magazine list)
   Synced from Reference/static-html/assets/css/news.css
   ========================================================================== */

.news-section {
    --tt-primary-red: var(--tgwv-brand, #8b0304);
    width: 100%;
}

.news-section__heading {
    width: 100%;
}

.news-section__title-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.news-section__title {
    position: relative;
    display: inline-block;
    margin: 0 16px;
    border-top: 1px solid var(--tt-primary-red);
    border-bottom: 1px solid var(--tt-primary-red);
    color: var(--tt-primary-red);
    text-decoration: none;
    flex-shrink: 0;
}

.news-section__title::before {
    content: "";
    background-image: var(--ns-title-corner-left, url(./images/btn41-bg-left.png));
    background-repeat: no-repeat;
    width: 13px;
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -13px;
}

.news-section__title::after {
    content: "";
    background-image: var(--ns-title-corner-right, url(./images/btn41-bg-right.png));
    background-repeat: no-repeat;
    width: 13px;
    position: absolute;
    top: -1px;
    bottom: -10px;
    right: -13px;
}

.news-section__title h2 {
    display: block;
    min-width: 310px;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    font-size: 24px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--tt-primary-red);
    margin: 0;
}

/* Decorative lines */
.news-section__title-line {
    height: 1px;
    background-color: var(--tt-primary-red);
    position: relative;
    z-index: 1;
}

.news-section__title-line--left {
    display: none;
}

.news-section__title-line--right {
    flex: 1;
    margin-left: -4px;
    display: block;
}

/* "Xem thêm" link */
.news-section__more {
    display: block;
    color: var(--tt-primary-red);
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    transition: all 0.3s ease;
}

.news-section__more:hover {
    color: #f39c12;
}

.news-section__more-line {
    display: block;
    width: 16px;
    height: 1px;
    background-color: var(--tt-primary-red);
}

.news-section__square {
    display: block;
    width: 5px;
    height: 5px;
    margin-left: 0;
    border: 1px solid var(--tt-primary-red);
    flex-shrink: 0;
}

.news-section--no-more .news-section__title-line--right {
    flex: 1;
}

/* Post list */
.news-section__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.news-section__empty {
    margin: 24px 0 0;
    color: #5e4027;
    font-size: 14px;
    line-height: 1.5;
}

/* News item */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.news-item__image {
    flex: 0 0 auto;
    width: 177px;
    padding: 4px;
    border: 2px solid #e0be91;
}

.news-item__image a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-item__image:hover img {
    transform: scale(1.05);
}

.news-item__content {
    width: auto;
    min-width: 0;
    flex: 1;
}

.news-item__title {
    display: -webkit-box;
    overflow: hidden;
    color: #5e4027;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: all 0.3s ease;
}

.news-item__title:hover {
    color: var(--tt-primary-red);
}

.news-item__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 15px 0 0;
    color: #5e4027;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--ns-excerpt-lines, 3);
}

@media (max-width: 991px) {
    .news-section__title h2 {
        min-width: 200px;
        font-size: 18px;
        padding: 4px 0;
    }

    .news-item__image {
        width: 160px;
    }

    .news-item__title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .news-section__title-wrap {
        justify-content: center;
    }

    .news-section__title-line {
        display: none;
    }

    .news-section__more,
    .news-section__more-line,
    .news-section__square {
        display: none;
    }
}

@media (max-width: 576px) {
    .news-section__title h2 {
        font-size: 18px;
    }

    .news-section__list {
        gap: 18px;
        margin-top: 20px;
    }

    .news-item {
        gap: 12px;
    }

    .news-item__excerpt {
        margin-top: 10px;
    }
}
