.hero-slider {
  position: relative;
  width: 100%;
  padding-inline: 16px;
}

.slider-container {
  position: relative;
  max-width: 1392px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
}

@media (min-width: 768px) {
  .slider-container {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .slider-container {
    height: 600px;
  }
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider-slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.slide-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    270.07deg,
    rgba(173, 35, 36, 0) 47.8%,
    rgba(173, 35, 36, 0.9) 92.05%
  );
}

.slide-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 666px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 20px;
}

@media (min-width: 768px) {
  .slide-content {
    left: 118px;
    transform: translateY(-50%);
    padding: 0;
  }
}

.slide-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-heading-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-heading {
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 120%;
  color: #ffffff;
  margin: 0;
}

.slide-subheading {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.slide-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .slide-buttons {
    gap: 24px;
    flex-wrap: nowrap;
  }
}

.slide-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  gap: 8px;
  height: auto;
  min-height: 48px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .slide-button {
    padding: 12px 44px;
    gap: 16px;
    height: 62px;
    width: auto;
  }
}

.primary-button {
  background: #e8e8e9;
  color: #000000;
  border: none;
}

.primary-button:hover {
  background: #d0d0d1;
}

.secondary-button {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.arrow-right::after {
  content: "";
  position: absolute;
  left: 16.67%;
  right: 16.67%;
  top: 29.17%;
  bottom: 29.17%;
  border: 2px solid currentColor;
  transform: rotate(45deg);
  border-left: none;
  border-bottom: none;
  width: 8px;
  height: 8px;
}

.slider-navigation {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

@media (min-width: 768px) {
  .slider-navigation {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .slider-navigation {
    padding: 0 32px;
  }
}

.slider-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #dddbdc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

@media (min-width: 768px) {
  .slider-arrow {
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 1024px) {
  .slider-arrow {
    width: 52px;
    height: 52px;
  }
}

.slider-arrow:hover {
  background: #c5c3c4;
}

.chevron-left,
.chevron-right {
  width: 20px;
  height: 20px;
  position: relative;
}

@media (min-width: 768px) {
  .chevron-left,
  .chevron-right {
    width: 23px;
    height: 23px;
  }
}

@media (min-width: 1024px) {
  .chevron-left,
  .chevron-right {
    width: 26px;
    height: 26px;
  }
}

.chevron-left::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 30%;
  width: 8px;
  height: 8px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}

.chevron-right::after {
  content: "";
  position: absolute;
  right: 40%;
  top: 30%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .chevron-left::after,
  .chevron-right::after {
    width: 9px;
    height: 9px;
  }
}

@media (min-width: 1024px) {
  .chevron-left::after,
  .chevron-right::after {
    width: 10px;
    height: 10px;
  }
}

.slider-bullets {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-bullet {
  width: 20px;
  height: 4px;
  background: #d7d7d8;
  border: none;
  padding: 0;
  cursor: pointer;
}

.slider-bullet.active {
  width: 40px;
  background: #ad2324;
}
