﻿.faq-page {
    direction: rtl;
    padding-bottom: 80px;
    background-color: #f8fafc;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    border-radius: 0 0 40px 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}
.faq-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    text-align: center;
}
.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.faq-title {
    color: #fff;
    margin: 0 0 15px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.faq-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    font-size: 1.1rem;
}

.faq-shell {
    max-width: 900px;
    margin: -80px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.faq-tools {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-search {
    position: relative;
    width: 100%;
}
.faq-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}
.faq-search input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1rem;
    padding: 16px 45px 16px 20px;
    transition: all 0.3s ease;
}
.faq-search input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 62, 244, 0.15);
}
.faq-search input::placeholder {
    color: #94a3b8;
}

.faq-filter-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.faq-filter-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-filter-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateY(-2px);
}
.faq-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(108, 62, 244, 0.3);
}

.faq-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.faq-item.hidden {
    display: none;
}

.faq-q {
    width: 100%;
    border: none;
    background: transparent;
    color: #1e293b;
    text-align: right;
    padding: 22px 25px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.faq-item:hover .faq-q {
    color: var(--primary);
}
.faq-q span {
    line-height: 1.5;
}
.faq-q i {
    color: #94a3b8;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.faq-item.open .faq-q i {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-a-inner {
    padding: 0 25px 25px;
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 500;
}

.faq-empty {
    display: none;
    text-align: center;
    padding: 50px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
}
.faq-empty.show {
    display: block;
}
