 
 :root {
  --primary-color: #007BFF;
  --hover-color: #0056b3;
  --dropdown-bg: #ffffff;
  --dropdown-text: #007BFF;
  --mobile-menu-bg: #007BFF;
  --mobile-dropdown-bg: #f8f9fa;
}
 

    /* أنماط عامة */
    body {
      font-family: 'Tajawal', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f5f5f5;
    }
    
    header {
      background-color: #4CAF50;
      color: white;
      text-align: center;
      padding: 20px 0;
    }
    
    .card {
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      width: 350px;
      padding: 20px;
      margin-bottom: 20px;
    }
    
    .card img {
      width: 100%;
      border-radius: 8px;
      height: 200px;
      object-fit: cover;
    }
    
    .whatsapp-btn {
      display: inline-block;
      background-color: #25D366;
      color: white;
      padding: 10px 15px;
      border-radius: 5px;
      text-decoration: none;
      margin-top: 10px;
      transition: background-color 0.3s;
    }
    
    .whatsapp-btn:hover {
      background-color: #128C7E;
    }
    
    /* أنماط التقييمات */
    .reviews-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #eee;
    }
    
    .average-rating {
      display: flex;
      align-items: center;
      margin: 10px 0;
    }
    
    .average-rating .stars {
      color: #FFD700;
      font-size: 24px;
      margin-left: 10px;
    }
    
    .toggle-reviews-btn {
      background-color: #f0f8ff;
      color: #007BFF;
      border: 1px solid #007BFF;
      padding: 8px 15px;
      border-radius: 5px;
      cursor: pointer;
      margin: 10px 0;
      transition: all 0.3s;
    }
    
    .toggle-reviews-btn:hover {
      background-color: #007BFF;
      color: white;
    }
    
    /* أنماط البحث والترتيب */
    .search-container {
      text-align: center;
      margin: 20px;
    }
    
    #search-input {
      padding: 12px;
      width: 90%;
      max-width: 500px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 25px;
      text-align: right;
    }
     /* تبويبات الفلاتر */
     .filter-tabs {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin: 20px auto;
      padding: 0 20px;
      max-width: 1200px;
    }
    
    .filter-tab {
      background-color: #e3f2fd;
      color: #1565c0;
      border: none;
      padding: 12px 24px;
      border-radius: 30px;
      cursor: pointer;
      transition: all 0.3s;
      font-weight: bold;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .filter-tab:hover, .filter-tab.active {
      background-color: #1565c0;
      color: white;
    }
    
    .filter-tab i {
      font-size: 18px;
    }
    
    




    
    /* تحسين الشكل عند الضغط */
    .sort-container button:active {
      transform: scale(0.97);
    }
    
    .sort-container button:hover {
      background-color: #0056b3;
    }
    
    /* الشاشات الصغيرة مثل الجوال */
    @media (max-width: 600px) {
      .sort-container button {
        /* width: 100%; */
        font-size: 15px;
        padding: 12px;
        margin-top: 10px;
      }
    }

    







    /* أنماط خاصة بالأطباء */
    .specialization {
      background-color: #e3f2fd;
      color: #1976d2;
      padding: 4px 10px;
      border-radius: 15px;
      display: inline-block;
      margin: 5px 3px;
      font-size: 14px;
    }
    
    .working-hours {
      margin: 10px 0;
      color: #555;
    }
    
    .working-hours span {
      font-weight: bold;
      color: #333;
    }


/*  أنماط التخصصات والخدمات  للمدارس*/
.service-tag {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-block;
  margin: 5px 3px;
  font-size: 14px;
}

.details {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
}

.details span {
  font-weight: bold;
  color: #333;
}









/*********************nav bar*****************************/


  .navbar {
    background-color: var(--primary-color);
    color: white;
    position: sticky;top:0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .navbar-toggle {
    display: none;
    padding: 12px;
    font-size: 22px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    outline: none;
  }

  .navbar-toggle:focus {
    outline: 2px solid white;
  }

  .navbar-list {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .navbar-item {
    position: relative;
  }

  .navbar-link {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
  }

  .navbar-link:hover,
  .navbar-link:focus {
    background-color: var(--hover-color);
    outline: none;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .dropdown-arrow {
    margin-right: 5px;
    transition: transform 0.3s ease;
    font-size: 0.8em;
  }

  .dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--dropdown-bg);
    min-width: 200px;
    right: 0;
    top: 100%;
    z-index: 1000;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .dropdown-link {
    color: var(--dropdown-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
    transition: background-color 0.2s;
  }

  .dropdown-link:hover,
  .dropdown-link:focus {
    background-color: #f1f1f1;
    outline: none;
  }

  /* Mobile styles */
  @media (max-width: 768px) {
    .navbar-toggle {
      display: block;
    }

    /* .navbar-container{
      text-align: right;
      width: 50%;
      position: fixed;right: 0;top: 0;
    } */

    .navbar-list {
      display: none;
      flex-direction: column;
      background-color: var(--mobile-menu-bg);
      width: 50%;
      position: absolute;
      right: 0;
      top: 100%;
      left: 0;
      z-index: 999;
      line-height: 5px;
    }

    .navbar-list.show {
      display: flex;
    }

    .navbar-item {
      width: 100%;
    }

    .dropdown-menu {
      position: static;
      box-shadow: none;
      border-radius: 0;
      background-color: var(--mobile-dropdown-bg);
      width: 50%;
      animation: none;
    }

    .dropdown-link {
      padding-left: 30px;
    }
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Accessibility focus styles */
  .navbar-link:focus-visible,
  .dropdown-link:focus-visible {
    outline: 2px solid white;
    outline-offset: -2px;
  }





  
  
  header {
    background-color: #2C3E50;
    color: white;
    padding: 2rem 1rem;
  }
  
  header h1 {
    margin: 0;
    font-size: 2rem;
  }
  
  header p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #F39C12;
  }
  
  .categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 2rem;
    max-width: 900px;
    margin: auto;
  }
  
  .card-m {
    background-color: white;
    border: 2px solid #F39C12;
    color: #2C3E50;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .card-m:hover {
    background-color: #F39C12;
    color: white;
  }
  
  footer {
    background-color: #2C3E50;
    color: white;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
  }
  







/* نموذج أضف خدمة - تصميم عصري */
/* تنسيق القسم الرئيسي */
main {
  padding: 40px 20px;
  background-color: #f9f9f9;
  min-height: 100vh;
  font-family: 'Cairo', sans-serif;
}

/* تنسيق القسم الداخلي */
.content {
  max-width: 500px;
  margin: auto;
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  direction: rtl;
  text-align: right;

}

/* تنسيق عناصر النموذج */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

form input {
  width: 95%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  transition: all 0.3s ease;
}

form input:focus {
  border-color: #0077aa;
  box-shadow: 0 0 6px rgba(0, 119, 170, 0.15);
  outline: none;
}

/* زر الإرسال */
form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to left, #0077aa, #0099cc);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

form button:hover {
  background: linear-gradient(to left, #005f88, #0077aa);
}



  .service-list {
    margin-top: 20px;
    text-align: center;
  }

  

  /*المحلات*/

    
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
  }
  .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 350px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  
  
  .card img {
    width: 100%;
    border-radius: 8px;
    height: 200px;
    object-fit: cover;
  }
  
  .whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
  }
  


  /*للمحلات أنماط التقييمات */
  .reviews-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  
  .reviews-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
  }
  
  .review-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
  }
  
  .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .review-rating {
    color: #FFD700;
    font-size: 18px;
  }
  
  .review-date {
    color: #777;
    font-size: 14px;
  }
  
  .review-comment {
    margin: 0;
    color: #333;
    line-height: 1.5;
  }
  
  .add-review {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
  }
  
  .star {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .star.selected {
    color: gold;
  }
  
  textarea {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  
  button:hover {
    background-color: #45a049;
  }
  .toggle-reviews-btn {
    margin: 10px 0;
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  .toggle-reviews-btn:hover {
    background-color: #0056b3;
  }

  .average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .average-rating .stars {
    color: gold;
  }




/* أنماط زر الاتصال */
.call-btn {
  display: inline-block;
  background-color: #4CAF50; /* لون أخضر */
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  margin: 10px 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  border: 2px solid #45a049;
}

.call-btn:hover {
  background-color: #45a049; /* لون أخضر داكن عند التحويم */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.call-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.call-btn i {
  margin-left: 8px;
}



  .location {
    text-align: center;
    margin: 20px 0;
  }
  
  .location-btn {
    background-color: #e63946; /* أحمر أنيق */
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .location-btn:hover {
    background-color: #d62828; /* أحمر أغمق عند التمرير */
  }








  .social-links {
    margin-top: 15px;
    text-align: center;
  }
  
  .social-links .social-icon {
    display: inline-block;
    margin: 0 8px;
    font-size: 18px;
    color: #333;
    background-color: #eee;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .social-links .social-icon:hover {
    background-color: #0077aa;
    color: white;
  }
  


  .fashion-tag {
    background-color: #d1c4e9;
    color: #5e35b1;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 4px;
    font-size: 14px;
    font-weight: 500;
  }
  
  .discount-tag {
    background-color: #ffeb3b;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
  }








/* 

  .login-required {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    border: 1px dashed #ccc;
  }
  
  .login-required p {
    margin-bottom: 10px;
    color: #555;
  } */
  
  .login-btn {
    background: #0077aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .login-btn:hover {
    background: #005f88;
  }
  
  .review-form {
    transition: all 0.3s ease;
  }
  
  /* نافذة تسجيل الدخول العائمة */


.close-modal {
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* رسائل التقييم */
.review-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  display: none;
}

.review-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.review-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
















/* إضافة أنماط للنوافذ المنبثقة */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-form button {
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.auth-form button:hover {
  background-color: #45a049;
}

.auth-message {
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  text-align: center;
}

.auth-message.error {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
}

.auth-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.auth-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.auth-tabs {
  display: flex;
  margin-bottom: 15px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  background-color: #f1f1f1;
}

.auth-tab.active {
  background-color: #4CAF50;
  color: white;
}

.auth-content {
  display: none;
}

.auth-content.active {
  display: block;
}

#logout-btn {
  display: none;
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

#login-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.user-info {
  display: none;
  margin-right: 10px;
  color: white;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #333;
  color: white;
}

.login-required {
  display: none;
  color: #ff5722;
  font-weight: bold;
  margin-top: 10px;
}

.error-message {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ef9a9a;
}

.error-message i {
  margin-left: 5px;
}

.auth-links {
  margin-top: 10px;
  text-align: center;
}

.auth-links a {
  color: #2196F3;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}









.rating-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rating-stars {
  direction: rtl; /* للتأكد من أن النجوم تظهر من اليسار لليمين */
  unicode-bidi: bidi-override; /* مهم للغات RTL */
  font-size: 1.5rem;
  line-height: 1;
  color: #ffd700; /* اللون الذهبي للنجوم */
}

.rating-stars .star {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.rating-stars .star:hover {
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.rating-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  min-width: 40px;
  text-align: center;
}

.reviews-count {
  font-size: 0.9rem;
  color: #6c757d;
}

/* تأثيرات إضافية عند التقييم */
.rating-stars .star.selected {
  color: #ffc107;
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.8);
}

/* تصميم للهواتف */
@media (max-width: 768px) {
  .rating-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .rating-stars {
    font-size: 1.3rem;
  }
  
  .rating-value {
    font-size: 1rem;
  }
  
  .reviews-count {
    font-size: 0.8rem;
  }
}

/* تأثيرات حركية */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.rating-container.animated {
  animation: pulse 0.5s ease;
}




.highlighted-btn {
  background-color: #007bff; /* أزرق ملفت */
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.highlighted-btn:hover {
  background-color: #0056b3;
}











.more-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: #2c3e50; /* لون أزرق غامق أنيق */
  color: white;
  border-radius: 30px; /* حواف أكثر استدارة */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #2c3e50; /* إطار بنفس لون الخلفية */
  margin: 15px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.more-info-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.more-info-btn:hover {
  background-color: white;
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.more-info-btn:hover i {
  transform: translateX(-5px); /* حركة السهم عند التحويم */
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
  .more-info-btn {
    padding: 10px 20px;
    font-size: 15px;
    width: 60%;
    text-align: center;
  }
}








.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background-color: #f8f9fa; /* لون خلفية فاتح */
  color: #495057; /* لون نص غامق */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #dee2e6; /* إطار رمادي فاتح */
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-btn i {
  margin-left: 8px;
  color: #6c757d; /* لون أيقونة متوسط */
  transition: all 0.3s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #212529;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #adb5bd;
}

.home-btn:hover i {
  color: #495057;
  transform: scale(1.1);
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
  .home-btn {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
}