/* ============================================
   إصلاح نهائي لمنع التمرير الأفقي
============================================ */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
}

body {
    width: 100vw !important;
    overflow-x: hidden !important;
}

/* إصلاح جميع العناصر */
* {
    box-sizing: border-box;
    max-width: 100%;
}

/* منع أي عنصر من الخروج عن الشاشة */
.container, 
.header-container, 
.breaking-news-container,
.slider-container,
.section,
footer .container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
/* ============================================
   متغيرات CSS المتطورة
============================================ */
:root {
    /* نظام ألوان متطور */
    --primary-blue: #0a2540;
    --secondary-blue: #1a5f7a;
    --accent-blue: #2d82b5;
    --light-blue: #57c5e6;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --dark-blue: #061526;
    --deep-blue: #0a2647;
    
    /* التدرجات اللونية المتطورة */
    --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #ffd700 100%);
    --gradient-silver: linear-gradient(135deg, var(--silver) 0%, #e8e8e8 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    --gradient-overlay: linear-gradient(to bottom, transparent 0%, rgba(10, 37, 64, 0.9) 100%);
    
    /* الألوان المحايدة المتطورة */
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e4e7eb;
    --dark-gray: #64748b;
    --text-dark: #1e293b;
    --shadow-dark: rgba(10, 37, 64, 0.15);
    
    /* التأثيرات والظلال المتطورة */
    --shadow-sm: 0 2px 8px var(--shadow-dark);
    --shadow-md: 0 8px 30px var(--shadow-dark);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
    --shadow-blue: 0 10px 30px rgba(87, 197, 230, 0.2);
    
    /* الأنماط العامة */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --section-spacing: 100px;
    
    /* شفافية جديدة */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 300;
    padding-top: 0 !important;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* ============================================
   رأس الصفحة المحسن - FIXED
============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
}

#header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-xl);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0;
}

.logo-image {
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* ============================================
   القائمة الرئيسية المحسنة
============================================ */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    left: 15px;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover {
    color: var(--primary-blue);
    background: rgba(87, 197, 230, 0.05);
}

.nav-links a.active {
    color: var(--primary-blue);
    background: rgba(87, 197, 230, 0.1);
}

/* ============================================
   زر القائمة المتنقلة
============================================ */
.mobile-menu-btn {
    display: none;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    z-index: 3001;
    margin-left: 10px;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   شريط الأخبار العاجلة - النسخة المحسنة
============================================ */
.breaking-news-bar {
    position: fixed;
    top: 80px; /* أسفل الهيدر مباشرة */
    left: 0;
    right: 0;
    z-index: 2500;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 0;
    border-bottom: 3px solid var(--light-blue);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 60px; /* ارتفاع مناسب */
    display: flex;
    align-items: center;
    width: 100%;
}

.breaking-news-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: 100%;
    padding: 0 20px;
}

.breaking-label {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0 20px;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 70%;
    flex-shrink: 0;
    min-width: 170px;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.breaking-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    height: 70%;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-ticker-content {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: ticker 90s linear infinite;
    padding: 0 30px;
    height: 100%;
    white-space: nowrap;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;
    height: 100%;
}

.news-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 1.4;
    text-align: right;
}

.news-link:hover {
    color: var(--light-blue);
    text-shadow: 0 0 10px rgba(87, 197, 230, 0.3);
}

.news-separator {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    filter: brightness(1.2);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

/* ============================================
   قسم السلايدر (Hero) - ملتصق بالشريط
============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 140px);
    margin-top: 140px; /* الهيدر (80px) + الشريط (60px) */
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    max-height: 900px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* تأثيرات الصورة */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.1);
    transition: transform 15s ease;
}

.slider-slide.active .slide-image {
    transform: scale(1);
}

/* تأثير التدرج فوق الصورة */
.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 2;
}

/* محتوى السلايدر */
.slide-content {
    position: absolute;
    bottom: 120px;
    right: 0;
    left: 0;
    z-index: 3;
    text-align: center;
    padding: 0 80px;
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* أزرار السلايدر */
.slider-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.slider-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.4);
    min-width: 160px;
    justify-content: center;
}

.slider-button:hover {
    background: var(--gradient-blue);
    transform: translateY(-5px);
    border-color: transparent;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* مؤشرات السلايدر */
.slider-indicators {
    position: absolute;
    bottom: 50px;
    right: 0;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.slider-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.slider-indicator.active {
    background: var(--light-blue);
    transform: scaleX(1.3);
    box-shadow: 0 0 10px var(--light-blue);
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ============================================
   قسم مجلس الأمناء
============================================ */
.board-section {
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-blue);
    border-radius: 3px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 25px auto 0;
    line-height: 1.8;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.board-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-blue);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.board-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-color: var(--light-blue);
}

.board-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--light-gray);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    position: relative;
}

