/* ================================================================
   صفحه سوالات متداول — faq.css
   دکتر وحید عبدالرحیمی
================================================================ */

/* ===== هیرو ===== */
.faq-hero {
    margin-top: 123px; /* header-top(47px) + #header(76px) */
    background: linear-gradient(140deg, #071a35 0%, #0d2b55 55%, #0a3d72 100%);
    padding: 68px 0 88px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.faq-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(26,86,219,.05);
    top: -240px; right: -160px;
    pointer-events: none;
}

.faq-hero::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(14,165,233,.04);
    bottom: -140px; left: -80px;
    pointer-events: none;
}

.faq-hero-inner { position: relative; z-index: 2; }

.faq-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: .82rem;
}

.faq-hero-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.faq-hero-breadcrumb a:hover { color: #60a5fa; }
.faq-hero-breadcrumb .sep { color: #475569; }
.faq-hero-breadcrumb .cur { color: #60a5fa; }

.faq-hero-eyebrow {
    display: inline-block;
    background: rgba(26,86,219,.22);
    border: 1px solid rgba(96,165,250,.3);
    color: #93c5fd;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.faq-hero h1 {
    color: #fff !important;
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    margin-bottom: 16px !important;
    line-height: 1.25 !important;
}

.faq-accent {
    background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-hero p {
    color: #94a3b8;
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ===== بخش FAQ در صفحه اول ===== */
.faq-home-section {
    padding: 80px 0 90px;
    background: #f8fafc;
}

/* ===== بدنه صفحه مستقل ===== */
.faq-body {
    background: #f8fafc;
    padding: 72px 0 90px;
}

/* ===== accordion ===== */
.faq-accordion { }

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(26,86,219,.08);
    border-color: #c7d7f7;
}

.faq-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: right;
    cursor: pointer;
    transition: background .2s;
}

.faq-toggle:focus { outline: none; box-shadow: none; }
.faq-toggle:not(.collapsed) { background: #eff6ff; }

.faq-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a56db;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.faq-toggle:not(.collapsed) .faq-num {
    background: #1a56db;
    color: #fff;
}

.faq-q-text {
    flex: 1;
    font-size: .92rem;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    line-height: 1.4;
    transition: color .2s;
}

.faq-toggle:not(.collapsed) .faq-q-text { color: #1a56db; }

.faq-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: .8rem;
    transition: transform .25s;
}

.faq-toggle:not(.collapsed) .faq-chevron {
    transform: rotate(180deg);
    color: #1a56db;
}

.faq-ans-body {
    padding: 2px 22px 20px;
    color: #475569;
    font-size: .9rem;
    line-height: 1.9;
    border-top: 1px solid #e8f0fe;
    margin: 0 16px;
}

/* ===== حالت خالی ===== */
.faq-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.faq-empty i { font-size: 3.5rem; display: block; margin-bottom: 16px; opacity: .35; }
.faq-empty p { font-size: 1rem; }

/* ===== CTA ===== */
.faq-cta {
    background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 100%);
    padding: 68px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(26,86,219,.06);
    top: -160px; left: -110px;
    pointer-events: none;
}

.faq-cta h2 {
    color: #fff !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    position: relative;
}

.faq-cta p {
    color: #94a3b8;
    font-size: .95rem;
    margin-bottom: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .faq-hero { margin-top: 29px; padding: 56px 0 72px; }
    .faq-hero h1 { font-size: 2rem !important; }
}

@media (max-width: 767.98px) {
    .faq-hero { margin-top: 112px; padding: 46px 0 60px; }
    .faq-hero h1 { font-size: 1.65rem !important; }
    .faq-body { padding: 50px 0 60px; }
    .faq-toggle { padding: 14px 16px; gap: 10px; }
    .faq-q-text { font-size: .88rem; }
}
