.faq-section {
    margin-top: 30px;
}

.faq-container {
    width: 320px;
    margin: auto;
}

.faq-item {
    background-color: #f9f9f9;
    margin: 10px 0px;
    border: 1px solid var(--third-color);
    padding: 5px 20px;
    border-radius: 32px;
    padding-right: 7px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question p {
    text-transform: uppercase;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.faq-toggle {
    background-color: var(--secondary-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-left: 6px;
}

.faq-toggle img {
    width: 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(90deg); /* Rotate 90 degrees */
}

.faq {
    background: var(--color-first-white);
    padding-top: 40px;
    padding-bottom: 40px;
    scroll-margin-top: 80px;
}

.faq-title h2 {
    font-size: var(--mobile-l-h2);
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.faq-text p {
    line-height: 1.3;
    color: var(--third-color);
}

.faq-question p {
    line-height: 1.2;
    color: var(--third-color);
}

.faq-slider-container {
    width: calc(100% - 40px);
    overflow-x: hidden;
    padding-left: 40px;
}

.faq-answer p {
    line-height: 1.2;
}

.faq-slider {
    display: flex;
    overflow-x: scroll;
    width: 100%;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.faq-card {
    flex: 0 0 200px;
    height: 300px;
    margin-right: 20px;
    background-color: var(--color-first-white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.faq-card:hover {
    transform: scale(1.05);
}

.faq-card:last-child {
    margin-right: 0;
}

/* Add this pseudo-element to create spacing on the right side */
.faq-slider::after {
    content: "";
    flex: 0 0 40px; /* Create a 40px wide element at the end of the slider */
}

.faq-button {
    background-color: #c6f222;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    display: flex;
}

.faq-item-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item-question span {
    width: 80%;
}

.faq-item-answer-closed {
    display: none;
}

.faq-item-answer-opened {
    display: flex;
}
