@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

/* =========================================
   1. GLOBAL & VARIABLES (مستخدم في index.php)
   ========================================= */
:root {
    --primary: #3E57FD;
    --dark-primary: #1a202c;
    --secondary: #A88DFA;
    --dark: #000000;
    --light: #FFFFFF;
    --gray: #f5f5f5;
    --dark-gray: #777777;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --text-dark: #2d3748;
    --text-light: #f7fafc; 
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--gray);
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

a {
    text-decoration: none;
}

/* =========================================
   2. HEADER & NAV (مستخدم في index.php)
   ========================================= */
header {
    margin-top: 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    width: calc(100% - 20px);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header img {
    height: 30px;
    margin: 10px 0 10px 15px;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.header-container ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-container ul li {
    list-style-type: none;
    margin: 0 8px;
}

.header-container ul li a {
    color: var(--dark-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.header-container ul li a:hover {
    color: var(--light);
    background-color: var(--primary);
}

.color {
    background-color: var(--primary);
    color: var(--light);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color:hover {
    background-color: var(--dark-primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   3. MAIN & WELCOME SECTION (مستخدم في index.php)
   ========================================= */
main {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 100vh;
    z-index: 1;
}

.wellcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.welcome-text {
    max-width: 100%;
    text-align: right;
}

.welcome-text h1 {
    color: var(--dark-primary);
    font-size: 2rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.welcome-text p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Rotating Image */
.rotating-image {
    height: 250px;
    animation: rotate 15s linear infinite;
    transition: all 0.3s ease;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Background Effects */
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 87, 253, 0.1) 0%, rgba(168, 141, 250, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.floating-ball {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    filter: blur(30px);
    opacity: 0.3;
    z-index: -2;
    animation: float 25s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    }
    25% {
        transform: translate(50px, 50px) scale(1.1);
        background: radial-gradient(circle, var(--secondary) 0%, #6E45E2 100%);
    }
    50% {
        transform: translate(100px, -30px) scale(0.9);
        background: radial-gradient(circle, #6E45E2 0%, #3E57FD 100%);
    }
    75% {
        transform: translate(-40px, 70px) scale(1.05);
        background: radial-gradient(circle, #A88DFA 0%, #3E57FD 100%);
    }
    100% {
        transform: translate(-80px, -50px) scale(0.95);
        background: radial-gradient(circle, var(--primary) 0%, #6E45E2 100%);
    }
}

/* =========================================
   4. HOME BUTTON (مستخدم في index.php)
   ========================================= */
.home-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(110, 69, 226, 0.5);
  
  /* التعديل هنا: قيمة عالية جداً */
  z-index: 9999 !important; 
  
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.home-button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(110, 69, 226, 0.7);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.home-button i {
  transition: transform 0.3s ease;
}

.home-button:hover i {
  transform: scale(1.2);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(110, 69, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 69, 226, 0); }
}

/* =========================================
   5. QUICK NAV (مستخدم في index.php)
   ========================================= */
.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: var(--dark-primary);
    border-radius: 25px;
    margin: 20px auto;
    max-width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.nav-button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    margin: 5px 0;
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    transform-origin: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-button:hover {
    color: var(--light);
    transform: scale(1.05); /* Duplicate override merged here */
    box-shadow: 0 5px 15px rgba(62, 87, 253, 0.4);
}
/* This specific hover effect was at the bottom, merged above but keeping rule for safety if needed */
.nav-button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(62, 87, 253, 0.4);
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-button i {
    margin-left: 8px;
    font-size: 16px;
}

/* =========================================
   6. PRINCE SECTION (مستخدم في index.php)
   ========================================= */
.prince-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.prince-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 8px solid white;
}

.prince-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.prince-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.prince-image-container:hover img {
    transform: scale(1.03);
}

.prince-content {
    flex: 1;
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,248,248,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    margin-top: 30px;
}

.prince-message {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    position: relative;
    padding: 20px 0;
    text-align: right;
}

.prince-message::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.prince-signature {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 30px;
    font-style: normal;
}

.signature-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(to left, var(--primary), transparent);
    margin-left: 20px;
}

.signature-text {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.prince-title {
    font-size: 1.8rem;
    color: var(--dark-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.prince-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to left, var(--secondary), transparent);
    border-radius: 3px;
}

.crown-icon {
    color: var(--warning);
    margin-left: 10px;
    font-size: 1.5rem;
}
/* =========================================
   قسم السردية الأردنية والزر الذهبي
   ========================================= */

/* حاوية القسم الجديد */
.narrative-section {
    margin-top: 25px;
    padding-top: 15px;
    text-align: center; /* توسيط المحتوى */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* الخط الفاصل الجمالي */
.narrative-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent); /* تدرج ذهبي شفاف */
    opacity: 0.6;
    margin-bottom: 5px;
}

/* النص التعريفي */
.narrative-intro {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

.narrative-intro strong {
    color: #b8860b; /* لون ذهبي داكن للنص */
}

/* === تصميم الزر الذهبي الملكي === */
.royal-gold-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 35px;
    /* تدرج لوني ذهبي فاخر */
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(170, 140, 44, 0.4); /* ظل ذهبي */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تأثير عند مرور الماوس */
.royal-gold-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(170, 140, 44, 0.6);
    background: linear-gradient(135deg, #eacda3 0%, #d6ae7b 100%); /* تفتيح اللون */
}

/* الأيقونة داخل الزر */
.royal-gold-btn .btn-icon {
    font-size: 1.2rem;
}

/* تأثير اللمعة (Shine Effect) المتحركة */
.royal-gold-btn .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine-anim 3s infinite;
}

@keyframes shine-anim {
    0% { left: -100%; }
    20% { left: 200%; } /* تتحرك اللمعة بسرعة */
    100% { left: 200%; } /* انتظار قبل التكرار */
}

/* === تعديلات للهاتف (Mobile) === */
@media (max-width: 768px) {
    .narrative-section {
        margin-top: 20px;
    }
    
    .royal-gold-btn {
        width: 100%; /* الزر يأخذ كامل العرض في الهاتف */
        max-width: 280px;
    }
    
    .narrative-intro {
        font-size: 0.9rem;
    }
}
/* =========================================
   ========================================= */

@media (min-width: 992px) {
    /* تنسيق الحاوية الرئيسية */
    .prince-section {
        flex-direction: row;       /* ترتيب أفقي */
        align-items: stretch;      /* سحر التنسيق: يجبر العنصرين ليكونا بنفس الطول */
        gap: 40px;                 /* مسافة بينهما */
        min-height: 450px;         /* (اختياري) لضمان حد أدنى للطول */
    }

    /* تنسيق حاوية الصورة */
    .prince-image-container {
        flex: 0 0 380px;          /* تثبيت عرض الصورة ليكون أصغر وأرشق */
        max-width: 380px;         /* ضمان عدم تمدد العرض */
        margin-top: 0;
        height: auto;             /* الارتفاع سيتبع النص تلقائياً */
        display: flex;            /* لإزالة الفراغات أسفل الصورة */
    }

    /* تنسيق الصورة نفسها */
    .prince-image-container img {
        width: 100%;
        height: 100%;             /* تملأ الطول بالكامل */
        object-fit: cover;        /* تغطية المساحة وقص الزوائد دون مط الصورة */
        object-position: top center; /* التركيز على الجزء العلوي (الوجه) */
    }

    /* تنسيق حاوية النص */
    .prince-content {
        flex: 1;                  /* يأخذ باقي المساحة المتاحة */
        margin-top: 0;
        padding: 40px;            /* حشوة داخلية مريحة */
        display: flex;
        flex-direction: column;
        justify-content: center;  /* توسيط النص عمودياً داخل الصندوق */
    }
    
    /* تنسيق الهيدر للشاشات الكبيرة  */
    .header-container ul {
        display: flex;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    header {
        width: calc(100% - 40px);
    }
    
    .wellcome {
        padding: 0 10%;
        gap: 50px;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-section {
        min-width: 22%;
    }
}

/* =========================================
   7. MAJORS SECTION (مستخدم في index.php)
   ========================================= */
.majors-section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.majors-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.majors-section .section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.majors-section .section-header h2 i {
    color: var(--primary);
}

.majors-section .section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.majors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.major-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* ظهور تدريجي */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.major-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.major-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(62, 87, 253, 0.1);
}

.major-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-left: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.major-item:hover .major-icon {
    transform: scale(1.1);
}

.major-info h3 {
    color: var(--dark-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: right;
}

.major-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
    text-align: right;
}

/* =========================================
   8. VISION & MISSION (مستخدم في index.php)
   ========================================= */
.vision-mission-section {
    background: linear-gradient(135deg, var(--dark-primary) 0%, #1a1a3a 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    margin: 50px 0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vm-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.vm-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vision-box, .mission-box {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.vision-box:hover, .mission-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vm-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-title i {
    font-size: 1.5rem;
}

.vm-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.vm-bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 87, 253, 0.15) 0%, rgba(62, 87, 253, 0) 70%);
}

.vm-bg-circle:nth-child(1) {
    top: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out;
}

.vm-bg-circle:nth-child(2) {
    bottom: -150px;
    right: -50px;
    animation: float 18s infinite ease-in-out reverse;
}

/* =========================================
   9. WHY CHOOSE US & JOIN BUTTON (مستخدم في index.php)
   ========================================= */
/* تنسيق القسم الجديد */
.explore-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #eef1f5);
    position: relative;
    overflow: hidden;
}

/* الشبكة */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* تصميم البطاقة */
.explore-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* تأثير عند المرور على البطاقة */
.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(62, 87, 253, 0.15);
    border-color: #A88DFA;
}

/* خلفية جمالية تظهر عند الهوفر */
.explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3E57FD, #A88DFA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.explore-card:hover::before {
    transform: scaleX(1);
}

/* الأيقونة */
.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(62, 87, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #3E57FD;
    transition: all 0.3s ease;
}

.explore-card:hover .card-icon {
    background: #3E57FD;
    color: #fff;
    transform: rotateY(180deg);
}

/* النصوص */
.card-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* رابط "اقرأ المزيد" */
.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3E57FD;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto; /* يدفع الرابط للأسفل */
}

.explore-card:hover .read-more i {
    transform: translateX(-5px);
    transition: transform 0.3s ease;
}

/* --- شريط الإحصائيات (إضافة جمالية) --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(62, 87, 253, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: -webkit-linear-gradient(45deg, #3E57FD, #A88DFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* زر الانضمام (نفس ستايلك القديم مع تحسين بسيط) */
.join-us-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3E57FD, #6E45E2);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(62, 87, 253, 0.3);
    transition: transform 0.3s;
}

.join-us-btn:hover {
    transform: translateY(-3px) scale(1.02);
}
/* تنسيق رأس القسم (العنوان والوصف) */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* تنسيق العنوان الرئيسي h2 */
.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50; /* لون داكن */
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* مسافة للخط السفلي */
}

/* تنسيق الأيقونة داخل العنوان */
.section-header h2 i {
    color: #3E57FD; /* لون فورتيكسا الأزرق */
    margin-left: 10px; /* مسافة بين الأيقونة والنص */
}

/* الخط الملون الجميل تحت العنوان */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* لضمان التوسط */
    width: 80px; /* طول الخط */
    height: 4px; /* سماكة الخط */
    background: linear-gradient(to right, #3E57FD, #A88DFA); /* تدرج لوني */
    border-radius: 10px;
}

/* تنسيق الفقرة الوصفية تحت العنوان */
.section-header p {
    color: #777;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px; /* حتى لا يكون السطر طويلاً جداً */
    margin-left: auto;
    margin-right: auto;
}
/* =========================================
   10. MOTIVATION MESSAGE (مستخدم في index.php)
   ========================================= */
.vortexa-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.vortexa-message.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.vortexa-message i {
    font-size: 1.3rem;
}

.vortexa-message .message-text {
    font-weight: 500;
}

/* =========================================
   11. PARTNERS SECTION (مستخدم في index.php)
   ========================================= */
.vortexa-logo-section {
    z-index: 100;
    padding: 30px 0;
    margin: 40px 0;
    overflow: hidden;
    position: relative;
}

.vortexa-logo-container {
    width: 100%;
    overflow: hidden;
}

/* =========================================
   12. FOOTER (مستخدم في index.php)
   ========================================= */
footer {
    background-color: var(--dark-primary);
    color: var(--light);
    padding: 30px 5% 20px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    min-width: 100%;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    font-size: 12px;
}

.footer-bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 87, 253, 0.15) 0%, rgba(62, 87, 253, 0) 70%);
    z-index: 1;
}

