/* استيراد خطوط Poppins و Inter من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&display=swap');
/* --- Variables & Colors --- */
:root {
    --color-orange: #FF6600; 
    --color-blue-dark: #001a4d;
    --color-blue-light: #00AEEF;
    --color-bg-light: #f4f7f9;
    --color-text-dark: #2c3e50;
    --color-text-light: #ecf0f1;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* --- Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body {
  
    font-family: 'Inter', sans-serif; 
    background: #f8fafc;
    padding: 40px 20px;
}
h1, h2, h3, h4, h5, h6, .section-title, .card-badge {
    font-family: 'Poppins', sans-serif;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 5rem 0; }

/* --- Preloader Styles --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fff; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.pulse-logo img {
    width: 100px; animation: pulseLoader 1.5s infinite ease-in-out;
}
@keyframes pulseLoader {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

.section-title {
    text-align: center; font-size: 2.5rem; color: var(--color-blue-dark);
    position: relative; padding-bottom: 1rem; margin-bottom: 3rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: linear-gradient(to right, var(--color-blue-light), var(--color-orange));
    border-radius: 2px;
}

.dark-section { background-color: var(--color-blue-dark); color: var(--color-text-light); }
.dark-section .section-title { color: var(--color-text-light); }
.center-btn { text-align: center; margin-top: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 30px;
    font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background-color: var(--color-orange); color: white; box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3); }
.btn-primary:hover { background-color: white; color: var(--color-orange); border-color: var(--color-orange); }
.btn-secondary { background-color: transparent; color: white; border-color: white; }
.btn-secondary:hover { background-color: white; color: var(--color-blue-dark); }


/* --- Burger Menu --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--color-blue-dark); margin: 5px; transition: all 0.3s ease; }

/* --- Whatsapp Float --- */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 1001;
    background-color: #25d366; border-radius: 50%; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); transition: var(--transition);
}
.whatsapp-float:hover { transform: translateY(-5px); background-color: #128C7E; }

/* --- Hero Slider Styles --- */


/* --- Sub-pages & Shared Styles --- */
.page-header {
    height: 50vh; margin-top: 80px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
    position: relative;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 26, 77, 0.7); z-index: 1;
}
.page-header .container { z-index: 2; position: relative; }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.breadcrumb { font-size: 1rem; color: var(--color-orange); font-weight: 600; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }
.staff-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: var(--transition);
    text-align: center; border: 1px solid #eee;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-color: var(--color-orange); }
