:root {
    --primary-color: #79a37d; 
    --secondary-color: #2c3e50; 
    --accent-color: #f3f9f4; 
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
.logo-img {
    height: 120px;       /* يمكنكِ تكبير أو تصغير الشعار من هنا */
    width: auto;        /* يحافظ على أبعاد الشعار دون تمطيط */
    display: block;     /* يضمن عدم وجود مسافات غريبة تحت الصورة */
    transition: transform 0.3s ease;
}

/* حركة بسيطة عند مرور الماوس على الشعار */
.logo-img:hover {
    transform: scale(1.05);
}

body {
    background-color: var(--white);
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Splash Screen */
#splash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; transition: opacity 0.5s ease;
}
.splash-logo { width: 150px; animation: pulse 1.5s infinite; }

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}
.top-bar-flex {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #ccc; text-decoration: none; margin-right: 15px; transition: var(--transition); }
.top-bar a:hover { color: var(--primary-color); }

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 99;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); }
.logo span { color: var(--primary-color); }

nav ul { display: flex; list-style: none; }
nav ul li { margin-right: 25px; }
nav ul li a {
    /* تنسيق الزر الجديد */
/* إخفاء شريط جوجل العلوي والحفاظ على نظافة الموقع */
#google_translate_element, .skiptranslate { display: none !important; }
body { top: 0px !important; }
    text-decoration: none; color: var(--secondary-color);
    font-weight: 500; transition: var(--transition);
}
nav ul li a:hover, nav ul li a.active { color: var(--primary-color); }

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f3f9f4 100%);
    overflow: hidden;
}
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 2.8rem; line-height: 1.3; margin-bottom: 20px; color: var(--secondary-color);
}
.hero-text h1 span { color: var(--primary-color); }
.hero-text p { font-size: 1.1rem; color: #666; margin-bottom: 30px; max-width: 500px; }

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-primary:hover { background: var(--primary-color); transform: translateY(-3px); }

/* Image Styling */
.hero-image-wrapper { flex: 1; position: relative; }
.hero-img {
    width: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل عضوي احترافي */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative; z-index: 2;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2rem; }
    nav { display: none; } /* يفضل إضافة قائمة جوال لاحقاً */
}
/* تنسيق قسم الشركاء */
.partners-ticker {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden;
}

.ticker-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

/* الخط الصغير تحت كلمة شركاء النجاح */
.ticker-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto;
    opacity: 0.5;
}

.ticker-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    gap: 80px; 
    width: max-content;
    animation: scroll 12s linear infinite; 
}

.ticker-track img {
    height: 80px; 
    width: auto;
    opacity: 0.8; 
    transition: var(--transition);
}

.ticker-track img:hover {
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.1);
}

/* أنيميشن الحركة من اليمين لليسار (RTL) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } 
}

/* توقف الحركة لما امرر  الماوس   */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}
/* تنسيق عنوان الصفحة */
/* التعديل في تنسيق عنوان الصفحة لصفحة المنصة */
.page-header {
    /* الخطوة 1: استبدال الـ background العادي بخلفية صورة */
    background-image: linear-gradient(135deg, rgba(121, 163, 125, 0.8) 0%, rgba(93, 138, 97, 0.8) 100%), 
                      url('platform.jpeg');
    
    /* الخطوة 2: ضبط خصائص الصورة لتظهر بشكل كامل */
    background-size: cover;        /* تغطية المربع بالكامل */
    background-position: center;   /* تمركز الصورة في المنتصف */
    background-repeat: no-repeat; /* عدم تكرار الصورة */
    
    color: white; /* الحفاظ على لون النص أبيض */
    padding: 100px 0; /* يمكنك زيادة الـ padding قليلاً لتظهر الصورة أكثر */
    text-align: center;
}
    
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }

/* تنسيق المحتوى */
.about-content { padding: 80px 0; background: #f9f9f9; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.about-card p {
    color: #777;
    line-height: 1.8;
}
.platform-link-container {
    text-align: center;
    margin-top: 40px;
}

