/* أنماط عامة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

html[lang="ar"] body {
    direction: rtl;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* الهيدر */
header {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 1rem;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-menu a:hover {
    opacity: 0.8;
}

/* مبدل اللغة */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-switcher button:hover {
    background: rgba(255,255,255,0.3);
}

/* المحتوى الرئيسي */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.intro {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-articles {
    margin-bottom: 3rem;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #6e48aa;
}

/* شبكة المقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* زيادة عرض البطاقات */
    gap: 30px; /* زيادة المسافة بين البطاقات */
    margin: 20px 0;
}

/* Updated Article Card Styles */
.article-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    min-height: 420px;
}

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

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    padding: 10px;
}

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

.article-info {
    padding: 20px;
}

.article-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-info .article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.article-info .article-meta span {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}

.article-info .article-meta .category {
    background: #e3f2fd;
    color: #1976d2;
}

.article-info .article-meta .demographic {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Focus styles for accessibility */
.article-link:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Loading state */
.articles-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.articles-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* الترقيم */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #f0f0f0;
}

.pagination button.active {
    background: #6e48aa;
    color: white;
    border-color: #6e48aa;
}

/* الفلاتر */
.filters {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filters h3 {
    margin-top: 0;
    color: #6e48aa;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-buttons button {
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-buttons button:hover {
    background: #e0e0e0;
}

.filter-buttons button.active {
    background: #6e48aa;
    color: white;
    border-color: #6e48aa;
}

/* الفوتر */
footer {
    background: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* أنماط صفحة المقال */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-image {
    max-width: 100%;       /* لا تتجاوز عرض العنصر المحتوي */
    height: auto;          /* الحفاظ على نسبة الطول/العرض */
    display: block;        /* تجنب المسافات البيضاء تحت الصورة */
    margin: 20px auto;     /* توزيع هوامش متساوية */
    border-radius: 8px;    /* زوايا مدورة */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* ظل خفيف */
    
    /* تحديد أقصى حجم للصورة */
    max-height: 70vh;      /* 70% من ارتفاع الشاشة */
    width: auto;           /* العرض يتكيف مع الارتفاع */
    object-fit: contain;   /* تضمن ظهور الصورة كاملة دون اقتصاص */
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-meta .category {
    background: #f0e6ff;
    color: #6e48aa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-body {
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* للغة العربية */
html[lang="ar"] .article-meta {
    flex-direction: row-reverse;
}

/* أنماط صفحة المقال */
.loading-state {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.not-found-message, .error-message {
    text-align: center;
    padding: 2rem;
}

.not-found-message h1, .error-message h1 {
    color: #d9534f;
    margin-bottom: 1rem;
}

.article-meta {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.article-meta .category {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.article-body {
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* أنماط جديدة لقسم الفلتر */
.filters-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filters-section h3 {
    margin-top: 0;
    color: #6e48aa;
    font-size: 1.2rem;
}

/* تعديل موقع قسم المقالات */
.featured-articles {
    margin-top: 1rem;
}

/* تنسيق أزرار اللغة للموبايل */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .article-card img {
        height: 240px;
    }
@media (max-width: 480px) {
    .article-card img {
        height: 260px; /* صورة أكبر حتى على الجوال */
    }
}
    
    .article-info {
        padding: 12px;
    }
    
    .article-info h3 {
        font-size: 1rem;
    }
    
    .article-image {
        max-height: 50vh;  /* تصغير الحجم في الشاشات الصغيرة */
    }
    
    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .language-switcher button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card img {
        height: 220px;
    }
}

/* أنماط صفحة الشروحات */
#tutorials-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.tutorial-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #6e48aa;
}

.tutorial-level {
    background: #f0e6ff;
    color: #6e48aa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutorial-image {
    width: 100%;
    height: auto; /* تغيير من قيمة ثابتة إلى auto */
    max-height: 200px; /* تحديد أقصى ارتفاع */
    object-fit: contain; /* تغيير من cover إلى contain لعرض الصورة كاملة */
    display: block;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #f9f9f9; /* خلفية فاتحة للجزء الفارغ إذا كانت الصورة غير مربعة */
}

.tutorial-content {
    padding: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #d9534f;
}

.reload-btn {
    background: #6e48aa;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.reload-btn:hover {
    background: #9d50bb;
}

/* Privacy Policy Styles */
.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.6;
    color: #333;
}

.policy-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policy-content h1 {
    color: #6e48aa;
    text-align: center;
    margin-bottom: 0.5rem;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: #6e48aa;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.policy-section a {
    color: #6e48aa;
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 0 0.5rem;
    }
    
    .policy-content {
        padding: 1rem;
    }
}

/* أنماط رسالة الكوكيز */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    direction: rtl;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
}

.cookie-content a {
    color: #9d50bb;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.accept-btn {
    background-color: #6e48aa;
    color: white;
}

.decline-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white !important;
}

.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

.file-upload-button {
  background-color: #4CAF50; /* لون أخضر */
  color: white;             /* لون النص أبيض */
  padding: 10px 20px;       /* هامش داخلي للزر */
  border: none;             /* إزالة الحدود */
  border-radius: 5px;       /* زوايا مدورة */
  cursor: pointer;          /* تغيير شكل المؤشر إلى يد */
  font-size: 16px;          /* حجم الخط */
  transition: background-color 0.3s; /* تأثير تغيير اللون عند التحويم */
}

/* تغيير لون الزر عند التحويم (Hover) */
.file-upload-button:hover {
  background-color: #45a049; /* أخضر غامق */
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  transition: background-color 0.3s;
  margin: 5px;
}

#Subir-Foto-2 {
  background-color: #2196F3;
}

#Subir-Foto-2:hover {
  background-color: #0b7dda;
}

#downloadGifButton {
  background-color: #2196F3;
}

