/* ========================================================= */
/* FAQ PAGE - PREMIUM DESIGN                                 */
/* ========================================================= */

/* 1. الهيرو */
.faq-hero {
    background: #f0f9ff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
    padding: 80px 20px 100px;
    text-align: center;
}

.faq-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
}

.faq-hero p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. الحاوية الرئيسية */
.faq-main-section {
    max-width: 900px;
    margin: -50px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* مسافة قريبة بين الأسئلة */
}

/* 3. بطاقة السؤال */
.faq-item {
    background: #fff;
    border-radius: 12px; /* تم توحيد الاستدارة */
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
    border-color: #cbd5e1;
}

.faq-item.open {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
}

/* 4. رأس السؤال (يحتوي الرقم والنص والسهم) */
.faq-q {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
    user-select: none;
}

/* الجزء الأيسر (الرقم + النص) */
.faq-q-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;   /* يأخذ المساحة المتبقية */
    min-width: 0;
}

/* الدائرة (الرقم) - تم تصحيحها */
.faq-number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px; /* يمنع التمدد */
    flex-shrink: 0;  /* يمنع الانكماش */
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0;
}

/* نص السؤال */
.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

/* 5. السهم */
.faq-q i {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
    background: #0ea5e9;
    color: #fff;
}

/* 6. محتوى الجواب */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.5s ease;
    padding: 0 24px;
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0 24px 24px;
}

/* 7. زر تحميل المزيد */
.faq-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.faq-load-more-wrapper button {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-load-more-wrapper button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

.faq-load-more-wrapper button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 8. رابط التواصل السفلي */
.faq-contact-link {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1rem;
    color: #475569;
}

.faq-contact-link a {
    color: #0ea5e9;
    font-weight: 700;
    text-decoration: underline;
}