/* الأنماط الأساسية وإعادة التعيين */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* يمكنك تغيير الخط هنا */
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    direction: rtl; /* للغة العربية */
    text-align: right; /* للغة العربية */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* 1. شريط التنقل العلوي */
.main-header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px; /* ضبط ارتفاع الشعار */
}

.main-nav .dropdown-menu-toggle {
    display: none; /* إخفاؤه في شاشات سطح المكتب */
    font-size: 24px;
    cursor: pointer;
}

.main-nav .nav-links {
    display: flex;
    gap: 25px;
}

.main-nav .nav-links li a {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav .nav-links li a:hover {
    color: #007bff;
}

.main-nav .nav-links .dropdown {
    position: relative;
}

.main-nav .nav-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    right: 0; /* لغة عربية */
    border-radius: 5px;
}

.main-nav .nav-links .dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-align: right; /* لغة عربية */
}

.main-nav .nav-links .dropdown-content li a:hover {
    background-color: #f1f1f1;
}

.main-nav .nav-links .dropdown:hover .dropdown-content {
    display: block;
}

/* 2. الرأس - معرض صور متحرك */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px; /* ارتفاع الشريحة */
    overflow: hidden;
    background-color: #eee; /* لون احتياطي */
}

.hero-slider .slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-slider .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* منع الصور من الانكماش */
    display: none; /* إخفاء كل الصور مبدئيًا */
}

.hero-slider .slider-image.active {
    display: block; /* عرض الصورة النشطة فقط */
}

.hero-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    z-index: 10;
}

.hero-slider .slider-nav.prev {
    right: 10px; /* لغة عربية */
}

.hero-slider .slider-nav.next {
    left: 10px; /* لغة عربية */
}

/* 3. صندوق الوصول السريع */
.quick-access-box {
    background-color: #007bff;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.quick-access-box .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-access-box .access-item {
    color: white;
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.quick-access-box .access-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.quick-access-box .access-item i {
    font-size: 40px;
    margin-bottom: 10px;
}

.quick-access-box .access-item h3 {
    font-size: 20px;
}

/* الأقسام العامة */
section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
    font-size: 28px;
    position: relative;
}
section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%; /* لغة عربية */
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

/* 4. أقسام المعلومات والبدء */
.info-start-section .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-start-section .info-box,
.info-start-section .start-journey-box {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}
.info-start-section .info-box {
    background-image: url('images/info-bg.jpg'); /* صورة خلفية جذابة */
    background-size: cover;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.info-start-section .info-box h2, .info-start-section .info-box p {
    color: white;
}
.info-start-section .info-box h2::after {
    background-color: white;
}

.info-start-section h2 {
    color: #007bff;
    margin-bottom: 15px;
}

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

.info-start-section .btn-link,
.info-start-section .btn-primary {
    display: block;
    padding: 12px 25px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-start-section .btn-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}
.info-start-section .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.info-start-section .btn-primary {
    background-color: #28a745;
    color: white;
    border: none;
}

.info-start-section .btn-primary:hover {
    background-color: #218838;
}

/* 5. الفعاليات والأنشطة */
.events-activities-section .event-categories {
    text-align: center;
    margin-bottom: 30px;
}

.events-activities-section .event-category-link {
    display: inline-block;
    background-color: #e9e9e9;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    color: #333;
    transition: background-color 0.3s ease;
}

.events-activities-section .event-category-link:hover {
    background-color: #007bff;
    color: white;
}

.events-activities-section .event-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-right: 5px solid #007bff; /* لغة عربية */
}

.events-activities-section .event-item h3 {
    margin-bottom: 5px;
}

.events-activities-section .event-item p {
    font-size: 0.9em;
    color: #666;
}

/* 6. الإعلانات */
.announcements-section .announcement-list p {
    background-color: #f9f9f9;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-right: 4px solid #ffc107; /* لغة عربية */
    border-radius: 5px;
}

