:root {
    /* ألوان علم السودان */
    --sudan-red: #D21034;
    --sudan-white: #FFFFFF;
    --sudan-black: #000000;
    --sudan-green: #007229;
    
    /* ألوان الموقع المحدثة - الأزرق كلون رئيسي */
    --primary: #3498db; /* أزرق أساسي */
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary: var(--sudan-red); /* الأحمر كألوان ثانوية */
    --secondary-dark: #A00D28;
    --secondary-light: #E03A58;
    --accent: var(--sudan-black);
    --light: #F9F9F9;
    --dark: #222222;
    --gray: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    
    /* ألوان الخدمات حسب المعايير */
    --emergency-color: #3498db; /* أزرق */
    --livelihood-color: #28A745;
    --water-color: #007BFF;
    --health-color: #DC3545;
    --education-color: #6F42C1;
    --protection-color: #FD7E14;
    --shelter-color: #17A2B8; /* لون جديد للمأوى */
    --food-color: #FFC107; /* لون جديد للغذاء */
    
    /* ظلال محسنة */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    background-color: #fefefe;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

body[dir="rtl"] .section-title h2:after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.section-title p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* إضافة أنماط جديدة لإخفاء علامة التحميل */
.hero-video-container {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* مؤشر تحميل مخصص */
.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 4;
    display: none;
}

.hero-video-container.loading .video-loading-indicator {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* رسالة تلميح المستخدم */
.click-message {
    animation: fadeInOut 3s ease-in-out infinite;
    color: white;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    display: inline-block;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* البانر الجديد أسفل الفيديو */
.hero-banner {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(210, 16, 52, 0.05));
    padding: 60px 0;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero-banner-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-banner h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.hero-banner h2 span {
    color: var(--secondary);
}

.hero-banner p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-banner .highlight {
    background: rgba(52, 152, 219, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--primary);
}

body[dir="rtl"] .hero-banner .highlight {
    border-right: 4px solid var(--primary);
    border-left: none;
}

.hero-banner .highlight h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.hero-banner ul {
    list-style: none;
    margin: 20px 0 30px;
}

.hero-banner ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

body[dir="rtl"] .hero-banner ul li {
    padding-left: 0;
    padding-right: 30px;
}

.hero-banner ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

body[dir="rtl"] .hero-banner ul li:before {
    left: auto;
    right: 0;
}

.hero-banner-cta {
    text-align: center;
    margin-top: 40px;
}

.donate-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    text-decoration: none;
}

.donate-now-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(to right, var(--primary-light), var(--primary));
}

.donate-now-btn i {
    font-size: 1.2rem;
}

/* Header - تم تقليل الهوامش */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 2px 0; /* تقليل الهوامش من 5px إلى 2px */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0; /* تقليل الهوامش الداخلية */
}

/* Header RTL Fix */
body[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* تقليل الفجوة */
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1001;
}

body[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

/* تحديث حجم الشعار - تقليل 40% */
.logo-img {
    width: 180px; /* تقليل من 300px إلى 180px */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition);
    background-color: transparent;
}

