/* ==========================================================
   SECTION FAQ KHOA HOC STYLE
   ========================================================== */

.custom-faq-container {
    font-family: var(--font-family-base, 'Montserrat', sans-serif);
    width: 100%;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
    border-bottom: none;
}

.custom-faq-item {
    border-bottom: 1px solid #e5e5e5;
    background-color: var(--color-primary, #ffffff);
    transition: background-color 0.3s ease;
}

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

.custom-faq-title {
    font-size: var(--font-size-body-l, 16px);
    font-weight: var(--font-weight-medium, 500);
    color: var(--color-text-dark, #333333);
    line-height: 1.4;
}

.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(--color-text-grey, #666666);
    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-size: var(--font-size-body-l, 16px);
    color: #4a4a4a;
    line-height: 1.6;
}

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

/* Khi được click (Active) */
.custom-faq-item.is-active {
    background-color: #F7F5E9; /* Màu nền active theo yêu cầu */
}

.custom-faq-item.is-active .custom-faq-icon {
    transform: rotate(180deg); /* Lật icon mũi tên */
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .custom-faq-title, 
    .custom-faq-content-inner {
        font-size: var(--font-size-form, 13px);
    }
    .custom-faq-header {
        padding: 15px;
    }
    .custom-faq-content-inner {
        padding: 0 15px 15px 15px;
    }
}
