/**
 * Styles for: TIN TỨC SLIDER
 */

.sec-news {
    padding: 100px 0;
    background: #ffffff;
}

.sec-news__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: #222;
    letter-spacing: 1px;
}

.sec-news__slider-wrapper {
    position: relative;
}

.sec-news__swiper {
    padding-bottom: 60px;
}

.sec-news__card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: all 0.4s ease;
}

.sec-news__image {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sec-news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sec-news__card:hover .sec-news__image img {
    transform: scale(1.1);
}

.sec-news__info {
    text-align: center;
    padding: 0 10px;
}

.sec-news__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; /* Fixed height for 2 lines */
    transition: color 0.3s ease;
}

.sec-news__card:hover .sec-news__card-title {
    color: #e8d44d;
}

.sec-news__date {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.sec-news__line {
    width: 40px;
    height: 2px;
    background: #222;
    margin: 0 auto;
    transition: width 0.3s ease, background 0.3s ease;
}

.sec-news__card:hover .sec-news__line {
    width: 80px;
    background: #e8d44d;
}

/* Pagination Styles */
.sec-news__pagination.swiper-pagination-bullets {
    bottom: 10px;
}

.sec-news__pagination .swiper-pagination-bullet {
    background: #000;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.sec-news__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #e8d44d;
    width: 15px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .sec-news {
        padding: 80px 0;
    }
}

@media (max-width: 549px) {
    .sec-news {
        padding: 50px 0;
    }

    .sec-news__title {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: left;
    }

    .sec-news__card-title {
        font-size: 14px;
        height: 2.8em;
    }
}
