@import "../../../../themes/recast2025/style.css";

/* Container */
.scroll-sections {
  display: flex;
  flex-direction: column;
  gap: var(--gap-base, 56px);
  padding: var(--margins-base-vert, 100px) 0;
  background: var(--primary-royal-blue);
  color: var(--neutrals-white);
  width: 100%;
}

.scroll-sections__wrapper {
    padding: 0 var(--margins-base-hori, 88px);
}

.scroll-sections .e-parent {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Background decorative elements in corners */
.scroll-sections::before,
.scroll-sections::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: var(--global-digital-grid-maxwidth, 400px);
  background-image: url("../../../../themes/recast2025/assets/bg-pattern.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
}
.scroll-sections::before {
  top: 0;
}
.scroll-sections::after {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.scroll-sections__header-wrapper {
  max-width: var(--global-maxwidth-maxwidth-m, 1200px);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.scroll-sections__header {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: left;
  text-align: left;
  width: 100%;
  position: relative;
  z-index: 1;
  gap: var(--gap-m);
  padding-bottom: var(--gap-base, 56px);
}

.scroll-sections__title {
  margin: 0;
  font-family: var(--font-family-headings, "Host Grotesk");
  font-size: var(--size-heading-l);
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 32px */
  letter-spacing: 0.96px;
}

/* Desktop Layout */
.scroll-sections__section-wrapper {
  gap: var(--gap-base, 56px);
}

.scroll-sections__desktop {
  display: block;
  padding: 0 var(--margins-base-hori, 100px);
}

.scroll-sections__section {
  color: var(--neutrals-white);
  z-index: 1;
  max-width: var(--global-maxwidth-maxwidth-m, 1200px);
  margin: 0 auto;
}

.scroll-sections__content {
  display: flex;
  flex-direction: row;
  background-color: var(--neutrals-black);
}

.scroll-sections__content__left,
.scroll-sections__content__right {
  flex: 1 0 50%;
}

.scroll-sections__content__left img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.scroll-sections__content__right {
  background-color: var(--neutrals-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  padding: var(--margins-l);
  color: var(--neutrals-white);
}

.scroll-sections__content__right .divider{
    height: 4px;
    width: 64px;
    background-color: var(--secondary-orange);
}

.scroll-sections__content__title {
  margin: 0 0 var(--gap-s, 16px) 0;
  font-family: var(--font-family-headings, "Host Grotesk");
  font-size: var(--size-heading-m);
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 32px */
  letter-spacing: 0.96px;
  color: var(--neutrals-white);
}

.scroll-sections__content__text {
    font-family: var(--font-family-body, "Host Grotesk");
    font-size: var(--size-body-xs, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 16px */
}

/* mobile */
@media (max-width: 1024px) {

    .scroll-sections__wrapper {
        padding: 0 var(--margins-base-hori);
    }
    .scroll-sections .e-parent {
        gap: var(--gap-base);
    }
    .scroll-sections__content {
        display: flex;
        flex-direction: column;        
    }
    .scroll-sections__content__left,
    .scroll-sections__content__right {
        flex: 1 1;
    }

    .scroll-sections__content__left img {
        aspect-ratio: 16/9;
        width: 100%;
    }
}