.btn-platform {
    background-color: var(--secondary-color); /* الكحلي */
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px; /* مسافة بين الأيقونة والنص */
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-platform i {
    font-size: 1.4rem;
    color: var(--primary-color); /* أيقونة خضراء داخل زر كحلي */
}

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

.btn-platform:hover i {
    color: white; /* يتغير لون الأيقونة عند تمرير الماوس */
}
/* تنسيق شبكة التواصل */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* البطاقات أصغر من الخريطة */
    gap: 40px;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-right: 5px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: scale(1.02);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.info-card p {
    color: #666;
    font-weight: 500;
}

/* زر الواتساب الصغير */
.wa-link {
    display: inline-block;
    margin-top: 10px;
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* تنسيق الخريطة */
.map-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid white;
}

/* التجاوب مع الجوال */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        order: 2;
    }
}
/* تنسيق حاوي الصورة الجديد */
.director-img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 40px;
}

/* الشكل الهندسي خلف الصورة */
.director-bg-shape {
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل عضوي */
    opacity: 0.2;
    animation: morphing 8s infinite alternate;
}

.director-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 2;
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* حركة عند مرور الماوس على بطاقة المدير */
.director-card:hover .director-img {
    transform: scale(1.1);
}

.director-card:hover .director-bg-shape {
    opacity: 0.4;
    transform: rotate(90deg);
}

/* أنيميشن تشكل الخلفية */
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}

/* --- تطوير الأيقونات لتكون أكثر احترافية --- */
.card-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 20px; /* زوايا ناعمة بدل الدائرة */
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
}

/* تأثير زجاجي خلف الأيقونة */
.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(0deg);
    transition: 0.4s;
    z-index: -1;
}

.about-card:hover .card-icon {
    background: var(--primary-color);
    color: white;
}

.about-card:hover .card-icon::after {
    transform: rotate(15deg);
    opacity: 0.2;
}
/* تنسيقات إضافية لصفحة المنصة */
.sub-title-small {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
.logo-img {
    height: 120px;       /* يمكنكِ تكبير أو تصغير الشعار من هنا */
    width: auto;        /* يحافظ على أبعاد الشعار دون تمطيط */
    display: block;     /* يضمن عدم وجود مسافات غريبة تحت الصورة */
    transition: transform 0.3s ease;
}

/* حركة بسيطة عند مرور الماوس على الشعار */
.logo-img:hover {
    transform: scale(1.05);
}

body {
    background-color: var(--white);
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Splash Screen */
#splash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; transition: opacity 0.5s ease;
}
.splash-logo { width: 150px; animation: pulse 1.5s infinite; }

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}
.top-bar-flex {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #ccc; text-decoration: none; margin-right: 15px; transition: var(--transition); }
.top-bar a:hover { color: var(--primary-color); }

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 99;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); }
.logo span { color: var(--primary-color); }

nav ul { display: flex; list-style: none; }
nav ul li { margin-right: 25px; }
nav ul li a {
    text-decoration: none; color: var(--secondary-color);
    font-weight: 500; transition: var(--transition);
}
nav ul li a:hover, nav ul li a.active { color: var(--primary-color); }

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f3f9f4 100%);
    overflow: hidden;
}
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 2.8rem; line-height: 1.3; margin-bottom: 20px; color: var(--secondary-color);
}
.hero-text h1 span { color: var(--primary-color); }
.hero-text p { font-size: 1.1rem; color: #666; margin-bottom: 30px; max-width: 500px; }

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-primary:hover { background: var(--primary-color); transform: translateY(-3px); }

/* Image Styling */
.hero-image-wrapper { flex: 1; position: relative; }
.hero-img {
    width: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل عضوي احترافي */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative; z-index: 2;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2rem; }
    nav { display: none; } /* يفضل إضافة قائمة جوال لاحقاً */
}
/* تنسيق قسم الشركاء */
.partners-ticker {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden;
}

.ticker-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

/* الخط الصغير تحت كلمة شركاء النجاح */
.ticker-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto;
    opacity: 0.5;
}

.ticker-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    gap: 80px; 
    width: max-content;
    animation: scroll 12s linear infinite; 
}

.ticker-track img {
    height: 80px; 
    width: auto;
    opacity: 0.8; 
    transition: var(--transition);
}

.ticker-track img:hover {
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.1);
}

