/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
/*صورة خلفية كل لاصفحة*/
body {
    background: url('background-transparent.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
}



.special-card {
  border: 2px solid var(--secondary-color);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-direction: row; /* افتراضي: الصورة بجانب النص */
}

.special-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .special-card {
    flex-direction: column; /* على الجوال: الصورة فوق */
    text-align: center;
  }

  .special-card img {
    margin-bottom: 15px;
  }
}


 .contact-link.facebook i {
            color: #1877F2; /* لون فيسبوك */
        }

        .contact-link.whatsapp i {
            color: #25D366; /* لون الواتساب */
        }

        .contact-link.phone i {
            color: #FFC107; /* لون الهاتف (ذهبي) */
        }

        .contact-link.email i {
            color: #BB001B; /* لون البريد الإلكتروني (أحمر Gmail) */
        }
 


/* الهيدر */
       

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            width: 100px;
            height: 100px;
            border: 3px solid white;
            border-radius: 50%;
            margin-bottom: 1rem;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: rotate(360deg);
        }

       

        /* القائمة */
     


/* الهيدر */
/*صورة الراس*/
header {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background-header.jpg');
            background-size: cover;
            background-position: center;
height: 300px;
            color: white;
            padding: 1.5rem;
            text-align: center;
            position: relative;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
مكان تحكم بالصورة بالهدر
---



header p {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* القائمة الرئيسية */
nav {
    background-color: #002080;/*الشريط العلوي*/
    padding: 5px;
    text-align: center;
    border-bottom: 3px solid 	#254117; /* حدود مميزة أسفل الشريط */
 border-top: 3px solid 	#254117; /* حدود مميزة أسفل الشريط */
    box-shadow: 10 4px 6px rgba(0, 0, 0, 0.1); /* ظلال لإبراز الشريط */
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #6a0dad; /* لون عند التحويم */
    color: white;
    transform: scale(1.1); /* تكبير الزر قليلاً عند التحويم */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ظلال عند التحويم */
}

/* القسم الرئيسي */
main {
    padding: 20px;
}

.section {
    background-color: rgba(255, 255, 255, 0.9); /* خلفية شفافة */
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

.section h2 {
    color: #4b0082;
    margin-bottom: 15px;
    text-align: center;
}


/*مساحة اعلانية مض*/

#hero {
   background-color: #f2f2f2;/*مكان الصورة*/
            color: #fff;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-text {
    text-align: center;
}

.hero-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.5em;
color: #000000;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* قسم طلاب الأوائل */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.student-card {
    background-color: #f9f9f9;
    border: 2px solid #6a0dad;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding: 15px;
}

.student-card:hover {
    transform: scale(1.05);
}


.contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c3e50;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ecf0f1;
    font-size: 18px;
    margin: 0 15px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-link i {
    margin-left: 8px; /* فصل النص عن الأيقونة */
    font-size: 20px;
}

.contact-link:hover {
    background-color: #34495e;
    transform: scale(1.1);
}

.student-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid #4b0082;
}

.student-info h3 {
    font-size: 1.2rem;
    color: #4b0082;
    margin-bottom: 5px;
}

.student-info p {
    color: #555;
    font-size: 0.9rem;
}

.custom-image {
            width: 1000px; /* العرض */
            height: 500px; /* الارتفاع */
            object-fit: cover; /* للحفاظ على نسبة العرض والارتفاع دون تشويه */
            border-radius: 10px; /* لإضافة تأثير دائري للأركان */
        }
/* كروت التخصصات */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #6a0dad;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.6rem;
    color: #4b0082;
    margin-bottom: 10px;
}
.card-conte h3 {
    font-size: 1.2rem;
    color: #4b0082;
    margin-bottom: 10px;
}

.card-content p {
    color: #555;
    font-size: 0.9rem;
}
/* قسم طلاب الأوائل */




/* شريط التواصل */
.contact-bar {
    background-color: #333;/*مكان الفيسبوك وغيرة*/
    color: white;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-bar img {
    width: 30px;
    height: auto;
    filter: invert(1);
}

.footer-text {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 10px;
}

.footer-text .artistic-touch {
    color: #ff6f61;
    font-style: italic;
}
/* تحسينات اللمس */
        @media (hover: none) {
            .card:hover, nav a:hover {
                transform: none;
            }
        }

        /* الرسوم المتحركة */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.6s ease-out;
        }

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
 header {
        height: 300px; /* تقليل ارتفاع الهيدر للشاشات الصغيرة */

    }
    
    .special-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 15px;
  background-color: #fff;
  margin-top: 20px;
  flex-wrap: wrap;
}

.dean-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.dean-text {
  flex: 1 1 300px; /* يسمح بتوسيع النص أو تصغيره حسب الشاشة */
}


 


  .custom-image {
                width: 90%; /* يجعل الصورة تستجيب لعرض الشاشة الصغيرة */
            }


    header h1 {
        font-size: 2em; /* تقليل حجم العنوان */
    }
 .contact-bar {
                flex-direction: column; /* ترتيب الأيقونات بشكل عمودي */
            }

            .contact-link {
                font-size: 16px;
                margin: 5px 0;
                padding: 10px;
                text-align: center;
                width: 100%;
            }

/*.contact-link {

font-size: 0.5em; /* تقليل حجم خط التواصل */
  */

  }*/


    header p {
        font-size: 1.2em; /* تقليل حجم النص */
    }

  


    .hero-content h2 {
        font-size: 1.5em; /* تقليل حجم العنوان */
    }

    .hero-content p {
        font-size: 1em; /* تقليل حجم النص */
    }
    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        display: block;
        margin: -2px 0;
    }

    .cards {
        flex-direction: row-reverse;
        align-items: normal;
    }


    .ad-content {
        flex-direction: row;
    }

    .ad-content img {
        width: 100%;
    }
}