/* --- 1. CONTAINER (Hỗ trợ bo góc) --- */
.tnd-banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Quan trọng: Để border-radius cắt ảnh */
    /* border-radius sẽ được PHP inject vào đây */
}

.tnd-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- 2. PAGINATION (Style Viên Thuốc) --- */
.tnd-swiper .swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

.tnd-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tnd-swiper .swiper-pagination-bullet-active {
    width: 18px;
    height: 6px;
    background: #ffffff !important;
    border-radius: 3px;
}

/* --- 3. ARROWS (Style Bán Nguyệt Cố Định) --- */

.tnd-swiper .swiper-button-next, 
.tnd-swiper .swiper-button-prev {
    width: 35px;  
    height: 70px;
    background-color: rgba(0, 0, 0, 0.15);
    color: #fff !important;
    margin-top: 0;
    transform: translateY(-50%);
    top: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 20;
    backdrop-filter: blur(2px);
}

/* --- PREV (Trái) --- */
.tnd-swiper .swiper-button-prev {
    left: 0; 
    border-radius: 0 100px 100px 0;
    justify-content: flex-start;
    padding-left: 8px; 
}

/* --- NEXT (Phải) --- */
.tnd-swiper .swiper-button-next {
    right: 0;
    border-radius: 100px 0 0 100px;
    justify-content: flex-end;
    padding-right: 8px;
}

.tnd-swiper .swiper-button-next:after, 
.tnd-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* --- HOVER EFFECTS --- */

/* 1. Hover Slider -> Hiện nút */
.tnd-banner-slider-container:hover .swiper-button-next,
.tnd-banner-slider-container:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

/* 2. Hover Button -> Chỉ đổi màu (Không to ra) */
.tnd-swiper .swiper-button-next:hover, 
.tnd-swiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    /* Ẩn nút mũi tên trên mobile */
    .tnd-swiper .swiper-button-next, 
    .tnd-swiper .swiper-button-prev {
        display: none !important;
    }

    /* Điều chỉnh vị trí Pagination thấp xuống */
    .tnd-swiper .swiper-pagination {
        bottom: 5px !important;
    }
}