/* أنيميشن الحركة من اليمين لليسار (RTL) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } 
}

/* توقف الحركة لما امرر  الماوس   */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}
/* تنسيق عنوان الصفحة */
/* التعديل في تنسيق عنوان الصفحة لصفحة المنصة */
.page-header {
    /* الخطوة 1: استبدال الـ background العادي بخلفية صورة */
    background-image: linear-gradient(135deg, rgba(121, 163, 125, 0.8) 0%, rgba(93, 138, 97, 0.8) 100%), 
                      url('platform.jpeg');
    
    /* الخطوة 2: ضبط خصائص الصورة لتظهر بشكل كامل */
    background-size: cover;        /* تغطية المربع بالكامل */
    background-position: center;   /* تمركز الصورة في المنتصف */
    background-repeat: no-repeat; /* عدم تكرار الصورة */
    
    color: white; /* الحفاظ على لون النص أبيض */
    padding: 100px 0; /* يمكنك زيادة الـ padding قليلاً لتظهر الصورة أكثر */
    text-align: center;
}
    
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }

/* تنسيق المحتوى */
.about-content { padding: 80px 0; background: #f9f9f9; }

.about-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.about-card p {
    color: #777;
    line-height: 1.8;
}
.platform-link-container {
    text-align: center;
    margin-top: 40px;
}

.btn-platform {
    background-color: var(--secondary-color); /* الكحلي */
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px; /* مسافة بين الأيقونة والنص */
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-platform i {
    font-size: 1.4rem;
    color: var(--primary-color); /* أيقونة خضراء داخل زر كحلي */
}

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

.btn-platform:hover i {
    color: white; /* يتغير لون الأيقونة عند تمرير الماوس */
}
/* تنسيق شبكة التواصل */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* البطاقات أصغر من الخريطة */
    gap: 40px;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-right: 5px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: scale(1.02);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.info-card p {
    color: #666;
    font-weight: 500;
}

/* زر الواتساب الصغير */
.wa-link {
    display: inline-block;
    margin-top: 10px;
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* تنسيق الخريطة */
.map-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid white;
}

/* التجاوب مع الجوال */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        order: 2;
    }
}
/* تنسيق حاوي الصورة الجديد */
.director-img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 40px;
}

/* الشكل الهندسي خلف الصورة */
.director-bg-shape {
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل عضوي */
    opacity: 0.2;
    animation: morphing 8s infinite alternate;
}

.director-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 2;
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* حركة عند مرور الماوس على بطاقة المدير */
.director-card:hover .director-img {
    transform: scale(1.1);
}

.director-card:hover .director-bg-shape {
    opacity: 0.4;
    transform: rotate(90deg);
}

/* أنيميشن تشكل الخلفية */
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}

/* --- تطوير الأيقونات لتكون أكثر احترافية --- */
.card-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 20px; /* زوايا ناعمة بدل الدائرة */
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
}

/* تأثير زجاجي خلف الأيقونة */
.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(0deg);
    transition: 0.4s;
    z-index: -1;
}

.about-card:hover .card-icon {
    background: var(--primary-color);
    color: white;
}

.about-card:hover .card-icon::after {
    transform: rotate(15deg);
    opacity: 0.2;
}
/* تنسيقات إضافية لصفحة المنصة */
.sub-title-small {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.platform-flex-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
}

.platform-text-box { flex: 1; }
/* تنسيق حاوية الصورة لصفحة المنصة */
.platform-image-box {
    position: relative;
    overflow: hidden; /* لضمان أن الشكل المتموج لا يتجاوز الحدود */
}

/* تكوين الخلفية المتموجة (اختياري لكن يزيد من التأثير) */
.platform-image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(121, 163, 125, 0.2); /* نفس لون الـ primary-color لكن شفاف */
    border-radius: 50% 20% 70% 30% / 30% 70% 30% 70%; /* قيم الـ border-radius المتموجة */
    z-index: 1; /* لضمان أن الخلفية خلف الصورة */
}

/* تنسيق الصورة المتموجة */
.side-img {
    width: 100%;
    border-radius: 50% 20% 70% 30% / 30% 70% 30% 70%; /* نفس قيم الـ border-radius للحاوية */
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2; /* لضمان أن الصورة فوق الخلفية */
}
/* تنسيق صفحة تواصل - فورم مدنوفا الجديد */
.contact-modern-section {
    padding-top: 80px;
    background: #fff;
    text-align: center;
}

.section-header-simple h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-header-simple p {
    color: #666;
    margin-bottom: 50px;
}

/* حاوية البطاقات الطافية فوق الخريطة */
.floating-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
    margin-bottom: -80px; /* هذا المسؤول عن حركة الطفو */
}

