/*!* تنسيقات عامة *!*/
/*:root {*/
/*    --primary-color: #05644D; !* أزرق هادئ *!*/
/*    --secondary-color: #57BC7A; !* أخضر ناعم *!*/
/*    --accent-color: #0A1313; !* لون مميز *!*/
/*    --success-color: #38A169; !* أخضر داكن *!*/
/*    --warning-color: #F6E05E; !* أصفر ناعم *!*/
/*    --error-color: #E53E3E; !* أحمر ناعم *!*/
/*    --text-primary: #2D3748;*/
/*    --text-secondary: #4A5568;*/
/*    --text-muted: #5A6B8A;*/
/*    --text-muted-2: #718096; !* لون رمادي فاتح *!*/
/*    --text-light: #EDF2F7; !* لون أبيض فاتح *!*/
/*    --bg-light: #F7FAFC;*/
/*    --bg-white: #FFFFFF;*/
/*    --bg-gradient: linear-gradient(135deg, #E6F0FA 0%, #E8F6F3 100%);*/
/*    --bg-gradient-mental: linear-gradient(135deg, #E6F0FA 0%, #D6EAF8 100%); !* للصحة النفسية *!*/
/*    --bg-gradient-services: linear-gradient(135deg, #E8F0FE 0%, #DBEAFE 100%); !* للخدمات *!*/
/*    --bg-gradient-blog: linear-gradient(135deg, #E6FCF5 0%, #D1FAE5 100%); !* للمدونة *!*/
/*    --bg-gradient-therapist: linear-gradient(135deg, #F0F4FF 0%, #E0E7FF 100%); !* للاستشاريين *!*/
/*    --bg-gradient-signup: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%); !* لإنشاء الحساب *!*/
/*    --bg-gradient-faq: linear-gradient(135deg, #F7FAFC 0%, #E5E7EB 100%); !* للأسئلة *!*/
/*    --bg-gradient-contact: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); !* للتواصل *!*/
/*    --bg-gradient-article: linear-gradient(135deg, #F4F4F5 0%, #E4E4E7 100%); !* للمقال *!*/
/*    --bg-body: linear-gradient(180deg, #F5F7FA 0%, #E6F0FA 100%); !* للـ body *!*/

/*    --shadow-soft: 0 4px 20px rgba(5, 100, 77, 0.1);*/
/*    --shadow-medium: 0 8px 30px rgba(5, 100, 77, 0.15);*/
/*    --border-radius: 16px;*/
/*    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
/*}*/

/* تنسيقات عامة */
:root {
    /* Primary Palette */
    --primary-color: #46837E;
    --primary-hover: #3D726D;
    --primary-active: #33615C;
    --primary-light: #F0F7F6;
    --primary-soft: rgba(70, 131, 126, 0.1);
    --primary-rgba: rgba(70, 131, 126, 0.1);
    
    /* Secondary Palette */
    --secondary-color: #6AA59F;
    --secondary-hover: #5D948E;
    --secondary-active: #4E7D78;
    --accent-color: #A9C9B1;

    /* Neutral Palette */
    --neutral-light: #F8FAF9;
    --neutral-medium: #E2E8F0;
    --neutral-dark: #2D3748;
    
    /* Backgrounds */
    --bg-page: #F8FAF9;
    --bg-section: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-body: #F8FAF9;
    --white: #FFFFFF;

    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-muted-2: #A0AEC0;
    --text-light: #FFFFFF;

    /* Status Colors */
    --success-color: #48BB78;
    --warning-color: #ECC94B;
    --error-color: #F56565;
    --info-color: #4299E1;

    /* Borders & Shadows */
    --border-color: rgba(70, 131, 126, 0.15);
    --divider-color: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 20px rgba(70, 131, 126, 0.08);
    --shadow-medium: 0 8px 30px rgba(70, 131, 126, 0.12);
    
    /* Global Config */
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html[lang="ar"] body {
    font-family: 'Tajawal', 'Amiri', sans-serif !important;
}
body {
    /*font-family: 'Tajawal', sans-serif;*/
    background: var(--bg-body); /* تدرج ديناميكي */
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');
    opacity: 0.05; /* نسيج خفيف */
    z-index: -1;
}

.font-amiri {
    font-family: 'Amiri', serif;
}

section {
    padding: 4rem 0; /* تقليل padding */
    margin: 3rem 0; /* تقليل margin */
    position: relative;
    overflow: hidden;
}
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 100, 77, 0.2), transparent);
    z-index: 1; /* فاصل بصري */
}

