/*
 * Frontend fallback styles for Warm Hearts Hero block.
 * Loaded by plugin so hero works without theme CSS.
 */
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: 60vh;
  padding: 0;
  margin: 0;
  background-color: var(--background-color, #111);
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .carousel-item:before {
  content: "";
  background: color-mix(in srgb, var(--background-color, #111), transparent 60%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .carousel-container {
  position: absolute;
  inset: 90px 100px;
  display: flex;
  max-width: 800px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3;
}

@media (max-width: 575px) {
  .hero .carousel-container {
    inset: 90px 50px;
  }
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color, #fff);
  font-family: var(--heading-font, inherit);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  padding: 10px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px 0;
  align-self: flex-start;
  flex-shrink: 0;
  border: 2px solid var(--accent-color, #2f7f78);
  text-decoration: none;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color, #2f7f78), transparent 20%);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  transition: 0.3s;
  opacity: .5;
  z-index: 3;
}

@media (min-width: 1024px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: .5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: .9;
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
  opacity: 1;
  height: 6px;
  width: 20px;
  transition: 0.3s;
  padding: 0;
}

.hero .carousel-indicators .active {
  background-color: var(--accent-color, #2f7f78);
  width: 40px;
}
