/* ==================== */
/* صفحه سوالات متداول (FAQ) */
/* رنگ‌بندی: سفید، آبی کم، خاکستری خیلی کم */
/* ==================== */

/* ==================== هدر صفحه ==================== */
.faq-header {
    background: linear-gradient(135deg, #d4e6f2 0%, #c5dae8 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #2c5f8a;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #8aaec8;
    opacity: 0.85;
}

/* ==================== لایه‌بندی اصلی ==================== */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==================== ستون اصلی ==================== */
.faq-main {
    min-width: 0;
}

/* ==================== جستجو ==================== */
.search-box {
    max-width: 600px;
    margin: 0 auto 35px;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0eaf0;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 95, 138, 0.05);
}

.search-wrapper:focus-within {
    border-color: #8ab3d0;
    box-shadow: 0 0 0 3px rgba(107, 159, 194, 0.1);
}

.search-icon {
    position: absolute;
    right: 18px;
    color: #bcd0e0;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    padding: 14px 50px 14px 20px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #5a8bb5;
    direction: rtl;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #c5dae8;
}

.search-btn {
    background: #6b9fc2;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a8bb5;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .search-wrapper {
        flex-direction: column;
        border-radius: 24px;
        background: transparent;
        gap: 10px;
    }
    
    .search-input {
        background: #ffffff;
        border: 1px solid #e0eaf0;
        border-radius: 60px;
        padding: 12px 45px 12px 20px;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==================== دسته‌بندی‌ها ==================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}

.category-tab {
    background: #f5f8fa;
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8aaec8;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background: #e1eff7;
    color: #5a8bb5;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #d4e6f2;
    color: #2c5f8a;
    font-weight: 600;
}

/* ==================== آکاردئون سوالات ==================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #eef2f5;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.08);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c5f8a;
}

.faq-question:hover {
    background: #fafcfd;
    border-radius: 20px;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #6b9fc2;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: #d4e6f2;
    box-shadow: 0 4px 15px rgba(44, 95, 138, 0.08);
}

.faq-answer {
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

.faq-answer-inner {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #eef2f5;
    color: #8aaec8;
    line-height: 1.7;
    font-size: 0.9rem;
}

.faq-item.active .faq-answer-inner {
    display: block;
}

/* ==================== دکمه‌های مفید ==================== */
.helpful-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 10px;
}

.helpful-label {
    font-size: 0.75rem;
    color: #aac4d4;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f8fa;
    border: 1px solid #e0eaf0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8aaec8;
}

.helpful-btn:hover {
    background: #e1eff7;
    color: #2c5f8a;
    transform: translateY(-2px);
}

.helpful-yes i {
    color: #6b9fc2;
}

.helpful-no i {
    color: #c5dae8;
}

/* ==================== حالت خالی ==================== */
.empty-faq {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #eef2f5;
}

.empty-faq i {
    font-size: 4rem;
    color: #c5dae8;
    margin-bottom: 15px;
}

.empty-faq h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5f8a;
    margin-bottom: 10px;
}

.empty-faq p {
    color: #aac4d4;
    margin-bottom: 20px;
}

.btn-back-faq {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6b9fc2;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-faq:hover {
    background: #5a8bb5;
    transform: translateY(-2px);
}

/* ==================== سایدبار ==================== */
.faq-sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 30px;
    border: 1px solid #eef2f5;
    box-shadow: 0 2px 8px rgba(44, 95, 138, 0.03);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c5f8a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4e6f2;
}

.widget-title i {
    color: #6b9fc2;
}

.popular-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-faq-item {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #eef2f5;
    transition: all 0.3s ease;
}

.popular-faq-item:last-child {
    border-bottom: none;
}

.popular-faq-item:hover {
    transform: translateX(-5px);
}

.popular-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a8bb5;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-meta {
    font-size: 0.65rem;
    color: #aac4d4;
}

.popular-meta i {
    margin-left: 4px;
}

/* ==================== باکس تماس ==================== */
.contact-box {
    background: linear-gradient(135deg, #d4e6f2 0%, #c5dae8 100%);
    text-align: center;
    padding: 30px 25px;
    border-radius: 20px;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 2rem;
    color: #2c5f8a;
}

.contact-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c5f8a;
    margin-bottom: 12px;
}

.contact-box p {
    font-size: 0.85rem;
    color: #5a8bb5;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #2c5f8a;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.15);
}

/* ==================== انیمیشن‌ها ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.3s ease forwards;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 768px) {
    .faq-header {
        padding: 40px 0;
        margin-bottom: 35px;
    }
    
    .faq-question {
        padding: 15px 18px;
        font-size: 0.9rem;
    }
    
    .faq-answer-inner {
        font-size: 0.85rem;
    }
    
    .helpful-buttons {
        gap: 10px;
    }
    
    .helpful-btn {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .sidebar-widget {
        padding: 18px;
    }
    
    .contact-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
    
    .category-tab {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .helpful-label {
        width: 100%;
    }
    
    .popular-question {
        font-size: 0.8rem;
    }
}