.aw-header-banner {
  width: 100%;
  position: relative;
}

.aw-header-banner .block,
.aw-header-banner .views-element-container,
.aw-header-banner .view {
  margin: 0;
}

.aw-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aw-hero-slider .swiper-slide {
  height: auto;
}

.aw-hero-slide {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.aw-hero-slide__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.aw-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.28) 35%,
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.aw-hero-slide__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
}

.aw-hero-slide--left .aw-hero-slide__inner {
  justify-content: flex-start;
}

.aw-hero-slide--right .aw-hero-slide__inner {
  justify-content: flex-end;
}

/* Improved content box */
.aw-hero-slide__content {
  width: min(100%, 560px);
  padding: 2rem 1.25rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 16px;
  backdrop-filter: blur(3px);
}

.aw-hero-slide__title,
.aw-hero-slide__title a {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
}

.aw-hero-slide__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 48ch;
}

.aw-hero-slide__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.aw-hero-slide__actions a:hover,
.aw-hero-slide__actions a:focus {
  background: var(--primary-dark);
  color: #fff !important;
  text-decoration: none;
}

/* Light theme */
.aw-hero-slide--theme-light .aw-hero-slide__overlay {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(255, 255, 255, 0.44) 35%,
    rgba(255, 255, 255, 0.16) 65%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.aw-hero-slide--theme-light .aw-hero-slide__content {
  background: rgba(255, 255, 255, 0.68);
}

.aw-hero-slide--theme-light .aw-hero-slide__title,
.aw-hero-slide--theme-light .aw-hero-slide__title a {
  color: var(--text) !important;
}

.aw-hero-slide--theme-light .aw-hero-slide__text {
  color: rgba(35, 31, 32, 0.90);
}

/* Slider controls */

.aw-hero-slider__pagination.swiper-pagination {
  bottom: 20px !important;
}

.aw-hero-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.aw-hero-slider .swiper-pagination-bullet-active {
  background: #fff;
}

.aw-hero-slider__prev,
.aw-hero-slider__next {
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.aw-hero-slider__prev::after,
.aw-hero-slider__next::after {
  font-size: 1rem;
  font-weight: 700;
}

/* Tablet improvements */

@media (max-width: 991.98px) {

  .aw-hero-slide {
    min-height: 460px;
    align-items: flex-end;
  }

  .aw-hero-slide__inner {
    width: min(100%, calc(100% - 1.5rem));
    margin-inline: auto;
    padding-bottom: 2rem;
  }

  .aw-hero-slide__content {
    width: min(100%, 640px);
    padding: 1.5rem 1rem;
  }

  .aw-hero-slide__title,
  .aw-hero-slide__title a {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 0.75rem;
  }

  .aw-hero-slide__text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

}

/* Mobile improvements */

@media (max-width: 767.98px) {

  .aw-hero-slide {
    min-height: 400px;
    align-items: flex-end;
  }

  .aw-hero-slide__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.22) 35%,
      rgba(0, 0, 0, 0.52) 100%
    );
  }

  .aw-hero-slide__inner {
    width: calc(100% - 1rem);
    padding-bottom: 1rem;
    justify-content: flex-start !important;
  }

  .aw-hero-slide__content {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0.95rem;
    border-radius: 14px;
  }

  .aw-hero-slide__title,
  .aw-hero-slide__title a {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .aw-hero-slide__text {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    max-width: 100%;
  }

  .aw-hero-slider__prev,
  .aw-hero-slider__next {
    display: none;
  }

}