/* تنسيق عام للموقع */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-display: swap;
}

/* تحسين الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* تحسين CLS - Cumulative Layout Shift */
.hero-section {
    min-height: 400px;
}

.product-card img,
.main-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* تحسين الأداء */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* تحسين الإمكانية */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* تحسين متقدم للاستجابة */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 15px 25px;
    }
}

/* تحسين الطباعة */
@media print {
    .header, .footer, .cta-button, .whatsapp-icon {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* تنسيق الهيدر */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 70px;
}

.logo {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.logo:hover {
    color: #ffd700;
    transform: scale(1.05);
    text-decoration: none;
}

.logo:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.logo img {
    height: 32px;
    width: 32px;
    margin-left: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo:hover img {
    transform: rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd700;
    transform: translateY(-1px);
}

.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffd700;
    font-weight: 600;
}

/* تنسيق المحتوى الرئيسي */
.main-content {
    margin-top: 80px;
    min-height: 100vh;
}

/* تنسيق البانر الرئيسي */
.hero-section {
    background: linear-gradient(rgba(44, 90, 160, 0.85), rgba(30, 58, 138, 0.85)), url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
    font-weight: 900;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #f8f9fa;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: 500;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: #ffffff;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 3;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(45deg, #20c356, #0f7a52);
}

.whatsapp-icon {
    margin-left: 10px;
    font-size: 1.4rem;
}

/* تنسيق النصوص الإضافية في الهيرو */
.hero-content .contact-info {
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content strong {
    color: #ffd700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    font-weight: 800;
    font-size: 1.1em;
}

.hero-content p strong {
    display: inline-block;
    padding: 5px 0;
}

/* تنسيق الأقسام */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2c5aa0;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #2c5aa0, #1e3a8a);
    margin: 15px auto;
    border-radius: 2px;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* تنسيق المدن */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.city-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.city-card a {
    text-decoration: none;
    color: #2c5aa0;
    font-weight: bold;
    font-size: 1.1rem;
}

.city-card a:hover {
    color: #1e3a8a;
}

/* تنسيق الوسائل الاجتماعية */
.social-media {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-link.facebook {
    background: linear-gradient(45deg, #1877f2, #0d4ec4);
}

.social-link.facebook:hover {
    background: linear-gradient(45deg, #1565d4, #0b3ba8);
}

.social-link.whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.social-link.whatsapp:hover {
    background: linear-gradient(45deg, #20c356, #0f7a52);
}

.social-link.telegram {
    background: linear-gradient(45deg, #0088cc, #005577);
}

.social-link.telegram:hover {
    background: linear-gradient(45deg, #006699, #003344);
}

.social-link.instagram {
    background: linear-gradient(45deg, #e4405f, #833ab4);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #d1384a, #6b2d8f);
}

.social-link.twitter {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.social-link.twitter:hover {
    background: linear-gradient(45deg, #1a91da, #0a7bc4);
}

.social-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .social-icons {
        gap: 10px;
    }
    
    .social-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .social-link span {
        display: none;
    }
}

/* إضافة أزرار المشاركة الاجتماعية */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* تنسيق الفوتر */
.footer {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-info {
    margin: 25px 0;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}

.contact-info a {
    color: #ffd700;
    text-decoration: none;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.contact-info a:hover {
    color: #fff;
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

/* تنسيق النصوص العامة في الفوتر */
.footer p {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 10px 0;
    letter-spacing: 0.3px;
}

.footer strong {
    font-weight: 700;
    color: #ffd700;
}

/* تنسيق الجوال */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        text-shadow: 3px 3px 10px rgba(0,0,0,0.9);
        color: #ffffff;
        font-weight: 900;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
        color: #f8f9fa;
        line-height: 1.7;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    
    .contact-info {
        font-size: 1.3rem;
        margin: 30px 0;
    }
    
    .contact-info a {
        font-size: 1.4rem;
    }
}

/* تنسيق صفحة المنتج */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.product-images {
    display: grid;
    gap: 15px;
}

.main-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    transform: scale(1.05);
    border-color: #2c5aa0;
}

.product-info h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.product-description {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    margin: 20px 0;
}

.product-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.product-features li:before {
    content: '✓';
    color: #25d366;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* تنسيق صفحة المدينة */
.city-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.city-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.city-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* أنيميشن التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* تنسيق الأزرار */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #2c5aa0, #1e3a8a);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

/* تنسيق الجداول */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #2c5aa0;
    color: white;
    font-weight: bold;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* تنسيق القائمة المنسدلة للجوال */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.1);
    color: #ffd700;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-radius: 0 0 15px 15px;
        z-index: 1000;
        width: 100%;
        min-height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 8px 0;
        width: 100%;
    }
    
    .nav-menu a {
        font-family: 'Tajawal', 'Cairo', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        padding: 12px 16px;
        border-radius: 8px;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
        color: white;
        text-decoration: none;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255,255,255,0.2);
        color: #ffd700;
        transform: translateY(-2px);
    }
    
    .nav-menu a.active {
        background-color: rgba(255,255,255,0.3);
        color: #ffd700;
        font-weight: 600;
    }
}

/* Blog Styles */
.featured-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #1e3a8a;
}

.article-content p {
    font-family: 'Tajawal', sans-serif;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-meta {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.article-meta span {
    margin-left: 15px;
}

.article-meta i {
    margin-left: 5px;
    color: #2c5aa0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #25d366);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 15px 0;
    color: #333;
}

.category-card p {
    font-family: 'Tajawal', sans-serif;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-count {
    background: #f0f8ff;
    color: #2c5aa0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    display: inline-block;
}

.related-link-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #2c5aa0;
}

.related-link-card:hover {
    transform: translateY(-3px);
}

.related-link-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-link-card h3 a {
    color: #2c5aa0;
    text-decoration: none;
}

.related-link-card p {
    font-family: 'Tajawal', sans-serif;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.resource-links ul li {
    transition: transform 0.3s ease;
}

.resource-links ul li:hover {
    transform: translateX(-5px);
}

/* حركة انزلاق القائمة */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Optimizations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn, .cta-button {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* SEO and Accessibility Improvements */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus indicators for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2c5aa0;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}