.announcements-section .announcement-list a {
    color: #333;
    font-weight: 500;
}

/* 7. آخر الأخبار */
.latest-news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.latest-news-section .news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.latest-news-section .news-item:hover {
    transform: translateY(-5px);
}

.latest-news-section .news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.latest-news-section .news-item h3 {
    padding: 15px;
    font-size: 1.2em;
}

.latest-news-section .news-item h3 a {
    color: #333;
}

.latest-news-section .news-item .news-date {
    font-size: 0.85em;
    color: #777;
    padding: 0 15px 15px;
}

/* 8. أهم ما قيل عن الكلية - شريحة آراء */
.testimonials-section {
    background-color: #eaf6ff; /* لون خلفية فاتح جذاب */
}

.testimonials-section .testimonial-slider {
    position: relative;
    overflow: hidden;
    text-align: center;
    /* هذا سيحتاج إلى جافاسكريبت لجعله شريحة فعلية */
}

.testimonials-section .testimonial-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    /* سيتم تعديل هذا بواسطة JS للشرائح */
    display: none; /* إخفاء مبدئيًا */
}
.testimonials-section .testimonial-item:first-child {
    display: block; /* عرض العنصر الأول */
}

.testimonials-section .testimonial-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.testimonials-section .testimonial-item blockquote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.testimonials-section .testimonial-item p {
    font-weight: bold;
    color: #007bff;
}

/* 9. مكتبة الوسائط */
.media-library-section .media-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.media-library-section .media-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background-color: #007bff;
    color: white;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.media-library-section .media-link:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

.media-library-section .media-link i {
    font-size: 60px;
    margin-bottom: 10px;
}

.media-library-section .media-link span {
    font-size: 1.2em;
    font-weight: bold;
}

/* 10. التذييل */
.main-footer {
    background-color: #2c3e50; /* خلفية داكنة وجذابة */
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
}

.main-footer .footer-info,
.main-footer .contact-info {
    flex: 1;
    min-width: 280px;
    text-align: right; /* لغة عربية */
}

.main-footer h3, .main-footer h4 {
    color: #007bff;
    margin-bottom: 15px;
}

.main-footer p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.main-footer .contact-info i {
    margin-left: 8px; /* لغة عربية */
    color: #007bff;
}

.main-footer .social-links {
    margin-top: 20px;
}

.main-footer .social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: #007bff;
}

.main-footer .copyright {
    flex-basis: 100%;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85em;
    text-align: center;
}

/* التجاوبية (Responsive Design) - Media Queries */
@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none; /* إخفاء القائمة في الشاشات الصغيرة مبدئيًا */
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 80px; /* أو حسب ارتفاع الهيدر */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        padding: 10px 0;
    }
    .main-nav .nav-links.active {
        display: flex; /* إظهار القائمة عند التفعيل */
    }
    .main-nav .nav-links li a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }
    .main-nav .dropdown-menu-toggle {
        display: block; /* إظهار أيقونة الهامبرغر */
    }
    .main-nav .nav-links .dropdown-content {
        position: static; /* لإظهار القائمة المنسدلة ضمن القائمة العمودية */
        box-shadow: none;
        background-color: #f1f1f1;
        width: 100%;
    }
    .main-nav .nav-links .dropdown-content li a {
        padding-right: 40px; /* مسافة بادئة للتمييز */
    }

    .hero-slider {
        height: 300px;
    }

    .quick-access-box .access-item {
        flex: 1 1 45%; /* عنصرين في الصف */
    }

    .info-start-section .container {
        flex-direction: column;
    }

    .latest-news-section .news-grid {
        grid-template-columns: 1fr; /* عمود واحد في الشاشات الصغيرة */
    }

    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .main-footer .footer-info,
    .main-footer .contact-info {
        text-align: center;
    }
    .main-footer .contact-info i {
        margin-right: 8px; /* ضبط المسافة للأيقونات */
        margin-left: 0;
    }
}
