/* ===== إعدادات عامة ===== */
body {
  font-family: "Droid Arabic Kufi", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #212529;
  direction: rtl;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}
a.nav-link {
  white-space: nowrap;
}
a.dropdown-item {
  color: #dc3545;
}

.container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 1rem;
}

/* ===== دعم اللغات ===== */
/* دعم الاتجاه من اليمين إلى اليسار */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", sans-serif;
}

/* دعم الاتجاه من اليسار إلى اليمين */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="ltr"] .navbar-nav {
  margin-right: auto !important;
  margin-left: 0 !important;
}

html[dir="ltr"] .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

html[dir="ltr"] .me-2 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

html[dir="ltr"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* ===== شريط التنقل ===== */
.navbar {
  background: linear-gradient(90deg in oklab, #0b2968, #179def);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: #fff;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: #495057;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* ===== نموذج البحث ===== */
form.d-flex {
  display: flex;
  align-items: center;
}

form.d-flex input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 0.5rem;

  width: 180px;
}

form.d-flex button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form.d-flex button:hover {
  background-color: #0056b3;
}
[lang="ar"] form.d-flex {
  direction: ltr;
}

.sp-title-bar {
  display: flex;
  max-width: 1280px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: auto;
  align-items: center;
  position: relative;
  right: -30px;
}

.sp-title-bar img {
  width: 380px;
  max-width: 100%;
}
.sp-title-bar div.wellcome {
  width: 780px;
  max-width: 100%;
}
[lang="ar"] .sp-title-bar div.wellcome {
  width: 860px;
}
.sp-title-bar div.wellcome {
  width: 860px;
}
.sp-title-bar div.wellcome h2 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: bold;
  margin-bottom: 15px;
  background: -webkit-linear-gradient(135deg, #0b2968, #179cee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sp-title-bar div.wellcome p {
  font-size: 21px;
  text-align: justify;
}
.categories-wrapper {
  margin: auto;
}
/* ===== المقالات في الصفحة الرئيسية ===== */
.post-list-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.post-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
}

.post-excerpt {
  color: #333;
  margin-top: 10px;
  display: none;
}

/* ===== بطاقات الأخبار ===== */
.news-card {
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  height: 200px;
  object-fit: cover;
}

.news-card .card-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.news-card .card-text {
  color: #666;
  font-size: 0.9rem;
}

/* ===== البطاقات العامة ===== */
.card {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
}

.card .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
}

.card .btn:hover {
  background-color: #0056b3;
}

