  :root {
  /* الألوان الجديدة */
  --primary-color: #bf1e2e; /* أزرق داكن أنيق للعناوين */
  --secondary-color: #1263B8; /* برتقالي دافئ للعناصر المميزة */
  --accent-color: #8e1f1f; /* وردي نابض بالحياة */
  --light-color: #E4E4E4; /* خلفية فاتحة جداً */
  --dark-color: #0A0000; /* لون نص أساسي داكن */
  --text-color-light: #6c757d; /* لون نص ثانوي */

  /* تأثير الانتقال */
  --transition: all 0.4s ease-in-out;

  /* الظل */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

/* التنسيقات العامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الشريط العلوي */
.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-contact span {
  margin-left: 20px;
}

.top-bar-social a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}

.top-bar-social a:hover {
  color: var(--secondary-color);
}

.jerusalem-clock {
  background-color: #bf1e2e;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.jerusalem-clock i {
  margin-left: 8px;
}

/* شريط الأخبار المتحرك */
.news-ticker {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 999;
}

.news-ticker:hover {
  background-color: #303f9f;
}

.news-ticker-label {
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  margin-right: 20px;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.news-ticker-label i {
  margin-left: 8px;
  font-size: 16px;
}

.news-ticker-content {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#news-list {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  animation: ticker-animation 45s linear infinite;
}

#news-list:hover {
  animation-play-state: paused;
}

#news-list li {
  position: relative;
  display: inline-block;
  padding-right: 25px;
}

#news-list li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

#news-list li a:hover {
  color: var(--secondary-color);
}

#news-list li::before {
  content: '•';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.2em;
}

@keyframes ticker-animation {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* شريط التنقل */
.navbar {
  background-color: #bf1e2e;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 5px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  padding: 12px 18px;
  display: block;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 700;
}

.nav-links li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links li:hover::after,
.nav-links li.active::after {
  width: 100%;
}

.language-select {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.language-select a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  margin-left: 8px;
  transition: var(--transition);
}

.language-select a:hover {
  background-color: var(--primary-color);
  color: white;
}
/* زر الهمبرجر */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    gap: 6px;
    z-index: 1200;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: #333;
    display: block;
    transition: all 0.3s ease;
}

/* الخلفية المعتمة */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

#overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* القائمة الجانبية */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1150;
    padding-top: 60px;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

/* منع التمرير عند فتح القائمة */
 body.sidebar-open {
    overflow: hidden;
}

/* زر الهمبرجر للشاشات الصغيرة فقط */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
}

