/* =========================================
   1. إعدادات عامة (Global Styles)
   ========================================= */
html {
    scroll-behavior: smooth;
}
/* تطبيق الخط الجديد على النسخة العربية */
[dir="rtl"], 
[dir="rtl"] body, 
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] p, 
[dir="rtl"] a, 
[dir="rtl"] button, 
[dir="rtl"] input {
    font-family: 'Almarai', sans-serif !important;
}

/* تحسين تباعد الأسطر لراحة العين في القراءة العربية */
[dir="rtl"] p {
    line-height: 1.8;
    letter-spacing: 0;
}

/* تكبير العناوين قليلاً لأن الخطوط العربية تظهر أصغر من اللاتينية */
[dir="rtl"] h1 { font-size: 2.8rem; font-weight: 800; }
[dir="rtl"] h2 { font-size: 2.2rem; font-weight: 700; }
[dir="rtl"] h3 { font-size: 1.5rem; font-weight: 700; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* =========================================
   2. القائمة العلوية (Navbar)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-direction: row-reverse; /* اللوجو يسار والروابط يمين للـ RTL */
}
/* إخفاء زر القائمة الجانبية في وضع الحاسوب */
.menu-toggle {
    display: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #EF0606;
}

.btn-nav {
    background: #EF0606;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* =========================================
   3. قسم الواجهة (Hero Section)
   ========================================= */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('assets/paner_home.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; opacity: 0.9; }

.track-box {
    margin-top: 30px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}

.track-box input {
    border: none;
    padding: 10px 20px;
    flex: 1;
    border-radius: 50px;
    outline: none;
}

.track-box button {
    background: #EF0606;
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* =========================================
   4. قسم الخدمات (Services)
   ========================================= */
.services {
    padding: 60px 8%;
    text-align: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 40px;
    color: #EF0606;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

/* =========================================
   5. قسم من نحن (About Us)
   ========================================= */
.about-section {
    padding: 80px 8%;
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: right;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: #EF0606;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   6. قسم الأسعار والجدول (Nos Tarifs)
   ========================================= */
.pricing-section {
    padding: 80px 8%;
    background-color: #f9f9f9;
    text-align: center;
}

.pricing-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.table-container {
    overflow-x: auto; /* يسمح بالتمرير الجانبي في الموبايل */
    margin-top: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    text-align: center;
}

.pricing-table thead {
    background-color: #EF0606;
    color: #fff;
}

.pricing-table th {
    padding: 20px;
    font-weight: 600;
}

.pricing-table td {
    padding: 18px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.pricing-table tbody tr:hover {
    background-color: #fff5f5;
}

.pricing-table td strong {
    color: #EF0606;
}

.pricing-table td.free {
    color: #27ae60;
    font-weight: bold;
}
/* =========================================
   8. تنسيق نهاية الصفحة المعكوس (Footer)
   ========================================= */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 8% 20px;
    margin-top: 50px;
    /* لجعل ترتيب الأعمدة يبدأ من اليسار لليمين */
    direction: ltr; 
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    /* إعادة محاذاة النصوص للداخل لتكون متوافقة مع اللغة العربية */
    direction: rtl; 
    text-align: right;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #EF0606;
    position: relative;
    padding-bottom: 10px;
}

/* الخط تحت العنوان من جهة اليمين */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #EF0606;
}

.footer-col p {
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #EF0606;
    padding-right: 5px; /* حركة بسيطة لليمين عند التمرير */
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info li i {
    color: #EF0606;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* لجعل الأيقونات تبدأ من جهة اليمين داخل عمود اليسار */
}

.social-links a {
    width: 35px;
    height: 35px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    background: #EF0606;
}

/* حقوق النشر */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
    direction: rtl;
}
/* =========================================
   تنسيق نموذج التسجيل الجديد
   ========================================= */
.auth-section {
    padding: 80px 8%;
    background: #f4f7f6;
}

.auth-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.auth-content-box {
    display: flex;
    flex-wrap: wrap;
}

.auth-info {
    flex: 1;
    background: #1a1a1a;
    color: #fff;
    padding: 60px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h2 { font-size: 2.2rem; margin-bottom: 20px; }
.auth-info p { color: #ccc; margin-bottom: 30px; line-height: 1.6; }

.auth-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-features li i { color: #EF0606; }

.auth-footer-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.auth-footer-note a { color: #EF0606; text-decoration: none; font-weight: bold; }

/* تنسيق الخانات */
.auth-form-container {
    flex: 1.5;
    padding: 50px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* خانتين في كل سطر */
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #EF0606;
    outline: none;
    box-shadow: 0 0 5px rgba(239, 6, 6, 0.1);
}

.btn-submit-register {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background: #EF0606;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-register:hover {
    background: #d40505;
    transform: translateY(-2px);
}
/* تنسيق الرابط تحت زر الإرسال */
.auth-footer-link {
    text-align: center;
    margin-top: 20px;
}

.auth-footer-link p {
    color: #666;
    font-size: 0.95rem;
}

.auth-footer-link a {
    color: #EF0606;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: 0.3s;
}

.auth-footer-link a:hover {
    text-decoration: underline;
    color: #333;
}

/* تعديل بسيط لضمان توازن القسمين */
.auth-info {
    flex: 1;
    /* إضافة الصورة هنا */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('assets/auth-bg.webp') center/cover no-repeat;
    color: #fff;
    padding: 60px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* تحسين مظهر النص فوق الصورة */
.auth-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* لزيادة وضوح العنوان */
}

.auth-info p {
    color: #eee;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
}
#pricing-section {
    scroll-margin-top: 80px; /* هذه المسافة تعادل طول القائمة العلوية لكي لا يختفي العنوان خلفها */
}
/* =========================================
   تنسيق قسم اتصل بنا (Contact)
   ========================================= */
.contact-section {
    padding: 80px 8%;
    background-color: #fff;
    scroll-margin-top: 80px;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-box {
    flex: 1;
}

.contact-info-box h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.contact-info-box h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #EF0606;
}

.contact-info-box p {
    color: #666;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: #fff;
    background: #EF0606;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.1rem;
    color: #333;
}

.contact-form-box {
    flex: 1.2;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: #EF0606;
}

.btn-send {
    background: #1a1a1a;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-send:hover {
    background: #EF0606;
}
.contact-section {
    padding: 80px 8%;
    background-color: #fff;
    scroll-margin-top: 80px;
    direction: ltr; /* نجعل الاتجاه يسار لليمين لهذا القسم خصيصاً ليناسب ترتيبك الجديد */
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info-box {
    flex: 1;
    text-align: left; /* محاذاة النصوص لليسار */
}

.contact-info-box h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0; /* الخط تحت العنوان يبدأ من اليسار */
    width: 60px;
    height: 4px;
    background: #EF0606;
}

.info-item {
    display: flex;
    flex-direction: row; /* الأيقونة يسار النص */
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-form-box {
    flex: 1.2;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
/* =========================================
   تنسيق قسم A Propos (المهمة والرؤية)
   ========================================= */
.about-details {
    padding: 60px 8%;
    background-color: #fdfdfd;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-bottom: 4px solid #eee;
    transition: 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #EF0606;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: #fff5f5;
    color: #EF0606;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 28px;
}

.about-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}
/* =========================================
   تنسيق A Propos بـ 4 خانات وصور
   ========================================= */
.about-details {
    padding: 80px 5%;
    background-color: #fff;
}

.about-grid {
    display: grid;
    /* إنشاء 4 أعمدة متساوية */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

.about-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #EF0606;
}

.about-image-wrapper {
    width: 100%;
    height: 180px; /* تحديد ارتفاع موحد للصور */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان عدم تشوه الصورة */
    transition: 0.5s;
}

.about-card:hover img {
    scale: 1.1; /* تأثير زووم خفيف عند التمرير */
}

.about-card h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}
/* تحويل عناوين البطاقات الأربعة إلى اللون الأحمر */
.about-card h3 {
    font-size: 1.25rem;
    color: #EF0606; /* تغيير اللون إلى الأحمر */
    margin-bottom: 12px;
    font-weight: 700; /* جعل الخط عريضاً ليظهر بشكل أوضح */
    text-transform: uppercase; /* اختياري: جعل الحروف كبيرة لإعطاء طابع رسمي */
    letter-spacing: 0.5px;
}

/* إضافة تأثير عند تمرير الفأرة على البطاقة (اختياري) */
.about-card:hover h3 {
    color: #1a1a1a; /* يتغير للأسود عند تمرير الفأرة ليعطي حركة تفاعلية */
    transition: 0.3s;
}
.language-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* تظهر فوق كل شيء */
    transition: 0.5s;
}

.language-box {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
}

.lang-logo { width: 150px; margin-bottom: 20px; }

.lang-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    border: 2px solid #eee;
    border-radius: 15px;
    background: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    width: 140px;
}

.btn-lang img { width: 40px; border-radius: 4px; }

.btn-lang:hover {
    border-color: #EF0606;
    background: #fff5f5;
    transform: translateY(-5px);
}

/* لإخفاء النافذة بعد الاختيار */
.language-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* تصميم النافذة بالخلفية السوداء الشفافة */
.language-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* خلفية سوداء شفافة */
    background: rgba(0, 0, 0, 0.85); 
    /* تأثير الضباب على المحتوى خلف النافذة */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: 0.5s;
}

.language-box {
    text-align: center;
    padding: 50px 40px;
    /* جعل الصندوق نفسه مائل للسواد أو أبيض ناصع للتباين */
    background: #ffffff; 
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 450px;
    width: 90%;
}

.language-box h2 {
    color: #1a1a1a;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.language-box p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    width: 150px;
    color: #333;
}

.btn-lang:hover {
    border-color: #EF0606;
    background: #fff5f5;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(239, 6, 6, 0.15);
}
.pricing-table-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-controls {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
}

.table-controls input {
    padding: 10px 15px;
    width: 300px;
    border: 1px solid #eee;
    border-radius: 5px;
    outline: none;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.styled-table evangelical thead tr {
    background-color: #EF0606; /* اللون الأزرق الداكن من الصورة */
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #f2f2f2;
    text-align: center;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* تصميم أزرار التنقل */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.page-num, .pag-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.page-num.active {
    background: #EF0606;
    color: white;
}

.page-num:hover:not(.active) {
    background: #ddd;
}
/* تصميم الحاوية والجدول */
.pricing-table-container {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* خلفية حمراء لعنوان الجدول */
.styled-table thead tr {
    background-color: #EF0606 !important; /* اللون الأحمر الخاص بهويتك */
    color: #ffffff;
}

.styled-table th {
    padding: 15px;
    font-weight: 700;
    white-space: nowrap; /* يمنع انكسار النص في العناوين */
}

/* ضبط مقاس الهاتف */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* يسمح بالتمرير الجانبي في الهواتف */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

.table-controls input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.styled-table {
    min-width: 600px; /* يضمن عدم تكدس النص في الشاشات الصغيرة */
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-num {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.page-num.active {
    background-color: #EF0606;
    color: white;
    border-color: #EF0606;
}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 8px;
    flex-wrap: wrap; /* لضمان عدم خروج الأزرار عن الشاشة في الهاتف */
}

.page-num {
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 50%; /* جعل الأزرار دائرية مثل الصورة */
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-num.active {
    background-color: #EF0606; /* الأحمر الخاص بك */
    color: white;
    border-color: #EF0606;
    box-shadow: 0 4px 10px rgba(239, 6, 6, 0.3);
}

.page-num:hover:not(.active) {
    background-color: #f8f8f8;
    border-color: #EF0606;
    color: #EF0606;
}
/* تنسيق زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px; /* المسافة من الأسفل */
    right: 30px;  /* المسافة من اليمين */
    background-color: #25d366; /* لون واتساب الرسمي */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10000; /* لضمان ظهوره فوق كل العناصر */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* تأثير عند تمرير الفأرة */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}
/* تنسيق قسم الخريطة */
.map-section {
    width: 100%;
    position: relative;
    padding-top: 50px;
    background: #fff;
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    filter: grayscale(10%) contrast(1.1); /* تأثير بصري خفيف لجعل الخريطة أجمل */
    transition: 0.5s;
}

.map-container:hover {
    filter: grayscale(0%);
}

.map-info-overlay {
    position: absolute;
    top: 20px;
    right: 8%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
    border-right: 5px solid #EF0606;
}

.map-info-overlay h3 {
    margin-bottom: 5px;
    color: #1a1a1a;
}

.map-info-overlay p {
    color: #666;
    font-size: 0.9rem;
}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    direction: ltr; /* للحفاظ على اتجاه الأسهم */
}
.pagination-container button {
    background-color: #EF0606;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
#pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap; /* يسمح بنزول الأزرار للسطر التالي في الشاشات الصغيرة جداً */
}

.page-num {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.page-num.active {
    background-color: #EF0606;
    color: white;
    border-color: #EF0606;
}

.page-num:hover:not(.active) {
    background-color: #f5f5f5;
}

/* =========================================
   7. إعدادات التجاوب (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    
    .menu-toggle {
        display: block !important;
        cursor: pointer;
    }
    nav {
        flex-direction: column;
        padding: 15px;
    }


    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
        gap: 10px;
    }

    nav ul li { margin: 0 5px; }

    .hero h1 { font-size: 2rem; }

    .track-box {
        flex-direction: column;
        background: transparent;
    }

    .track-box input, .track-box button {
        border-radius: 10px;
        width: 100%;
        margin-bottom: 10px;
        height: 50px;
    }

    .about-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .about-text { text-align: center; }
    .about-text h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .table-container {
        margin: 20px -5%;
        border-radius: 0;
    }
}

/* التجاوب مع الهاتف للمتذيل */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
    /* ابحث عن هذه الميديا في ملفك وأضف بداخلها ما يلي: */
@media (max-width: 768px) {
    
    /* 1. إظهار زر الإغلاق في الهاتف */
    .close-menu {
        display: block !important;
    }

    /* 2. تحويل القائمة الحالية إلى جانبية دون تغيير محتواها */
    nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* مخفية في اليمين */
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column !important; /* ترتيب عمودي */
        justify-content: flex-start !important;
        align-items: center;
        padding-top: 20px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 9999;
        margin-top: 0 !important; /* إلغاء المارجن الذي وضعه التصميم القديم */
    }

    /* 3. كلاس التفعيل عند الضغط */
    nav .nav-links.active {
        right: 0;
    }

    nav .nav-links li {
        margin: 15px 0 !important;
        width: 100%;
        text-align: center;
    }

    /* 4. الحفاظ على اللوجو والزر في سطر واحد */
    nav {
        flex-direction: row-reverse !important; /* الحفاظ على اللوجو يسار والزر يمين */
        justify-content: space-between !important;
        height: 70px;
    }
}
}
/* التجاوب مع الهاتف */
@media (max-width: 992px) {
    .auth-content-box { flex-direction: column; }
    .auth-info { padding: 40px; text-align: center; }
    .auth-features li { justify-content: center; }
    .auth-form-container { padding: 30px; }
    .form-grid { grid-template-columns: 1fr; } /* خانة واحدة في السطر في الهاتف */
}
/* التجاوب للهاتف */

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column-reverse;
    }

    .contact-info-box {
        text-align: center; /* جعل كل النصوص في المركز */
    }

    .info-item {
        flex-direction: column; /* تحويل الترتيب ليكون عمودي (أيقونة فوق نص) */
        justify-content: center;
        align-items: center; /* توسيط الأيقونة والنص */
        text-align: center;
        gap: 10px; /* مسافة بسيطة بين الأيقونة والنص */
        margin-bottom: 30px;
    }

    .info-item div h4 {
        margin-top: 5px;
    }

    .contact-info-box h2::after {
        left: 50%;
        transform: translateX(-50%); /* توسيط الخط الأحمر تحت العنوان */
    }
}
/* التجاوب للهاتف */
@media (max-width: 768px) {
    .about-details {
        padding: 40px 5%;
    }
    .about-card {
        padding: 30px 20px;
    }
}
/* التجاوب مع الأجهزة المختلفة */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr); /* خانتين في السطر للأجهزة اللوحية */
    }
}

@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr; /* خانة واحدة في السطر للهاتف */
    }
    .about-image-wrapper {
        height: 220px; /* تكبير الصورة قليلاً في الهاتف لتملأ العرض */
    }
}
/* تحسين شكل الجدول في الهواتف الصغيرة */
@media (max-width: 600px) {
    .styled-table th, .styled-table td {
        padding: 10px 8px;
        font-size: 0.85rem; /* تصغير الخط قليلاً ليناسب الشاشة */
    }
    
    .pricing-header h2 {
        font-size: 1.8rem;
    }
}
/* ضبط الموقع في الهواتف لكي لا يغطي عناصر هامة */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
}
/* التجاوب مع الهاتف */
@media (max-width: 768px) {
    .map-section {
        padding: 40px 5% 10px; /* تقليل المسافة في الهاتف */
    }

    .map-wrapper {
        border-radius: 15px;
        display: flex;
        flex-direction: column; /* جعل المعلومات تخرج من فوق الخريطة في الهاتف */
    }

    .map-info-box {
        position: static; /* إلغاء الوضع العائم في الهاتف لكي لا يغطي الخريطة */
        max-width: 100%;
        border-right: none;
        border-bottom: 3px solid #EF0606; /* تغيير مكان الخط الأحمر */
        border-radius: 0;
        box-shadow: none;
        background: #fdfdfd;
        text-align: center;
    }

    .map-wrapper iframe {
        height: 300px; /* تقليل الارتفاع قليلاً ليناسب شاشة الهاتف */
    }
}

