    /* ===============================
   البوابة الجزائرية للخدمات الرقمية
   ملف CSS موحد - الإصدار 1.0
   =============================== */

/* ---------------------------------
   1. المتغيرات العامة وإعادة التعيين
--------------------------------- */
:root {
  --primary-green: #006233;
  --primary-red: #a52a2a;
  --light-bg: #f7fdf9;
  --dark-bg: #1e1e1e;
  --text-dark: #333;
  --text-light: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 6px rgba(0, 98, 51, 0.08);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --danger: #d40000;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  font-display: swap;
}

body {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 130px;
  /* تعويض ارتفاع الهيدر الثابت */
  font-size: 1rem;
}

/* ---------------------------------
   2. الهيدر الثابت وشريط التنقل العلوي
--------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-green);
  color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  padding: 4px 6px;
  min-height: 30px;
  transition: transform 0.25s ease;
}

header.hide-header {
  transform: translateY(-100%);
}

.branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.branding i {
  font-size: 20px;
}

.branding h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.branding .logo {
  width: 32px;
  height: auto;
  margin-left: 5px;
  vertical-align: middle;
  object-fit: contain;
}

/* صندوق الطقس */
#weatherBox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--white);
  font-size: 0.8rem;
  margin: 2px 0;
  background: #006400;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 4px 12px;
  max-width: 350px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#weatherIcon {
  width: 28px;
  height: 28px;
}

#weatherInfo {
  flex: 1;
  white-space: nowrap;
}

#refreshWeatherBtn {
  border: none;
  background: #006420;
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

/* زر الإشعارات */
#notifyBtn {
  border: none;
  background: var(--danger);
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  position: relative;
}

#notifyBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff0;
  color: #000;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.7em;
  display: none;
}

#notifyPanel {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 280px;
  border: 2px solid var(--danger);
}

#notifyPanel h4 {
  margin: 0 0 10px;
  color: var(--primary-green);
}

#notifyPanel p {
  margin: 0;
  color: #333;
}

/* زر الوضع الليلي */
#darkModeToggle {
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
}

/* منطقة البحث */
#searchArea {
  padding: 0 9px 2px;
  margin-bottom: 0;
}

#searchBox {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#searchInput {
  width: 100%;
  max-width: 600px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* شريط الأخبار */
#newsBar {
  background-color: var(--primary-green);
  color: #fff;
  padding: 3px 4px;
  font-weight: bold;
  font-size: 0.85rem;
  overflow: hidden;
  margin-top: 2px;
}

#newsTickerContainer {
  overflow: hidden;
}

#newsTicker {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  animation: scrollNewsLTR 70s linear infinite;
}

#newsTickerContainer:hover #newsTicker {
  animation-play-state: paused;
}

#newsTicker a {
  color: #ff0;
  text-decoration: underline;
}

