/* ======== إعدادات عامة ======== */
body {
    margin: 0;
    /* أضفت وزن خط 800 لاستخدامه في العنوان الرئيسي */
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
     background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ======== تصميم الهيدر ======== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 0 40px;
    position: relative;
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
}

/* ======== نظام الصفوف والأعمدة المخصص للهيدر ======== */
.row {
    display: flex;
    align-items: center;
    width: 100%;
}

.col-logo {
    flex-shrink: 0;
}

.col-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* تصميم الشعار */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo .logo-en {
    font-size: 28px;
    font-weight: 700;
    color: #555;
    letter-spacing: 2px;
    line-height: 1;
}

.logo .logo-ar {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    line-height: 1;
}

/* تصميم روابط القائمة */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a.active {
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #333;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    color: #555;
}

.menu-toggle-checkbox,
.menu-toggle-label {
    display: none;
}

/*
====================================
        قسم الخدمات الإبداعي
====================================
*/
.services-section {
    padding: 80px 0;
    background-color: #fff; /* خلفية بيضاء للقسم ليبرز */
}

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

.services-grid {
    display: grid;
    /* إنشاء 3 أعمدة متساوية على الشاشات الكبيرة */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* مسافة بين البطاقات */
}
.services-grid-sp{
    display: flex;
    justify-content: center;
}


.service-card {
    color: #fff;
    border-radius: 16px; /* حواف دائرية عصرية */
    padding: 35px 30px;
    text-align: center;
    display: flex;
    flex-direction: column; /* لترتيب المحتوى عمودياً */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* === تأثيرات تفاعلية عند المرور بالفأرة === */
.service-card:hover {
    transform: translateY(-10px); /* رفع البطاقة للأعلى قليلاً */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); /* ظل أكثر وضوحاً */
}

/* === ألوان خلفية البطاقات === */
.card-register { background: linear-gradient(135deg, #37474F, #263238); }
.card-trademark { background: linear-gradient(135deg, #38A89D, #2F8B82); }
.card-translate { background: linear-gradient(135deg, #1E88E5, #1565C0); }

/* === عناصر البطاقة الداخلية === */
.card-icon {
    margin-bottom: 25px;
    height: 64px; /* لتوحيد ارتفاع الأيقونات */
}
.card-icon svg {
    opacity: 0.9;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    flex-grow: 1; /* يدفع الأزرار لأسفل البطاقة لتوحيد أماكنها */
}

.card-actions {
    margin-top: 30px; /* مسافة فوق الأزرار */
    display: flex;
    flex-direction: column; /* ترتيب الأزرار عمودياً بشكل افتراضي */
    gap: 12px;
}

/* === تصميم الأزرار داخل البطاقات === */
.card-actions .btn {
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* الزر الأساسي (الأزرق) */
.card-actions .btn.btn-primary {
    background-color: #3b99fc;
    color: #fff;
}
.card-actions .btn.btn-primary:hover {
    background-color: #fff;
    color: #3b99fc;
}

/* الزر الثانوي (الأسود) */
.card-actions .btn.btn-secondary {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}
.card-actions .btn.btn-secondary:hover {
    background-color: #fff;
    color: #333;
}


/*
====================================
    التصميم المتجاوب للخدمات
====================================
*/

/* شاشات التابلت */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr; /* تغيير الشبكة إلى عمود واحد */
    }
}

/* شاشات الموبايل (لتحسين شكل الأزرار) */
@media (max-width: 576px) {
    .card-actions {
        /* جعل الأزرار بجانب بعضها في الموبايل إذا كان هناك مساحة */
        flex-direction: row;
    }
    .card-title {
        font-size: 20px;
    }
}
/*
====================================
        تنسيق عنوان القسم
====================================
*/
.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800; /* وزن خط عريض جداً ليبرز */
    color: #333; /* لون رمادي داكن وأنيق */
    margin: 0 auto 50px auto; /* هوامش لتوسيطه وإعطاء مسافة سفلية */
    position: relative;
}

/* === الخط الزخرفي تحت العنوان === */
.section-title::after {
    content: '';
    display: block;
    width: 100px; /* عرض الخط */
    height: 4px; /* سماكة الخط */
    background-color: #3b99fc; /* استخدام اللون الأزرق المميز من الأزرار */
    border-radius: 2px;
    margin: 15px auto 0; /* مسافة بين العنوان والخط وتوسيط الخط */
}


/*
====================================
    تعديلات على التصميم المتجاوب
====================================
*/

/* شاشات التابلت والموبايل */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px; /* تصغير حجم الخط قليلاً */
        margin-bottom: 40px;
    }
    .section-title::after {
        width: 80px; /* تصغير عرض الخط الزخرفي */
    }
}

/* ======== تصميم المحتوى الرئيسي (مُحدَّث) ======== */
/*
====================================
        تصميم المحتوى الرئيسي (Hero Section)
====================================
*/
.main-content {
    background-color: #fff;
    padding: 80px 40px;
    box-sizing: border-box;

}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;

    direction: rtl; /* ضمان الاتجاه من اليمين لليسار */
}

/* === محتوى النص === */
.hero-content {
    flex: 7;
    text-align: right;
    direction: rtl;
    width: 70%;
}

.hero-greeting {
    font-size: 56px;
    font-weight: 800;
    color: #333;
    margin: 0 0 15px 0;
}

.hero-headline {
    font-size: 32px;
    font-weight: 700;
    color: #3b99fc; /* استخدام اللون الأزرق المميز */
    margin: 0 0 25px 0;
}

.hero-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 30px;
}