/* تأثيرات انتقال عامة */
a, button, .card, .service-card, .therapist-card, .faq-item, .blog-card, .signup-card, .contact-form-card, .whatsapp-icon {
    transition: var(--transition);
}

/* شريط التنقل */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 100, 77, 0.1);
    /*padding: 1rem 0;*/
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-soft);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(5, 100, 77, 0.3));
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

#languageToggle {
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    border: none;
    color: white;
    border-radius: 50px;
}

#languageToggle:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.back-to-top:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#languageToggle:active {
    animation: pulse 0.3s;
}

/* أيقونة واتساب الثابتة */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    font-size: 2rem;
    position: relative;
}

.whatsapp-icon:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(5, 100, 77, 0.3);
}

.whatsapp-icon:hover::after {
    content: 'تواصل معنا عبر واتساب';
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.whatsapp-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* تنسيقات قسم الخدمات */
.services-section {
    background: var(--bg-gradient);
}

.text-gradient-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.max-w-600 {
    max-width: 600px;
}

.service-center-card {
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    margin: 0 auto;
}

.inner-circle {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.service-card {
    height: 100%;
}

.service-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover .service-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon.bg-success { background: var(--success-color); }
.service-icon.bg-info { background: var(--accent-color); }
.service-icon.bg-warning { background: var(--warning-color); }

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
}

.service-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* تنسيقات قسم المدونة */
.blog-section {
    background: var(--bg-gradient);
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.blog-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-category.bg-success { background: var(--success-color); }
.blog-category.bg-info { background: var(--accent-color); }

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.blog-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* تنسيقات قسم الاستشاريين */
.therapist-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.therapist-img-container {
    position: relative;
    overflow: hidden;
}

.therapist-img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.8s;
}

.therapist-card:hover .therapist-img {
    transform: scale(1.05);
}

.specialty-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.specialty-badge.bg-success { background: var(--success-color); }
.specialty-badge.bg-info { background: var(--accent-color); }
.specialty-badge.bg-warning { background: var(--warning-color); }

.therapist-info {
    padding: 1.5rem;
    text-align: center;
}

.therapist-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.therapist-info .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* تنسيقات قسم إنشاء الحساب */
.signup-section {
    background: var(--bg-gradient);
}

.signup-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.signup-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.signup-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.signup-icon.bg-success { background: var(--success-color); }
.signup-icon.bg-info { background: var(--accent-color); }
.signup-icon.bg-warning { background: var(--warning-color); }

.signup-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.signup-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* تنسيقات قسم الأسئلة الشائعة */
.faq-section {
    background: var(--bg-gradient);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: rgba(5, 100, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-question h4 {
    margin: 0;
    flex-grow: 1;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: rgba(5, 100, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* تنسيقات قسم التواصل */
.contact-section {
    background: var(--bg-gradient);
}

.contact-form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-card:hover {
    box-shadow: var(--shadow-medium);
}

.contact-form .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-white);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(5, 100, 77, 0.25);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    margin-top: 1.5rem;
}

/* تأثيرات الخلفية */
.service-bg-shape-1, .therapist-bg-shape-1, .faq-bg-shape-1, .blog-bg-shape-1, .signup-bg-shape-1, .contact-bg-shape-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(5, 100, 77, 0.05), rgba(87, 188, 122, 0.05));
    border-radius: 30px;
    transform: rotate(45deg);
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.service-bg-shape-2, .therapist-bg-shape-2, .faq-bg-shape-2, .blog-bg-shape-2, .signup-bg-shape-2, .contact-bg-shape-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 209, 199, 0.05), rgba(56, 217, 169, 0.05));
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .display-4 { font-size: 1.8rem; }
    .lead { font-size: 1rem; }
    .service-center-card { width: 200px; height: 200px; }
    .inner-circle { width: 170px; height: 170px; }
    .therapist-img-container { }
    .blog-img-container { height: 150px; }
    .signup-card { margin-bottom: 1.5rem; }
    .contact-form-card { padding: 1.5rem; }
    .whatsapp-icon { width: 50px; height: 50px; font-size: 1.5rem; }
}

/* دعم RTL */
[dir="rtl"] .navbar-nav { padding-right: 0; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }



/* تنسيقات قسم المقال */
.article-section {
    background: var(--bg-gradient);
    padding: 6rem 0;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-card:hover {
    box-shadow: var(--shadow-medium);
}

.article-img-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* تنسيقات الشريط الجانبي */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-link {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* تنسيقات المقالات المقترحة */
.related-articles {
    margin-top: 3rem;
}

/* تأثيرات الخلفية */
.article-bg-shape-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(5, 100, 77, 0.05), rgba(87, 188, 122, 0.05));
    border-radius: 30px;
    transform: rotate(45deg);
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.article-bg-shape-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 209, 199, 0.05), rgba(56, 217, 169, 0.05));
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .article-img-container { height: 250px; }
    .article-title { font-size: 1.5rem; }
    .article-body { font-size: 0.9rem; }
    .article-body h2 { font-size: 1.2rem; }
    .sidebar { margin-top: 2rem; }
}


