/* GLOBAL STYLES
-------------------------------------------------- */
/* Single-screen viewport layout using dynamic viewport height (100dvh) */

body {
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
  color: #5a5a5a;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  position: relative;
  margin-bottom: 1.25rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 1.25rem;
  z-index: 10;
}

.carousel-caption h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 0.4rem;
}

.carousel-caption p {
  margin-bottom: 0.5rem;
}

/* Fluid height to ensure homepage fits in a single screen without scrolling */
.carousel-item {
  height: clamp(15rem, 38dvh, 21rem);
}

.carousel-item > img {
  height: 100%;
  object-fit: cover;
}

/* Accessible Carousel Pause / Play Control Button */
.carousel-pause-btn {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-end: 1.5rem;
  z-index: 20;
  min-block-size: 28px;
  min-inline-size: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 500;
  opacity: 0.92;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.carousel-pause-btn:hover,
.carousel-pause-btn:focus-visible {
  opacity: 1;
}

.carousel-pause-btn:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none;
  }
}


/* MARKETING CONTENT
-------------------------------------------------- */

.marketing {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.marketing-icon {
  width: clamp(4.75rem, 10dvh, 6.25rem);
  height: clamp(4.75rem, 10dvh, 6.25rem);
  aspect-ratio: 1 / 1;
  margin-bottom: 0.5rem;
}

.marketing .col-lg-4 h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-bottom: 0.35rem;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
  margin-bottom: 0.5rem;
}
/* rtl:end:ignore */

footer.container {
  padding-block: 0.35rem;
  font-size: 0.875rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 2.5rem 0;
}

/* Thin out the marketing headings */
/* rtl:begin:remove */
.featurette-heading {
  letter-spacing: -.05rem;
}

/* rtl:end:remove */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 3rem;
  }
}
