/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;1,400&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Remove default spacing that could cause white gap */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

/* ============================= */
/* SLIDER SECTION */
/* ============================= */

#slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 536px;
  touch-action: pan-y;
  margin-top: 80px;
  border-top: none;
}

#slider .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

#slider .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

#slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#slider .dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#slider .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#slider .dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

#slider .dot.active {
  background: white;
  transform: scale(1.2);
}

/* ============================= */
/* LEAGUE SCROLL BAR */
/* ============================= */

.league-bar-container {
  position: relative;
  background-color: #0b111a;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px 0;
}

/* Arrows */
.league-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(50, 50, 50, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.league-arrow:hover {
  background: rgba(80, 80, 80, 0.9);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.league-arrow.left {
  left: 10px;
}

.league-arrow.right {
  right: 10px;
}

/* Scroll bar */
.league-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 14px 60px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  direction: rtl; /* Optional — for Hebrew layout */
  font-family: 'Roboto', Arial, sans-serif;
}

.league-bar::-webkit-scrollbar {
  display: none;
}

/* League items */
.league-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #131b26;
  color: #fff;
  border-radius: 28px;
  padding: 14px 30px;
  font-weight: 600; /* slightly heavier for Hebrew */
  font-size: 1.4rem; /* increased size */
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 0.2px;
}

.league-item:hover {
  background-color: #2a2a2a;
  transform: scale(1.05);
}

.league-item img {
  width: 36px;
  height: 36px;
  margin-left: 12px; /* RTL alignment */
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

/* ============================= */
/* MOBILE ADJUSTMENTS */
/* ============================= */

@media (max-width: 768px) {
  #slider {
    height: auto;
    margin-top: 90px;
  }

  /* Center slides on mobile */
  #slider .slide {
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;       /* centers vertically */
  }

  #slider .slide picture,
  #slider .slide img {
    border-radius: 15px;
    width: 97%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* ensure horizontal centering */
  }

  #slider .dots {
    bottom: 10px;
  }

  #slider .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
  }

  .league-bar-container {
    padding: 8px 0;
  }

  .league-bar {
    padding: 10px 50px;
    gap: 10px;
  }

  .league-item {
    padding: 12px 22px;
    font-size: 12px;
  }

  .league-item img {
    width: 30px;
    height: 30px;
    margin-left: 8px;
  }

  .league-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
    opacity: 0.7;
  }
}