@keyframes scrollNewsLTR {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ---------------------------------
   3. الأقسام الرئيسية والعناوين
--------------------------------- */
section {
  background: var(--white);
  border: 1px solid #cde7da;
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

section:hover {
  transform: scale(1.005);
}

section h2,
section h3 {
  background: #f0faf6 !important;
  color: var(--primary-red) !important;
  padding: 12px 16px;
  font-size: 1.05em;
  border-radius: 10px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

section h2:hover,
section h3:hover {
  background: #cde7da !important;
}

section h2 .toggle-icon,
section h3 .toggle-icon {
  transition: transform 0.4s ease;
  font-size: 1em;
}

section h2.open .toggle-icon,
section h3.open .toggle-icon {
  transform: rotate(90deg);
}

/* القوائم الداخلية (Accordion) */
ul {
  list-style: none;
  padding: 0 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

ul.show {
  max-height: 5000px;
  opacity: 1;
}

section ul li {
  padding: 8px 4px;
  border-bottom: 1px dashed #ccc;
  transition: background 0.2s ease;
  color: #880000;
  word-wrap: break-word;
}

section ul li:hover {
  background: #fdf5f5;
}

/* أنماط الأكورديون للمحتوى (للصفحات الفرعية) */
.accordion-content {
  display: none;
  overflow: hidden;
}

.accordion-content.active {
  display: block;
}

/* ---------------------------------
   4. الروابط والأزرار العامة
--------------------------------- */
a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: #880000;
  text-decoration: underline;
}

/* تأثير البرق تحت الروابط */
a.lightning {
  position: relative;
  z-index: 0;
  text-decoration: none;
}

a.lightning::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff0022 35%, #ff7a7a 55%, transparent 100%);
  transform-origin: left center;
  transform: scaleX(0) skewX(-12deg);
  filter: drop-shadow(0 0 6px rgba(255, 0, 34, 0.65));
  z-index: -1;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.2s;
  opacity: 0.98;
}

a.lightning:hover::after,
a.lightning:focus::after {
  transform: scaleX(1) skewX(0);
  animation: lightningFlash 0.45s ease-out;
}

@keyframes lightningFlash {
  0% {
    transform: scaleX(0) skewX(-18deg) translateX(-8%);
  }

  45% {
    transform: scaleX(1.15) skewX(2deg) translateX(0);
  }

  70% {
    transform: scaleX(0.95) skewX(-6deg) translateX(6%);
  }

  100% {
    transform: scaleX(1) skewX(0) translateX(0);
  }
}

/* زر المشاركة */
.share-button {
  background-color: var(--danger);
  color: white;
  padding: 8px 11px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 3px 6px rgba(212, 0, 0, 0.2);
  margin-top: 2px;
  display: inline-block;
}

.share-button:hover {
  background-color: #a30000;
  transform: scale(1.04);
}

/* زر تثبيت التطبيق */
#install-button {
  background-color: var(--danger);
  color: #fff;
  padding: 8px 18px;
  margin: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#install-button i {
  font-size: 0.85em;
}

#install-button:hover {
  background-color: #a30000;
  transform: scale(1.04);
}

/* زر العودة للأعلى */
#scrollTopBtn {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

/* ---------------------------------
   5. قسم الترحيب والإحصائيات
--------------------------------- */
.welcome-section {
  text-align: center;
  background: linear-gradient(135deg, #f0f9f5 0%, #e6f4ed 100%);
  padding: 16px 13px;
  border-radius: 16px;
  margin: 7px auto;
  max-width: 1000px;
  box-shadow: 0 5px 15px rgba(0, 98, 51, 0.1);
  position: relative;
  overflow: hidden;
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.welcome-logo {
  max-width: 120px;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.welcome-title {
  color: var(--primary-green);
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.1;
}

.welcome-description {
  font-size: 0.9em;
  color: #333;
  max-width: 800px;
  margin: 0 auto 18px;
  line-height: 1.4;
}

.welcome-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px 0;
}

.stat-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 13px 10px;
  border-radius: 10px;
  min-width: 80px;
  flex: 1;
  max-width: 120px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
}

.stat-icon {
  color: var(--primary-green);
  font-size: 1.3em;
  margin-bottom: 6px;
}

.stat-title {
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 3px;
  font-size: 0.9em;
}

.stat-value {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--primary-red);
}

/* ---------------------------------
   6. شريط التنقل المتحرك (Nav Scroller)
--------------------------------- */
.nav-scroller {
  position: relative;
  z-index: 2;
  height: 58px;
  overflow: hidden;
  margin: 20px 0;
  direction: ltr;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-scroller-inner {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 5px;
  animation: scrollBanner 20s linear infinite;
}

.nav-scroller:hover .nav-scroller-inner {
  animation-play-state: paused;
}

.nav-item {
  flex: 0 0 auto;
  margin: 0 5px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--primary-green);
  text-decoration: none;
  border-radius: 10px;
  padding: 7px 9px;
  width: 65px;
  height: 45px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  font-size: 0.73em;
  font-weight: bold;
  text-align: center;
}

