﻿/* --- PREMIUM FAQ STYLES (UPGRADED) --- */
/* 2. RIGHT COLUMN: FAQ CONTAINER */
.faq-wrapper {
    background: linear-gradient(135deg, var(--primary-color, #0046ba) 0%, #002a70 100%);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 70, 186, 0.2);
    display: flex;
    flex-direction: column;
}

.faq-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.faq-body {
    flex-grow: 1;
    /* Style cho component FAQ con bên trong để nó hòa hợp */
    /* Bạn có thể cần vào vcFAQs để chỉnh lại màu chữ nếu nó đang để màu đen */
}

/* Tùy chỉnh CSS cho Component FAQ con (giả sử nó dùng accordion của bootstrap) */
.faq-wrapper .accordion-item {
    background: rgba(255, 255, 255, 0.1); /* Nền trong suốt */
    border: none;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

    .faq-wrapper .accordion-button:not(.collapsed) {
        background: rgba(255, 255, 255, 0.2);
    }

.faq-wrapper .accordion-body {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Icon mũi tên accordion sang màu trắng */
.faq-wrapper .accordion-button::after {
    filter: invert(1);
}
/* 1. Accordion Item (Thẻ bao ngoài) */
.faq-premium-list .accordion-item {
    /* Nền trong suốt + Blur nhẹ */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Viền mỏng tinh tế */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 15px; /* Tách rời các thẻ */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    /* Hiệu ứng khi Hover hoặc Active (Mở) */
    .faq-premium-list .accordion-item:hover,
    .faq-premium-list .accordion-item:has(.accordion-button:not(.collapsed)) {
        background: #fff;
        border-color: #fff;
        transform: translateY(-4px); /* Nổi lên cao hơn */
        /* Bóng đổ màu xanh nhẹ tạo chiều sâu */
        box-shadow: 0 15px 35px rgba(0, 70, 186, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
        color: var(--primary-color, #0046ba) !important;
    }

/* 2. Accordion Header (Nút bấm) */
.faq-premium-list .accordion-button {
    background: transparent;
    padding: 18px 25px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    color: #fff; /* Màu chữ khi đóng (trên nền tối) */
    font-weight: 600;
    transition: all 0.3s ease;
}

    /* Xóa icon mặc định Bootstrap */
    .faq-premium-list .accordion-button::after {
        display: none;
    }

    /* Trạng thái Mở: Đổi màu chữ */
    .faq-premium-list .accordion-button:not(.collapsed) {
        color: var(--primary-color, #0046ba);
        background: transparent;
    }

/* 3. Icon Q (Trang trí) */
.q-icon-wrapper {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.q-text {
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: -0.5px;
}

/* Khi mở: Icon Q chuyển sang Gradient */
.faq-premium-list .accordion-button:not(.collapsed) .q-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color, #0046ba), #00c6fb);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1) rotate(-10deg); /* Hiệu ứng xoay nhẹ */
    box-shadow: 0 5px 15px rgba(0, 70, 186, 0.3);
}

/* 4. Toggle Icon (+/-) */
.toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin-left: auto; /* Đẩy sang phải cùng */
}

    .toggle-icon i {
        font-size: 0.8rem;
        transition: transform 0.4s;
    }

/* Khi mở: Dấu + xoay thành x, đổi màu nền */
.faq-premium-list .accordion-button:not(.collapsed) .toggle-icon {
    background: #f0f4ff; /* Nền xanh nhạt */
    border-color: #f0f4ff;
    color: var(--primary-color, #0046ba);
    transform: rotate(135deg); /* Xoay mượt mà */
}

/* 5. Question Text */
.question-text {
    font-size: 1.05rem;
    line-height: 1.5;
    padding-right: 15px;
}

/* 6. Answer Content (Nội dung trả lời) */
.faq-premium-list .accordion-collapse {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05); /* Đường kẻ mờ ngăn cách */
}

.answer-content {
    padding: 10px; /* Thụt lề thẳng hàng với text câu hỏi */
    color: #555; /* Màu chữ xám dịu mắt */
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* --- TỐI ƯU CHO MOBILE --- */
@media (max-width: 768px) {
    .faq-premium-list .accordion-button {
        padding: 15px;
    }

    .q-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .answer-content {
        /* Giảm thụt lề trên mobile để tiết kiệm diện tích */
        padding: 10px 20px 20px 20px;
    }
}

/* --- TÙY CHỌN: DÙNG TRÊN NỀN SÁNG (WHITE BACKGROUND) --- */
/* Thêm class .on-light-bg bao ngoài nếu đặt component này trên nền trắng */
.on-light-bg .faq-premium-list .accordion-item {
    background: #fff;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.on-light-bg .faq-premium-list .accordion-button {
    color: #333;
}

.on-light-bg .q-icon-wrapper {
    background: #f3f6f9;
    border-color: #eef2f6;
    color: #555;
}

.on-light-bg .toggle-icon {
    border-color: #ddd;
    color: #888;
}

/* Khi Active trên nền sáng */
.on-light-bg .faq-premium-list .accordion-button:not(.collapsed) {
    color: var(--primary-color, #0046ba) !important;
}

/* 1. Xử lý phần Container (Giữ nguyên logic của bạn nhưng thêm color) */
.faq-premium-list .accordion-item:hover,
.faq-premium-list .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: #fff;
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 70, 186, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    /* QUAN TRỌNG: Đổi màu chữ mặc định trong item khi hover */
    color: var(--primary-color, #0046ba);
}

    /* 2. Xử lý nút bấm (Accordion Button) khi Hover vào Item cha */
    .faq-premium-list .accordion-item:hover .accordion-button {
        /* Khi hover vào ô cha, chữ trong nút chuyển thành màu Xanh (hoặc màu đen #333 tùy bạn) */
        color: var(--primary-color, #0046ba);
    }

    /* 3. Xử lý Icon Q (Q1, Q2...) khi Hover vào Item cha */
    .faq-premium-list .accordion-item:hover .q-icon-wrapper {
        /* Nền icon chuyển thành xanh nhạt */
        background: rgba(0, 70, 186, 0.1);
        /* Viền trong suốt */
        border-color: transparent;
        /* Chữ Q chuyển thành xanh đậm */
        color: var(--primary-color, #0046ba);
    }

    /* 4. Xử lý Icon Toggle (+/-) khi Hover vào Item cha */
    .faq-premium-list .accordion-item:hover .toggle-icon {
        /* Viền chuyển sang xám hoặc xanh nhạt */
        border-color: rgba(0, 70, 186, 0.2);
        /* Dấu + chuyển sang màu xanh */
        color: var(--primary-color, #0046ba);
    }

/* --- GIỮ NGUYÊN CÁC TRẠNG THÁI ACTIVE (ĐÃ MỞ) BÊN DƯỚI --- */
/* (Code cũ của bạn cho trạng thái :not(.collapsed) vẫn đúng, 
   đoạn trên chỉ bổ sung cho trạng thái Hover khi chưa mở) */