/* === زر النداء على الإجراء === */
.hero-cta .btn-primary {
    background-color: #3b99fc;
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 153, 252, 0.3);
    transition: all 0.3s ease;
}
.hero-cta .btn-primary:hover {
    background-color: #2a88ec;
    box-shadow: 0 6px 20px rgba(59, 153, 252, 0.4);
    transform: translateY(-2px);
}

/* === الجانب البصري === */
.hero-visual {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    width: 150px;
    height: 150px;
    opacity: 0.9;
    color: #3b99fc; /* لون الأيقونة الأزرق */
}


/*
====================================
    التصميم المتجاوب للـ Hero Section
====================================
*/

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column; /* ترتيب العناصر فوق بعضها على الشاشات الصغيرة */
        text-align: center;
    }
    .hero-content {
        text-align: center; /* توسيط النصوص */
    }

    .hero-greeting {
        font-size: 40px; /* تصغير حجم العنوان */
    }

    .hero-headline {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
        text-align: justify; /* جعل النص محاذاة */
    }
    
    .hero-visual {
        order: -1; /* جعل الأيقونة تظهر أولاً في الموبايل */
        margin-bottom: 30px;
    }
    
    .hero-icon {
        width: 200px;
        height: 200px;
    }
}

/* ======== تصميم الفوتر ======== */
.site-footer {
    display: block;
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #3b99fc;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
    width: fit-content;
    direction: ltr;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b99fc;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}


/*
====================================
    التصميم المتجاوب (Responsive Design)
====================================
*/

