

/* =============================
   FAQ 
============================= */

.faq-section {
    padding: 8rem 0;
    background: #f9fafb;
}

.faq-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.6rem;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.6rem;
    color: #64748b;
    max-width: 64rem;
    margin: 0 auto 4rem;
}

.faq-search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

#faq-search {
    width: 100%;
    max-width: 50rem;
    padding: 1.4rem 1.8rem;
    border-radius: 1.2rem;
    border: 1px solid #cbd5e1;
    font-size: 1.5rem;
    background: #fff;
    transition: border-color .2s;
}

#faq-search:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 .4rem rgba(255, 0, 0, 0.041);
}

.faq-category {
    font-size: 1.7rem;
    font-weight: 700;
    color: #000000;
    margin: 6rem 0 2.4rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(239,68,68,.25);
    display: flex;
    align-items: center;
    gap: .8rem;
}


.faq-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(33rem, 1fr));
    gap: 1.6rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.faq-item:hover {
    transform: translateY(-.4rem);
    box-shadow: 0 1rem 2.4rem rgba(0,0,0,.08);
}

/* استایل کلی تگ h3 که دکمه توش قرار داره */
.faq-question {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* پاکسازی کامل استایل دکمه و تنظیم ظاهر جدید */
.faq-question button {
    width: 100%;
    padding: 1.6rem 1.8rem;
    padding-left: 4rem; /* فضای کافی برای فلش */
    font-size: 1.6rem;
    font-weight: 700;
    text-align: right;
    border: none; /* حذف کادر */
    background: none; /* حذف رنگ پیش‌فرض */
    cursor: pointer;
    color: #0f172a;
    position: relative;
    display: block;
    outline: none;
    font-family: inherit; /* استفاده از فونت اصلی سایت */
    transition: background-color 0.2s;
}

.faq-question button:hover {
    background: #f8fafc;
}

/* طراحی فلش روی دکمه */
.faq-question button::after {
    content: "⌄";
    font-size: 2.2rem;
    color: #64748b;
    position: absolute;
    left: 1.8rem;
    top: 50%;
    transform: translateY(-65%);
    transition: transform .35s;
    line-height: 1;
}

/* چرخش فلش هنگام باز شدن سوال */
.faq-item.active .faq-question button::after {
    transform: translateY(-35%) rotate(180deg);
}


.faq-answer {
    height: 0;
    overflow: hidden;
    padding: 0 1.8rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: height .35s ease;
    will-change: height;
}

.faq-answer__inner {
    padding: 1.4rem 0;
    color: #475569;
    font-size: 1.45rem;
    line-height: 2.4rem;
}

@media (max-width: 768px) {
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
    .faq-title { font-size: 2.8rem; }
}
.faq-item {
    align-self: start;
}





