﻿#faq-section-container {
    margin-top: 2vw;
}

#faq-section-title {
    background-image: url(../../../images/BoxMaker/Desktop/faq.png);
    background-repeat: no-repeat;
    background-position: right center;
    background-position-x: 50vw;
    background-size: auto 68%;
    padding-right: 2.75vw;
    text-align: center;
    color: white;
    font-size: 2.24vw;
    font-weight: 500;
    margin-bottom: 2vw;
}

.faq {
    margin-top: 1vw;
    transition: all 0.3s ease-in-out;
}

.faq-title {
    position: relative;
    cursor: pointer;
    background-color: white;
    color: #282828;
    font-size: 1.42vw;
    font-weight: 600;
    padding: 0.4vw 1.4vw;
    border-radius: 1.5vw;
    box-sizing: border-box;
    margin-right: 4.5vw;
    width: calc(100% - 8.3vw);
    padding-left: 3vw; /* فضای کافی برای پیکان در سمت چپ */
    transition: border-radius 0.3s ease;
}

    .faq-title::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 1vw; /* قرارگیری پیکان در سمت چپ */
        transform: translateY(-50%) rotate(0deg); /* حالت اولیه: پایین */
        width: 2vw;
        height: 2vw;
        background-image: url(../../../images/BoxMaker/Desktop/faq-open.png); /* تصویر جدید پیکان */
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.3s ease;
    }

.faq.open .faq-title {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

    .faq.open .faq-title::before {
        transform: translateY(-50%) rotate(180deg); /* حالت باز: بالا */
    }

.faq-response {
    background-color: #282828;
    color: white;
    font-size: 1.39vw;
    text-align: justify;
    border-bottom-right-radius: 1.5vw;
    border-bottom-left-radius: 1.5vw;
    padding: 0 1.6vw;
    max-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: calc(100% - 8.3vw);
    margin-right: 4.5vw;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq.open .faq-response {
    max-height: 1000px;
    padding-top: 0.75vw;
    padding-bottom: 0.75vw;
}
