* {
  font-family: 'Noto Sans Hebrew', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  background-color: #fff;
}

.top-info {
  background: #f0f0f0;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

.leagues-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
  height: 80px;
}

.uefa-logo {
  height: 80px;
  width: auto;
  position: relative;
  top: -5px; /* שנה את המספר לפי כמה שתרצה להרים */
}

.leagues-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  transform: translateX(10px); /* הזזה קלה ימינה של כל התפריט */
  position: relative; /* חשוב עבור מיקום תפריטי המשנה */
  z-index: 100; /* ודא שהתפריט מעל אלמנטים אחרים */
}

.leagues-menu li {
  position: relative; /* חשוב למיקום המוחלט של תתי-התפריטים */
  transition: transform 0.2s ease;
  /* הסגנונות הכלליים של פריטי הליגה הראשיים */
  background-color: #e9e9e9;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer; /* כדי שיהיה ברור שזה לחיץ */
}

.leagues-menu li:hover {
  transform: scale(1.05); /* הגדלה קלה ברחיפה על הפריט הראשי */
  background-color: #d0d0d0;
}

.leagues-menu li a.league-link { /* סגנון לקישור של הליגה הראשית */
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block; /* כדי שהקישור יתפוס את כל שטח ה-li */
}

/* סגנונות תתי-התפריטים (הקבוצות) */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%; /* ממוקם מתחת לפריט ה-li ההורה */
  right: 0; /* יישור לימין של פריט ה-li ההורה ב-RTL */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 0;
  min-width: 180px; /* רוחב מינימלי לתפריט המשנה */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0; /* הסתרת התפריט כברירת מחדל */
  visibility: hidden; /* הסתרת התפריט כברירת מחדל */
  transform: translateY(10px); /* הזזה קלה למטה לאפקט הנפילה */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 101; /* ודא שהוא מעל התפריט הראשי */
}

.has-submenu.active .submenu { /* כאשר ה-li ההורה פעיל, הצג את תפריט המשנה */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  background-color: transparent; /* מבטל את הרקע של הפריטים הראשיים */
  padding: 0; /* מבטל את הריפוד של הפריטים הראשיים */
  border-radius: 0; /* מבטל את הפינות המעוגלות */
  width: 100%; /* ודא שפריטי הקבוצות תופסים את מלוא הרוחב של הסאבמנו */
}

.submenu li a {
  display: flex; /* שימוש ב-flexbox ליישור הלוגו והטקסט */
  align-items: center; /* יישור אנכי למרכז */
  padding: 8px 15px;
  text-decoration: none;
  color: #555;
  font-weight: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: right; /* יישור הטקסט לימין בתוך תפריט המשנה */
  direction: rtl; /* חשוב לוודא שהכיוון הוא מימין לשמאל */
}

.submenu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

/* New CSS for team logos */
.team-logo {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    margin-left: 8px; /* Space between logo and text */
    vertical-align: middle; /* Align with text */
    object-fit: contain; /* Ensures the entire image fits within the bounds */
}


/* ------------------------------------------------------------- */
/* סגנונות ה-Hero וטופס החיפוש */

.hero {
  background: url('Football.jpg') center 10% / cover no-repeat;
  color: #ffffffaf;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  box-sizing: border-box;
  padding-top: 50px;
  padding-bottom: 50px;
}


.hero .logo {
  font-size: 36px;
  color: #d7002a;
  margin: 0;
  margin-bottom: 5px;
  line-height: 1.2;
}

.hero .logo span {
  color: #fff;
}

.hero .subtitle {
  color: #fff;
  font-size: 18px;
  margin-top: 1px;
  margin-bottom: 5px;
  font-size: 30px; 
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.hero h2 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #fff;
  margin-top: 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.search-section-container {
  width: 100%;
  max-width: 900px;
}

.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: transparent;
  gap: 0; /* חיבור הכפתור לשדה */
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 700px;
}

.search-input {
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  padding: 15px 50px 15px 20px;
  border: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  font-size: 1em;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  direction: rtl;
}

.search-input::placeholder {
  color: #888;
  direction: rtl;
}

.search-button {
  height: 60px;
  box-sizing: border-box;
  background-color: #ffa600;
  color: #fff;
  border: none;
  padding: 0 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition: background-color 0.5s ease;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
  background-color: #756f62;
}


.search-icon {
  position: absolute;
  top: 50%;
  right: 15px; /* ממקם את האייקון מימין האינפוט */
  transform: translateY(-50%);
  color: #888;
  font-size: 1.2em;
  pointer-events: none;
}

/* התאמה למסכים קטנים יותר (רספונסיביות) */
@media (max-width: 768px) {
  .hero {
      padding: 30px 20px;
      min-height: 450px;
  }

  .hero .logo {
      font-size: 30px;
  }


  .hero h2 {
      font-size: 2em;
      margin-bottom: 20px;
  }

  .search-form {
      flex-direction: column; /* שדה הקלט יהיה למעלה, הכפתור למטה */
      align-items: stretch; /* למתוח לרוחב מלא */
      gap: 0;
  }

  .search-button {
      width: 100%;
      margin-top: 5px; /* רווח מהשדה חיפוש */

  }

  .input-wrapper {
      width: 100%;
  }


  /* התאמה לתפריט ליגות במסכים קטנים - ייתכן ותרצה שהם יהיו בעמודה אחת */
  .leagues-menu {
      flex-direction: column;
      gap: 10px;
  }
  .leagues-menu li {
      width: 100%; /* תופס את כל הרוחב */
      text-align: center;
  }
  .submenu {
      position: static; /* יופיע בתוך הזרם הרגיל של המסמך */
      width: 100%;
      box-shadow: none;
      border: none;
      padding: 0;
      margin-top: 5px; /* רווח קטן בין הליגה לקבוצות */
      background-color: #f8f8f8; /* רקע שונה לתת-תפריט */
  }
  .submenu li a {
      text-align: center; /* מרכז את שמות הקבוצות */
      justify-content: center; /* מרכז את התוכן של הקישור (לוגו וטקסט) */
  }
}


/* ------------------------------------------------------------- */

.hot-events {
  padding: 40px 20px;
  text-align: center;
}

.hot-events h3 {
  font-size: 24px;
}
.cookie-banner {
  position: fixed;
  display: none;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: 'Arial', sans-serif;
  direction: rtl;
  z-index: 1000;
}

.cookie-banner p {
  font-size: 14px;
  margin-bottom: 10px;
}

.cookie-buttons button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: white;
  transition: background-color 0.2s;
}

.cookie-buttons button:hover {
  background-color: #0056b3;
}
.login-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-modal.hidden {
  display: none;
}

.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 340px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}



.close-btn {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 26px;
  cursor: pointer;
  font-weight: bold;
  color: #555;
}

.login-title {
  color: #e60059;
  font-size: 22px;
  margin-bottom: 5px;
}

.login-subtitle {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

.login-email-once {
  background-color: #3b5998;
  color: white;
  padding: 10px 15px;
  border: none;
  width: 100%;
  font-weight: bold;
  font-size: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  cursor: pointer;
}

.login-form label {
  display: block;
  text-align: right;
  font-weight: bold;
  margin-bottom: 5px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.submit-login-btn {
  background-color: #ff7900;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.submit-login-btn:hover {
  background-color: #d26900;
}

.login-links {
  margin-top: 15px;
  font-size: 14px;
}

.login-links a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

.login-links a:hover {
  text-decoration: underline;
}

.open-login-button {
  position: fixed;
  font-size:16px;
  top: 55px;
  left: 20px;
  background: #ff7900;
  color: white;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  z-index: 999;
}
