/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* الأنيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Meta Information */
.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.gallery-date,
.gallery-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-date i,
.gallery-views i {
    font-size: 0.8rem;
}

.gallery-views {
    color: #4CAF50;
    font-weight: 500;
}

/* Admin Gallery Styles */
.admin-gallery-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #4CAF50;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.admin-gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.admin-gallery-item:hover {
    transform: translateY(-5px);
}

.admin-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.admin-item-info {
    padding: 1rem;
}

.admin-item-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.admin-item-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-admin {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-toggle {
    background: #FF9800;
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-admin:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-active {
    background: #4CAF50;
    color: white;
}

.status-inactive {
    background: #f44336;
    color: white;
}

.featured-badge {
    background: #FFD700;
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-blue);
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

/* الألوان الأساسية */
:root {
    /* تدرجات اللون الأزرق */
    --primary-blue: #002f6c;
    --primary-blue-light: #0047a0;
    --primary-blue-lighter: #0060d4;
    --primary-blue-dark: #00204d;
    --primary-blue-darker: #00102e;
    
    /* تدرجات اللون الأصفر */
    --primary-yellow: #f9c300;
    --primary-yellow-light: #ffcf33;
    --primary-yellow-lighter: #ffdb66;
    --primary-yellow-dark: #d9a800;
    --primary-yellow-darker: #b98e00;
    
    /* تدرجات اللون الأحمر */
    --primary-red: #dc3545;
    --primary-red-light: #e85a6b;
    --primary-red-lighter: #f48491;
    --primary-red-dark: #c82333;
    --primary-red-darker: #a71e2a;
    
    /* تدرجات الألوان الرمادية */
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #002f6c;
    --white: #ffffff;
    
    /* تدرجات خلفية */
    --blue-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    --yellow-gradient: linear-gradient(135deg, var(--primary-yellow), var(--primary-yellow-light));
    --red-gradient: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    --blue-yellow-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    --red-yellow-gradient: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
}

/* تنسيق الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تنسيق الهيدر */
.header {
    background: var(--blue-gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,47,108,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 10px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 70px;
    width: auto;
    border-radius: 50%;
    border: 3px solid var(--primary-yellow);
    box-shadow: 0 4px 10px rgba(0, 47, 108, 0.2);
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: rotate(5deg);
    box-shadow: 0 6px 12px rgba(249, 195, 0, 0.4);
}

.logo-text {
    position: relative;
}

.logo-text h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.logo-text h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow-gradient);
    transition: width 0.3s ease;
}

.logo:hover .logo-text h1::after {
    width: 100%;
}

.logo-text p {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* تنسيق القائمة الرئيسية */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: var(--yellow-gradient);
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 195, 0, 0.3);
}

/* تنسيق القسم الرئيسي */
.hero-section {
    background: var(--blue-gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(249, 195, 0, 0.1)"/></svg>');
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: var(--blue-gradient);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 47, 108, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--yellow-gradient);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.cta-button:hover {
    color: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 195, 0, 0.4);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* سلايدر القسم الرئيسي */
.hero-slider {
    padding: 0;
    min-height: 520px;
    background: none;
}
.hero-slider .container {
    padding: 0 20px;
}
.hero-slider-track {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 1s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.15) 100%);
    padding: 80px 0;
    color: white;
}
.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.hero-prev,
.hero-next {
    background: rgba(255,255,255,0.8);
    color: var(--primary-blue);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.hero-prev:hover,
.hero-next:hover {
    background: white;
    transform: translateY(-2px);
}
.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.hero-dot.active {
    width: 16px;
    border-radius: 10px;
    background: white;
}

/* تنسيق الأقسام */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--yellow-gradient);
    margin: 20px auto;
    border-radius: 2px;
}

/* تنسيق البطاقات */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,47,108,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)), var(--blue-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,47,108,0.15);
    background-image: linear-gradient(var(--white), var(--white)), var(--yellow-gradient);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--yellow-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(249, 195, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(249, 195, 0, 0.4);
}

