/* CSS العام */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --gray: #95a5a6;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --font-primary: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    direction: rtl;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* الهيدر */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 80px;
    height: 90px;
    margin-left: 10px;
}

.logo h1 {
    font-size: 20px;
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--secondary-color);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* هيرو القسم */
.hero {
    background: linear-gradient(rgba(9, 25, 41, 0.8), rgba(4, 54, 104, 0.8));
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

/* قسم نظرة عامة على الخدمات */
.services-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* قسم الإحصائيات */
.stats {
    padding: 80px 0;
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9));
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

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

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 18px;
}

/* قسم الشهادات */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
}

.client-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.client-info span {
    color: var(--text-light);
    font-size: 14px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--secondary-color);
}

/* صفحة البانر */
.page-banner {
    background: linear-gradient(rgba(9, 25, 41, 0.8), rgba(4, 54, 104, 0.8));
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.page-banner h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
}

/* قسم من نحن */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* قسم الرؤية والرسالة */
.vision-mission {
    padding: 60px 0;
    background-color: var(--light-color);
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vm-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.vm-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.vm-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* قسم الأهداف */
.goals {
    padding: 80px 0;
    background-color: var(--white);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.goal-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: translateY(-10px);
}

.goal-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.goal-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* قسم القيم */
.values {
    padding: 80px 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* قسم الخدمات الرئيسية */
.main-services {
    padding: 80px 0;
    background-color: var(--white);
}

.service-details {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.service-tabs {
    flex: 0 0 250px;
}

.tab {
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab i {
    margin-left: 10px;
    font-size: 20px;
}

.service-content {
    flex: 1;
}

.content-item {
    display: none;
}

.content-item.active {
    display: block;
}

.content-item h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.content-item p {
    margin-bottom: 20px;
    font-size: 16px;
}

.content-item ul {
    margin-bottom: 30px;
}

.content-item ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

.content-item ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* قسم كيف نعمل */
.how-we-work {
    padding: 80px 0;
    background-color: var(--light-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 0 0 calc(25% - 30px);
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* قسم الأسئلة الشائعة */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* قسم التواصل */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}
.contact-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-info h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-color);
}
.contact-form h2 {
            color: #2c3e50;
            margin-bottom: 25px;
            font-size: 28px;
            position: relative;
            padding-bottom: 15px;
        }
.contact-form h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 70px;
            height: 3px;
            background: #3498db;
        }

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* تنسيق قسم معلومات الاتصال */
        .contact-info {
            background: #fff;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .contact-info h2 {
            color: #2c3e50;
            margin-bottom: 25px;
            font-size: 28px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .contact-info h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 70px;
            height: 3px;
            background: #3498db;
        }
        
        .info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .info-item:hover {
            background-color: #f8f9fa;
            transform: translateX(-5px);
        }
        
        .info-item i {
            font-size: 22px;
            color: #3498db;
            background: #e8f4fc;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-left: 15px;
            flex-shrink: 0;
        }
        
        .info-item div {
            flex: 1;
        }
        
        .info-item h3 {
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 18px;
        }
        
        .info-item p {
            color: #555;
            margin-bottom: 5px;
        }
        
        .working-hours {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .working-hours:hover {
            background-color: #f8f9fa;
            transform: translateX(-5px);
        }
        
        .working-hours i {
            font-size: 22px;
            color: #3498db;
            background: #e8f4fc;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-left: 15px;
            flex-shrink: 0;
        }
        
        .working-hours div {
            flex: 1;
        }
        
        .working-hours h3 {
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 18px;
        }
        
        .working-hours p {
            color: #555;
            margin-bottom: 5px;
        }
        
        .social-media {
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        
        .social-media:hover {
            background-color: #f8f9fa;
            transform: translateX(-5px);
        }
        
        .social-media > i {
            font-size: 22px;
            color: #3498db;
            background: #e8f4fc;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-bottom: 15px;
        }
        
        .social-media h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .social-icons {
            display: flex;
            gap: 12px;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: #f1f1f1;
            color: #555;
            border-radius: 50%;
            font-size: 18px;
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            background: #3498db;
            color: #fff;
            transform: translateY(-5px);
        }
          /* التجاوب مع الشاشات المختلفة */
        @media (max-width: 992px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .contact-info {
                padding: 20px;
            }
            
            .info-item, .working-hours, .social-media {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 20px 15px;
            }
            
            .info-item i, .working-hours i {
                margin-left: 0;
                margin-bottom: 15px;
                margin-right: 0;
            }
            
            .social-media > i {
                margin-left: auto;
                margin-right: auto;
            }
            
            .info-item div, .working-hours div {
                width: 100%;
                text-align: center;
            }
            
            .info-item, .working-hours {
                border-right: none;
                border-bottom: 4px solid #3498db;
            }
            
            .working-hours {
                border-bottom-color: #3498db;
            }
            
            .social-media {
                border-right: none;
                border-bottom: 4px solid #3498db;
            }
            
            .social-icons {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            /* توسيط النص في جميع العناصر */
            .info-item h3, 
            .working-hours h3, 
            .info-item p, 
            .working-hours p {
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .contact-info {
                padding: 15px;
            }
            
            .info-item, .working-hours {
                padding: 15px 10px;
            }
            
            .info-item i, .working-hours i {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
            
            .social-icons a {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }
/* قسم الخريطة */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* قسم الأسئلة السريعة */
.quick-questions {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
}

.quick-questions p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.quick-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.quick-question {
    background-color: var(--white);
    padding: 15px;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.quick-question:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}
/* معرض الصور */
.activities-gallery {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 16/9; /* نسبة ثابتة للصور */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

.overlay h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

/* للتجاوبية */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* الفوتر */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    color: var(--gray);
}

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

.footer-col ul li a {
    color: var(--gray);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col ul li i {
    margin-left: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 14px;
}

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

/* التصميم المتجاوب */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .service-details {
        flex-direction: column;
    }
    
    .service-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        justify-content: center;
    }
    
    .steps {
        gap: 30px;
    }
    
    .step {
        flex: 0 0 calc(50% - 30px);
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
    position: fixed;
    top: 120px;
    left: 0;
    width: 60%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%); /* مخفية من اليسار */
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000; /* عشان ما تختفي تحت العناصر */
}

.navbar.active {
    transform: translateX(0); /* تدخل من اليسار */
}

    
    .navbar ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .navbar ul li {
        margin: 0 0 15px 0;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .step::after {
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        margin: 15px auto;
        transform: rotate(90deg);
    }
    
    .step:last-child::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid,
    .values-grid,
    .quick-questions-grid {
        grid-template-columns: 1fr;
    }
    
    .tab {
        min-width: 100%;
    }
}
/* صفحة الأخبار */
.news-page {
    padding: 60px 0;
}

.news-filters {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    background: #eee;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
}

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

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

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

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

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

/* لوحة التحكم */
.admin-login {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
}