﻿/* --- PREMIUM REVIEW STYLES (GLASSMORPHISM) --- */

.review-premium-wrapper {
    background: #fff;
    padding: 60px 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    /* Bóng đổ siêu nhẹ tạo cảm giác nổi */
    box-shadow: 0 20px 60px rgba(0, 70, 186, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Background Decor (Vòng tròn mờ trang trí) */
.bg-decor-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 70, 186, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.bg-decor-2 {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* 1. Typography */
.section-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 5px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #0046ba), #00c6fb);
    border-radius: 2px;
    margin-top: 15px;
}

/* 2. Glass Card */
.review-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); /* Hiệu ứng kính mờ */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .review-glass-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 70, 186, 0.15);
        border-color: rgba(0, 70, 186, 0.2);
    }

/* 3. Image Container */
.review-img-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /* Tỉ lệ ảnh (có thể chỉnh height cố định nếu muốn đều tăm tắp) */
    height: 400px;
    background: #f8f9fa;
}

.review-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Hiển thị full ảnh không bị cắt */
    transition: transform 0.5s ease;
}

/* Hover Effect */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 120, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-zoom {
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.review-glass-card:hover .hover-overlay {
    opacity: 1;
}

.review-glass-card:hover .btn-zoom {
    transform: translateY(0);
}

.review-glass-card:hover .review-img {
    transform: scale(1.05);
}

/* 4. Custom Navigation (Nút tròn 2 bên) */
.custom-nav-btn {
    width: 0px;
    height: 0px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .custom-nav-btn:hover {
        background: var(--primary-color, #0046ba);
        color: #fff;
        box-shadow: 0 10px 20px rgba(0, 70, 186, 0.3);
    }

.carousel-control-prev.custom-nav-btn {
    left: -25px;
}
/* Đẩy ra ngoài lề chút */
.carousel-control-next.custom-nav-btn {
    right: -25px;
}

.nav-icon {
    font-size: 1.2rem;
    color: #333;
}

.custom-nav-btn:hover .nav-icon {
    color: #fff;
}

/* 5. Indicators (Thanh gạch ngang) */
#premiumReviewCarousel .carousel-indicators {
    bottom: -12px; /* Nâng lên một chút so với đáy */
    gap: 8px; /* Khoảng cách giữa các chấm */
    margin-bottom: 0;
}

    /* Style cho chấm tròn (Inactive) */
    #premiumReviewCarousel .carousel-indicators [data-bs-target] {
        box-sizing: content-box;
        flex: 0 1 auto;
        width: 0px !important; /* Ghi đè style gạch ngang của Bootstrap */
        height: 0px !important;
        padding: 0;
        margin: 0;
        text-indent: -999px;
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0.4); /* Màu trắng mờ */
        background-clip: padding-box;
        border: 0; /* Bỏ border mặc định */
        border-top: 10px solid transparent; /* Tạo vùng click ảo lớn hơn cho dễ bấm trên mobile */
        border-bottom: 10px solid transparent;
        opacity: 1; /* Bỏ độ mờ mặc định */
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation mượt */
        border-radius: 50%; /* Hình tròn */
        position: relative;
    }

        /* Xử lý hiển thị chấm tròn thực tế (để tránh border trong suốt làm to chấm) */
#premiumReviewCarousel .carousel-indicators [data-bs-target]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.4s;
}

    /* Style cho chấm Active (Hình viên thuốc) */
#premiumReviewCarousel .carousel-indicators .active {
    width: 35px !important; /* Kéo dài ra */
    background-color: transparent;
}

        #premiumReviewCarousel .carousel-indicators .active::after {
            width: 35px; /* Kéo dài phần hiển thị */
            border-radius: 10px;
            background-color: #fff; /* Màu trắng sáng */
            /* Hoặc dùng màu thương hiệu nếu nền ảnh quá sáng: */
            /* background-color: var(--primary-color, #0046ba); */
            box-shadow: 0 0 10px rgba(0,0,0,0.2); /* Đổ bóng nhẹ */
        }

    /* Hiệu ứng Hover */
    #premiumReviewCarousel .carousel-indicators [data-bs-target]:hover::after {
        background-color: rgba(255, 255, 255, 0.8);
        transform: translate(-50%, -50%) scale(1.2); /* Phóng to nhẹ khi di chuột */
    }

/* Responsive */
@media (max-width: 991px) {
    .review-premium-wrapper {
        padding: 40px 20px;
    }

    .custom-nav-btn {
        display: none;
    }
    /* Ẩn nút trên mobile cho gọn */
    .review-img-container {
        height: 350px;
    }
}