/* ===== الشريط الجانبي ===== */
.row-sp.row {
  justify-content: space-between;
}
.sidebar-widget {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* ===== المقالات في الشريط الجانبي ===== */
.sidebar-post-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-post-item h6 {
  font-size: 0.9rem;
  line-height: 1.3;
}

.sidebar-post-item img {
  height: 60px;
  object-fit: cover;
}

/* ===== أسعار العملات في الصفحة الرئيسية ===== */
.currency-rates-home {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.currency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.currency-header h3 {
  color: #0b2968;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}

.view-all-btn {
  background: linear-gradient(90deg in oklab, #0b2968, #179def);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: linear-gradient(90deg in oklab, #179def, #0b2968);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(11, 41, 104, 0.3);
}

.currency-table-home {
  overflow-x: auto;
}

.currency-table-home table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.currency-table-home th {
  background: linear-gradient(90deg in oklab, #0b2968, #179def);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  border: none;
  font-size: 0.95rem;
}

.currency-table-home td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: middle;
}

.currency-table-home tbody tr:hover {
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.currency-table-home tbody tr:last-child td {
  border-bottom: none;
}

.currency-info-home {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 8px;
}

.currency-symbol-home {
  background: linear-gradient(90deg in oklab, #0b2968, #179def);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.currency-details-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.currency-name-home {
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
}

.currency-code-home {
  color: #666;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.rate-buy-home {
  color: #28a745;
  font-weight: bold;
  font-size: 1rem;
}

.rate-sell-home {
  color: #dc3545;
  font-weight: bold;
  font-size: 1rem;
}

.last-update-home {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  color: #666;
}

@media (max-width: 768px) {
  .currency-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
     margin-bottom: 0px; 
     padding-bottom: 0px;
  }
  
  .currency-table-home th,
  .currency-table-home td {
    padding: 8px 4px;
    font-size: 0.85rem;
  }
  
  .currency-symbol-home {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
  
  .currency-info-home {
     flex-direction: column;
     gap: 3px;
   }
 }
 
 .sidebar-post-item small {
  font-size: 0.75rem;
}

/* ===== تحسين قسم التصنيفات ===== */
.categories-nav {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.categories-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: -200% 0;
  }
  50% {
    background-position: 200% 0;
  }
}

.categories-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.categories-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-item {
  margin: 0;
  position: relative;
}

.category-link {
  display: inline-flex;
  align-items: center;
  color: #d70000;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.category-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.category-link:hover::before {
  left: 100%;
}

.category-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.category-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.text-dark {
  color: #0b2968 !important;
  font-weight: bold;
}
a.btn.btn-sm.btn-primary.mt-2,
.bg-primary {
  background: #cd140b !important;
}
.row > div {
  text-align: start;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
  .categories-nav {
    padding: 12px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }

  .categories-wrapper {
    padding: 0 10px;
  }

  .categories-list {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .category-link {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 20px;
    min-width: auto;
    white-space: nowrap;
  }

  /* تحسين العرض للشاشات الصغيرة جداً */
  @media (max-width: 480px) {
    .categories-list {
      gap: 6px;
    }

    .category-link {
      font-size: 13px;
      padding: 8px 14px;
      border-radius: 18px;
    }
  }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
  .categories-wrapper {
    max-width: 1400px;
  }

  .category-link {
    font-size: 17px;
    padding: 14px 24px;
  }
}

/* تعديل للغة الإنجليزية */
html[dir="ltr"] .category-item {
  margin-left: 0;
  margin-right: 0;
}

/* ===== قائمة التصنيفات ===== */
.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: #007bff;
}

/* ===== المساحات الإعلانية ===== */
.ad-space.bg-light.text-center {
  margin-bottom: 15px;
}
.ad-space {
  border: 1px dashed #ccc;
  border-radius: 5px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-space img {
  max-width: 100%;
}

.ad-space-top img {
  max-width: 100%;
  width: 100%;
  height: 100%;
}

.ad-space h5 {
  margin-bottom: 0;
}

/* ===== الروابط الاجتماعية ===== */
.social-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
  background-color: #007bff;
  color: #fff;
}

/* ===== الفوتر ===== */
.footer {
  background-color: #0b2968;
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 2rem;
  text-align: center;
}
footer .row > div {
  text-align: start;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.footer-contact p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-left: 10px;
  color: #007bff;
  width: 20px;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}

.footer-links a:hover {
  color: #fff;
  padding-right: 5px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: flex-end;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: #007bff;
  transform: translateY(-3px);
}

/* تعديل للغة الإنجليزية */
html[dir="ltr"] .footer-contact i {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

html[dir="ltr"] .social-links {
  justify-content: flex-start;
}

html[dir="ltr"] .social-links a {
  margin-right: 0;
  margin-left: 10px;
}

/* تعديل للشاشات الصغيرة */
@media (max-width: 768px) {
  .social-links {
    justify-content: center;
    margin-top: 15px;
  }

  .copyright {
    text-align: center;
  }
  .category-link {
    font-size: 1.1rem;
    padding: 3px 6px;
    white-space: nowrap;
  }
}

/* ===== الفوتر المحسن ===== */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    height: 100%;
    transition: all 0.3s ease;
}

/* شعار الفوتر */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-brand {
    color: #3498db;
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* عناوين الأقسام */
.footer-title {
    color: #3498db;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
}

/* وصف الفوتر */
.footer-description {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: justify;
}

/* إحصائيات الفوتر */
.footer-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}



/* قوائم الفوتر */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-radius: 5px;
}

.footer-menu a:hover {
    color: #3498db;
    transform: translateX(5px);
    background: rgba(52, 152, 219, 0.1);
    padding-right: 0.5rem;
}

.footer-menu a i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.footer-menu a:hover i {
    color: #3498db;
}

/* معلومات الاتصال */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-icon i {
    color: white;
    font-size: 1rem;
}

.contact-details h6 {
    color: #ecf0f1;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
}

.contact-details p {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* وسائل التواصل الاجتماعي */
.social-media {
    margin-top: 2rem;
}

.social-title {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-links-modern {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: #bdc3c7;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.social-link.facebook:hover {
    border-left-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.social-link.twitter:hover {
    border-left-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.social-link.instagram:hover {
    border-left-color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.social-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-link span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* الجزء السفلي من الفوتر */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright-text {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
}

.footer-bottom-links a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.footer-bottom-links a i {
    margin-left: 0.3rem;
}

/* ===== إحصائيات الفوتر المحسنة ===== */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.5rem;
    color: #4CAF50;
    min-width: 30px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

.footer-additional-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.additional-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.additional-stat i {
    color: #4CAF50;
    font-size: 1rem;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .social-links-modern {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .copyright-text {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-link {
        padding: 0.6rem;
    }
    
    .social-link span {
        display: none;
    }
    
    .social-link i {
        font-size: 1.4rem;
    }
}

/* الوضع المظلم للفوتر */
.dark-mode .footer-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dark-mode .footer-title {
    color: #4fc3f7;
}

.dark-mode .footer-title::after {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
}

.dark-mode .footer-brand {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .contact-icon {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
}

.dark-mode .footer-menu a:hover {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.dark-mode .footer-menu a:hover i {
    color: #4fc3f7;
}

.dark-mode .social-link.facebook:hover {
    border-left-color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
}

.dark-mode .social-link.twitter:hover {
    border-left-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.dark-mode .social-link.instagram:hover {
    border-left-color: #E1306C;
    background: rgba(225, 48, 108, 0.1);
}

.dark-mode .footer-bottom-links a:hover {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

/* الوضع المظلم للإحصائيات */
.dark-mode .footer-stats {
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
    border-color: rgba(255,255,255,0.05);
}

.dark-mode .stat-item {
    background: rgba(0,0,0,0.2);
}

.dark-mode .stat-item:hover {
    background: rgba(0,0,0,0.3);
}

.dark-mode .additional-stat {
    color: rgba(255,255,255,0.7);
}

/* تأثيرات متقدمة للإحصائيات */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

/* أنيميشن للأرقام */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* تأثير التمرير السلس */
.footer-modern {
    scroll-behavior: smooth;
}

/* تحسين الخطوط */
.footer-modern {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

.footer-title,
.footer-brand {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

/* ===== شريط الأخبار ===== */
/* ===== شريط الأخبار المتحرك ===== */
.news-ticker {
  display: flex;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 50px;
  position: relative;
}

.news-ticker-label {
  background-color: #dc3545;
  color: #fff;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  min-width: 120px;
  z-index: 2;
}

.news-ticker-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.news-ticker-wrapper {
  display: flex;
  position: absolute;
  animation: ticker-scroll 180s linear infinite;
  white-space: nowrap;
  height: 100%;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  min-width: 300px;
}

.news-ticker-item a {
  color: #333;
  font-weight: 500;
  margin-left: 10px;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker-item a:hover {
  color: #dc3545;
}

.news-ticker-date {
  color: #6c757d;
  font-size: 0.85rem;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* تعديل للغة الإنجليزية */
html[dir="ltr"] .news-ticker-wrapper {
  animation-direction: reverse;
}

/* تعديل للشاشات الصغيرة */
@media (max-width: 768px) {
  .news-ticker {
    flex-direction: column;
    height: auto;
  }

  .news-ticker-label {
    width: 100%;
    min-width: auto;
    padding: 5px 15px;
  }
  .news-ticker-wrapper {
    position: relative;
  }

  .news-ticker-container {
    height: 40px;
  }

  .news-ticker-item {
    min-width: 250px;
  }
}

/* إيقاف الحركة عند تمرير المؤشر */
.news-ticker-container:hover .news-ticker-wrapper {
  animation-play-state: paused;
}

.news-strip-header {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
}

.news-strip-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.news-strip-content {
  padding: 0;
}

.news-strip-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-strip-item:last-child {
  border-bottom: none;
}

.news-strip-title {
  flex: 1;
}

.news-strip-title a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.news-strip-title a:hover {
  color: #007bff;
  text-decoration: none;
}

.news-strip-date {
  color: #6c757d;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: 10px;
}

/* تعديل للغة الإنجليزية */
html[dir="ltr"] .news-strip-date {
  margin-right: 0;
  margin-left: 10px;
}

/* تحسينات للقائمة الرئيسية */
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.navbar-nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dropdown-menu {
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.dropdown-item.active {
  background-color: #007bff;
  color: #fff;
}

/* تحسينات لشريط الأخبار المتحرك */
.news-ticker {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* تحسينات للبحث */
.navbar .form-control {
  border-radius: 20px 0 0 20px;
  border: none;
}

.navbar .btn-outline-light {
  border-radius: 0 20px 20px 0;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }

  .dropdown-menu {
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
  }

  .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .navbar .d-flex {
    margin-top: 1rem;
    width: 100%;
  }
}

/* تحسينات لشريط الأقسام على الأجهزة المحمولة */
@media (max-width: 576px) {
  .categories-nav {
    padding: 5px 0;
  }

  .category-link {
    font-size: 0.8rem;
    padding: 3px 6px;
    white-space: nowrap;
  }

  .categories-wrapper {
    padding-bottom: 5px;
  }

  .categories-wrapper::-webkit-scrollbar {
    height: 3px;
  }
}

/* تحسينات للبطاقات والمحتوى على الأجهزة المحمولة */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .card-img-top {
    height: 180px;
  }

  .sidebar-widget {
    padding: 15px;
    margin-bottom: 15px;
  }

  .sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  /* تحسين المساحات بين العناصر */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12,
  .col-sm,
  .col-md,
  .col-lg,
  .col-xl {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 576px) {
  .news-ticker {
    height: auto;
    display: flex;
    flex-direction: row;
    padding-bottom: 3px;
  }

  .news-ticker-label {
    padding: 5px 10px;
    font-size: 0.85rem;
    width: 20%;
    min-width: auto;
    padding: 5px 0px;
    font-size: 12px;
    border-radius: 0px 8px 8px 0px;
  }

  .news-ticker-container {
    height: 35px;
  }

  .news-ticker-item {
    padding: 0 10px;
  }

  .news-ticker-item a {
    font-size: 0.85rem;
  }

  .news-ticker-date {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }

  .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .footer-contact p {
    font-size: 0.9rem;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }

  .copyright {
    font-size: 0.85rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}
.news-item {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.news-item h3 {
  order: 1; /* يجعل العنوان يأتي أولاً */
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.news-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.news-item .news-image {
  order: 2; /* يجعل الصورة تأتي بعد العنوان */
}

/* أنماط المقالات المتحركة المحدثة */
.animated-posts-section {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
}

.animated-posts-container {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  perspective: 1000px;
}

.animated-post-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%) rotateY(15deg) scale(0.9);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.animated-post-item.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 10;
}

.animated-post-item.prev {
  opacity: 0.3;
  transform: translateX(-100%) rotateY(-15deg) scale(0.9);
  z-index: 5;
}

.animated-post-item.next {
  opacity: 0.3;
  transform: translateX(100%) rotateY(15deg) scale(0.9);
  z-index: 5;
}

/* تأثير التمرير السلس مع الانزلاق */
.animated-post-item.sliding-left {
  animation: slideOutLeft 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.animated-post-item.sliding-right {
  animation: slideOutRight 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.animated-post-item.sliding-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animated-post-item.sliding-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* تأثيرات الحركة المحسنة */
@keyframes slideOutLeft {
  0% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) rotateY(-10deg) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-100%) rotateY(-20deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(50%) rotateY(10deg) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(100%) rotateY(20deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%) rotateY(-20deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-20%) rotateY(-5deg) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%) rotateY(20deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(20%) rotateY(5deg) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

/* تأثير التمويه أثناء الانتقال */
.animated-posts-container.transitioning .animated-post-item:not(.active) {
  filter: blur(2px);
  transition: filter 0.3s ease;
}

.post-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.animated-post-item:hover .post-image {
  transform: scale(1.08) rotate(1deg);
}

.animated-post-item.active .post-image {
  transform: scale(1.02);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: white;
  border-radius: 15px;
  backdrop-filter: blur(1px);
}

.post-category {
  align-self: flex-start;
  transform: translateY(-10px);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.3s forwards;
}

.category-badge {
  background: linear-gradient(
    135deg,
    rgba(205, 20, 11, 0.9),
    rgba(255, 35, 11, 0.9)
  );
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(205, 20, 11, 0.3);
}

.category-badge:hover {
  background: linear-gradient(
    135deg,
    rgba(205, 20, 11, 1),
    rgba(255, 35, 11, 1)
  );
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(205, 20, 11, 0.5);
}

.post-content {
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.post-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.post-title a {
  color: white;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-block;
}

.post-title a:hover {
  color: #ffd700;
  transform: scale(1.02);
  text-shadow: 2px 2px 12px rgba(255, 215, 0, 0.5);
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease 0.7s forwards;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.post-meta span:hover {
  transform: translateY(-2px);
}

/* تأثيرات الظهور */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* أزرار التنقل المحسنة */
.animated-posts-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 20;
}

.nav-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: none;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: all;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(205, 20, 11, 0.9),
    rgba(255, 35, 11, 0.8)
  );
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 12px 35px rgba(205, 20, 11, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-btn:active {
  transform: scale(1.05) translateY(0);
}

/* مؤشرات النقاط المحسنة */
.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  z-index: 15;
  position: relative;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(205, 20, 11, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #cd140b;
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.indicator.active {
  background: #cd140b;
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(205, 20, 11, 0.4);
}

.indicator.active::before {
  width: 100%;
  height: 100%;
}

.indicator:hover:not(.active) {
  background: rgba(205, 20, 11, 0.6);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* تأثير الموجة عند النقر */
.indicator:active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(205, 20, 11, 0.5);
  border-radius: 50%;
  animation: ripple 0.6s ease-out;
  transform: translate(-50%, -50%);
}

@keyframes ripple {
  to {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .animated-posts-container {
    height: 320px;
  }

  .post-overlay {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .indicator {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .animated-posts-container {
    height: 180px;
  }

  .post-overlay {
    padding: 1rem;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .category-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* تأثير التحميل */
.animated-posts-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.animated-posts-container.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(205, 20, 11, 0.3);
  border-top: 3px solid #cd140b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 100;
}


.sidebar-post-item.mb-3.loogo {
    text-align: center;
    display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* الوضع الليلي */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .post-list-item,
.dark-mode .featured-news,
.dark-mode .excerpt-card {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: #ffffff !important;
}

.dark-mode .card {
  background-color: #1e1e1e;
  border-color: #333;
}

.dark-mode .text-dark {
  color: #e0e0e0 !important;
}
.dark-mode .d-flex input[type="search"] {
  background: #979797;
}
.dark-mode .navbar {
  background: linear-gradient(90deg in oklab, #353535, #040505);
}
.dark-mode .news-ticker.mb-4,
.dark-mode .categories-nav,
.dark-mode .ad-space,
.dark-mode .random-excerpts,
.dark-mode .featured-section {
  background: #252525 !important;
}
.dark-mode footer {
  background: #121212;
}

.dark-mode .news-ticker-item a,
.dark-mode .news-ticker-date {
  color: #fff;
}
.dark-mode .ad-space img {
  mix-blend-mode: overlay;
}

/* الوضع الليلي للتصنيفات */
.dark-mode .categories-nav {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom-color: #4a5568;
}

.dark-mode .category-link {
  background: #4a5568;
  color: #e2e8f0;
  border-color: #4a5568;
}

.dark-mode .category-link:hover {
  background: linear-gradient(135deg, #3182ce, #2c5aa0);
  border-color: #3182ce;
  color: #ffffff;
}
