/* styles.css */
body {
  font-family: 'Assistant', sans-serif;
  background-color: #101010;
  color: #fff;
  margin: 0;
  padding: 0;
  direction: rtl;
  min-height: 100vh; /* מוודא שהדף תופס לפחות את כל הגובה */
  overflow-y: auto; /* מאפשר גלילה אנכית */
}

.header {
  display: flex; /* מסדר את התוכן בשורה */
  align-items: center; /* מיישר את האלמנטים אנכית */
  justify-content: center; /* ממרכז את האלמנטים */
  gap: 20px; /* ריווח בין הלוגו לכותרת */
  padding: 20px;
  background: linear-gradient(to right, #1f1c2c, #928dab);
}

.logo {
  width: 100px;
}

.main-title {
  font-size: 2.5em;
  color: #fff;
  margin: 0; /* ביטול רווחים מסביב לכותרת */
}

.category-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #f1c40f;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* הוספת הצללה קלה */
}

.category {
  margin: 40px auto;
  max-width: 1200px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), #101010); /* גרדיאנט אלגנטי */
  border-radius: 15px; /* פינות מעוגלות */
  padding: 20px 15px; /* מרווח פנימי */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* צל קל */
}

.category-compact {
  margin: 10px auto; /* צמצום המרחק העליון והתחתון */
  max-width: 1200px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), #101010); /* שמירה על הגרדיאנט */
  border-radius: 10px; /* פינות מעוגלות */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* צל עדין יותר */
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-item {
  width: 300px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: visible; /* נשנה ל-visible כדי שנוכל לראות את כפתורי השליטה */
}

video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  max-height: 400px; /* נגדיל קצת את הגובה המקסימלי */
  object-fit: contain;
  aspect-ratio: 16/9; /* נוסיף יחס גובה-רוחב קבוע */
}

.footer {
  background: #1f1c2c; /* צבע כהה */
  color: #fff; /* טקסט לבן */
  text-align: center; /* טקסט ממורכז */
  padding: 30px 15px; /* ריווח פנימי נוח */
  border-top: 2px solid rgba(255, 255, 255, 0.1); /* קו עליון קל */
  margin-top: 40px; /* רווח מעל ה-Footer */
  .nav-bar a:hover {
    color: #f1c40f;
  }
}

.footer-content p {
  margin: 10px 0; /* רווח נעים בין הפסקאות */
}

.footer-content a {
  color: #f1c40f; /* צבע זהב */
  text-decoration: none; /* ללא קו תחתון */
  font-weight: bold; /* טקסט מודגש */
}

.footer-content a:hover {
  text-decoration: underline; /* קו תחתון במעבר עכבר */
}

@media (max-width: 768px) {
  .grid-item {
    width: 100%; /* ווידאו יתפוס רוחב מלא במכשירים קטנים */
    height: auto; /* מתאים את הגובה למסך קטן */
  }

  @media (max-width: 768px) {
    .grid-item {
      width: 100%; /* ווידאו יתפוס רוחב מלא */
    }
  
    .category {
      padding: 10px;
    }

    .whatsapp-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 999;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.18);
      border-radius: 50%;
      background: #25D366;
      padding: 8px;
      transition: transform 0.2s;
    }
    .whatsapp-float:hover {
      transform: scale(1.1);
      box-shadow: 0 8px 20px rgba(0,0,0,0.24);
    }
  }
}

.before-after-section {
  margin: 40px auto;
  text-align: center;
  margin-bottom: 40px; /* מרווח בין דוגמאות */
  padding: 20px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), #101010);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.before-after-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* ריווח בין האלמנטים */
}

.before-content, .after-content {
  text-align: center;
  width: 200px; /* מתאים לגודל הסרטונים */
}

.before-image, .after-video {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover; /* חיתוך התמונה/סרטון בהתאם לגודל */
}


.label {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #f1c40f;
}

.arrow {
  font-size: 2em;
  color: #f1c40f;
}

.slider {
  position: relative;
  width: 200px; /* רוחב תואם לקונטיינר */
  margin-top: 10px;
  cursor: pointer;
}

.video-title {
  margin-top: 10px; /* ריווח מעל הטקסט */
  font-size: 1em; /* גודל טקסט נוח */
  color: #f1c40f; /* צבע זהב */
  text-align: center; /* ממורכז מתחת לווידאו */
  font-weight: bold; /* טקסט מודגש */
}

    .nav-bar {
      position: sticky;
      top: 0;
      background-color: #1f1c2c;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px 20px;
      z-index: 1000;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    .nav-bar a {
      color: #fff;
      text-decoration: none;
      margin: 0 15px;
      font-size: 18px;
      font-weight: bold;
      transition: color 0.3s ease;
    }
    .nav-bar a:hover,
    .nav-bar a.active {
      color: #f1c40f;
    }

    .whatsapp-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 999;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.18);
      border-radius: 50%;
      background: #25D366;
      padding: 8px;
      transition: transform 0.2s;
    }
    .whatsapp-float:hover {
      transform: scale(1.1);
      box-shadow: 0 8px 20px rgba(0,0,0,0.24);
    }