.board-card:hover .board-image {
    transform: scale(1.1);
    border-color: var(--light-blue);
    box-shadow: var(--shadow-blue);
}

.board-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.board-card:hover .board-image img {
    transform: scale(1.08);
}

.board-info h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.board-info .position {
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding: 8px 20px;
    background: rgba(87, 197, 230, 0.15);
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(87, 197, 230, 0.4);
}

.board-info p {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   قسم من نحن
============================================ */
.about-section {
    position: relative;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-logo-container {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    border: 2px solid var(--medium-gray);
}

.about-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.about-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.2));
    transition: var(--transition-smooth);
}

.about-logo-container:hover .about-logo img {
    transform: scale(1.05);
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 120px;
    height: 5px;
    background: var(--gradient-blue);
    border-radius: 3px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--dark-gray);
    margin-bottom: 35px;
}

/* ============================================
   قسم الرؤية والرسالة والأهداف
============================================ */
.vision-mission-section {
    background: linear-gradient(145deg, rgba(26, 95, 122, 0.05) 0%, rgba(45, 130, 181, 0.1) 100%);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
}

.vision-card, .mission-card, .goals-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--medium-gray);
}

.vision-card::before, .mission-card::before, .goals-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.vision-card::before {
    background: var(--gradient-gold);
}

.mission-card::before {
    background: var(--gradient-blue);
}

.goals-card::before {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.vision-card:hover, .mission-card:hover, .goals-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
}

.vision-card .card-icon {
    color: var(--gold);
}

.mission-card .card-icon {
    color: var(--accent-blue);
}

.goals-card .card-icon {
    color: #27ae60;
}

.vision-card h3, .mission-card h3, .goals-card h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.vision-card p, .mission-card p, .goals-card ul {
    color: var(--dark-gray);
    line-height: 1.9;
    font-size: 1.1rem;
}

.goals-card ul {
    list-style: none;
    padding-right: 0;
}

.goals-card li {
    margin-bottom: 15px;
    padding-right: 35px;
    position: relative;
    font-size: 1.1rem;
}

.goals-card li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.3rem;
}

/* ============================================
   قسم الإحصائيات
============================================ */
.stats-section {
    background: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 25px;
    background: linear-gradient(145deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: var(--border-radius-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-15px);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-blue);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 600;
}

/* ============================================
   قسم التكريمات والإنجازات
============================================ */
.honors-section {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 45px;
}

.honor-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
    position: relative;
}

.honor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-gold);
    z-index: 2;
}

.honor-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-color: var(--gold);
}

.honor-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.honor-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(212, 175, 55, 0.15));
    z-index: 1;
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.honor-card:hover .honor-image img {
    transform: scale(1.12);
}

.honor-content {
    padding: 35px;
}

.honor-content h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.4;
}

.honor-content p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-gold);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 30px;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    gap: 15px;
}

/* ============================================
   قسم الأخبار
============================================ */
.news-section {
    background: linear-gradient(145deg, rgba(26, 95, 122, 0.05) 0%, rgba(45, 130, 181, 0.1) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 45px;
}

.news-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
}

.news-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-color: var(--light-blue);
}

.news-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(87, 197, 230, 0.15));
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.12);
}

.news-content {
    padding: 35px;
}

.news-content h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.4;
}

.news-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--medium-gray);
}

.meta-item-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-blue);
    font-size: 0.95rem;
    background: rgba(87, 197, 230, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.meta-item-compact i {
    color: var(--light-blue);
    font-size: 0.9rem;
}

.news-excerpt-compact {
    color: var(--dark-gray);
    line-height: 1.9;
    margin: 20px 0 25px;
    font-size: 1.1rem;
    min-height: 100px;
}

.read-more-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 30px;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.read-more-btn-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(87, 197, 230, 0.3);
    gap: 15px;
}

/* ============================================
   قسم الفعاليات
============================================ */
.events-section {
    background: linear-gradient(145deg, rgba(39, 174, 96, 0.05) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 45px;
}

.event-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
    position: relative;
    margin-top: 40px;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    z-index: 2;
}

.event-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-color: #27ae60;
}