#downloadGifButton:hover {
  background-color: #0b7dda;
}

#refreshButton {
  background-color: #f44336;
}

#refreshButton:hover {
  background-color: #d32f2f;
}

.more-link.button:last-child {
  background-color: #f44336;
}

.more-link.button:last-child:hover {
  background-color: #d32f2f;
}

/* 1. تضبيط حجم حاوية SweetAlert الأساسية */
.swal2-popup {
  width: auto !important;
  max-width: 95vw; /* لا يتعدى 95% من عرض الشاشة */
  padding: 10px;
}

/* 2. التحكم في حجم حاوية القص */
.cropper-container {
  position: relative;
  max-width: 100%;
  max-height: 70vh; /* 70% من ارتفاع الشاشة */
  margin: 0 auto;
  overflow: hidden;
}

/* 3. تضبيط الصورة داخلها */
#dynamicImageToCrop {
  display: block;
  max-width: 100%;
  max-height: 65vh; /* أقل بقليل من الحاوية */
  width: auto;
  height: auto;
  object-fit: contain; /* للحفاظ على التناسب */
}

/* 4. تعديل أدوات التحكم في القص */
.cropper-face {
  background-color: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.7);
}

.cropper-point {
  width: 12px;
  height: 12px;
  background-color: #4CAF50;
  opacity: 0.8;
}

/* 5. تضبيط الأزرار في الأسفل */
.swal2-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.button {
  min-width: 120px;
}

/* تحسين حجم وعرض حاوية القص */
#cropModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 9999;
  overflow: auto;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.cropper-container {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
}

.cropper-wrap-box {
  max-height: 65vh;
}

svg {
    width: 100%;
}
#related-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* أنماط المقالات ذات الصلة */
.related-articles-section {
    margin: 60px 0 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.related-articles-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #6e48aa;
    font-size: 1.5rem;
}

/* تعديلات لجعل الشبكة مناسبة لعدد قليل من المقالات */
.related-articles-section .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .related-articles-section .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* التأكد من أن الروابط تشغل المساحة كاملة */
.article-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* تعديلات للعرض على الجوال */
@media (max-width: 768px) {
    .related-articles-section .articles-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* أنماط قائمة الأقسام المحسنة */
/* أنماط قائمة الأقسام */
.categories-nav {
    background: transparent;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

/* تأثير خلفية متحركة */
.categories-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110, 72, 170, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.category-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 80px;
}

/* تأثير الضوء المتحرك */
.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110, 72, 170, 0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

/* الحالة العادية للأزرار */
.category-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* الحالة النشطة */
.category-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 111, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.category-btn.active::before {
    display: none;
}

/* تأثير النقر */
.category-btn:active {
    transform: translateY(0) scale(0.98);
}

/* تأثير التركيز للوصولية */
.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* للشاشات المتوسطة */
@media (max-width: 768px) {
    .categories-nav {
        padding: 12px 0;
    }
    
    .categories-container {
        gap: 8px;
        padding: 0 15px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 70px;
    }
}

/* للشاشات الصغيرة */
@media (max-width: 480px) {
    .categories-nav {
        padding: 10px 0;
    }
    
    .categories-container {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
        gap: 6px;
    }
    
    .categories-container::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }
    
    .category-btn:hover {
        transform: translateY(-1px) scale(1.02);
    }
}

/* تحسينات إضافية للغة العربية */
html[lang="ar"] .categories-container {
    direction: rtl;
}

html[lang="ar"] .category-btn {
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* تأثير الظل المتدرج */
.categories-nav {
    position: relative;
}

.categories-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 25%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0.3) 75%, 
        transparent 100%);
}

/* تأثير الانتقال السلس بين الصفحات */
.category-btn {
    position: relative;
    z-index: 1;
}

/* تحسين التباين للقراءة */
@media (prefers-contrast: high) {
    .category-btn {
        background: transparent;
        color: white;
        border: 3px solid white;
    }
    
    .category-btn.active {
        background: #ff6b6b;
        color: white;
        border-color: white;
    }
}

/* تحسين للحركة المخفضة */
@media (prefers-reduced-motion: reduce) {
    .categories-nav::before,
    .category-btn::before {
        animation: none;
        transition: none;
    }
    
    .category-btn {
        transition: background-color 0.2s, color 0.2s;
    }
}

/* إضافة تأثير نبضة للزر النشط */
.category-btn.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(238, 90, 111, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(238, 90, 111, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(238, 90, 111, 0.3);
    }
}
.language-switcher-footer a {
    margin: 0 10px;
    color: #F5F5F5;
    text-decoration: none;
}
.language-switcher-footer a:hover {
    opacity: 0.8;
}
/* إضافة هذه الأنماط لـ style-v6.css */

/* التحسين الأساسي للـ Pagination */
/* الـ Pagination الأساسي */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination button:hover {
    background: #f0f0f0;
}

.pagination button.active {
    background: #6e48aa;
    color: white;
    border-color: #6e48aa;
}

/* للموبايل - استبدال كامل */
@media (max-width: 480px) {
    .pagination {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    .pagination button {
        padding: 0.4rem 0.2rem !important;
        font-size: 0.8rem !important;
        min-width: unset !important;
        width: 100% !important;
    }
}