﻿/* ================= Section FAQ nâng cấp ================= */
.faq-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 5rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Tiêu đề */
    .faq-section h2 {
        text-align: center;
        font-size: 3rem;
        margin-bottom: 4rem;
        font-weight: bold;
        background: linear-gradient(45deg, #212529, #ffc107);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
    }

        .faq-section h2::after {
            content: '';
            display: block;
            width: 100px;
            height: 5px;
            background: #ffc107;
            margin: 0.5rem auto 0;
            border-radius: 3px;
        }

/* Accordion item */
.faq-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.8rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #ffc107;
}

    .faq-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

/* Câu hỏi */
.faq-question {
    cursor: pointer;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: #212529;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        color: #ffc107;
    }

    .faq-question i {
        color: #212529;
        transition: transform 0.3s ease, color 0.3s ease;
        font-size: 1.3rem;
    }

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: #ffc107;
}

/* Câu trả lời */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.6s ease;
    padding: 0 2rem;
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
    background: rgba(255, 248, 220, 0.15);
    border-top: 1px solid rgba(255, 193, 7, 0.3);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem 2rem 2rem 2rem;
}

/* Responsive */
@media (max-width: 767px) {
    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }
}
