/* ===== FAQ (td-) ===== */
.td-faq {
    background-image: url("../../images/FAQ/faq.png");
    padding: 3rem 1rem;
    direction: rtl;
    font-family: "Vazirmatn", "Poppins", sans-serif;
}

/* Header */
.td-faq-header {
    padding: 1rem 1rem 0;
}

.td-faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.td-faq-subtitle {
    font-size: 1.1rem;
    color: #B76E79;
    margin-top: .5rem;
}

/* رزگلد تم */

/* Skeleton */
.td-faq-skeleton {
    max-width: 700px;
    margin: 0 auto 1rem;
}

.td-faq-skel-item {
    height: 64px;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: tdShimmer 1.2s infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

@keyframes tdShimmer {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

/* Container */
.td-faq-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Item (پیش‌فرض) */
.td-faq-item {
    margin-bottom: 1.5rem;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.35s ease;
    background: #fff;
    cursor: pointer;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.td-faq-item:hover {
    transform: translateY(-1px);
}

/* وقتی باز شد (سایه نورانی بزرگ و روشن رزگلد) */
.td-faq-item.active {
    border-color: rgba(183, 110, 121, 0.4);
    box-shadow: 0 0 25px rgba(183, 110, 121, 0.35),
    0 0 55px rgba(183, 110, 121, 0.25),
    0 0 95px rgba(183, 110, 121, 0.15);
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    transform: translateY(-2px);
}

/* Question */
.td-faq-question {
    padding: 1rem 2rem;
    position: relative;
    font-weight: 600;
    color: #1C1C1C;
}

.td-faq-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #1C1C1C;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
}

.td-faq-icon i {
    opacity: 1;
    transition: opacity .18s ease, transform .18s ease;
}

/* Answer (با انیمیشن نرم باز/بسته) */
.td-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    transition: max-height .5s ease, opacity .5s ease, padding .35s ease;
}

.td-faq-item.active .td-faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 2rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .td-faq-title {
        font-size: 1.5rem;
    }

    .td-faq-subtitle {
        font-size: 1rem;
    }
}