.card-icon i {
    display: block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

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

.card p {
    color: var(--primary-blue);
    line-height: 1.7;
}

/* تنسيق الفوتر */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* تنسيق النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* تنسيق متجاوب */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* تنسيق اللغة الإنجليزية */
body.en {
    direction: ltr;
    text-align: left;
}

body.en .header-content {
    flex-direction: row-reverse;
}

body.en .logo {
    flex-direction: row-reverse;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* تنسيق الأزرار الثانوية */
.btn-secondary {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    border-color: var(--primary-yellow);
}



/* قائمة التنقل المتجاوبة */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--primary-yellow);
}

.mobile-menu-toggle:hover span {
    background-color: var(--primary-blue);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* تحويل أيقونة الهامبرغر إلى X عند الفتح */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* إعدادات الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        box-shadow: 0 5px 15px rgba(0, 47, 108, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--primary-yellow);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 10px;
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    .main-nav a:hover {
        background-color: var(--primary-yellow);
        color: var(--primary-blue);
        transform: none;
        padding-right: 20px;
    }
    
    .header-content {
        position: relative;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 45px;
    }
}

/* إعدادات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* تحسينات للانتقالات السلسة */
.main-nav ul li {
    transition: all 0.3s ease;
}

.main-nav ul li:hover {
    transform: translateX(5px);
}

@media (min-width: 769px) {
    .main-nav ul li:hover {
        transform: translateY(-2px);
    }
}

/* إضافة تأثير الظل للقائمة المنسدلة */
@media (max-width: 768px) {
    .main-nav::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
        background: var(--primary-yellow);
        opacity: 0.5;
    }
}

/* تحسين مظهر القائمة على الأجهزة اللوحية */
@media (min-width: 481px) and (max-width: 768px) {
    .main-nav ul {
        padding: 25px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 18px 15px;
    }
}

/* تحسينات إضافية للصفحات الفرعية */
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* تصميم قسم المدونة الصحية */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    position: relative;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 25px;
}

.blog-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--primary-blue);
    line-height: 1.4;
    font-weight: 600;
}

.blog-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-yellow);
}

.blog-excerpt {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-card .btn:hover {
    background: #1a5490;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 84, 144, 0.3);
}

/* تحسينات قسم الأخبار والفعاليات */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

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

.news-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.news-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.news-category {
    background: rgba(255,255,255,0.95);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.news-category.events {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
}

.news-category.campaigns {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.news-category.workshops {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

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

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    font-style: normal;
}

.event-date {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.news-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--primary-yellow);
}

.news-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(0, 47, 108, 0.05);
    border-radius: 10px;
    border-right: 3px solid var(--primary-blue);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-blue));
}

.news-btn i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.news-btn:hover i {
    transform: translateX(-3px);
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-news-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-news h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-news p {
    color: #666;
    font-size: 1.1rem;
}

.news-actions {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.view-all-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.view-all-news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-news-btn:hover::before {
    left: 100%;
}

.view-all-news-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-blue));
}

.view-all-news-btn i {
    font-style: normal;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.view-all-news-btn:hover i {
    transform: translateX(-5px);
}

/* Patch: ensure gallery modal image is visible */
.gallery-modal img,
.fancybox__image,
.lightbox img {
  max-width: 100% !important;
  max-height: 70vh !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* تحسينات المودال واللايتبوكس */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* تأكد من أن المودال يظهر فوق جميع العناصر */
[style*="z-index: 99999"] {
  z-index: 99999 !important;
}

/* تحسين مظهر المودال على الجوال */
@media (max-width: 768px) {
  [style*="max-width:90%"] {
    max-width: 95% !important;
    max-height: 85% !important;
  }
  
  [style*="max-height:70vh"] {
    max-height: 60vh !important;
  }
}