.logo-img:hover {
    transform: scale(1.03);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* إخفاء نص الشعار */
.logo-text {
    display: none;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 15px; /* تقليل الهامش */
}

body[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 15px; /* تقليل الهامش */
}

.lang-toggle {
    background: white;
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 50px;
    padding: 6px 12px; /* تقليل الحشو */
    display: flex;
    align-items: center;
    gap: 8px; /* تقليل الفجوة */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.lang-toggle:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lang-toggle.active {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.lang-flag {
    width: 22px; /* تصغير قليلاً */
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem; /* تصغير الخط */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem; /* تصغير الخط */
    min-width: 35px; /* تصغير العرض */
}

.lang-arrow {
    color: var(--gray);
    font-size: 0.75rem; /* تصغير السهم */
    transition: var(--transition);
}

.lang-toggle.active .lang-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.lang-options {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 130px; /* تصغير العرض */
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body[dir="rtl"] .lang-options {
    right: auto;
    left: 0;
}

.lang-toggle.active + .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px; /* تقليل الحشو */
    display: flex;
    align-items: center;
    gap: 10px; /* تقليل الفجوة */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.lang-option.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.lang-option-name {
    font-weight: 500;
    font-size: 0.9rem; /* تصغير الخط */
}

.lang-option .lang-flag {
    width: 18px;
    height: 14px;
    font-size: 0.75rem;
}

body[dir="rtl"] .lang-option {
    flex-direction: row;
}

/* تحسين Navigation - إضافة الروابط المهمة */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px; /* تقليل الفجوة بين الروابط */
    margin: 0;
    padding: 0;
}

body[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem; /* تصغير الخط قليلاً */
    padding: 6px 0; /* تقليل الحشو */
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* تصغير الارتفاع */
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

body[dir="rtl"] nav a:after {
    right: 0;
    left: auto;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem; /* تصغير حجم الأيقونة */
    color: var(--primary);
    cursor: pointer;
    margin-left: 10px; /* تقليل الهامش */
}

body[dir="rtl"] .mobile-menu-btn {
    margin-left: 0;
    margin-right: 10px; /* تقليل الهامش */
}

/* Hero Section - تم التحديث مع فيديو فقط */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    margin-top: 184px; /* تقليل الهامش بعد تصغير الهيدر */
    text-align: center;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 184px);
    min-height: 500px;
}

/* فيديو الهيرو - يأخذ المساحة كاملة */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05); /* زيادة السطاع والتباين */
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    background-image: url('https://images.unsplash.com/photo-1544027993-37dbfe43562a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
}

.no-video .hero-video-fallback {
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)); /* تقليل التعتيم */
    z-index: 2;
}

/* تعريف مختصر للفيديو فقط - تم التحديث */
.video-info-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    width: auto;
    max-width: 90%;
    background: transparent;
    padding: 0;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

body[dir="rtl"] .video-info-container {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

body[dir="rtl"] @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

.video-info-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body[dir="rtl"] .video-info-container:hover {
    transform: translateX(50%) translateY(-5px);
}

.video-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow: hidden;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: black;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--primary);
    transform: rotate(90deg);
}

body[dir="rtl"] .modal-close {
    right: auto;
    left: 15px;
}

.modal-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    max-height: 30vh;
    overflow-y: auto;
}

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