/* الشريط الكبير (Hero Section) */
.hero {
  background: linear-gradient(rgba(63, 81, 181, 0.8), rgba(255, 152, 0, 0.7)),
    url('https://images.pexels.com/photos/207732/pexels-photo-207732.jpeg') no-repeat
    center center/cover;
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
  position: relative;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* الأقسام الرئيسية */
.services-section,
.featured-articles,
.news-section,
.latest-releases,
.partners-section,
.newsletter,
.featured-books {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin: 50px 0 40px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
  font-weight: bold;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* إصلاح قسم المقالات المميزة */
.featured-articles {
  background-color: #e9ecef;
}

.articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.articles-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.article-item {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: white;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.article-item.main {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  visibility: visible;
  pointer-events: auto;
}

.article-item.left {
  opacity: 0.8;
  transform: translateX(-50%) scale(0.95);
  z-index: 2;
  visibility: visible;
  pointer-events: auto;
}

.article-item.right {
  opacity: 0.8;
  transform: translateX(50%) scale(0.95);
  z-index: 2;
  visibility: visible;
  pointer-events: auto;
}

.article-img {
  height: 250px;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-item:hover .article-img img {
  transform: scale(1.05);
}

.article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-link {
  margin-top: 15px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* قسم الكتب */
.featured-books {
  background-color: white;
}

.books-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.book-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.book-cover {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
}

.book-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.book-author {
  color: var(--text-color-light);
  font-size: 15px;
  margin-bottom: 15px;
}

.book-excerpt {
  color: var(--dark-color);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.book-btn {
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  text-align: center;
  flex: 1;
}

.book-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.book-btn-primary:hover {
  background-color: #303f9f;
  transform: translateY(-2px);
}

.book-btn-secondary {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.book-btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* الأخبار والفعاليات */
/* =============================
   قسم الفعاليات - موحد مع باقي البطاقات
   ============================= */

/* =============================
   قسم الفعاليات - موحد مع باقي البطاقات
   ============================= */

/* حاوية الفعاليات */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* بطاقات الفعاليات */
.event-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* الصورة */
.event-thumb {
    height: 250px; /* نفس ارتفاع الصور في البطاقات الأخرى */
    overflow: hidden;
    position: relative;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-thumb img {
    transform: scale(1.05);
}

/* شارة الفعالية (إذا كانت غير نشطة) */
.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    z-index: 2;
}

/* المحتوى الداخلي للبطاقة */
.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* تاريخ الفعالية */
.event-date {
    color: var(--text-color-light);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.event-date i {
    margin-left: 8px;
}

/* عنوان الحدث */
.event-title {
    margin-bottom: 15px;
}

.event-title a {
    color: var(--primary-color);
    font-size: 20px; /* نفس حجم عناوين البطاقات الأخرى */
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.event-title a:hover {
    color: var(--secondary-color);
}

/* وصف الحدث */
.event-excerpt {
    color: var(--text-color-light);
    font-size: 15px; /* نفس حجم النصوص الأخرى */
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* أزرار التسجيل */
.event-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.register-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    flex: 1;
}

.register-button:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.details-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    flex: 1;
}

.details-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* الفعاليات غير النشطة */
.event-card.inactive-event {
    opacity: 0.7;
}

.event-card.inactive-event .event-thumb img {
    filter: grayscale(50%);
}

.event-card.inactive-event .register-button {
    background-color: var(--text-color-light);
    cursor: not-allowed;
}

/* التجاوبية للشاشات الصغيرة */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-actions {
        flex-direction: column;
    }
}
/* قسم آخر الإصدارات */
.latest-releases {
  background-color: var(--light-color);
  padding: 70px 0;
}

.releases-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.release-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.release-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.release-img {
  height: 200px;
  overflow: hidden;
}

.release-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.release-card:hover .release-img img {
  transform: scale(1.05);
}

.release-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.release-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.release-date {
  color: var(--text-color-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.release-excerpt {
  color: var(--dark-color);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.release-btn {
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  text-align: center;
  flex: 1;
}

.release-btn-download {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.release-btn-download:hover {
  background-color: #e6b325;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.release-btn-preview {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.release-btn-preview:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* النافذة المنبثقة */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: auto;
  width: 90%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.4s;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 22px;
  margin: 0;
  font-weight: 600;
}

.close-modal {
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--secondary-color);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  color: var(--dark-color);
  line-height: 1.8;
}

.modal-footer {
  padding: 20px 30px;
  background-color: var(--light-color);
  display: flex;
  justify-content: flex-end;
}

/* الخدمات */
.services-section {
  background-color: #f0f2f5;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.service-card p {
  color: var(--text-color-light);
}

/* الشركاء */
.partners-section {
  background-color: white;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}

.partner-logo {
  text-align: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
}

/* النشرة البريدية */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.newsletter h3 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.newsletter p {
  margin-bottom: 30px;
  font-size: 18px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.newsletter-input {
  flex: 1;
  max-width: 400px;
  padding: 15px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: #e6b325;
}

/* التذييل */
.footer {
  background-color:#bf1e2e;
  color: white;
  padding: 70px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  color: var(--secondary-color);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color:#bf1e2e;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.footer-col ul li a:hover {
  color: white;
  transform: translateX(-5px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact li i {
  margin-left: 10px;
  color: var(--secondary-color);
  margin-top: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #999;
}

/* التجاوبية (Mobile Responsive) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .articles-slider {
    min-height: 400px;
  }

  .article-item.left,
  .article-item.right {
    opacity: 0;
    transform: translateX(0) scale(0.9);
    visibility: hidden;
  }

  .article-item.main {
    width: 100%;
    position: relative;
    transform: none;
  }

  .slider-controls {
    display: none;
  }

  .featured-grid-container {
    grid-template-columns: 1fr;
  }

  .featured-grid-container .main-article {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    border-radius: 50px;
  }

  .newsletter-input {
    margin-bottom: 10px;
  }

  .releases-container,
  .news-container,
  .books-container,
  .services-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-content {
    width: 95%;
  }

  .news-ticker {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-ticker-label {
    margin-bottom: 10px;
    margin-right: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .news-ticker-content {
    width: 100%;
  }

  #news-list {
    animation: none;
    display: block;
    text-align: right;
  }

  #news-list li {
    margin-bottom: 10px;
    padding-right: 15px;
  }

  .logo img {
    height: 50px;
  }
}

/* تنسيقات الصفحات الداخلية */
.page-main-content {
  padding: 70px 0;
}

.page-section {
  background-color: white;
}

.page-content {
  line-height: 1.8;
  color: var(--dark-color);
  font-size: 16px;
}

/* تنسيق المحتوى الداخلي للصفحات */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--primary-color);
  margin: 30px 0 15px;
  font-weight: 700;
}

.page-content h1 {
  font-size: 2.2rem;
}
.page-content h2 {
  font-size: 2rem;
}
.page-content h3 {
  font-size: 1.8rem;
}
.page-content h4 {
  font-size: 1.6rem;
}
.page-content h5 {
  font-size: 1.4rem;
}
.page-content h6 {
  font-size: 1.2rem;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--dark-color);
}

.page-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.page-content a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.page-content ul,
.page-content ol {
  margin-bottom: 20px;
  padding-right: 20px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-content ul li::before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 5px;
}

.page-content ol li::before {
  display: none;
}

.page-content figure {
  margin: 25px 0;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.page-content blockquote {
  border-right: 5px solid var(--secondary-color);
  padding-right: 20px;
  margin: 25px 0;
  font-style: italic;
  color: var(--text-color-light);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* تنسيق الحاوية الرئيسية للصفحة */
.single-post-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* تنسيق المقال نفسه */
.single-post {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* تنسيق عنوان المقال وتاريخه */
.entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.entry-title {
  color: var(--primary-color);
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 10px;
}

.entry-meta {
  color: var(--text-color-light);
  font-size: 1em;
}

/* تنسيق الصورة البارزة (thumbnail) */
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* تنسيق محتوى المقال */
.entry-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--dark-color);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: var(--primary-color);
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 5px;
}

/* تنسيق الروابط داخل المحتوى */
.entry-content a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--secondary-color);
  transition: var(--transition);
}

.entry-content a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* تنسيقات قسم المقالات المميزة الجديد */
.featured-grid-container {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

/* تنسيقات المقالة الرئيسية */
.featured-grid-container .main-article {
  grid-column: 1;
  grid-row: 1;
}

/* تنسيقات المقالات الجانبية */
.featured-grid-container .side-articles {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

/* لتنسيق الشاشة الكبيرة (أجهزة الكمبيوتر المكتبية) */
@media (min-width: 992px) {
  .featured-grid-container {
    grid-template-columns: 2fr 1fr; /* المقالة الرئيسية تأخذ ضعف مساحة المقالات الجانبية */
  }

  .featured-grid-container .main-article {
    grid-row: span 2; /* المقالة الرئيسية تأخذ مساحة صفين */
  }

  .featured-grid-container .side-articles {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

/* تنسيقات قسم أحدث المقالات الجديد */
.latest-articles {
  padding: 60px 0;
  background-color: #ffffff;
}

.main-article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  overflow: hidden;
  transition: var(--transition);
}

.main-article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.main-article-card .article-image {
  width: 100%;
  height: auto;
  display: block;
}

.main-article-card .article-content {
  padding: 25px;
}

.main-article-card .article-title {
  font-size: 26px;
  margin-top: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.main-article-card .article-title a {
  text-decoration: none;
  color: inherit;
}

/* تنسيقات الشبكة للمقالات الأربع الأخرى */
.articles-grid-container {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.article-card .article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-card .article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card .article-date {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.article-card .article-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.article-card .article-title a {
  text-decoration: none;
  color: inherit;
}

.article-card .article-excerpt {
  font-size: 15px;
  color: var(--text-color-light);
  flex-grow: 1;
}

@media (min-width: 768px) {
  .main-article-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
  }

  .main-article-card .article-image {
    height: 100%;
    object-fit: cover;
  }
}
/* تنسيقات جديدة لتصحيح مشكلة اختيار اللغة */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.language-selector {
  margin-right: 20px;
}
/*
 * =============================
 * تنسيقات قسم الأبحاث والدراسات
 * =============================
 */

/* تنسيق القسم الرئيسي */
.research-section {
  padding: 70px 0;
  background-color: var(--light-color); /* استخدام المتغير */
}

.research-section .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* تنسيق الشبكة (Grid) لعرض المقالات */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
}

/* تنسيق بطاقة المقال الفردي */
.research-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.research-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.research-card:hover .research-card-image {
  transform: scale(1.05);
}

.research-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card-content h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
}
.archive-releases {
    padding: 20px;
    background-color: #f4f4f4;
}

.releases-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.release-item {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.release-item h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.release-item p {
    font-size: 1em;
    color: #555;
}
.page-content-wrapper .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}
/* ========== الأزرار العامة ========== */
.btn-back {
  display: inline-block;
  margin: 10px 8px;
  padding: 10px 20px;
  background: #1e3a8a;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.btn-back:hover {
  background: #2563eb;
  transform: translateY(-3px);
}
.btn-back i {
  margin-right: 8px;
  font-size: 16px;
}

/* ========== قسم الهيرو ========== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('<?php echo get_template_directory_uri(); ?>/assets/images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}
.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-buttons .btn {
  margin: 0 10px;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}
.hero-buttons .btn-primary {
  background: #facc15;
  color: #000;
}
.hero-buttons .btn-primary:hover {
  background: #eab308;
}
.hero-buttons .btn-secondary {
  background: #2563eb;
  color: #fff;
}
.hero-buttons .btn-secondary:hover {
  background: #1d4ed8;
}

/* ========== أقسام المحتوى ========== */
.page-section {
  padding: 70px 20px;
  background: #f9fafb;
}
.page-section:nth-child(even) {
  background: #fff;
}
.section-title h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #2563eb;
  margin: 12px auto 0;
  border-radius: 2px;
}
.page-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

/* ========== أزرار العودة (المجموعة) ========== */
.back-buttons {
  text-align: center;
  margin: 50px 0;
}
/* تنسيقات الاستطلاعات */
.poll-card {
    transition: all 0.3s ease;
}

.poll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.poll-options .form-check {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.poll-options .form-check:hover {
    background: #f8f9fa;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.poll-total {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}
