/* إعدادات عامة */
body {
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8f9fa;
}

/* النافبار الأزرق الغامق */
.custom-navbar {
    background-color: #002366 !important; /* Royal Blue */
}

.custom-navbar .nav-link:hover {
    color: #ffc107 !important;
    transition: 0.3s;
}

/* عناوين الأقسام */
.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #0d6efd;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* التعديل المظبوط لمقاس الصورة */
.carousel-img {
    height: 70vh; /* أو المقاس اللي يريحك */
    width: 100%;
    object-fit: contain; /* التعديل الأهم: ده هيخلي الصورة تظهر كاملة بدون مط */
    background-color: #ffffff; /* عشان لو في فراغات تظهر بخلفية بيضاء */
}

/* السلايدر داخل البطاقات */
.card-slider-img {
    height: 220px;
    object-fit: cover;
}

/* تنسيق البطاقات */
.dept-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* قسم "عن المدرسة" */
.about-container {
    line-height: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* الفوتر وتواصل معنا */
footer i {
    color: #0d6efd;
    transition: transform 0.3s ease;
}

footer .col-md-3:hover i {
    transform: scale(1.2);
}

/* توقيع يمنى */
.text-primary {
    color: #0d6efd !important;
    letter-spacing: 1px;
}

/* إعدادات خاصة للموبايل فقط */
@media (max-width: 768px) {
    /* 1. السلايدر الرئيسي: بنقلل طوله عشان الصورة متبقاش ممطوطة */
    .carousel-img {
        height: 30vh !important; /* طول مناسب جداً لشاشة الموبايل */
        object-fit: fill;
    }

    /* 2. سلايدر البطاقات: بنصغر طوله عشان الكلام يبان تحتها */
    .card-slider-img {
        height: 150px !important;
    }

    /* 3. العناوين: بنصغر الخط شوية عشان مياخدش مساحة كبيرة */
    .section-title {
        font-size: 1.5rem;
    }

    /* 4. الهوامش: بنقلل المسافات بين الأقسام */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* تصغير حجم اسم المدرسة عشان ميزقش الزرار */
    .navbar-brand {
        font-size: 0.9rem !important; /* حجم خط أصغر للموبايل */
        white-space: normal; /* السماح للاسم بالنزول لسطر تاني لو لزم الأمر */
        max-width: 80%; /* عشان يسيب مساحة لزرار المنيو */
    }

    /* تظبيط زرار القائمة (الهمبرجر) */
    .navbar-toggler {
        padding: 4px 8px; /* تصغير حجم الزرار شوية */
    }

    /* تقليل المسافات الجانبية في النافبار */
    .custom-navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* تنسيق الصور داخل الكروت */
.dept-img {
    height: 200px; /* طول ثابت عشان الكروت تبقى قد بعضها */
    object-fit: cover; /* بيخلي الصورة تملأ المكان من غير ما تتمط */
    border-bottom: 3px solid #0d6efd; /* خط جمالي تحت الصورة */
}

.dept-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
#about .rounded-4 {
    border-radius: 20px !important;
    transition: 0.3s ease-in-out;
}

#about .rounded-4:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

#about i {
    font-size: 1.2rem;
}

#about li span {
    font-size: 0.95rem;
    line-height: 1.6;
}
/* تنسيق قسم التواصل */
.contact-item {
    padding: 20px;
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.section-title-white {
    color: white;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title-white::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #0d6efd;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon-box i {
    transition: 0.3s;
}

.contact-item:hover i {
    color: #fff !important;
    text-shadow: 0 0 10px #0d6efd;
}
}
