.faq-categories-sidebar {
        order: -1 !important;
}

.faq-content-container {
        order: 0 !important;
}

.faq-category-item {
    position: relative;
}

.faq-category-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-bottom: 3px solid #F8F9FC;
    pointer-events: none;
    z-index: 1;
}

.ec-layoutRole .ec-layoutRole__main {
    width: 100%;
    background-color: #F8F9FC;
}

.faq-container.faq-reverse {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}

.faq-categories-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    width: 247px;
    max-height: calc(100vh - 40px);
    background-color: #FFFFFF;
    overflow-y: auto;
    border-radius: 12px;
    flex: 0 0 247px;
    margin-top: 80px;
}

.faq-content {
    flex: 1;
    overflow-y: auto;
    margin-left: 42px;
}

.faq-section {
    padding-top: 20px;
    display: block;
}


.faq-category-item.faq-active {
    font-weight: bold;
}


.faq-category-item a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.faq-category-item a img {
    margin-right: 10px;
}

.faq-container {
    display: flex;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}


/* Sidebar bên phải */
.faq-categories-sidebar.faq-sidebar-right {
    width: 250px;
    background-color: #fff;
    padding: 20px 0 0 0;
    border: 2px solid #e2e0e0;
    margin-left: 2rem;
}

.faq-categories-sidebar h2 {
    color: #1FBAA1;
    font-size: 24px;
    padding: 0 15px 10px;
    margin: 0 0 10px;
}

.faq-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faq-category-item {
    display: flex;
    align-items: center;
    padding: 16px 2px;
    cursor: pointer;
    transition: background-color 0.faq-2s;
}

.faq-category-item img {
    width: 24px;
    height: 24px;
}

.faq-category-item.faq-active {
    border-left: 3px solid #1FBAA1;
}

.faq-section.faq-active {
    display: block;
}

.faq-section-title {
    font-size: 23px;
    display: flex;
    align-items: center;
    color: #23272F;
    font-weight: bold;
}

.faq-section-title img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Question/Answer styling */
.faq-question {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-answer-text {
    color: #23272F;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

.faq-question-header {
    display: flex;
    align-items: center;
    padding: 18px 20px 18px 20px;
    cursor: pointer;
    background-color: #FFFFFF;
    position: relative;
}

.faq-question-icon,
.faq-answer-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    margin-left: 10px;
    flex-shrink: 0;
    font-weight: bold;
}

.faq-answer-icon img {
    width: 40px;
    height: 40px;
}

.faq-question-icon img {
    width: 40px;
    height: 40px;

}

.faq-question-icon {
    background-color: #1FBAA1;
    color: white;
}

.faq-answer-icon {
    background-color: #666;
    color: white;
}

.faq-question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #23272F;
}

.faq-toggle-icon {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.faq-3s;
    user-select: none;

}

.faq-question-answer {
    padding: 0 20px 18px 20px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.faq-collapse:not(.faq-show) {
    display: none;
}

.faq-category-item span {
    font-size: 17px;
    font-weight: 700;
    color: #1B1F27;
}

.faq-answer-container {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 12px 12px;
    border-radius: 5px;
    background-color: #EBF5F4;
}

.faq-category-item.faq-active {
    font-weight: bold;
}

.faq-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-categories-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 4rem;
}

.faq-content {
    flex-grow: 1;
}

.faq-content-container {
    width: 827px;
    padding-left: 36px;
    padding-bottom: 120px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .faq-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        gap: 0;
        height: auto;
        flex-direction: column !important;
        padding: 0 16px 0 16px;
    }

    .faq-categories-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        z-index: 10;
        padding: 8px 0 0 0;
        border: none;
        box-shadow: none;
        margin: 0 0 12px 0;
        border-radius: 10px;
        max-width: 100vw;
        /* padding: 0 16px 0 16px; */
        background-color: #F8F9FC;
    }

    .faq-category-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .faq-category-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 0 12px 8px;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        font-size: 15px;
        margin: 0;
        border: none;
    }

    .faq-category-item a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        text-align: left;
        gap: 8px;
        color: #333;
        text-decoration: none;
        width: 100%;
        padding: 0;
    }

    .faq-category-item img {
        width: 28px;
        height: 28px;
    }

    .faq-section-title {
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.5;
        color: #23272F;
    }

    .faq-section {
        padding: 0px;
    }

    .faq-content-container {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .faq-content {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .faq-toggle-icon {
        font-size: 18px;
    }

    .faq-question-icon img,
    .faq-answer-icon img {
        width: 28px;
        height: 28px;
    }

    .faq-answer-container {
        margin-top: 12px;
        padding: 8px 0px;
    }

    .faq-section-title img {
        width: 28px;
        height: 28px;
    }

    .faq-question-icon,
    .faq-answer-icon {
        margin-right: 10px;
    }
}

@media (max-width: 570px) {
    .faq-category-item span{
        font-size: 14px;
    }
}

@media (max-width: 470px) {
    .faq-category-item img {
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-left: 8px;
    }
    .faq-category-item a {
        gap: 0;
    }
    
}