/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
  }
  
  /* الشريط الرئيسي */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 30px 20px;
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.10),
      0 2px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
  }
  .navbar:hover {
    box-shadow:
      0 6px 12px rgba(0, 0, 0, 0.15),
      0 4px 8px rgba(0, 0, 0, 0.10);
  }
  
  /* الشعار */
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
  }
  
  /* القوائم الأفقية – تظهر على الشاشات الكبيرة */
  .nav-center {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 50px;
    font-size: 20px;
  }

  .navbar ul{
    list-style-type: none;
  }
  
  .nav-center a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
    font-size: 20px;
  }
  
  .nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: rgb(169, 115, 15);
    transition: width 0.3s, left 0.3s;
  }
  .nav-center a:hover {
    color: rgb(169, 115, 15);
  }
  .nav-center a:hover::after {
    width: 80%;
    left: 10%;
  }
  
  /* أزرار الدخول والتسجيل */
  .nav-right {
    display: flex;
    gap: 30px;
  }
  #login-btn {
    color: rgb(169, 115, 15);
    padding: 8px 18px;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
  }
  #login-btn:hover {
    color: #0056b3;
  }
  .btn-register {
    padding: 10px 18px;
    background: rgb(169, 115, 15);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.15),
      0 2px 4px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-register:hover {
    transform: translateY(-2px);
    box-shadow:
      0 8px 12px rgba(0, 0, 0, 0.20),
      0 4px 6px rgba(0, 0, 0, 0.15);
  }
  
  /* زر الهامبرغر (مخفي على الشاشات الكبيرة) */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
  }
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: transform 0.3s;
  }
  .hamburger::before {
    transform: translateY(-8px);
  }
  .hamburger::after {
    transform: translateY(8px);
  }
  
  /* القائمة المنسدلة على الشاشات الصغيرة */
  @media (max-width: 768px) {
    .nav-toggle {
      display: block;
    }
    /* إزالة النقاط والتباعد الافتراضي */
    .nav-center,
    .nav-right {
      display: none;
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    /* عند فتح القائمة */
    .nav-toggle[aria-expanded="true"] ~ .nav-center,
    .nav-toggle[aria-expanded="true"] ~ .nav-right {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 20px;
      background: #fff;
      width: calc(100% - 40px);
      border-radius: 8px;
      padding: 15px 0;      /* تباعد عمودي للأقسام */
      box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.20),
        0 4px 8px rgba(0, 0, 0, 0.10);
      animation: slideDown 0.4s ease forwards;
      overflow: hidden;
    }
  
    /* نزيل النقاط عن كل عنصر li */
    .nav-center li,
    .nav-right li {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .nav-center {
      gap: 0;  /* يطوّل فقط المسافة العمودية بالـ padding على a */
    }
  
    /* تنسيق الروابط داخل القائمة */
    .nav-center a,
    .nav-right a {
      padding: 12px 20px;
      font-size: 18px;
      border-bottom: 1px solid #eee;
      transition: background 0.3s, color 0.3s;
    }
    /* إزالة الفاصل عن آخر عنصر */
    .nav-center a:last-child,
    .nav-right a:last-child {
      border-bottom: none;
    }
    .nav-center a:hover,
    .nav-right a:hover {
      background: rgba(169, 115, 15, 0.1);
      color: rgb(169, 115, 15);
    }
  }
  