.modal-info p {
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery {
    background-color: #fafafa;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

body[dir="rtl"] .filter-btn {
    flex-direction: row;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.filter-btn i {
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.gallery-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px 20px 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

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

.gallery-overlay-content h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: -60px;
    right: 15px;
}

body[dir="rtl"] .gallery-view-btn {
    right: auto;
    left: 15px;
}

.gallery-item:hover .gallery-view-btn {
    top: 15px;
}

.gallery-view-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Gallery Lightbox */
.gallery-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: black;
}

.modal-gallery-image {
    width: 100%;
    height: 70vh;
    object-fit: contain;
    display: block;
}

.gallery-modal-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
}

.gallery-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.gallery-modal-info {
    flex: 1;
    text-align: center;
}

.gallery-modal-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.gallery-modal-info p {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.gallery-counter {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
}

#currentImage {
    color: var(--primary);
}

/* News & Stories Section - New Section */
.news-stories {
    background-color: #fafafa;
}

.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.news-filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

body[dir="rtl"] .news-filter-btn {
    flex-direction: row;
}

.news-filter-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.news-filter-btn.active {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.news-filter-btn i {
    font-size: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.news-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.news-card:hover .news-img-container img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

body[dir="rtl"] .news-category {
    left: auto;
    right: 15px;
}

.news-category.story {
    background: var(--secondary);
}

.news-category.achievement {
    background: var(--shelter-color);
}

.news-category.update {
    background: var(--food-color);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-date i {
    color: var(--primary);
}

.news-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.news-read-more:hover {
    color: var(--secondary);
    gap: 12px;
}

.news-read-more i {
    font-size: 0.9rem;
    transition: var(--transition);
}

body[dir="rtl"] .news-read-more i {
    transform: rotate(180deg);
}

.news-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    font-size: 0.85rem;
}

.news-views i {
    color: var(--primary-light);
}

.news-cta {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* About Section - بدون صورة */
.about {
    background-color: var(--light);
    position: relative;
}

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

.about-image {
    display: none; /* إخفاء الصورة */
}

.about-text {
    width: 100%;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* تحسين Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mission-box, .vision-box {
    background-color: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    border-top: 5px solid var(--primary);
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.vision-box {
    border-top: 5px solid var(--secondary);
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.mission-box h4, .vision-box h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vision-box h4 {
    color: var(--secondary);
}

.mission-box p, .vision-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 0;
}

/* Shelters and NFs Section (بديل Founder & CEO) */
.shelters {
    background-color: var(--light);
}

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

.shelters-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    position: relative;
}

.shelters-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    aspect-ratio: 4/3;
}

.shelters-image:hover img {
    transform: scale(1.05);
}

.shelters-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.shelters-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.shelters-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.shelter-stat {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-top: 4px solid var(--shelter-color);
}

.shelter-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.shelter-stat:nth-child(2) {
    border-top: 4px solid var(--food-color);
}

.shelter-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--shelter-color);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.shelter-stat:nth-child(2) .shelter-stat-number {
    color: var(--food-color);
}

.shelter-stat-text {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.shelter-stat-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Founder Section */
.founder {
    background-color: var(--light);
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.founder-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.founder-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.founder-image:hover img {
    transform: scale(1.03);
}

.founder-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.founder-title {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: block;
}

.quote {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow-medium);
    border-left: 5px solid var(--secondary);
    position: relative;
    transition: var(--transition);
}

.quote:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

body[dir="rtl"] .quote {
    border-right: 5px solid var(--secondary);
    border-left: none;
}

.quote:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(210, 16, 52, 0.2);
    font-family: serif;
}

body[dir="rtl"] .quote:before {
    right: 30px;
    left: auto;
}

.quote p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Leadership Team Section */
.leadership {
    background-color: var(--light);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.leader-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    padding: 40px 30px;
    text-align: center;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* إضافة صورة عضو المجلس */
.leader-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 4px solid var(--light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    transition: var(--transition);
}

.leader-img.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    padding: 0;
    position: relative;
}

.leader-name {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.leader-title {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: block;
}

.leader-bio {
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-bottom 0.5s ease;
}

body[dir="rtl"] .leader-bio {
    text-align: right;
}

.leader-bio.show {
    max-height: 1000px;
    margin-bottom: 25px;
}

.view-bio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    margin-top: 15px;
}

.view-bio-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.leader-card:nth-child(1) {
    border-top: 5px solid var(--primary);
}

.leader-card:nth-child(2) {
    border-top: 5px solid var(--secondary);
}

.leader-card:nth-child(3) {
    border-top: 5px solid #FF9800;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
    transition: var(--transition);
}

/* Emergency Response - أزرق */
.service-card:nth-child(1):before {
    background: linear-gradient(to right, var(--emergency-color), #1A5276);
}

/* Livelihood - أخضر */
.service-card:nth-child(2):before {
    background: linear-gradient(to right, var(--livelihood-color), #1E7E34);
}

/* Water & Sanitation - أزرق */
.service-card:nth-child(3):before {
    background: linear-gradient(to right, var(--water-color), #0056B3);
}

/* Health - أحمر داكن */
.service-card:nth-child(4):before {
    background: linear-gradient(to right, var(--health-color), #C82333);
}

/* Education - بنفسجي */
.service-card:nth-child(5):before {
    background: linear-gradient(to right, var(--education-color), #5A2D8C);
}

/* Protection - برتقالي */
.service-card:nth-child(6):before {
    background: linear-gradient(to right, var(--protection-color), #E65C00);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
}

.service-card:hover:before {
    height: 100%;
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

/* ألوان الأيقونات حسب الخدمات */
.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(26, 82, 118, 0.1));
    color: var(--emergency-color);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(30, 126, 52, 0.1));
    color: var(--livelihood-color);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    color: var(--water-color);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    color: var(--health-color);
}

.service-card:nth-child(5) .service-icon {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.1), rgba(90, 45, 140, 0.1));
    color: var(--education-color);
}

.service-card:nth-child(6) .service-icon {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1), rgba(230, 92, 0, 0.1));
    color: var(--protection-color);
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Impact Section */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.impact-stat {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.impact-stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.impact-text {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Donation Section */
.donation {
    background-color: var(--light);
}

.donation-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.donation-amount {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.donation-amount:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(52, 152, 219, 0.05), rgba(210, 16, 52, 0.05));
    transition: var(--transition);
    z-index: 0;
}

.donation-amount:hover, .donation-amount.active {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.donation-amount:hover:before, .donation-amount.active:before {
    height: 100%;
}

.donation-amount h4 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.donation-amount h4:after {
    content: attr(data-currency);
    font-size: 1rem;
    color: var(--gray);
    margin-left: 5px;
}

body[dir="rtl"] .donation-amount h4:after {
    margin-right: 5px;
    margin-left: 0;
}

.donation-amount p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.custom-donation {
    max-width: 500px;
    margin: 40px auto 0;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-donation h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 25px;
}

.donation-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.donation-message {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 15px;
}

.contact-donation {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: var(--transition);
}

.contact-donation:hover {
    background-color: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.contact-donation i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-donation-text h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-donation-text p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(210, 16, 52, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--primary);
}

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

/* Footer */
footer {
    background-color: var(--accent);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.footer-links h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

body[dir="rtl"] .footer-links h4:after {
    right: 0;
    left: auto;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

body[dir="rtl"] .footer-links a {
    flex-direction: row;
}

.footer-links a:hover {
    color: var(--secondary-light);
    transform: translateX(5px);
}

body[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

.copyright a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* أنماط إضافية للفيديو في المعرض */
.gallery-item[data-video="true"] .gallery-img-container {
    position: relative;
}

.gallery-item[data-video="true"] .gallery-img-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.gallery-item[data-video="true"] .video-indicator {
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.gallery-item[data-video="true"] .video-play-btn {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-item[data-video="true"] .video-play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* تحسين عرض الفيديو في Lightbox */
.gallery-modal-container video {
    background: #000;
    width: 100%;
    height: 70vh;
    object-fit: contain;
}

.gallery-modal-container .gallery-modal-nav {
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 1200px) {
    nav ul {
        gap: 15px;
    }
    
    .logo-img {
        width: 160px;
        height: 160px;
    }
    
    .hero {
        margin-top: 170px;
        height: calc(100vh - 170px);
    }
    
    .hero-banner h2 {
        font-size: 2rem;
    }
    
    .video-info-container {
        max-width: 550px;
        padding: 12px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-content, .founder-content {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .founder-image {
        order: 2;
    }

    .founder-info {
        order: 1;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    nav ul {
        gap: 12px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .logo-img {
        width: 140px;
        height: 140px;
    }
    
    .hero {
        margin-top: 150px;
        height: calc(100vh - 150px);
    }
    
    .header-container {
        padding: 3px 0;
    }
    
    .hero-banner h2 {
        font-size: 1.8rem;
    }
    
    .hero-banner .highlight {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    .video-info-container {
        padding: 10px 20px;
        width: 85%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .news-img-container {
        height: 200px;
    }
    
    .shelters-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .shelters-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    nav {
        width: 100%;
        order: 3;
        margin-top: 15px;
        display: none;
        text-align: right;
    }

    nav.active {
        display: block;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;
        padding-right: 20px;
    }

    body[dir="rtl"] nav ul {
        align-items: flex-start;
        padding-right: 0;
        padding-left: 20px;
    }

    nav a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }
    
    body[dir="rtl"] .mobile-menu-btn {
        margin-right: auto;
        margin-left: 10px;
    }

    .language-switcher {
        order: 1;
    }
    
    body[dir="rtl"] .language-switcher {
        margin-right: auto;
        margin-left: 0;
    }

    .hero {
        margin-top: 140px;
        height: calc(100vh - 140px);
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        width: 95%;
        max-height: 95%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    header {
        padding: 0;
    }
    
    .hero-banner h2 {
        font-size: 1.6rem;
    }
    
    .hero-banner {
        padding: 40px 0;
    }
    
    /* تحديث تنسيق مربع الفيديو للموبايل */
    .video-info-container {
        bottom: 30px;
        padding: 10px 15px;
        width: 90%;
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .video-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-filter, .news-filter {
        gap: 8px;
    }
    
    .filter-btn, .news-filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .news-img-container {
        height: 220px;
    }
    
    .gallery-overlay {
        padding: 20px 15px 10px;
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }
    
    .gallery-view-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .gallery-modal-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        order: 3;
    }
    
    .prev-btn {
        order: 1;
    }
    
    .next-btn {
        order: 2;
    }
    
    .gallery-modal-info {
        order: 3;
    }
    
    .modal-gallery-image {
        height: 60vh;
    }
    
    .shelters-info h3 {
        font-size: 1.8rem;
    }
    
    .shelter-stat {
        padding: 20px 15px;
    }
    
    .shelter-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .donation-amount {
        min-width: 120px;
        padding: 20px 15px;
    }

    .donation-amount h4 {
        font-size: 1.8rem;
    }

    .impact-number {
        font-size: 2.5rem;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    .hero {
        margin-top: 110px;
        height: calc(100vh - 110px);
        min-height: 300px;
    }

    .lang-toggle {
        padding: 5px 10px;
    }

    .lang-text {
        font-size: 0.8rem;
    }

    .lang-flag {
        width: 20px;
        height: 15px;
    }

    .contact-donation {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .modal-content {
        width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    body[dir="rtl"] .modal-close {
        right: auto;
        left: 10px;
    }

    .leader-img {
        width: 100px;
        height: 100px;
    }
    
    .hero-banner h2 {
        font-size: 1.4rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .donate-now-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .mission-box, .vision-box {
        padding: 25px 20px;
    }
    
    /* تحسين مربع الفيديو للشاشات الصغيرة */
    .video-info-container {
        bottom: 20px;
        padding: 8px 12px;
        width: 92%;
        max-width: 92%;
    }
    
    .video-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .gallery-grid, .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-btn, .news-filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .filter-btn i, .news-filter-btn i {
        font-size: 0.9rem;
    }
    
    .news-img-container {
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .gallery-overlay-content h4 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay-content p {
        font-size: 0.85rem;
    }
    
    .modal-gallery-image {
        height: 50vh;
    }
}

@media (max-width: 400px) {
    .logo-img {
        width: 90px;
        height: 90px;
    }
    
    .hero {
        margin-top: 100px;
        height: calc(100vh - 100px);
    }
    
    .header-container {
        padding: 8px 0;
    }
    
    /* تحسين نهائي لمربع الفيديو للشاشات الصغيرة جداً */
    .video-info-container {
        bottom: 15px;
        padding: 6px 10px;
        width: 94%;
        max-width: 94%;
    }
    
    .video-title {
        font-size: 0.85rem;
    }
}

/* أنماط إضافية للصفحات المحاكاة */
.demo-page {
    animation: fadeIn 0.3s ease;
}

.demo-page h1, .demo-page h2, .demo-page h3 {
    font-family: 'Poppins', 'Tajawal', sans-serif;
}

.demo-page p {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    line-height: 1.7;
}

.demo-page button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.demo-page a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}