/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/*Section Faq*/
/* --- KHAI BÁO MÀU CMYK CHUẨN THEO WEBSITE CỦA BẠN --- */
:root {
    --nm-cyan: #00ADEF;
    --nm-magenta: #EC008C;
    --nm-yellow: #FFF200;
    --nm-black: #231F20;
}

/* --- TỔNG THỂ KHUNG CHỨA --- */
.nm-faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

/* --- TỪNG MỤC CÂU HỎI (ITEM) --- */
.nm-faq-item {
    border: 1px solid #e5e5e5;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
}

/* Hiệu ứng di chuột (Hover) */
.nm-faq-item:hover {
    border-color: var(--nm-magenta);
    box-shadow: 0 5px 15px rgba(236, 0, 140, 0.1);
    transform: translateY(-2px);
}

/* --- TIÊU ĐỀ CÂU HỎI (SUMMARY) --- */
.nm-faq-question {
    background-color: #ffffff;
    padding: 18px 50px 18px 25px;
    font-weight: 600;
    font-size: 16px;
    color: var(--nm-black);
    cursor: pointer;
    list-style: none; /* Ẩn mũi tên mặc định của trình duyệt */
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

/* Ẩn mũi tên mặc định trên Safari/Chrome cũ */
.nm-faq-question::-webkit-details-marker {
    display: none;
}

/* Tạo Icon dấu cộng (+) ở bên phải câu hỏi */
.nm-faq-question::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: normal;
    color: var(--nm-cyan);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- TRẠNG THÁI ĐANG MỞ (ACTIVE) --- */
.nm-faq-item[open] {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #e5e5e5;
}

.nm-faq-item[open] .nm-faq-question {
    color: var(--nm-magenta);
    background-color: #f9fcff;
    border-bottom: 3px solid transparent;
    /* Đường viền gradient 4 màu CMYK chuẩn theo Elementor của bạn */
    border-image: linear-gradient(to right, 
        var(--nm-cyan) 25%, 
        var(--nm-magenta) 25%, 
        var(--nm-magenta) 50%, 
        var(--nm-yellow) 50%, 
        var(--nm-yellow) 75%, 
        var(--nm-black) 75%
    ) 1;
}

/* Xoay icon và đổi thành màu hồng khi mở */
.nm-faq-item[open] .nm-faq-question::after {
    content: "−";
    color: var(--nm-magenta);
    transform: translateY(-50%) rotate(180deg);
}

/* --- PHẦN NỘI DUNG TRẢ LỜI --- */
.nm-faq-content {
    padding: 20px 25px;
    background-color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

.nm-faq-content p {
    margin: 0;
}

/* --- HỖ TRỢ HIỂN THỊ TRÊN THIẾT BỊ DI ĐỘNG --- */
@media (max-width: 767px) {
    .nm-faq-question {
        padding: 15px 45px 15px 15px;
        font-size: 15px;
    }
    .nm-faq-question::after {
        right: 15px;
    }
    .nm-faq-content {
        padding: 15px;
    }
}
/* end Section */