.footer-bg-circle:nth-child(1) {
    top: -150px;
    right: -50px;
    animation: float 15s infinite ease-in-out;
}

.footer-bg-circle:nth-child(2) {
    bottom: -100px;
    left: -50px;
    animation: float 18s infinite ease-in-out reverse;
}

/* =========================================
   13. MEDIA QUERIES (ACTIVE)
   ========================================= */

/* تكيف مع الشاشات المتوسطة */
@media (min-width: 768px) {
    header {
        margin-top: 15px;
        width: calc(100% - 30px);
    }
    
    header img {
        height: 35px;
        margin: 10px 0 10px 20px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .header-container ul li {
        margin: 0 12px;
    }
    
    .header-container ul li a {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .color {
        padding: 10px 22px;
        margin-right: 15px;
        font-size: 15px;
    }
    
    main {
        padding-top: 120px;
    }
    
    .wellcome {
        flex-direction: row;
        text-align: left;
        gap: 40px;
        padding: 0 8%;
    }
    
    .welcome-text h1 {
        font-size: 2.2rem;
    }
    
    .nav-container {
        flex-direction: row;
        padding: 20px;
        border-radius: 40px;
    }
    
    .nav-button {
        padding: 15px 0;
        margin: 0 5px;
        font-size: 15px;
    }
    
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-section {
        min-width: 45%;
    }
    
    .header-container ul {
        display: flex;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: none;
    }
    
    .vm-content {
        flex-direction: row;
    }
}

/* تكيف مع الشاشات الكبيرة */
@media (min-width: 992px) {
    .header-container ul {
        display: flex;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }
    header {
        width: calc(100% - 40px);
    }
    
    .wellcome {
        padding: 0 10%;
        gap: 50px;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-section {
        min-width: 22%;
    }

    .prince-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    .prince-image-container {
        order: 2;
        margin-top: 0;
    }

    .prince-content {
        margin-top: 0;
        padding: 40px;
    }
}

/* القائمة المنسدلة للهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .home-button {
      width: 50px;
      height: 50px;
      font-size: 1.2rem;
      bottom: 20px;
      left: 20px;
    }

    .majors-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .major-item {
        padding: 15px;
    }
    
    .majors-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .vortexa-logo-track {
        gap: 20px;
    }
    .vortexa-logo img {
        height: 70px;
    }
}

@media (max-width: 767px) {
    .header-container {
        position: relative;
        padding: 5px 15px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark-primary); /* Merged text-main here */
        cursor: pointer;
        padding: 5px 10px;
        order: 1;
    }
    
    nav.dd ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 90%;
        margin: 0 auto;
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    
    nav.dd ul li {
        margin: 10px 0;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 10px;
    }
    
    nav.dd ul li:last-child {
        border-bottom: none;
    }
    
    .header-container nav {
        width: 100%;
        order: 3;
    }
    
    /* Resetting UL styles from desktop */
    .header-container ul.active {
        display: flex;
    }
    
    .header-container ul li a {
        display: block;
        padding: 10px;
        border-radius: 5px;
        margin: 0 auto;
        width: 90%;
    }
    
    .color {
        order: 2;
        margin: 10px auto 0;
        width: auto;
        padding: 8px 25px;
    }
    
    .logo {
        order: 0;
    }
}


/* =========================================
   14. UNUSED OR OTHER PAGE STYLES

   ========================================= */

/* Team Definition & Officials
.team-definition {
    padding: 60px 20px;
    background-color: var(--gray);
}

.definition-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.definition-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .deanship-officials {
        flex-direction: column;
        align-items: center;
    }
    
    .official-card {
        width: 100%;
        max-width: 300px;
    }
    
    .rotating-logos {
        width: 200px;
        height: 200px;
    }
}

*/

/* Vortexa Slider Internal Logic (HTML uses embedded style for this but these keys existed) - Done */
.vortexa-logo-track {
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.vortexa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.vortexa-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.vortexa-logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(62, 87, 253, 0.5));
}
.vortexa-logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
    .logos-slider {
            z-index: 0;
    background: white;
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.slide-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.slide-track img {
    height: 60px;
    margin: 0 40px;
    opacity: 0.7;
    transition: 0.3s;
    filter: grayscale(100%);
}

.slide-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}
