/* dmsl-faq-copy.css — سکشن «سوالات متداول»، عیناً از contact-us.css قالب.
   ⚠ موقت مثل dmsl-theme-base.css: هنگام انتقال به قالب حذف می‌شود، چون این قاعده‌ها از
   قبل در شیوه‌نامهٔ صفحهٔ تماس با ما هستند.
   تنها تغییر: ستارهٔ نوار مارکی با شبه‌عنصر ساخته شده، نه آیکون‌فونت، تا این نمونه به
   هیچ کتابخانهٔ آیکون بیرونی وابسته نباشد. */

.faq-section {
    position: relative;
    background-color: var(--bg-primary);
    padding: 90px 0 120px;
    overflow: hidden;
}

.faq-head {
    margin-bottom: 70px;
}

.faq-marquee {
    direction: ltr;
    overflow: hidden;
    width: 200px;
    margin-bottom: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.faq-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    animation: faqMarquee 22s linear infinite;
}

.faq-mq {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.faq-mq-star {
    width: 10px;
    height: 10px;
    background-color: var(--accent-primary);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2v20M2 12h20M4.9 4.9l14.2 14.2M19.1 4.9L4.9 19.1'/%3E%3Cpath d='M12 1.5a1.2 1.2 0 0 1 1.2 1.2v18.6a1.2 1.2 0 0 1-2.4 0V2.7A1.2 1.2 0 0 1 12 1.5Z'/%3E%3Cpath d='M1.5 12a1.2 1.2 0 0 1 1.2-1.2h18.6a1.2 1.2 0 0 1 0 2.4H2.7A1.2 1.2 0 0 1 1.5 12Z'/%3E%3Cpath d='M4.05 4.05a1.2 1.2 0 0 1 1.7 0l13.2 13.2a1.2 1.2 0 0 1-1.7 1.7L4.05 5.75a1.2 1.2 0 0 1 0-1.7Z'/%3E%3Cpath d='M19.95 4.05a1.2 1.2 0 0 1 0 1.7L6.75 18.95a1.2 1.2 0 0 1-1.7-1.7L18.25 4.05a1.2 1.2 0 0 1 1.7 0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1.5a1.2 1.2 0 0 1 1.2 1.2v18.6a1.2 1.2 0 0 1-2.4 0V2.7A1.2 1.2 0 0 1 12 1.5Z'/%3E%3Cpath d='M1.5 12a1.2 1.2 0 0 1 1.2-1.2h18.6a1.2 1.2 0 0 1 0 2.4H2.7A1.2 1.2 0 0 1 1.5 12Z'/%3E%3Cpath d='M4.05 4.05a1.2 1.2 0 0 1 1.7 0l13.2 13.2a1.2 1.2 0 0 1-1.7 1.7L4.05 5.75a1.2 1.2 0 0 1 0-1.7Z'/%3E%3Cpath d='M19.95 4.05a1.2 1.2 0 0 1 0 1.7L6.75 18.95a1.2 1.2 0 0 1-1.7-1.7L18.25 4.05a1.2 1.2 0 0 1 1.7 0Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.faq-mq-sep {
    color: var(--border-color);
}

@keyframes faqMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.faq-title {
    font-family: 'gofteh', 'dana', sans-serif;
    font-size: clamp(52px, 11vw, 150px);
    line-height: 0.92;
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.faq-t-dark {
    color: var(--text-primary);
}

.faq-t-gray {
    color: #b8bcc4;
}

/* بدنه: عکس چپ، آکاردئون راست */
.faq-body {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.faq-image {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 3 / 3;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15);
}

.faq-accordion {
    direction: rtl;
    text-align: right;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.faq-q-main {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-num {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: bold;
}

.faq-slash {
    color: var(--text-secondary);
}

.faq-q-text {
    font-family: 'gofteh', 'dana', sans-serif;
    font-size: clamp(18px, 1.8vw, 26px);
    color: var(--text-primary);
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-navy);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background var(--transition-fast);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 15px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 15px;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.faq-item:hover .faq-q-main {
    transform: translateX(-14px);
}

.faq-item:hover .faq-icon {
    transform: translateX(14px);
    background: var(--accent-primary);
}

/* ارتفاع پاسخ را جاوااسکریپت ست می‌کند. */
.faq-a {
    height: 0;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-a p {
    margin: 0;
    padding: 0 4px 28px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .faq-section {
        padding: 70px 0 90px;
    }

    .faq-head {
        margin-bottom: 45px;
    }

    .faq-body {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .faq-image {
        max-width: 420px;
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-marquee-track {
        animation: none;
    }
}
