#moving-banner {
  width: 100%;
  height: 2.5rem;
  color: white;
  background-color: #062b36ef;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 9999;
}

.banner-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.banner-text {
  white-space: nowrap;
  padding-right: 3rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 20px 20px;
}

.offers-carousel {
  position: relative;
  width: 100%;
  height: 50%;
  margin: 5% auto;
}

.offer {
  position: absolute;
  width: 20%;
  height: 50%; 
  border-radius: 12px;
  padding: 2%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease;
  opacity: 0;

  background-size: cover;    
  background-position: center;  
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff;                 

  cursor: pointer;

  --mouse-x: 50%;
  --mouse-y: 50%;
}

.offer:hover {
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.25);
  z-index: 3!important; 
}

.offer:hover img {
  transform: scale(1.05)!important;
  transition: transform 0.3s ease!important;
}

.center-middle:hover {
  transform: translateY(-3%) scale(1.35)!important;
}

.center-left:hover {
  transform: translateY(-3%) scale(1.05)!important;
}

.center-right:hover {
  transform: translateY(-3%) scale(1.05)!important;
}

.bottom-left:hover,
.bottom-right:hover {
  transform: translateY(-3%) scale(0.65)!important;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 71, 100, 0.6);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 1;
  transition: background 0.25s ease;
}

.offer:hover::before {
  background: radial-gradient(
    circle 300px at var(--mouse-x) var(--mouse-y),
    rgba(48, 71, 100, 0.2) 0%,
    rgba(48, 71, 100, 0.75) 100%
  );
}


.offer-content {
  position: relative;
  z-index: 1; 
}

.offer h3, .offer p {
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}


.center-left {
  top: 5%;
  left: 18%;
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}

.center-middle {
  top: 3%;
  left: 37%;
  transform: scale(1.3);
  opacity: 1;
  z-index: 2;
}

.center-right {
  top: 5%;
  right: 20%;
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}

.bottom-left {
  bottom: 40%;
  left: 3%;
  transform: scale(0.6);
  opacity: 1;
  z-index: 0;
}

.bottom-right {
  bottom: 40%;
  right: 5%;
  transform: scale(0.6);
  opacity: 1;
  z-index: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #064db6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.offer img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 150px;          
  object-fit: cover;     
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;     
}


.offer-buttons {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin: 20px;
  text-align: center;
}

.offer-buttons button {
  padding: 12px 20px;
  border: none;
  background: #064db6; 
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  width: 80%;
  max-width: 260px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.offer-buttons button:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .offers,
  .offer-buttons {
    grid-template-columns: 1fr;
  }

  .offer-buttons {
    position: relative;
    top: 20%;
  }

  .offers-carousel {
    top: 20%;
  }

  .carousel-btn{
    top: 35%;
    transform: translateY(-35%);
  }

  h5 {
    font-size: 0.65rem; 
  }
  h6 {
    font-size: 0.60rem; 
  }
  .carousel-btn.next{
    right: 0px;
  }
  .carousel-btn.prev {
    left: 0px;
  }
  .bottom-left {
    left: 0%;
  }
  .center-left {
    left: 15%;
  }
  .center-middle {
    left: 35%;
  }
}

@media (max-width: 500px) {
  h5 {
    font-size: 0.45rem; 
  }
  h6 {
    font-size: 0.40rem; 
  }
  .carousel-btn.next{
    right: -10px;
  }
  .carousel-btn.prev {
    left: -10px;
  }
  .logo{
    height: 60px;
  }

}

@media (max-width: 400px) {
  h1{
    font-size: 0.9rem!important;
  }
  .logo{
    height: 50px;
  }
}

@media (max-height: 700px){
  h5 {
    font-size: 0.40rem; 
  }
  h6 {
    font-size: 0.35rem; 
  }
}
