html,
body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

.faq-section {
    padding: 60px 20px;
    background: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.faq-navigation {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.faq-nav-wrapper {
    position: relative;
    padding: 0 40px;
    overflow: visible;
}

.faq-nav-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px 0 15px 0;
    margin: -10px 0 -15px 0;
    overscroll-behavior-x: contain;
    position: relative;
}

.faq-nav-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.faq-nav-scroll {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.faq-nav-btn {
    padding: 15px 30px;
    background-color: #fefefe;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.faq-nav-btn.active {
    color: #9C7B98;
    border-color: #9C7B98;
    font-weight: 600;
}

@media (min-width: 769px) {

    .faq-nav-wrapper::before,
    .faq-nav-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 2;
    }

    .faq-nav-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #f9f9f9, rgba(249, 249, 249, 0));
    }

    .faq-nav-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #f9f9f9, rgba(249, 249, 249, 0));
    }
}

.faq-content-wrapper {
    position: relative;
    overflow: hidden;
}

.faq-category-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-category-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-question-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-question-icon {
    width: 40px;
    height: 40px;
    background-color: #9C7B98;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-question {
    flex: 1;
    margin: 0;
}

.faq-question-button {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    gap: 15px;
}

.faq-question-button.active {
    color: #9C7B98;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon-plus,
.faq-icon-minus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-icon-plus {
    opacity: 1;
}

.faq-icon-minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.faq-question-button.active .faq-icon-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question-button.active .faq-icon-minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
    display: none;
    padding-top: 15px;
    padding-left: 55px;
}

.faq-answer.active {
    display: block;
}

.faq-answer-content {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 50px 15px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-nav-wrapper {
        padding: 0px;
    }

    .faq-nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .faq-item {
        padding: 15px 0;
    }

    .faq-question-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .faq-question-button {
        font-size: 16px;
    }

    .faq-answer {
        padding-left: 51px;
    }

    .faq-answer-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .faq-nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .faq-question-box {
        gap: 12px;
    }

    .faq-question-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .faq-question-button {
        font-size: 15px;
        gap: 12px;
    }

    .faq-answer {
        padding-left: 44px;
    }

    .faq-answer-content {
        font-size: 14px;
    }
}

@media (hover: none) and (pointer: coarse) {

    .faq-nav-scroll {
        touch-action: pan-x;
    }
}