/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* ألوان الشعار */
    --primary-color: #0E4C92;    /* أزرق غامق */
    --secondary-color: #1E8449;  /* أخضر */
    --accent-color: #F39C12;     /* برتقالي */
    --text-color: #2C3E50;       /* رمادي داكن للنصوص */
    --light-bg: #F5F5F5;         /* خلفية فاتحة */
}

/* Navbar */
.navbar {
    background-color: var(--light-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-top: 56px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-section .btn-light {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-logo {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.service-content ul li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-right: 1.5rem;
}

.service-content ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 15px;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-switch i {
    margin-right: 5px;
    font-size: 1rem;
}

.lang-switch[data-lang="en"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .lang-switch {
        margin: 10px 0;
    }
}

.lang-switch.active {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

/* RTL Specific Styles */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        padding: 20px 0;
    }
    
    .hero-section h1 {
        font-size: 1.2rem;
    }
     .hero-section p {
        font-size: 1rem; /* تقليل حجم الخط للنصوص */
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 150px;
    }
}

/* Projects Section */
.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: white;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    text-align: center;
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 20px;
}

.btn-group {
    margin-bottom: 30px;
}

.btn-group .btn {
    border-radius: 25px;
    margin: 0 5px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-group .btn:hover,
.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Career Section */
.career-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
}

.career-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.career-card .job-details {
    color: #666;
    margin-bottom: 1rem;
}

.career-card .job-details i {
    color: var(--primary-color);
    margin-left: 10px;
}

.career-card .requirements {
    list-style: none;
    padding: 0;
}

.career-card .requirements li {
    padding: 5px 0;
    color: #666;
}

.career-card .requirements li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0.5em;
}

/* Blog Section */
.blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: white;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-image {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-meta i {
    color: var(--primary-color);
    margin-left: 5px;
}

.blog-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

/* تنسيق الأزرار */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0A3D7A;
    border-color: #0A3D7A;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* تنسيق العناوين */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

/* تنسيق الأقسام */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

/* تنسيق الأيقونات */
.bi {
    color: var(--primary-color);
}

/* تنسيق التذييل */
footer {
    text-align: center;
    padding: 10px;
    background-color: #007bff; /* Footer background color */
    color: white; /* Footer text color */
    position: relative; /* Positioning for footer */
    bottom: 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

/* تنسيق الصفحات */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0 60px;
    margin-bottom: 0;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* تنسيق البطاقات */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

/* تنسيق الأزرار */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

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

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

/* تنسيق القوائم */
.list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(var(--primary-color), 0.05);
}

/* تنسيق النصوص */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* تنسيق الروابط */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* تنسيق الأقسام */
section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title p {
    color: #666;
}
.dropdown-content {
    display: flex;
    justify-content: space-between;
}

.dropdown-column {
    padding: 10px; /* إضافة مساحة داخلية */
    text-align: center; /* توسيط النص */
    border: 1px solid transparent; /* إطار شفاف لإخفاء الإطار */
    transition: border-color 0.3s; /* تأثير الانتقال عند تغيير الإطار */
}
.dropdown-column:hover {
    border-color: #f8f9fa; /* تغيير لون الإطار عند التمرير */
}
.dropdown-menu {
    padding: 20px; /* إضافة مساحة داخلية للقائمة */
    background-color: #f8f9fa; /* لون خلفية فاتح */
    border: 1px solid #dee2e6; /* لون الحدود */
    border-radius: 0.25rem; /* زوايا دائرية */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* ظل خفيف */
    direction: rtl; /* اتجاه النص من اليمين لليسار */
}

@media (max-width: 1500px) {
    .dropdown-menu {
        padding: 20px; /* إضافة مساحة داخلية للقائمة */
    }
}

.dropdown-item {
    color: #343a40; /* لون النص */
    text-decoration: none; /* إزالة التسطير */
    padding: 0.5rem 1rem; /* تباعد داخلي للعناصر */
    display: block; /* جعل العناصر تأخذ كامل العرض */
}

.dropdown-item:hover {
    background-color: #e2e6ea; /* لون الخلفية عند التمرير */
    color: #0056b3; /* تغيير لون النص عند التمرير */
}

.dropdown-header {
    font-size: 1.2rem; /* حجم خط أكبر للعناوين */
    font-weight: 600; /* جعل العناوين بارزة */
    color: #333; /* لون نص داكن */
    margin-bottom: 10px; /* إضافة مساحة بين العنوان والعناصر */
}

.dropdown-item {
    padding: 10px 15px; /* إضافة مساحة داخلية للعناصر */
    color: #007bff; /* لون نص أزرق */
    font-size: 1rem; /* حجم خط للعناصر */
    transition: background-color 0.2s, color 0.2s; /* تأثير الانتقال عند التمرير */
}

.dropdown-item:hover {
    background-color: #f1f1f1; /* لون خلفية فاتحة عند التمرير فوق العنصر */
    color: #0056b3; /* لون نص أزرق داكن عند التمرير */
}

.dropdown-menu > div {
    margin-bottom: 15px; /* إضافة مساحة بين الأقسام */
}
/* إضافة هذه القاعدة لتطبيق الاتجاه من اليمين لليسار */
body {
    direction: rtl; /* اتجاه النص من اليمين إلى اليسار */
    text-align: right; /* محاذاة النص إلى اليمين */
}

/* التأكد من أن القوائم المنسدلة تتبع نفس الاتجاه */
.dropdown-menu {
    direction: rtl; /* اتجاه النص في القائمة المنسدلة */
}
.mb-4{
    text-align: center;
}
@media (max-width: 768px) {
    .hero-logo {
        width: 80px; /* تقليل ارتفاع الشعار إلى 80 بكسل */
        height: 80px; /* تقليل ارتفاع الشعار إلى 80 بكسل */
    }
}