.staff-img { width: 100%; height: 250px; object-fit: cover; border-bottom: 3px solid var(--color-orange); }
.staff-info { padding: 1.5rem; }
.staff-info h3 { color: var(--color-blue-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.staff-info p { color: #666; font-size: 0.9rem; font-weight: 600; }

.news-container { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.news-item {
    display: flex; gap: 1.5rem; background: white; padding: 1.5rem; margin-bottom: 1.5rem;
    border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--color-blue-dark);
}
.news-date { background: var(--color-bg-light); padding: 1rem; border-radius: 8px; text-align: center; min-width: 80px; height: fit-content; }
.news-date .day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-orange); }
.news-date .month { display: block; font-size: 0.9rem; text-transform: uppercase; color: #7f8c8d; }
.news-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.sidebar-box { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.sidebar-title { border-bottom: 2px solid var(--color-bg-light); padding-bottom: 1rem; margin-bottom: 1.5rem; color: var(--color-blue-dark); }

/* --- Footer & Map --- */
/* (تم استبدال قسم الفوتر بالأسفل في الكود المحسن) */

/* --- Responsive (Mobile) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0px; height: 92vh; top: 8vh;
        background-color: var(--color-blue-dark); display: flex; flex-direction: column;
        align-items: center; width: 60%; 
        transform: translateX(100%); transition: transform 0.5s ease-in;
        padding-top: 50px; z-index: 999;
    }
    .nav-links li { opacity: 0; margin-bottom: 30px; }
    .nav-links li a { color: white; font-size: 1.2rem; }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid, .news-container { grid-template-columns: 1fr; }
    .page-header { margin-top: 60px; }
    .btn-register { width: 80%; justify-content: center; margin-top: 10px; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-map-col { min-width: 100%; }
}

@keyframes navLinkFade { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Enhanced Stats Grid Section --- */
.stats-grid { display: flex; justify-content: space-between; align-items: stretch; gap: 30px; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 30px; background: white; border-radius: 20px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; border: 3px solid rgba(0, 174, 239, 0.1); box-shadow: 0 8px 30px rgba(0, 26, 77, 0.15); }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--color-blue-light) 0%, var(--color-orange) 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.stat-box:hover::before { transform: scaleX(1); }
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(180deg, transparent 0%, rgba(255, 102, 0, 0.03) 100%); opacity: 0; transition: opacity 0.4s ease; z-index: 0; }
.stat-box:hover::after { opacity: 1; }
.stat-box:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 50px rgba(0, 26, 77, 0.25); border-color: var(--color-orange); }
.icon-wrapper { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(255, 102, 0, 0.1) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all 0.5s ease; position: relative; z-index: 1; }
.stat-box:hover .icon-wrapper { background: linear-gradient(135deg, rgba(0, 174, 239, 0.2) 0%, rgba(255, 102, 0, 0.2) 100%); transform: rotate(360deg) scale(1.1); }
.stat-icon { font-size: 3.5rem; filter: drop-shadow(0 4px 8px rgba(0, 26, 77, 0.15)); animation: float 3s ease-in-out infinite; }
.stat-number { font-size: 3rem; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; letter-spacing: -1px; background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 4px rgba(0, 26, 77, 0.1); }
.stat-box:nth-child(even) .stat-number { background: linear-gradient(135deg, var(--color-orange) 0%, #ff8c3a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-text { font-size: 1.1rem; color: var(--color-blue-dark); text-align: center; font-weight: 600; letter-spacing: 0.3px; position: relative; z-index: 1; line-height: 1.4; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-10px) rotate(3deg); } 75% { transform: translateY(-5px) rotate(-3deg); } }
.stat-box:hover .stat-icon { animation: pulse 0.6s ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.stat-box { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media screen and (max-width: 768px) { .stats-grid { gap: 20px; } .stat-box { padding: 35px 25px; } .stat-number { font-size: 2.5rem; } .stat-icon { font-size: 3rem; } .icon-wrapper { width: 100px; height: 100px; } .stat-text { font-size: 1rem; } }
@media (min-width: 769px) and (max-width: 1024px) { .stat-box { flex: 1 1 calc(50% - 15px); } }

/* --- Enhanced Projects Grid Section --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
body { font-family: 'Poppins', sans-serif; background: #f5f7fa; padding: 0; } /* Adjusted padding */
.section { max-width: 1400px; margin: 0 auto; }
.container { width: 100%; }
.section-title { text-align: center; font-size: 2.8rem; color: #0a2540; margin-bottom: 60px; font-weight: 700; position: relative; padding-bottom: 20px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; background: linear-gradient(90deg, #0ea5e9, #0284c7); border-radius: 3px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 50px; padding: 0 20px; }
.card-wrap { height: 28rem; width: 100%; border-radius: 20px; perspective: 1000px; }
.card { height: inherit; width: inherit; position: relative; transition: transform 0.8s; transform-style: preserve-3d; }
.card-front, .card-back { position: absolute; height: inherit; width: inherit; backface-visibility: hidden; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
.card-front { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.card-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 3rem; }
.card-logo img { max-width: 80%; max-height: 80%; object-fit: contain; filter: brightness(0) invert(1); transition: transform 0.3s ease; }
.card-back { background: white; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; }
.card-wrap:hover .card { transform: rotateY(180deg); }
.user-info { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #0a2540; }
.user-info .username { font-size: 2.2rem; font-weight: 700; color: #0a2540; margin-bottom: 1.5rem; }
.user-info .user-bio { font-size: 1.1rem; line-height: 1.8; color: #64748b; margin-bottom: 2rem; max-width: 90%; }
.follow-btn { padding: 14px 40px; color: white; background: linear-gradient(135deg, #0ea5e9, #0284c7); border: none; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); text-transform: uppercase; }
.follow-btn:hover { background: linear-gradient(135deg, #0284c7, #0369a1); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5); }
.card-badge { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.2); color: white; padding: 10px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; backdrop-filter: blur(10px); }
@media (max-width: 768px) { 
    .projects-grid { grid-template-columns: 1fr; gap: 30px; } 
    .card-wrap { height: 24rem; }
    .section-title { font-size: 2.2rem; }
    .user-info .username { font-size: 1.8rem; }
    .user-info .user-bio { font-size: 1rem; }
}
@media (max-width: 500px) {
    .projects-grid { grid-template-columns: 1fr; }
    .card-wrap { min-width: 300px; }
}

/* --- Enhanced About Section --- */
.about-section { background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%); position: relative; overflow: hidden; }
.about-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 174, 239, 0.05) 0%, transparent 70%); border-radius: 50%; }
.about-section::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 70%); border-radius: 50%; }
.about-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4rem; align-items: center; margin-top: 3rem; position: relative; z-index: 1; }
.about-image-wrapper { position: relative; }
.about-image { width: 100%; border-radius: 25px; box-shadow: 0 20px 60px rgba(0, 26, 77, 0.2); transition: all 0.5s ease; position: relative; z-index: 2; }
.about-image:hover { transform: translateY(-10px); box-shadow: 0 30px 80px rgba(0, 26, 77, 0.3); }
.image-decoration { position: absolute; border-radius: 25px; z-index: 1; }
.decoration-1 { top: -15px; left: -15px; width: 100%; height: 100%; background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-dark) 100%); opacity: 0.1; }
.decoration-2 { bottom: -15px; right: -15px; width: 100%; height: 100%; border: 3px solid var(--color-orange); opacity: 0.3; }
.image-badge { position: absolute; bottom: 30px; right: 30px; background: white; padding: 20px 25px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 26, 77, 0.25); display: flex; align-items: center; gap: 15px; z-index: 3; animation: floatBadge 3s ease-in-out infinite; }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.badge-icon { font-size: 2rem; }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-text strong { font-size: 1.5rem; color: var(--color-orange); font-weight: 800; }
.badge-text span { font-size: 0.85rem; color: #666; }
.about-text { display: flex; flex-direction: column; gap: 2rem; }
.intro-label { display: inline-block; background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-orange) 100%); color: white; padding: 8px 20px; border-radius: 25px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.intro-text { font-size: 1.15rem; color: #555; line-height: 1.8; margin: 0; }
.features-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px; background: white; border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 26, 77, 0.08); transition: all 0.3s ease; border-left: 4px solid transparent; }
.feature-item:hover { transform: translateX(10px); box-shadow: 0 8px 30px rgba(0, 26, 77, 0.15); border-left-color: var(--color-orange); }
.feature-icon { width: 50px; height: 50px; min-width: 50px; background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-dark) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.3s ease; }
.feature-item:hover .feature-icon { background: linear-gradient(135deg, var(--color-orange) 0%, #ff8c3a 100%); transform: rotate(360deg); }
.feature-content h4 { font-size: 1.1rem; color: var(--color-blue-dark); margin-bottom: 5px; font-weight: 700; }
.feature-content p { font-size: 0.95rem; color: #666; margin: 0; }
.about-cta { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 1rem; }
.btn-about { display: inline-flex; align-items: center; gap: 12px; padding: 15px 35px; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white !important; border: none; border-radius: 30px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35); }
.btn-about:hover { background: linear-gradient(135deg, #128C7E 0%, #075E54 100%); box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5); transform: translateY(-3px); }
.btn-outline-about { display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px; background: transparent; color: var(--color-blue-dark) !important; border: 2px solid var(--color-blue-dark); border-radius: 30px; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; }
.btn-outline-about:hover { background: var(--color-blue-dark); color: white !important; transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0, 26, 77, 0.3); }
.btn-outline-about svg { transition: transform 0.3s ease; }
.btn-outline-about:hover svg { transform: translateX(5px); }
@media screen and (max-width: 768px) { .about-content { gap: 3rem; grid-template-columns: 1fr; } .image-badge { bottom: 20px; right: 20px; padding: 15px 20px; } .badge-text strong { font-size: 1.3rem; } .intro-text { font-size: 1.05rem; } .about-cta { flex-direction: column; } .btn-about, .btn-outline-about { width: 100%; justify-content: center; } .decoration-1, .decoration-2 { display: none; } }

/* --- Enhanced Header & Navigation --- */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 0 4px 30px rgba(0, 26, 77, 0.1); transition: all 0.3s ease; }
.header.scrolled { background: rgba(255, 255, 255, 1); box-shadow: 0 4px 20px rgba(0, 26, 77, 0.15); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; max-width: 1400px; margin: 0 auto; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 70px; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.05) rotate(5deg); }
.school-info { display: flex; flex-direction: column; }
.school-name { font-weight: 800; font-size: 1.3rem; color: var(--color-blue-dark); letter-spacing: -0.5px; }
.school-tagline { font-size: 0.75rem; color: var(--color-orange); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links li a { color: var(--color-blue-dark); font-weight: 600; font-size: 1rem; position: relative; transition: all 0.3s ease; }
.nav-links li a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--color-blue-light) 0%, var(--color-orange) 100%); transition: width 0.3s ease; border-radius: 2px; }
.nav-links li a.active::after, .nav-links li a:hover::after { width: 100%; }
.nav-links li a.active { color: var(--color-orange); }
.btn-register { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white !important; padding: 12px 28px !important; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); transition: all 0.3s ease; }
.btn-register:hover { background: linear-gradient(135deg, #128C7E 0%, #075E54 100%); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }
.btn-register::after { display: none; }

/* --- Enhanced Hero Slider --- */
.hero-slider { height: 100vh; width: 100%; position: relative; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.video-slide { background: #000; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 26, 77, 0.75) 0%, rgba(0, 174, 239, 0.6) 100%); z-index: 1; }
.image-slide { background-size: cover; background-position: center; }
.image-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 26, 77, 0.7) 0%, rgba(0, 174, 239, 0.5) 100%); z-index: 1; }
.hero-content { color: white; z-index: 10; max-width: 900px; padding: 40px; position: relative; animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); padding: 10px 25px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; margin-bottom: 2rem; border: 2px solid rgba(255, 255, 255, 0.3); }
.badge-dot { width: 10px; height: 10px; background: #25D366; border-radius: 50%; animation: pulse 2s infinite; }
.hero-icon { font-size: 5rem; margin-bottom: 1rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hero-title { font-size: 4.5rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 900; }
.title-line { display: block; }
.title-line.highlight { background: linear-gradient(90deg, var(--color-orange) 0%, #ffcc00 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.4rem; margin-bottom: 3rem; opacity: 0.95; font-weight: 300; line-height: 1.6; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px; background: linear-gradient(135deg, var(--color-orange) 0%, #ff8c3a 100%); color: white !important; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.4s ease; box-shadow: 0 8px 30px rgba(255, 102, 0, 0.4); }
.btn-hero-primary:hover { background: linear-gradient(135deg, #ff8c3a 0%, var(--color-orange) 100%); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(255, 102, 0, 0.6); }
.btn-hero-secondary { display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); color: white !important; border: 2px solid white; border-radius: 50px; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; }
.btn-hero-secondary:hover { background: white; color: var(--color-blue-dark) !important; transform: translateY(-5px); }
.slider-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 15px; }
.dot { width: 14px; height: 14px; background-color: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; border: 2px solid rgba(255, 255, 255, 0.6); }
.dot.active { background-color: var(--color-orange); transform: scale(1.3); border-color: white; }
.dot:hover { background-color: rgba(255, 255, 255, 0.8); transform: scale(1.2); }
.scroll-indicator { position: absolute; bottom: 40px; right: 40px; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px; color: white; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; animation: float 3s ease-in-out infinite; }
.scroll-line { width: 2px; height: 50px; background: linear-gradient(to bottom, white, transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0%, 100% { opacity: 0; transform: translateY(-10px); } 50% { opacity: 1; transform: translateY(10px); } }
@media screen and (max-width: 768px) { .school-tagline { display: none; } .school-name { font-size: 1.1rem; } .nav-logo { height: 50px; } .hero-title { font-size: 2.8rem; } .hero-subtitle { font-size: 1.1rem; } .hero-buttons { flex-direction: column; width: 100%; } .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; } .scroll-indicator { display: none; } .hero-icon { font-size: 3.5rem; } }

/* --- Enhanced Footer Section --- */
.footer { background: linear-gradient(135deg, #001a4d 0%, #003380 100%); color: white; padding: 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: -50%; width: 200%; height: 100%; background: radial-gradient(circle, rgba(0, 174, 239, 0.1) 0%, transparent 70%); animation: rotateBackground 30s linear infinite; }
@keyframes rotateBackground { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.footer-wave { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.footer-wave svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px; }
.footer-wave svg path { fill: var(--color-bg-light); }
.footer-newsletter { background: linear-gradient(135deg, var(--color-orange) 0%, #ff8c3a 100%); padding: 40px; border-radius: 25px; margin: -40px 0 60px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; box-shadow: 0 20px 60px rgba(255, 102, 0, 0.3); position: relative; z-index: 2; }
.newsletter-content { display: flex; align-items: center; gap: 25px; }
.newsletter-icon { font-size: 3.5rem; animation: bounce 2s infinite; }
.newsletter-text h3 { font-size: 1.8rem; margin-bottom: 5px; font-weight: 800; }
.newsletter-text p { opacity: 0.95; font-size: 1rem; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 500px; }
.newsletter-form input { flex: 1; padding: 15px 25px; border: none; border-radius: 30px; font-size: 1rem; outline: none; background: white; color: var(--color-blue-dark); font-weight: 600; }
.newsletter-form input::placeholder { color: #999; }
.btn-newsletter { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; background: var(--color-blue-dark); color: white; border: none; border-radius: 30px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.btn-newsletter:hover { background: var(--color-blue-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4); }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 50px; margin-bottom: 60px; position: relative; z-index: 2; }
.footer-col h4 { color: var(--color-orange); margin-bottom: 25px; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: linear-gradient(90deg, var(--color-orange) 0%, transparent 100%); }
.footer-about .footer-logo { height: 80px; margin-bottom: 20px; filter: brightness(0) invert(1); transition: transform 0.3s ease; }
.footer-about .footer-logo:hover { transform: scale(1.1) rotate(5deg); }
.footer-about h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 800; }
.footer-tagline { color: var(--color-orange); font-style: italic; font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; }
.footer-description { opacity: 0.85; line-height: 1.7; margin-bottom: 25px; }
.social-links { display: flex; gap: 15px; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border: 2px solid rgba(255, 255, 255, 0.2); }
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: var(--color-orange); border-color: var(--color-orange); transform: translateY(-5px) rotate(360deg); }
.footer-links li { margin-bottom: 15px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); transition: all 0.3s ease; font-size: 1rem; }
.footer-links a:hover { color: var(--color-orange); padding-left: 10px; }
.footer-links a svg { transition: transform 0.3s ease; }
.footer-links a:hover svg { transform: translateX(5px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; transition: all 0.3s ease; }
.footer-contact li:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.contact-icon { width: 40px; height: 40px; min-width: 40px; background: var(--color-orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 20px; height: 20px; }
.footer-contact div { display: flex; flex-direction: column; gap: 5px; }
.contact-label { font-size: 0.85rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-contact a { color: white; font-weight: 600; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--color-orange); }
.map-wrapper { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.map-frame { width: 100%; height: 250px; border: 0; filter: grayscale(20%); transition: filter 0.3s ease; }
.map-frame:hover { filter: grayscale(0%); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 30px 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; opacity: 0.8; font-size: 0.95rem; }
.footer-bottom-links { display: flex; align-items: center; gap: 15px; }
.footer-bottom-links a { color: white; transition: color 0.3s ease; font-weight: 600; }
.footer-bottom-links a:hover { color: var(--color-orange); }
@media screen and (max-width: 768px) { .footer-newsletter { flex-direction: column; text-align: center; padding: 30px 20px; } .newsletter-content { flex-direction: column; text-align: center; } .newsletter-form { flex-direction: column; max-width: 100%; } .btn-newsletter { width: 100%; justify-content: center; } .footer-content { grid-template-columns: 1fr; gap: 40px; } .footer-bottom-content { flex-direction: column; gap: 15px; text-align: center; } .map-frame { height: 200px; } }

/* -------------------------------------------------------------
   8. قسم الوحدات الأكاديمية - تأثير الكتاب (Logo Only Cover)
------------------------------------------------------------- */
.projects-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; padding: 20px; }
.book { position: relative; border-radius: 15px; width: 320px; height: 420px; background-color: #f9f9f9; box-shadow: 1px 1px 12px rgba(0,0,0,0.1); transform-style: preserve-3d; perspective: 2000px; display: flex; align-items: center; justify-content: center; margin: 20px; }
.cover { top: 0; left: 0; position: absolute; background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); width: 100%; height: 100%; border-radius: 15px; cursor: pointer; transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-origin: 0; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; z-index: 2; }
.book:hover .cover { transform: rotateY(-120deg); box-shadow: 5px 5px 20px rgba(0,0,0,0.15); }
.card-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.card-logo img { max-width: 180px; max-height: 180px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); transition: transform 0.5s ease; }
.book:hover .card-logo img { transform: scale(1.1); opacity: 0.8; }
.inner-content { padding: 30px; text-align: center; opacity: 0; transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s; transform: translateX(-20px); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; width: 100%; position: relative; z-index: 1; }
.book:hover .inner-content { opacity: 1; transform: translateX(0); }
.inner-content h3 { font-size: 1.8rem; color: var(--color-blue-dark); margin-bottom: 15px; font-weight: 800; }
.inner-content p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; color: #555; }
.inner-content .follow-btn { padding: 12px 30px; background: linear-gradient(135deg, var(--color-orange), #dad127); color: white; border: none; border-radius: 25px; cursor: pointer; transition: 0.3s; font-weight: 600; box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2); }
.inner-content .follow-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4); }
/* Staff Section (Updated) */
.staff-section { margin-top: 6rem; }

/* خلفية ديكورية */
.decorative-bg { position: absolute; top: -50px; left: 0; right: 0; height: 400px; background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%); border-radius: 0 0 50% 50% / 0 0 100px 100px; z-index: 0; opacity: 0.05; }

.section-header-with-line { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 80px; position: relative; z-index: 1; }

.line-decoration { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #3b82f6, transparent); max-width: 200px; }

.section-title-alt { font-size: 2.5rem; background: linear-gradient(135deg, #1e40af, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; text-align: center; white-space: nowrap; }

/* بطاقة المدير */
/* =========================================
   تخطيط الشبكة (Grid Layout)
   ========================================= */
.staff-section {
    max-width: 1200px;
    margin: 0 auto;
    
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 50px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
    
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: 1fr;
        align-items: center;
    }
}

/* =========================================
   تنسيقات عامة
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    padding: 40px 20px;
}

/* =========================================
   هيكل القسم والشبكة (Grid)
   ========================================= */
.staff-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 60px; /* زيادة المسافة لاستيعاب الصور الكبيرة */
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: end; /* محاذاة البطاقات من الأسفل */
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 50px; /* مسافة علوية إضافية لبروز صور المدير */
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: 1fr;
        align-items: center;
    }
}

/* =========================================
   تنسيق البطاقة الأساسية
   ========================================= */
.staff-card {
    background: white;
    border-radius: 20px;
    overflow: visible; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    margin-top: 50px; 
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* =========================================
   تنسيق صور الموظفين (التعديل الجديد)
   ========================================= */
.card-header {
    position: relative;
    height: 150px; 
    border-radius: 20px 20px 0 0;
    margin-bottom: 80px;
}

.card-image-wrapper {
    position: absolute;
   
    left: 50%;
    transform: translateX(-50%); 
    top: -40px;  
    width: 190px;
    height: 254px;
    z-index: 2;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    
    border-radius: 30px;
    
    
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.2),
                -15px -15px 30px rgba(255, 255, 255, 0.4);
    
    background: #e0e0e0; 
    transition: all 0.3s ease;
}

/* =========================================
   1. بطاقة المدير (Director)
   ========================================= */
.staff-card.director {
    border-color: rgba(37, 99, 235, 0.3);
    transform: scale(1.05); 
    grid-row: 1;
    grid-column: 2;
    z-index: 10;
}

.staff-card.director:hover {
    border-color: rgba(37, 99, 235, 0.5);
    transform: scale(1.08) translateY(-12px);
}

.staff-card.director .card-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.staff-card.director .contact-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.staff-card.director .contact-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

/* =========================================
   2. بطاقة نائب المدير (Vice Director)
   ========================================= */
.staff-card.vice-director {
    border-color: rgba(251, 146, 60, 0.25);
    grid-row: 1;
    grid-column: 1;
}

.staff-card.vice-director:hover {
    border-color: rgba(251, 146, 60, 0.4);
    transform: translateY(-10px);
}

.staff-card.vice-director .card-header {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.staff-card.vice-director .contact-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* =========================================
   3. بطاقة المحاسب (Accountant)
   ========================================= */
.staff-card.accountant {
    grid-row: 1;
    grid-column: 3;
}

.staff-card.accountant:hover {
    border-color: rgba(100, 116, 139, 0.2);
}

.staff-card.accountant .card-header {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.staff-card.accountant .contact-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* =========================================
   المحتوى النصي والأزرار
   ========================================= */
.card-content {
    padding: 0 25px 30px; 
    text-align: center;
    position: relative;
    z-index: 3;
}

.role-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(4px);
}

.card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.card-divider {
    width: 50px;
    height: 3px;
    margin: 15px auto;
    border-radius: 2px;
    background: #e2e8f0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%; 
}

.contact-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* =========================================
   تجاوب الشاشات (Media Queries)
   ========================================= */
@media (max-width: 1024px) {
    .staff-card.director,
    .staff-card.vice-director,
    .staff-card.accountant {
        grid-row: auto;
        grid-column: auto;
        margin-top: 60px; 
    }

    .staff-card.director {
        transform: scale(1);
    }
}

/* شبكة المعلمين - تصميم بسيط */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin-bottom: 50px; }

.teacher-card { background: white; border-radius: 15px; padding: 20px; text-align: center; box-shadow: 0 4px 15px rgba(30, 64, 175, 0.06); border: 1px solid #e2e8f0; transition: all 0.3s ease; }

.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(30, 64, 175, 0.12); }

.teacher-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 15px; border: 3px solid #f1f5f9; }

.teacher-card h5 { font-size: 1.05rem; color: #1e293b; margin-bottom: 6px; font-weight: 700; }

.teacher-card p { font-size: 0.85rem; color: #3b82f6; font-weight: 600; }

/* تصميم متجاوب للقسم الجديد */
@media (max-width: 1200px) { .director-card { grid-template-columns: 350px 1fr; } }

@media (max-width: 968px) { .director-card { grid-template-columns: 1fr; } .director-image-wrapper { padding: 40px; } .director-info { padding: 40px; } .section-title-alt { font-size: 2rem; } .vice-directors-grid { flex-direction: column; align-items: center; } }

@media (max-width: 640px) { .section-title-alt { font-size: 1.8rem; } .teachers-grid { grid-template-columns: 1fr; } .line-decoration { display: none; } }

/* News Section */
.news-section { margin-top: 6rem; }
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-main { display: flex; flex-direction: column; gap: 25px; }
.news-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 26, 77, 0.1); transition: all 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 26, 77, 0.2); }
.news-card.featured { display: grid; grid-template-columns: 1fr 1.5fr; }
.news-image { height: 300px; background-size: cover; background-position: center; }
.news-content { padding: 30px; position: relative; }
.news-category { display: inline-block; background: var(--color-orange); color: white; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.news-date-badge { position: absolute; top: 30px; right: 30px; background: var(--color-blue-dark); color: white; padding: 10px 15px; border-radius: 12px; text-align: center; min-width: 60px; }
.news-date-badge .day { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.news-date-badge .month { display: block; font-size: 0.85rem; text-transform: uppercase; }
.news-content h3 { font-size: 1.6rem; color: var(--color-blue-dark); margin-bottom: 15px; font-weight: 800; }
.news-content p { color: #666; line-height: 1.7; margin-bottom: 20px; }
.read-more { color: var(--color-orange); font-weight: 700; transition: all 0.3s ease; }
.read-more:hover { padding-left: 10px; }
.news-card:not(.featured) { display: flex; align-items: center; gap: 20px; padding: 25px; }
.news-mini-date { background: var(--color-bg-light); padding: 15px; border-radius: 12px; text-align: center; min-width: 70px; }
.news-mini-date span:first-child { display: block; font-size: 1.8rem; font-weight: 800; color: var(--color-orange); line-height: 1; }
.news-mini-date span:last-child { display: block; font-size: 0.8rem; text-transform: uppercase; color: #666; font-weight: 600; }
.news-mini-content h4 { font-size: 1.2rem; color: var(--color-blue-dark); margin-bottom: 8px; font-weight: 700; }
.news-mini-content p { color: #666; font-size: 0.95rem; }
.news-sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 26, 77, 0.1); transition: all 0.3s ease; }
.sidebar-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 26, 77, 0.15); }
.sidebar-card.highlight { background: linear-gradient(135deg, var(--color-blue-dark) 0%, #003380 100%); color: white; }
.sidebar-icon { font-size: 3rem; margin-bottom: 15px; }
.sidebar-card h4 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 800; }
.sidebar-card p { line-height: 1.6; opacity: 0.9; }
.deadline-badge { display: inline-block; background: var(--color-orange); color: white; padding: 10px 20px; border-radius: 20px; font-weight: 800; margin-top: 15px; font-size: 1.05rem; }
@media screen and (max-width: 768px) { .news-layout { grid-template-columns: 1fr; } }


/* متغيرات الألوان لسهولة التعديل */
:root {
    --primary-color: #2563eb; 
    --secondary-color: #1e293b; 
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --accent-color: #0ea5e9;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* 1. تنسيق الشبكة الحاوية */
.departments-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 2. تنسيق البطاقة الأساسي */
.department-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    position: relative; 
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease; 
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* تأثير عند مرور الماوس على البطاقة */
.department-card:hover {
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 3. تنسيق الأيقونة */
.card-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.department-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

/* 4. تنسيق النصوص */
.department-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.department-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 5. تنسيق القائمة */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.card-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* إضافة علامة صح أو نقطة قبل كل عنصر */
.card-features li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* 6. تنسيق الشارة (Badge) */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

/* تخصيص لون مختلف لشارة "Popüler" إذا أردت */
.department-card:first-child .card-badge {
    background: #f59e0b; 
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}
/* هذا الكود يمنع العناصر الوهمية من تخريب الشبكة */
.footer-content::before,
.footer-content::after {
    content: none !important;
    display: none !important;
}

/* حتى يعمل على الهواتف بشكل جيد*/

/* Burger Menu Styles */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s ease;
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        z-index: 1000;
        padding: 50px 20px;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 15px 20px;
        width: 100%;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: linear-gradient(135deg, #f97316, #fb923c);
        color: white;
    }

    .btn-register {
        width: 90%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #f97316;
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #f97316;
    }

    /* Animation for menu items */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Tablet and larger screens */
@media screen and (min-width: 769px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
}