﻿/* ========== SLIDER WRAPPER ========== */
.home-new-bottom {
    width: 100%;
    padding: 40px 0;
    position: relative;
    padding-top: 0;
}

.home-newsa {
    padding: 43px 0px;
    background: #ffc53a14;
}
/* ========== SWIPER SLIDES ========== */
.swiper-slide {
    height: auto;
}

.content-new-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.options-item{
    display:none
}
.options-item svg path,.options-item2 svg path{
    fill:var(--default-color-1)
}
.home-news-item {
    display: flex;
    flex-direction: column-reverse;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* ========== IMAGE ========== */
.new-item-top {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .new-item-top img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

/* ========== TEXT AREA ========== */
.new-item-bottom {
    padding: 18px 20px;
    padding-top: 9px;
}

.new-item-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    margin-top: -2px;
}

.new-item-descript span {
    font-size: 14px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* ========== OPTIONS (DATE + VIEW) ========== */
.news-options__type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .news-options__type span {
        font-size: 13px;
        color: #777;
    }

/* ========== HOVER EFFECTS ========== */
.content-new-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

    .content-new-item:hover img {
        transform: scale(1.1);
    }

    .content-new-item:hover .new-item-title h3 {
        color: var(--default-color-1);
    }

/* ========== SWIPER NAVIGATION BUTTONS ========== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--default-color-1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
}

    /* Icon size & color */
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
        color: var(--default-color-1);
    }

/* Chỉ hiện khi hover vào toàn slider */
.home-new-bottom:hover .swiper-button-next,
.home-new-bottom:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

/* Khi hover chính nút */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 1);
}

/* ========== SWIPER PAGINATION ========== */
.swiper-pagination-bullet {
    background: var(--default-color-1);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .new-item-top {
        height: 200px;
    }
}

@media (max-width: 739px) {
    .new-item-top {
        height: 180px;
    }

    .new-item-bottom {
        padding: 15px;
    }

    .new-item-title h3 {
        font-size: 16px;
    }

    .new-item-descript span {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }

    /* Ẩn mũi tên điều hướng trên mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .home-newsa {
        padding: 20px 0px;
    }
    .home-new-bottom{
        padding-top:20px
    }
}