.nav-link:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 98, 51, 0.2);
}

.nav-icon {
  font-size: 9px;
}

@keyframes scrollBanner {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ---------------------------------
   7. بطاقات القطاعات (الصفحة الرئيسية)
--------------------------------- */
.section-title {
  text-align: center;
  color: var(--primary-green);
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.sector-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.sector-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-green);
  box-shadow: 0 8px 20px rgba(0, 98, 51, 0.2);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 15px;
}

.sector-card h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.sector-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.card-link {
  color: var(--primary-red);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
}

.sector-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.sector-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sector-card:hover .sector-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------
   8. تخطيط الصفحات الفرعية (شريط جانبي + محتوى)
--------------------------------- */
.page-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.sidebar {
  flex: 1 1 250px;
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.sidebar h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 2px solid #cde7da;
  padding-bottom: 8px;
}

.sidebar ul {
  list-style: none;
  max-height: none;
  opacity: 1;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  transition: background 0.2s;
  color: var(--text-dark);
  font-weight: normal;
}

.sidebar a i {
  width: 20px;
  color: var(--primary-red);
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    text-decoration: none;
}


/* الوضع العادي (كمبيوتر) */
.sidebar {
    width: 250px;
}

.menu-toggle {
    width: 42px;
    height: 38px;
    border: none;
    background: var(--primary-green);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-light);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: white;
    display: block;
    transition: 0.3s;
}

/* إظهار الزر فقط على الهاتف */
@media (max-width:768px) {
    .menu-toggle {
        display: flex;
    }
}

.menu-toggle.active span:nth-child(1){
    transform: rotate(45deg) translate(5px,5px);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg) translate(5px,-5px);
}
/* عند الشاشات الصغيرة */
@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
    }

    .sidebar.active {
        right: 0;
    }

    /* طبقة تغطية */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        display: none;
        z-index: 998;
    }

    .overlay.active {
        display: block;
    }
}


.menu-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sidebar ul li a:hover .menu-icon {
    transform: scale(1.1);
    transition: 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: #e6f4ed;
  color: var(--primary-green);
  text-decoration: none;
}



@media (hover:hover){
  .sidebar a:hover{
    background:#e6f4ed;
    color:var(--primary-green);
  }
}

a, button{
  -webkit-tap-highlight-color: transparent;
}

