/* Midori Decor - Accordion FAQ Component (Sử dụng biến thiết kế hệ thống từ global.css) */

.custom-faq-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 80px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Tiêu đề "Những câu hỏi thường gặp" */
.custom-faq-heading {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--fs-h2-m, 32px);
    line-height: var(--lh-h2-m, 1.25);
    color: var(--text-title, #374426);
    text-align: center;
    margin: 0 0 30px 0;
}

.custom-faq-container {
    font-family: var(--font-sans);
    margin: 20px 0;
}

.custom-faq-item {
    border-top: 1px solid rgba(55, 68, 38, 0.15);
    background-color: #ffffff;
    transition: var(--transition-base, background-color 0.3s ease);
}

.custom-faq-item:last-child {
    border-bottom: 1px solid rgba(55, 68, 38, 0.15);
}

.custom-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.custom-faq-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--midori-accent, #456C35);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.custom-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--midori-accent, #456C35);
    margin-left: 15px;
}

.custom-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.custom-faq-content-inner {
    padding: 0 20px 20px 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark, #333333);
    line-height: 1.6;
}

.custom-faq-content-inner p {
    margin: 0;
}

/* Khi được click mở (Active) */
.custom-faq-item.is-active {
    background-color: rgba(69, 108, 53, 0.05);
}

.custom-faq-item.is-active .custom-faq-title {
    color: var(--midori-accent-dark, #374426);
    font-weight: 700;
}

.custom-faq-item.is-active .custom-faq-icon {
    transform: rotate(180deg);
}

/* Responsive Tablet & Mobile */
@media (max-width: 991px) {
    .custom-faq-wrapper {
        margin: 50px auto;
    }
    .custom-faq-heading {
        font-size: 28px;
    }
    .custom-faq-container {
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    .custom-faq-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .custom-faq-title,
    .custom-faq-content-inner {
        font-size: 14px;
    }
    .custom-faq-header {
        padding: 15px !important;
    }
    .custom-faq-content-inner {
        padding: 0 15px 15px 15px !important;
    }
}