/*
  Hand-authored companion stylesheet for custom-page-builder block types that
  aren't covered by the generated rlc_custom_page_builder.min.css utility set.
  Breakpoints match the compiled file's scale: tablet 768px, desktop-medium
  1280px, desktop-wide 1600px.
*/

html.rlc__engine__cpb {
  scroll-behavior: smooth;
}

/* The compiled utility stylesheet only ships a "center" copy-alignment
   variant; "right" is needed for the corporate-volunteer opening section. */
.rlc__block__copy--copy-alignment-right {
  text-align: right !important;
}

/* ---------- Hero Split ---------- */
.rlc__block__hero-split {
  display: flex;
  flex-direction: column;
}

.rlc__block__hero-split__text {
  background-color: #033f75;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.rlc__block__hero-split__text h1 {
  color: #ffffff;
  margin: 0;
}

.rlc__block__hero-split__image {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .rlc__block__hero-split {
    flex-direction: row;
    min-height: 420px;
  }

  .rlc__block__hero-split__text,
  .rlc__block__hero-split__image {
    flex: 1 1 50%;
    width: 50%;
  }

  .rlc__block__hero-split__text {
    padding: 3rem;
  }
}

@media (min-width: 1280px) {
  .rlc__block__hero-split__text {
    padding: 4rem;
  }
}

/* ---------- Three Card Grid ---------- */
.rlc__block__three-card-grid {
  background-color: #033f75;
  padding: 3rem 1.5rem;
}

.rlc__block__three-card-grid__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rlc__block__three-card-grid__header {
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rlc__block__three-card-grid__header h2 {
  color: #ffffff;
  margin: 0;
}

.rlc__block__three-card-grid__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rlc__block__three-card-grid__card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.rlc__block__three-card-grid__card h3 {
  color: #033f75;
  margin: 0;
  font-family: Merriweather, sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.rlc__block__three-card-grid__card p {
  color: #29303a;
  margin: 0;
}

.rlc__block__three-card-grid__footer {
  text-align: center;
  color: #ffffff;
}

.rlc__block__three-card-grid__footer a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

@media (min-width: 768px) {
  .rlc__block__three-card-grid__cards {
    flex-direction: row;
  }
}

@media (min-width: 1280px) {
  .rlc__block__three-card-grid {
    padding: 4rem 3rem;
  }
}

/* ---------- Carousel ---------- */
.rlc__block__carousel {
  position: relative;
  width: 100%;
}

.rlc__block__carousel__viewport {
  overflow: hidden;
  border-radius: 0.75rem;
}

.rlc__block__carousel__track {
  display: flex;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.rlc__block__carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.rlc__block__carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.rlc__block__carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(3, 63, 117, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rlc__block__carousel__button:hover {
  background-color: #033f75;
}

.rlc__block__carousel__button--prev {
  left: 0.75rem;
}

.rlc__block__carousel__button--next {
  right: 0.75rem;
}

.rlc__block__carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rlc__block__carousel__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: none;
  background-color: #d6dde5;
  cursor: pointer;
  padding: 0;
}

.rlc__block__carousel__dot--active {
  background-color: #033f75;
}