.content {
  flex: 3 1 600px;
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.page-title {
  color: var(--primary-green);
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid #cde7da;
  padding-bottom: 10px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.title-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.page-title:hover .title-icon {
  transform: scale(1.1);
}

/* مجموعات الخدمات (Accordion) */
.service-group {
  margin-bottom: 15px;
  border: 1px solid #cde7da;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.group-header {
  background: #f0faf6;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-red);
  font-weight: bold;
  transition: background 0.2s;
}

.group-header:hover {
  background: #cde7da;
}

.group-header i {
  transition: transform 0.3s;
}

.group-content {
  padding: 15px;
  background: white;
  display: none;
}

.service-item {
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item a {
  color: var(--primary-red);
  font-weight: 600;
}

.service-desc {
  color: #666;
  font-size: 0.9em;
}

/* معلومات الاتصال في الصفحات الفرعية */
.contact-info {
  margin-top: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: var(--border-radius-sm);
  border-right: 4px solid var(--primary-green);
}

.contact-info p {
  margin: 8px 0;
}

/* مسار التنقل (Breadcrumb) */
.breadcrumb {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 15px;
  color: #666;
}

.breadcrumb a {
  color: var(--primary-green);
  font-weight: normal;
}

.breadcrumb span {
  color: var(--primary-red);
  font-weight: bold;
}

/* ---------------------------------
   9. تذييل الصفحة (Footer)
--------------------------------- */
.main-footer {
  background: var(--primary-green);
  color: #ffffff;
  padding-top: 30px;
  margin-top: 40px;
  font-family: 'Cairo', sans-serif;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #c1c9e2;
  display: inline-block;
  padding-bottom: 5px;
  color: white;
}

.footer-about p {
  line-height: 1.8;
  font-size: 14px;
  color: #cbd5e1;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 70%;
  height: auto;
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
  padding: 0;
  max-height: none;
  opacity: 1;
  display: block !important;
  visibility: visible !important;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-right: 5px;
}

.footer-bottom {
  background: #006233;
  text-align: center;
  padding: 12px 10px;
  font-size: 15px;
  border-top: 1px solid #1e293b;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 6px 0;
}

/* ---------------------------------
   10. الوضع الليلي (Dark Mode)
--------------------------------- */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

body.dark-mode section,
body.dark-mode .sidebar,
body.dark-mode .content,
body.dark-mode .sector-card,
body.dark-mode .service-group,
body.dark-mode .stat-box,
body.dark-mode .nav-link,
body.dark-mode .welcome-section {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode #newsBar {
  background-color: #333 !important;
}

body.dark-mode a {
  color: #80cbc4;
}

body.dark-mode a:hover {
  color: #4db6ac;
}

body.dark-mode .group-header {
  background: #3a3a3a;
  color: #ffb74d;
}

body.dark-mode .group-content {
  background: #2d2d2d;
}

body.dark-mode .service-item {
  border-bottom-color: #555;
}

/* ---------------------------------
   11. تحسينات للهواتف (Media Queries)
--------------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 0.95em;
    padding-top: 150px;
  }

  .branding h1 {
    font-size: 1em;
  }

  header h1 {
    font-size: 1.0em;
  }

  section h2,
  section h3 {
    font-size: 1em;
    padding: 8px;
  }

  ul li {
    font-size: 0.95em;
    padding: 4px 0;
  }

  #searchInput {
    font-size: 0.95em;
    padding: 8px;
  }

  #scrollTopBtn {
    font-size: 24px;
    padding: 14px;
  }

  .welcome-title {
    font-size: 1.3em;
  }

  .welcome-description {
    font-size: 0.85em;
    padding: 0 5px;
  }

  .stat-box {
    min-width: 90px;
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 1.2em;
  }

  .stat-title {
    font-size: 0.8em;
  }

  .nav-link {
    width: 65px;
    height: 45px;
    font-size: 0.6em;
  }

  .nav-icon {
    font-size: 12px;
  }

  .nav-scroller {
    height: 45px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .page-container {
    flex-direction: column;
  }

  .sidebar {
    flex: auto;
  }
}

@media (max-width: 480px) {
  .welcome-section {
    padding: 15px 10px;
  }

  .welcome-title {
    font-size: 1.2em;
  }

  .welcome-stats {
    gap: 8px;
  }

  .stat-box {
    min-width: 80px;
    padding: 10px 6px;
  }

  .stat-icon {
    font-size: 1.3em;
  }

  .stat-value {
    font-size: 1.1em;
  }

  .nav-scroller {
    height: 48px;
  }

  .nav-link {
    width: 80px;
    height: 60px;
    font-size: 0.85em;
  }

  .nav-icon {
    font-size: 18px;
  }

  .share-button {
    padding: 8px 18px;
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  .welcome-logo {
    max-width: 120px;
  }

  .stat-box {
    min-width: 70px;
    padding: 8px 5px;
  }

  .stat-title {
    font-size: 0.75em;
  }

  .nav-link {
    width: 55px;
    font-size: 0.6em;
  }
}

/* ---------------------------------
   12. تأثيرات إضافية
--------------------------------- */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

div[style*="border-radius"] i:hover {
  animation: pulse 0.6s ease-in-out infinite;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.review-title {
  text-align: center;
  margin: 30px 0;
  color: var(--primary-green);
}

.review-title i {
  color: #FFD700;
  margin-left: 8px;
}

.review-rating {
  font-size: 1.2em;
  margin-top: 6px;
  color: #FFD700;
}

.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}
