/* تنسيقات عامة */
body {
    background-color: #f7f7f7;
    font-family: 'Century Gothic', Arial, sans-serif; /* الخط الافتراضي للموقع */
}

/* تحسينات النصوص */
h2, p, .card-title, .service-title, .btn-custom, .btn-primary, .clients h2, .alert-info {
    font-family: inherit; /* الوراثة من الخط الافتراضي في body */
}

.mt-5 {
    margin-top: 6rem !important;
}


/* تنسيقات السلايدر بكامل العرض */
.full-width-carousel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
}

/* تنسيقات الصور داخل السلايدر */
.custom-img-carousel {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: transform 0.5s ease;
    object-position: center;
}

/* تأثير تكبير الصورة عند التمرير */
.carousel-item.active .custom-img-carousel:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* تحسينات لأزرار التنقل في السلايدر */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* قسم "حول" ثابت داخل السلايدر */
.carousel-about-section {
    position: absolute; /* يبقى داخل السلايدر */
    top: 75%; /* توسيطه عموديًا */
    left: 18%; /* توسيطه أفقيًا */
    transform: translate(-50%, -50%); /* مركزه تمامًا في منتصف السلايدر */
    width: 80%;
    max-width: 450px;
    background-color: rgba(133 131 131 / 65%); /* خلفية شبه شفافة */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10; /* تأكد من بقاء القسم فوق السلايدر */
    font-family: 'Century Gothic', Arial, sans-serif;
}

.carousel-about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2a9d8f;
	font-weight: 800;
}

.carousel-about-section p {
    font-size: 1rem;
    margin: 5px 0;
   /* color: #333;*/
    line-height: 1.5; /* زيادة تباعد الأسطر لتحسين القراءة */
}

/* تحسين العرض على الهاتف */
@media (max-width: 768px) {
    .carousel-about-section {
        position: absolute;
        bottom: 10px; /* وضع القسم في الأسفل */
        left: 50%;
        top: 65%;
        transform: translateX(-50%);
        width: 90%; /* عرض أكبر للقسم */
        padding: 15px; /* تقليل التباعد الداخلي قليلاً */
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
        z-index: 10;
        font-family: 'Century Gothic', Arial, sans-serif;
    }
    
    .carousel-about-section h2 {
        font-size: 1.2rem; /* تقليل حجم العنوان */
        margin-bottom: 5px;
        color: #2a9d8f;
    }
    
    .carousel-about-section p {
        font-size: 0.9rem; /* تقليل حجم النص */
        margin: 5px 0;
        color: #333;
        line-height: 1.4; /* تحسين المسافة بين الأسطر */
    }
    
    /* تحسين التباعد الداخلي في السلايدر نفسه على الجوال */
    .carousel-container {
        border-radius: 0;
    }
    
    .custom-img-carousel {
        height: 300px; /* ارتفاع أقل للصورة */
        object-fit: cover; /* لضمان تناسب الصورة مع الحجم الجديد */
    }
}

/* إعدادات عامة لقسم Vision & Mission */
.vision-mission-section {
    position: relative;
    padding: 60px 40px;
    color: #000;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border-left: 5px solid #2a9d8f;
    display: flex;
    gap: 35px;
    border-radius: 15px;
}

/* تأثيرات الخلفية */
.vision-mission-section::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: repeating-linear-gradient(
            45deg,
            rgba(42, 157, 143, 0.05),
            rgba(42, 157, 143, 0.05) 10px,
            transparent 10px,
            transparent 40px
        );
    border-radius: 15px;
    opacity: 0.2;
    z-index: -1;
}

/* تنسيق العنوان والنص */
.vision-mission-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0056b3;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 3px solid #2a9d8f;
    display: inline-block;
    padding-bottom: 5px;
}

.vision-text, .mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000;
    margin-top: 20px;
}

.vision-text p, .mission-text p {
    margin: 5px 0;
}

.vision-mission-section:hover h2 {
    color: #1a6a5a;
}

.vision-mission-section:hover .vision-text p,
.vision-mission-section:hover .mission-text p {
    color: #333;
}

.vision-mission-section:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/* تحسين صندوق الصور */
.custom-card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
	cursor: pointer;

}

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

/* تحسين الصورة داخل البطاقة */
.custom-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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


#map-container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* تحسين الأزرار */
.btn-custom {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(to right, #0056b3, #003f7f);
    transform: translateY(-2px);
}

.clients {
    background-color: #f9f9f9;
    padding: 50px 0;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.clients h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.clients img {
    max-width: 100px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}



/* تحسينات لأجهزة الموبايل */
@media (max-width: 768px) {
    .mt-5 {
        margin-top: 3rem !important;
    }
    .custom-img-carousel {
        height: 300px;
        object-fit: cover;
    }

    .carousel-container {
        border-radius: 0;
    }

    .vision-mission-section {
        padding: 30px 20px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .about-section h2, .vision-mission-section h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}

/* قسم الخدمات */
.services h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #2a9d8f;
    display: inline-block;
    padding-bottom: 10px;
}

.service-item {
    position: relative;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


/* تنسيق الصور داخل الخدمات */
.service-icon {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* تنسيق العناوين داخل قسم الخدمات */
.service-title {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.service-underline {
    width: 40%;
    height: 2px;
    background-color: #2a9d8f;
    margin: 8px auto;
}

/* تحسينات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .service-icon {
        width: 80px;
        height: 80px;
    }
    .service-title {
        font-size: 0.9rem;
    }
}

/* تنسيقات قسم Upcoming */
.upcoming h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.upcoming-container {
    overflow: hidden;
    position: relative;
}

.upcoming-row {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.upcoming-card {
    flex: 0 0 280px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

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

.custom-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.card-text {
    color: #555;
    font-size: 0.9rem;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    border: none;
    color: #333;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-btn-left {
    left: 10px; /* تعديل موضع الزر الأيسر */
}

.scroll-btn-right {
    right: 10px; /* تعديل موضع الزر الأيمن */
}

.scroll-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1); /* تكبير الزر عند التمرير عليه */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* زيادة الظل */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


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

.btn-light {
    background: #ffffff;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.card-text {
    color: #555;
    font-size: 0.9rem;
}   

    .location-btn {
        background-color: #f0f0f0;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .location-btn:hover {
        background-color: #e0e0e0;
    }

    .quick-search p {
        font-size: 0.9rem;
        color: #666;
    }  