@media (max-width: 992px) {

    .site-header {
        padding: 0 20px;
    }

    .row {
        justify-content: space-between;
    }

    .col-nav {
        justify-content: flex-end;
        flex-grow: 0;
    }

    .main-content {
        padding: 60px 20px;
    }

    .menu-toggle-label {
        display: block;
        cursor: pointer;
        z-index: 101;
        padding: 10px;
    }
    
    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        display: block;
        background-color: #333;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        position: relative;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-icon::before {
        transform: translateY(-8px);
    }
    .hamburger-icon::after {
        transform: translateY(8px);
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eaeaea;
        padding: 10px 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 100;
    }
    
    .menu-toggle-checkbox:checked ~ .nav-links {
        transform: translateY(0);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-icon {
        background-color: transparent;
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-icon::before {
        transform: rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-icon::after {
        transform: rotate(-45deg);
        top: -3px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a.active {
        border-bottom: none;
        background-color: #f5f5f5;
    }

    /* تعديل أحجام الخطوط في المحتوى الرئيسي للموبايل */
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
}







.testimonials-section {
    padding: 80px 0;
    background-color: #f7f9fc; /* خلفية رمادية سماوية فاتحة */
    position: relative; /* ضروري لوضع الأسهم في الخارج */
}

/* تعديل بسيط على عنوان القسم ليتماشى مع التصميم الجديد */
.testimonials-section .section-title {
    color: #37474F;
}
.testimonials-section .section-title::after {
    background-color: #3b99fc;
}
.testimonials-section .section-title .title-icon {
    display: inline-block;
    color: #3b99fc;
    margin-right: 10px;
}

/* حاوية السلايدر */
.testimonials-slider {
    padding: 10px 0; /* مساحة إضافية لتظهر الظلال بشكل جيد */
}

/* === تصميم بطاقة التقييم (الجديد) === */
.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 48, 123, 0.08); /* ظل ناعم ومميز */
    text-align: right;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-quote-icon {
    font-size: 40px;
    color: #e9eef6; /* لون علامة الاقتباس الفاتح */
    line-height: 1;
    margin-bottom: 15px; /* مسافة تحت علامة الاقتباس */
    height: 25px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
}

.testimonial-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between; /* لوضع النجوم والاسم في جهتين متقابلتين */
    align-items: center;
}

.testimonial-author .author-name {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.testimonial-author .author-service {
    display: block;
    font-size: 13px;
    color: #888;
}

.testimonial-rating {
    font-size: 18px;
    color: #ffc107;
    direction: ltr; /* لضمان ترتيب النجوم من اليسار لليمين */
}

/* === تصميم أزرار التنقل (في الخارج) === */
.swiper-button-next, .swiper-button-prev {
    color: #3b99fc !important;
    background-color: transparent !important; /* بدون خلفية */
    box-shadow: none !important;
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev {
    right: -40px; /* دفع السهم الأيمن للخارج (في RTL) */
}
.swiper-button-next {
    left: -40px; /* دفع السهم الأيسر للخارج (في RTL) */
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 30px !important;
    font-weight: 800;
}

/* إخفاء الأسهم على الشاشات الصغيرة لتجنب المشاكل */
@media (max-width: 1300px) {
    .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
}


.testimonials-section { position: relative; }
.testimonials-section .container { position: relative; }

/* أزرار التنقل خارج الكروت */
#testimonials-prev, #testimonials-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #3b99fc !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto; height: auto;
  z-index: 5; /* فوق أي عناصر */
}

#testimonials-prev { right: -48px; } /* دفعة للخارج في RTL */
#testimonials-next { left:  -48px; }

#testimonials-prev:after, #testimonials-next:after {
  font-size: 30px !important;
  font-weight: 800;
}

/* إخفاؤها على الشاشات الصغيرة (نفس منطقك) */
@media (max-width: 1300px) {
  #testimonials-prev, #testimonials-next { display: none !important; }
}

/* ======== قسم اللغات المدعومة ======== */
.languages-section {
    padding: 80px 0;
    background-color: #fff;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.language-item {
    background-color: #f8f9fa;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.language-item:hover {
    transform: translateY(-5px);
    border-color: #3b99fc;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(59, 153, 252, 0.1);
}

.language-flag {
    font-size: 48px;
    margin-bottom: 20px;
}

.language-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.language-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .language-item {
        padding: 25px 15px;
    }
    
    .language-flag {
        font-size: 36px;
    }
    
    .language-item h3 {
        font-size: 16px;
    }
    
    .language-item p {
        font-size: 13px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .languages-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* تحسين تصميم قسم التواصل */
.contact-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.contact-section .container {
    max-width: 900px;
}

.contact-card {
    background-color: #fff;
    border: 1px solid #e9eef6;
    border-radius: 16px;
    padding: 35px 28px;
    box-shadow: 0 12px 30px rgba(0, 48, 123, 0.06);
    text-align: center;
}

.contact-section .section-title {
    margin-bottom: 18px;
}

.contact-description {
    font-size: 18px;
    color: #52647a;
    margin: 0 0 28px 0;
}

.contact-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-cta .btn {
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* زر واتساب */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
    background-color: #1fb357;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* زر الاتصال */
.btn-call {
    background-color: #eef3ff;
    color: #1f3b66 !important;
    border: 1px solid #d7e2ff;
}
.btn-call:hover {
    background-color: #dfe9ff;
}

@media (max-width: 768px) {
    .contact-card { padding: 28px 18px; }
    .contact-description { font-size: 16px; }
    .contact-cta .btn { width: 100%; justify-content: center; }
}

/* ======== قسم عملاؤنا (Clients Logos Swiper) ======== */
.clients-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.clients-section .section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.clients-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 0 50px 0;
    font-weight: 400;
}

.clients-swiper {
    padding: 30px 0;
}

.clients-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 120px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.client-logo:hover {
    border-color: #3b99fc;
    box-shadow: 0 8px 24px rgba(59, 153, 252, 0.15);
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* إزالة transition للتوقف الفوري */
.clients-swiper:hover .swiper-wrapper {
    transition-duration: 0ms !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clients-section {
        padding: 60px 0;
    }

    .clients-section .section-title {
        font-size: 28px;
    }

    .clients-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .client-logo {
        height: 100px;
        padding: 15px;
    }

    .client-logo img {
        max-height: 60px;
    }
}