/* تنسيقات التذييل */
.footer {
    background: linear-gradient(135deg, #2D3748, #1a252f);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: #E2E8F0; /* أبيض فاتح للوضوح */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400; /* ناعم */
    margin: 0 0.6rem;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* تأثير ناعم */
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.text-light {
    color: #FFFFFF !important; /* أبيض نقي */
    font-weight: 400; /* خط خفيف لنعومة */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* تأثير ناعم */
}

.text-muted-2 {
    color: var(--text-muted-2) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #FFFFFF;
    border-radius: 50%;
    margin-left: 0.3rem;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    z-index: 2;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #FFFFFF;
    transform: scale(1.1);
}

.footer hr {
    border: none;
    border-top: 3px solid rgba(255, 255, 255, 0.4); /* خط فاصل أكبر */
    margin: 0.5rem 0;
}

.spounto-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

.spounto-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.small {
    font-size: 1rem; /* حجم أكبر */
}

/* أشكال الخلفية للتذييل */
.footer-bg-shape-1 {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(5, 100, 77, 0.2), rgba(87, 188, 122, 0.2));
    border-radius: 25px;
    transform: rotate(45deg);
    z-index: 0;
    animation: float 6s ease-in-out infinite alternate;
}

.footer-bg-shape-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(79, 209, 186, 0.2), rgba(56, 255, 169, 0.2));
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0) rotate(45deg); }
    to { transform: translateY(-8px) rotate(40deg); }
}

/* دعم RTL */
[dir="rtl"] .social-links a {
    margin-left: 0;
    margin-right: 0.3rem;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .footer .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    .footer-link {
        margin: 0 0.3rem;
    }
    .social-links {
        margin-top: 0.5rem;
    }
}


/* تحسين كارد الكاتب في الشريط الجانبي */
.therapist-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-top: 1.5rem;
    transition: var(--transition);
}
.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* تحسين الشريط الجانبي */
.sidebar {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* تحسين تأثيرات المقال */
.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}


/* قسم الصحة النفسية */
.mental-health-section {
    background: var(--bg-gradient);
    min-height: 120vh;
    /*padding-top: 80px;*/
    overflow: hidden;
}

.mental-health-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.mental-health-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.mental-health-bg-shape-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 100, 77, 0.2), transparent);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.mental-health-bg-shape-2 {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(87, 188, 122, 0.2), transparent);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

.mental-health-shape-1 {
    position: absolute;
    top: 10%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.mental-health-shape-2 {
    position: absolute;
    bottom: 15%;
    right: 15%;
    animation: float 7s ease-in-out infinite reverse;
}

.inspirational-quotes p {
    margin-bottom: 0.5rem;
    text-align: start;
}

.stats {
    margin-top: 1.5rem;
}

.stat-item {
    min-width: 120px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: end;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* دعم RTL */
[dir="rtl"] .mental-health-section .inspirational-quotes i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .mental-health-section .testimonial-card p,
[dir="rtl"] .mental-health-section .testimonial-card h6 {
    text-align: end;
}

[dir="rtl"] .mental-health-section .rating {
    display: flex;
    justify-content: flex-end;
}

/* الـ Animations */
.animate-on-scroll {
    opacity: 0;
}

.visible {
    opacity: 1 !important;
}

.animate__animated {
    animation-duration: 1.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__zoomIn {
    animation-name: zoomIn;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* متجاوب */
@media (max-width: 991px) {
    .mental-health-img {
        margin-top: 2rem;
        max-width: 100%;
    }
    .mental-health-section {
        min-height: auto;
        padding-bottom: 3rem;
    }
    .stats {
        justify-content: center !important;
    }
    .mental-health-section .inspirational-quotes p,
    .mental-health-section .testimonial-card p,
    .mental-health-section .testimonial-card h6 {
        text-align: center !important;
    }
    .mental-health-section .rating {
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .mental-health-section .display-3 {
        font-size: 2.5rem;
    }
    .mental-health-section .lead {
        font-size: 1rem;
    }
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
}

.select2-therapist-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.form-select {
    padding: 0.75rem 1.25rem;
    height: calc(2.25rem + 2px);
    line-height: 1.5;
}