.event-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(39, 174, 96, 0.15));
    z-index: 1;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image img {
    transform: scale(1.15);
}

.event-date-absolute {
    position: absolute;
    top: -30px;
    right: 30px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    z-index: 10;
    transition: var(--transition-bounce);
    border: 3px solid #27ae60;
    min-width: 200px;
}

.event-card:hover .event-date-absolute {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.date-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.date-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-text {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
}

.location-text {
    color: var(--secondary-blue);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.location-text i {
    color: #27ae60;
    font-size: 0.9rem;
}

.event-content {
    padding: 35px;
}

.event-content h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.4;
}

.event-excerpt {
    color: var(--dark-gray);
    line-height: 1.9;
    margin: 20px 0 30px;
    font-size: 1.1rem;
    min-height: 100px;
}

.event-actions {
    display: flex;
    gap: 20px;
}

.details-btn, .register-btn {
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
}

.details-btn {
    background: var(--gradient-blue);
    color: var(--white);
}

.details-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
    gap: 15px;
}

.register-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
}

.register-btn:hover {
    background: #219955;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
    gap: 15px;
}

/* ============================================
   قسم اتصل بنا
============================================ */
.contact-section {
    background: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    border: 2px solid var(--medium-gray);
}

.contact-item:hover {
    transform: translateX(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: var(--light-blue);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 20px;
}

.contact-details h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-details p {
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-form-container {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border-top: 6px solid var(--light-blue);
    border: 2px solid var(--medium-gray);
}

.contact-form-container h3 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(87, 197, 230, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.2);
}

/* ============================================
   الفوتر
============================================ */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo {
    width: 240px;
    height: auto;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-container p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--light-blue);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-links h3, .footer-contact h3 {
    color: var(--light-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--light-blue);
    padding-right: 15px;
    transform: translateX(-5px);
}

.footer-contact p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-contact i {
    color: var(--light-blue);
    width: 25px;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ============================================
   زر لوحة التحكم
============================================ */
.admin-login {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 2000;
}

.admin-btn {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-lg);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.admin-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   التصميم المتجاوب
============================================ */

/* للأجهزة اللوحية */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .breaking-label {
        min-width: 150px;
        font-size: 0.9rem;
    }
    
    .news-ticker-content {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .vision-mission-grid,
    .honors-grid,
    .news-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* إصلاحات الهيدر */
    #header {
        height: 70px;
    }
    
    .logo-image {
        width: 140px;
        height: 50px;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        width: 90%;
        max-width: 400px;
        padding: 25px;
        border-radius: var(--border-radius-xl);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-smooth);
        z-index: 2999;
        gap: 10px;
        height: auto;
        border: 2px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 5%;
    }
    
    .nav-links a {
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        height: auto;
        margin-bottom: 5px;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* إصلاحات شريط الأخبار */
    .breaking-news-bar {
        top: 70px;
        height: 55px;
    }
    
    .breaking-news-container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .breaking-label {
        min-width: 140px;
        height: 65%;
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    .news-ticker {
        height: 65%;
    }
    
    .news-ticker-content {
        gap: 20px;
        padding: 0 20px;
        animation: mobileTicker 100s linear infinite;
    }
    
    .news-link {
        font-size: 0.9rem;
    }
    
    @keyframes mobileTicker {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    
    /* إصلاحات الهيرو */
    .hero-slider {
        min-height: calc(100vh - 125px);
        margin-top: 125px;
    }
    
    .slider-container {
        height: calc(100vh - 125px);
    }
    
    .slide-content {
        padding: 0 30px;
        bottom: 100px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    /* إصلاحات الشبكات */
    .vision-mission-grid,
    .honors-grid,
    .news-grid,
    .events-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-date-absolute {
        position: relative;
        top: 0;
        right: 0;
        margin: -20px auto 20px;
        width: 90%;
        justify-content: center;
    }
    
    .event-card {
        margin-top: 0;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .breaking-news-bar {
        height: 50px;
    }
    
    .breaking-label {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0 12px;
    }
    
    .news-ticker-content {
        gap: 15px;
        padding: 0 15px;
    }
    
    .news-link {
        font-size: 0.85rem;
    }
    
    .hero-slider {
        min-height: calc(100vh - 120px);
        margin-top: 120px;
    }
    
    .slider-container {
        height: calc(100vh - 120px);
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slider-buttons {
        gap: 10px;
    }
    
    .slider-button {
        padding: 10px 20px;
        min-width: 130px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-login {
        bottom: 20px;
        left: 20px;
    }
    
    .admin-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .breaking-news-bar {
        flex-direction: row;
        padding: 0;
    }
    
    .breaking-news-container {
        flex-direction: row;
    }
    
    .breaking-label {
        min-width: 110px;
    }
    
    .slide-content {
        bottom: 80px;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
}

/* للأجهزة الأفقية */
@media (max-width: 768px) and (orientation: landscape) {
    .breaking-news-bar {
        height: 50px;
    }
    
    .hero-slider {
        min-height: calc(100vh - 120px);
        margin-top: 120px;
    }
    
    .slider-container {
        height: calc(100vh - 120px);
    }
    
    .slide-content {
        bottom: 80px;
        padding: 0 20px;
    }
/* تحسين عرض الشعار في المشاركات */
.footer-logo img, 
.about-logo img,
.logo-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* شعار خاص للمشاركات */
.social-logo {
    display: none; /* مخفي عن المستخدمين */
}
/* في ملف style.css أضف */
.logo-image img, 
.footer-logo img {
    width: 100%;
    height: auto;
    max-width: 180px;
    object-fit: contain;
}

/* لضمان جودة الشعار في المشاركات */
@media (max-width: 768px) {
    .logo-image img {
        max-width: 140px;
    }
/* ============================================
   إصلاحات إضافية للهواتف - لمنع التمرير الجانبي
============================================ */

/* منع التمرير الأفقي تماماً */
body, html {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* إصلاح مشاكل العرض على الهاتف */
@media (max-width: 768px) {
    /* إصلاح الهيدر والشريط */
    #header,
    .breaking-news-bar {
        width: 100vw;
        left: 0;
        right: 0;
        transform: none !important;
    }
    
    /* إصلاح المحتوى الرئيسي */
    .hero-slider,
    .section,
    .container,
    .board-grid,
    .honors-grid,
    .news-grid,
    .events-grid,
    .footer-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* إصلاح البطاقات */
    .board-card,
    .honor-card,
    .news-card,
    .event-card,
    .vision-card,
    .mission-card,
    .goals-card,
    .stat-item,
    .contact-item,
    .contact-form-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    /* إصلاح الصور */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* إصلاح شريط الأخبار */
    .news-ticker {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* إصلاح الحاويات */
    .board-section .container,
    .about-section .container,
    .vision-mission-section .container,
    .stats-section .container,
    .honors-section .container,
    .news-section .container,
    .events-section .container,
    .contact-section .container,
    footer .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* تحسينات إضافية للهواتف الصغيرة */
@media (max-width: 480px) {
    /* تقليل البادينغ الداخلي */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* تقليل حجم الخطوط */
    .section-header h2 {
        font-size: 1.8rem !important;
    }
    
    .slide-content h2 {
        font-size: 1.5rem !important;
    }
    
    /* تقليل المسافات */
    .section {
        padding: 60px 0 !important;
    }
    
    .hero-slider {
        margin-top: 120px !important;
        min-height: calc(100vh - 120px) !important;
    }
}

/* ============================================
   إصلاح خاص لعناصر تسبب التمرير الأفقي
============================================ */

/* تنسيق الجداول والأنساق */
* {
    max-width: 100%;
}

/* التأكد من أن جميع العناصر لا تتجاوز عرض الشاشة */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* إصلاح مشكلة overflow في العناصر */
.news-ticker-content,
.slider-wrapper,
.slider-indicators,
.board-grid,
.honors-grid,
.news-grid,
.events-grid {
    box-sizing: border-box;
}

/* ============================================
   حلول طارئة للهواتف
============================================ */
@media screen and (max-width: 768px) {
    /* حل قوي لمنع التمرير الأفقي */
    body {
        position: relative;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* إخفاء أي عنصر يسبب التمرير الأفقي */
    * {
        box-sizing: border-box;
    }
    
    /* إصلاح شريط الأخبار - مهم جداً */
    .breaking-news-container {
        overflow: hidden;
        width: 100%;
    }
    
    .news-ticker {
        overflow: hidden;
        width: 100%;
    }
    
    /* إصلاح السلايدر */
    .slider-container {
        overflow: hidden;
    }
    
    /* التأكد من أن الصور لا تتجاوز العرض */
    .slide-image {
        background-size: cover !important;
        background-position: center !important;
    }
<style>
.whatsapp-share-fixed {
    position: fixed;
    bottom: 120px;
    left: 20px;
    z-index: 9999;
}

.whatsapp-share-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}