.f-card {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* ظل ناعم */
    transition: transform 0.3s ease;
}

.f-card:hover {
    transform: translateY(-10px);
}

/* الدائرة بالأخضر الخاص بمدنوفا */
.f-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}

.f-card h3 {
    color: var(--primary-color); /* العنوان بنفس لون شعارك */
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.f-card p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* تنسيق الخريطة لتبدو خلفية */
.full-width-map {
    position: relative;
    z-index: 1;
    width: 100%;
    border-top: 1px solid #eee;
}

/* أيقونة الواتساب */
.wa-small {
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* استجابة الجوال */
@media (max-width: 768px) {
    .floating-cards-container {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
        padding: 0 20px;
    }
}
/* --- Footer Styles --- */
.main-footer {
    background-color: var(--secondary-color); /* اللون الكحلي */
    color: white;
    padding: 80px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* جعل قسم اللوجو أعرض قليلاً */
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* تحويل اللوجو للون الأبيض ليتناسب مع الخلفية الكحلية */
}

.footer-column h3 {
    color: var(--primary-color); /* العنوان بالأخضر */
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
}

/* خط صغير تحت عنوان القسم */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdc3c7;
}

.contact-details i {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-social {
        justify-content: center;
    }
    .contact-details li {
        justify-content: center;
    }
}
/* قسم لماذا تختارنا */
.why-choose-us {
    background-color: #f4f9ff; /* خلفية زرقاء فاتحة جداً مثل الصورة */
    padding: 100px 0;
    overflow: hidden;
}

.choose-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* تنسيق جهة الصورة والشكل المتموج */
.choose-image-side {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.wave-bg-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(121, 163, 125, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    z-index: 1;
    top: -10%;
    animation: morphWave 10s infinite alternate;
}

.glove-img {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* تنسيق جهة النص */
.choose-text-side {
    flex: 1;
}

.choose-text-side .sub-title {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.choose-text-side h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 25px;
}

.choose-text-side p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.choose-features {
    list-style: none;
}

.choose-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--secondary-color);
}

.choose-features i {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* أنيميشن حركة الموجة الخلفية */
@keyframes morphWave {
    0% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 60% 40% 40%; }
}

/* التجاوب للجوال */
@media (max-width: 992px) {
    .choose-grid {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    .choose-features li {
        justify-content: flex-start;
        text-align: right;
    }
}
/* --- لوحة ألوان المنصة الرقمية --- */
:root {
    --bg-light: #f8fbff;         /* خلفية الصفحة الرمادية الزرقاء */
    --card-bg: #ffffff;         /* خلفية البطاقات بيضاء ناصعة */
    --text-main: #1a2b3c;       /* الكحلي الداكن للنصوص التقنية */
    --text-sub: #6c7a89;        /* رمادي مزرقّ للنصوص الثانوية */
}

/* تنسيق الهيكل الجديد */
.platform-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* النص يمين والصورة يسار */
    gap: 80px;
    align-items: center;
}

.platform-text-side { flex: 1; }
.platform-image-side { flex: 1; display: flex; justify-content: center; }

/* تنسيق الصورة الأصغر مع الإطار المتموج */
.modern-image-wrapper {
    position: relative;
    width: 250px; /* الصورة أصغر كما طلبتِ */
    height: 250px;
    z-index: 2;
}

/* الشكل المتموج خلف الصورة */
.image-bg-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 110%;
    height: 110%;
    background: rgba(121, 163, 125, 0.15); /* لون أخضر شفاف */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: blobMorph 8s infinite alternate;
}

.platform-side-img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* لجعلها دائرية داخل الإطار */
    object-fit: cover;
    border: 5px solid white; /* إطار أبيض داخلي */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* عناوين المنصة التقنية */
.platform-modern-intro h2 {
    font-size: 2.8rem;
    color: var(--text-main);
    margin: 15px 0 25px;
    line-height: 1.3;
}

.platform-modern-intro p {
    color: var(--text-sub);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* زر دخول المنصة */
.btn-platform-saas {
    background: var(--text-main);
    color: white;
    padding: 18px 40px;
    border-radius: 50px; /* شكل بيضاوي تقني */
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-platform-saas:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* ميزات آلية العمل */
.modern-tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.tech-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* الفئات المستهدفة النظيفة */
.target-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.target-clean-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-color);
}