/* إصلاح شامل لوضع الهاتف لفقرة إنشاء الحساب */
@media (max-width: 768px) {
    /* 1. جعل الحاوية الكبرى تتوسط الشاشة وتأخذ المساحة كاملة */
    .auth-section {
        padding: 20px 10px !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* 2. ضبط الصندوق الأبيض ليكون في المنتصف تماماً */
    .auth-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .auth-content-box {
        flex-direction: column !important; /* العناصر فوق بعضها */
        width: 100% !important;
        padding: 15px !important;
        margin: 0 auto !important;
        gap: 20px !important;
    }

    /* 3. إلغاء التوسيط الإجباري للنصوص وجعلها تتبع لغة الصفحة */
    .auth-info, .auth-form-container {
        width: 100% !important;
        text-align: initial !important; /* يتبع اتجاه الكتابة الأصلي */
    }

    /* 4. ضبط العناوين والفقرات لتبدو احترافية */
    .auth-info h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .auth-info p {
        margin-bottom: 20px !important;
    }

    /* 5. ضبط المميزات (النقاط) لتبدو مرتبة */
    .auth-features {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .auth-features li {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* تبدأ من البداية (يمين للعربي/يسار للفرنسي) */
        gap: 10px !important;
    }

    /* 6. ضبط شبكة المدخلات في الهاتف */
    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* خانة واحدة في كل سطر */
        gap: 15px !important;
    }
}