.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header .background {
  position: relative;
}

.header .background img {
  width: 1720px;
  height: 700px;
  border-radius: 10px;
  display: block;

  @media (max-width: 1600px) {
    width: 1400px;
  }

  @media (max-width: 1400px) {
    width: 1250px;
  }

  @media (max-width: 1250px) {
    width: 1100px;
  }

  @media (max-width: 1100px) {
    width: 900px;
    height: 600px;
  }

  @media (max-width: 920px) {
    width: 800px;
  }

  @media (max-width: 820px) {
    width: 700px;
  }

  @media (max-width: 720px) {
    width: 650px;
  }

  @media (max-width: 650px) {
    width: 660px;
  }

  @media (max-width: 520px) {
    width: 530px;
  }

  @media (max-width: 420px) {
    width: 430px;
  }
}

.header .background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  border-radius: 10px;
  pointer-events: none;
}

.header .background .header-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1400px;

  @media (max-width: 1250px) {
    width: 1100px;
  }
}

.header .background .header-content .align-start {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (max-width: 1250px) {
    align-items: center;
  }
}

.header .background .header-content h2 {
  color: white;
  font-size: 55px;

  @media (max-width: 920px) {
    width: 700px;
    font-size: 40px;
  }

  @media (max-width: 720px) {
    width: 500px;
    font-size: 30px;
  }

  @media (max-width: 470px) {
    width: 400px;
  }

  @media (max-width: 420px) {
    width: 350px;
    font-size: 25px;
  }
}

.header .background .orange-text {
  color: #e76012;
}

.header .background .btn-header {
  background-color: #e76012;
  width: 400px;
  height: 55px;
  border-radius: 40px;
  border: none;

  > a {
    font-weight: 600;
    font-size: 22px;
    color: #fff;
  }

  @media (max-width: 920px) {
    width: 300px;

    > a {
      font-size: 19px;
    }
  }

  @media (max-width: 720px) {
    width: 250px;

    > a {
      font-size: 17px;
    }
  }

  @media (max-width: 420px) {
    width: 220px;

    > a {
      font-size: 15px;
    }
  }
}

.carousel-container {
  background-color: #fff;
  width: 1500px;
  height: 140px;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: -390px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);

  @media (max-width: 1600px) {
    width: 1300px;
  }

  @media (max-width: 1400px) {
    width: 1150px;
  }

  @media (max-width: 1250px) {
    width: 1000px;
    bottom: -340px;
  }

  @media (max-width: 1100px) {
    width: 800px;
    bottom: -300px;
  }

  @media (max-width: 920px) {
    width: 700px;
  }

  @media (max-width: 820px) {
    width: 600px;
    height: 120px;
  }

  @media (max-width: 650px) {
    width: 625px;
    bottom: -285px;
  }

  @media (max-width: 520px) {
    width: 505px;
  }

  @media (max-width: 470px) {
    width: 445px;
  }

  @media (max-width: 420px) {
    width: 380px;
    height: 100px;
  }
}

.carousel {
  display: flex;
  gap: 50px;
  position: relative;
  animation: scroll 25s linear infinite;
  white-space: nowrap;
  font-size: 2.5rem;
  font-weight: bold;
  color: #000;
  text-align: center;

  @media (max-width: 920px) {
    font-size: 2rem;
    animation: scroll 20s linear infinite;
  }

  @media (max-width: 420px) {
    font-size: 1.8rem;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.carousel span {
  flex-shrink: 0;
  padding: 0 20px;
}
