.hero-slider {
  height: 820px;
  background-image: url(https://mintimedica.pl/wp-content/uploads/2025/06/heroMinti.webp);
  background-size: cover;
  position: relative;
  display: flex;
  margin-top: 100px;
  transition: 0.3s background;
  border-radius: 0px 0px 30px 30px;
  overflow: hidden;

  .hero-content {
    position: absolute;
    z-index: 1;
    left: 660px;

    h1 {
      font-family: Whisper;
      font-weight: 400;
      font-size: 192px;
      color: #f9f9f9;
    }
    p {
      font-weight: 300;
      font-size: 28px;
      line-height: 45px;
      color: #f9f9f9;
      transform: translateX(90px);
      margin-bottom: 5px;

      &:nth-child(3) {
        transform: translateX(120px);
      }

      &:nth-child(4) {
        transform: translateX(150px);
      }
    }

    .home-search {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      margin-top: 30px;
      justify-content: center;
      transform: translateX(200px);
      width: 100%;

      &:nth-child(1) {
        margin-top: 0;
      }

      &:nth-child(2) {
        margin-top: 0;
      }

      input[name="search"] {
        background: url('/wp-content/themes/stellarsite/assets/images/svg/Search_alt_white.svg') no-repeat 10px center, radial-gradient(
          97.57% 210.75% at 0.9% 2.98%,
          rgba(255, 255, 255, 0.7) 0%,
          rgba(255, 255, 255, 0.2) 100%
        );
      }

      input[name="lok"] {
        background: url('/wp-content/themes/stellarsite/assets/images/svg/Gps_fixed.svg') no-repeat 10px center, radial-gradient(
          97.57% 210.75% at 0.9% 2.98%,
          rgba(255, 255, 255, 0.7) 0%,
          rgba(255, 255, 255, 0.2) 100%
        );
      }

      input[type="text"] {
        border-radius: 30px;
        height: 55px;
        width: 100%;
        max-width: 450px;
        border: 1px solid #fff;
        color: #fff;
        backdrop-filter: blur(42px);
        box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
        font-size: 16px;
        padding-left: 40px;

        &:focus {
          outline: none;
          &::placeholder {
            opacity: 0;
            transition: 0.3s;
          }
        }
      }

      input[type="text"]::placeholder {
        color: #fff;
        font-weight: 400;
        font-size: 16px;
        padding-left: 0px;
        transition: 0.3s;
      }

      button {
        width: 200px;
        height: 55px;
        background: linear-gradient(92.73deg, #b2dddb 8.4%, #96c8c6 95.94%);
        backdrop-filter: blur(42px);
        box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
        border-radius: 30px;
        color: rgba(0, 37, 38, 1);
        font-weight: 600;
        font-size: 18px;
        text-transform: uppercase;
        border: none;
        transition: 0.3s;
        cursor: pointer;

        @media (hover: hover) {
          &:hover {
            background-color: rgba(231, 77, 77, 0.8);
            transition: 0.3s;
          }
        }
      }
    }
  }

  .rectangle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;

    img.rectangle {
      object-fit: contain;
      height: 905px;
      position: absolute;
      left: 520px;
      bottom: -5px;
    }
  }
}

@media (max-width: 1850px) {
  .hero-slider {
    .hero-content {
      h1 {
        font-size: 180px;
      }
    }

    .rectangle-container {
      img.rectangle {
        left: 560px;
        height: 855px;
      }
    }
  }
}

@media (max-width: 1800px) {
  .hero-slider {
    .hero-content {
      left: 660px;
    }
    .rectangle-container {
      img.rectangle {
        left: 550px;
      }
    }
  }
}

@media (max-width: 1750px) {
  .hero-slider {
    .hero-content {
      left: 710px;
    }
    .rectangle-container {
      img.rectangle {
        left: 600px;
      }
    }
  }
}

@media (max-width: 1700px) {
  .hero-slider {
    height: 780px;

    .hero-content {
      h1 {
        font-size: 165px;
      }
      p {
        font-size: 26px;
        transform: translateX(70px);

        &:nth-child(3) {
          transform: translateX(100px);
        }

        &:nth-child(4) {
          transform: translateX(130px);
        }
      }
    }
    .rectangle-container {
      img.rectangle {
        left: 620px;
        height: 785px;
      }
    }
  }
}

@media (max-width: 1600px) {
  .hero-slider {
    height: 740px;

    .hero-content {
      h1 {
        font-size: 155px;
      }
      p {
        font-size: 24px;
      }
    }
    .rectangle-container {
      img.rectangle {
        height: 745px;
      }
    }
  }
}

@media (max-width: 1500px) {
  .hero-slider {
    height: 670px;

    .hero-content {
      left: 540px;

      h1 {
        font-size: 140px;
      }
      p {
        font-size: 22px;
        line-height: 40px;

        transform: translateX(50px);

        &:nth-child(3) {
          transform: translateX(80px);
        }

        &:nth-child(4) {
          transform: translateX(110px);
        }
      }

      .home-search {
        transform: translateX(180px);

        input[type="text"] {
          width: 100%;
          max-width: 400px;
        }
      }
    }
    .rectangle-container {
      img.rectangle {
        left: 455px;
        height: 675px;
      }
    }
  }
}

@media (max-width: 1366px) {
  .hero-slider {
    height: 580px;
    background-position-y: -40px;
    margin-top: 80px;

    .hero-content {
      left: 490px;
      
      h1 {
        font-size: 120px;
      }
      p {
        font-size: 19px;
        transform: translateX(40px);

        &:nth-child(3) {
          transform: translateX(60px);
        }

        &:nth-child(4) {
          transform: translateX(80px);
        }
      }
            .home-search {
        transform: translateX(150px);

        input[type="text"] {
          width: 100%;
          max-width: 400px;
        }
      }
    }

    .rectangle-container {
      img.rectangle {
        left: 410px;
        width: 900px;
        height: 585px;
      }
    }
  }
}

@media (max-width: 1250px) {
  .hero-slider {
    height: 560px;

    .hero-content {
      left: 440px;

      h1 {
        font-size: 115px;
      }
      p {
        font-size: 18px;
        transform: translateX(40px);

        &:nth-child(3) {
          transform: translateX(60px);
        }

        &:nth-child(4) {
          transform: translateX(80px);
        }
      }
    }

    .rectangle-container {
      img.rectangle {
        left: 370px;
        width: 860px;
        height: 565px;
      }
    }
  }
}

@media (max-width: 1150px) {
  .hero-slider {
    height: 450px;
    background-position-y: -110px;

    .hero-content {
      left: 420px;

      h1 {
        font-size: 90px;
      }
      p {
        font-size: 14px;
        line-height: 25px;
      }

            .home-search {
        transform: translateX(130px);

        input[type="text"] {
          width: 100%;
          max-width: 300px;
        }

        button {
            width: 180px;
        }
      }
    }

    .rectangle-container {
      img.rectangle {
        width: 700px;
        height: 455px;
      }
    }
  }
}

@media (max-width: 1024px) {
  .hero-slider {
    margin-top: 65px;
    background-position: center;

    .hero-content {
      left: 150px;
    }

    .rectangle-container {
      img.rectangle {
        left: 100px;
      }
    }
  }
}

@media (max-width: 768px) {
  .hero-slider {
    background-position: left;
    background-position-x: -130px;
    height: 600px;

    .hero-content {
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      padding-top: 40px;
      width: 100%;
      text-align: center;
      padding: 20px;

      h1 {
        font-size: 80px;
      }
      p {
        font-size: 16px;
        line-height: 30px;
        transform: translateX(0px);

        &:nth-child(3) {
          transform: translateX(0px);
        }

        &:nth-child(4) {
          transform: translateX(0px);
        }
      }
                  .home-search {
        transform: translateX(0);

        input[type="text"] {
          width: 100%;
          max-width: 100%;
        }

        button {
            width: 200px;
        }
      }
    }

    .rectangle-container {
      display: none;
    }
  }
}