.target-clean-item h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* أنيميشن شكل الإطار الخلفي */
@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}

/* تجاوب الجوال */
@media (max-width: 992px) {
    .platform-grid-layout, .modern-tech-cards, .target-clean-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .platform-modern-intro h2 { font-size: 2rem; }
}
/* تنسيق شبكة الخدمات الجديدة */
.hero-grid-custom {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* الصورة يمين والنص يسار */
    gap: 50px;
    align-items: center;
}

/* تنسيق الصورة (أصغر وبحواف ناعمة) */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.services-main-img {
    width: 100%;
    max-width: 400px; /* تحديد حجم الصورة لتكون أصغر */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* تنسيق النصوص */
.services-title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.services-title span {
    color: var(--primary-color); /* تلوين كلمة "الاحترافية" بأخضر مدنوفا */
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* قائمة الميزات (Checklist) */
.features-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr; /* توزيع الميزات في عمودين */
    gap: 15px;
    margin-bottom: 40px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--secondary-color);
}

.check-item i {
    color: var(--primary-color); /* لون علامة الصح أخضر مدنوفا */
    font-size: 1.2rem;
}

/* الزر الجديد */
.btn-primary-custom {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

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

/* تنسيق بطاقات رحلة التعافي */
.steps-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.step-card-modern {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.step-card-modern:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: bold;
}

/* التوافق مع الجوال */
@media (max-width: 991px) {
    .hero-grid-custom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .features-checklist {
        grid-template-columns: 1fr;
    }
    .steps-grid-modern {
        grid-template-columns: 1fr;
    }
}
/* --- تنسيقات صفحة Tech الخاصة --- */

.tech-central-header {
    text-align: center;
    margin-bottom: 40px;
}

.tech-main-title {
    font-size: 2.8rem;
    color: var(--secondary-color);
}

.tech-main-title span {
    color: var(--primary-color);
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
}

/* إطار الصورة المبتكر في الوسط */
.tech-image-central-frame {
    position: relative;
    max-width: 450px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-geometric-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid var(--primary-color);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    opacity: 0.15;
    animation: rotateFrame 20s linear infinite; /* حركة دوران خفيفة */
}

@keyframes rotateFrame {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-img-holder {
    position: relative;
    z-index: 5;
    background: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.tech-img {
    width: 100%;
    max-width: 380px;
    border-radius: 25px;
    display: block;
}

/* تنظيم المحتوى السفلي */
.tech-details-content {
    max-width: 950px;
    margin: 0 auto;
}

.tech-intro-text {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 45px;
}

.tech-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.benefit-box {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.benefit-box i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.benefit-box h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.clean-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    color: #444;
}

.clean-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
}
/* 1. حل جذري لمنع التحرك يميناً ويساراً في كامل الموقع */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* 2. تعديل قسم الشركاء لأنه المسبب الرئيسي للمشكلة */
.partners-ticker {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden; /* يضمن عدم خروج الأنيميشن عن الحاوية */
    width: 100%;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden; /* مهم جداً هنا */
    display: flex;
    align-items: center;
}

/* 3. التأكد من أن جميع الحاويات تحسب العرض بشكل صحيح */
* {
    box-sizing: border-box;
}

/* 4. تعديل بسيط في الهيرو للجوال لمنع خروج الصور */
@media (max-width: 768px) {
    .hero-img {
        max-width: 100%;
        height: auto;
    }
    .hero-container {
        overflow: hidden;
    }
}
/* إخفاء شريط جوجل الافتراضي وأي عناصر تقنية زائدة */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}
body {
    top: 0px !important;
}
#google_translate_element {
    display: none !important;
}
.skiptranslate {
    display: none !important;
}
/* تنسيق حاوية زر الترجمة */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
    margin: 0 15px;
}

/* إخفاء شريط جوجل العلوي المزعج الذي يظهر بعد الترجمة */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* تنسيق شكل الاختيار ليكون متناسقاً مع ألوان موقعك */
.goog-te-gadget-simple {
    background-color: var(--accent-color) !important;
    border: 1px solid var(--primary-color) !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-family: 'Tajawal', sans-serif !important;
    cursor: pointer;
}

.goog-te-gadget-icon {
    display: none; /* إخفاء أيقونة جوجل الأصلية لجعل الشكل أنيق */
}