/* =============================================================================
   Features with Image – Section (features_with_image)
   Figma node: 2610-9058
   ============================================================================= */

/* ---------- Section-level background ---------- */
section.section--features-with-image.scroll__anchor {
  padding: 0;
  overflow: hidden;
  background: var(--Colours-Primitive-blue-light, #25325b);
}

section.section--features-with-image--dark {
  background: var(--Colours-Primitive-blue-light, #25325b);
}

section.section--features-with-image--white {
  background: var(--Colours-Primitive-white, #fff);
}

section.section--features-with-image--purple {
  background: #5067e3;
}

/* ---------- Inner wrapper fallback ---------- */
.fwi.fwi--dark {
  background: var(--Colours-Primitive-blue-light, #25325b);
}

.fwi.fwi--white {
  background: var(--Colours-Primitive-white, #fff);
}

.fwi.fwi--purple {
  background: #5067e3;
}

/* ---------- Container ---------- */
.fwi__container {
  max-width: 100%;
  padding: var(--Padding-Section-XXXL, 120px) var(--Padding-Section-XXL, 80px);
  box-sizing: border-box;
}

/* ---------- Grid: 12 columns, features.css pattern ---------- */
.fwi__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--Spacing-S, 16px) var(--Spacing-L, 32px);
  align-items: start;
}

.fwi__left {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-M, 24px);
}

.fwi__right {
  grid-column: 5 / span 8;
}

/* ---------- Left column text ---------- */
.fwi__title {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.fwi--dark .fwi__title {
  color: var(--Colours-Primitive-white, #fff);
}

.fwi--white .fwi__title {
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.fwi__description {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
}

.fwi__description p {
  margin: 0;
  line-height: 1.9;
}

.fwi--dark .fwi__description {
  color: rgba(255, 255, 255, 0.72);
}

.fwi--white .fwi__description {
  color: rgba(21, 26, 46, 0.72);
}

.fwi--purple .fwi__description {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Right column: blocks ---------- */
.fwi__blocks {
  display: flex;
  gap: var(--Spacing-S, 16px);
  flex-wrap: wrap;
}

/* ---------- Individual block ---------- */
.fwi__block {
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-S, 12px);
}

.fwi__block_image {
  width: calc(var(--fwi-block-img-size, 100) * 1%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--Radius-s, 8px);
  border-bottom-right-radius: 64px;
  align-self: flex-start;
}

.fwi__block_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.fwi__block_title {
  margin: 0;
  padding-top: 4px;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
}

.fwi--dark .fwi__block_title {
  color: var(--Colours-Primitive-mustard-light, #cda357);
}

.fwi--white .fwi__block_title {
  color: var(--Colours-Primitive-aqua-dark, #3e839b);
}

.fwi--purple .fwi__block_title {
  color: var(--Colours-Primitive-white, #fff);
}

.fwi__block_desc {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
}

.fwi__block_desc p {
  margin: 0;
  line-height: 1.9;
}

.fwi--dark .fwi__block_desc {
  color: rgba(255, 255, 255, 0.6);
}

.fwi--white .fwi__block_desc {
  color: rgba(21, 26, 46, 0.6);
}

.fwi--purple .fwi__block_desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .fwi__grid {
    grid-template-columns: 1fr;
  }

  .fwi__left {
    grid-column: 1;
  }

  .fwi__right {
    grid-column: 1;
  }

  .fwi__title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .fwi__container {
    padding: var(--Padding-Section-L, 32px) var(--Padding-Section-M, 24px);
  }

  .fwi__blocks {
    flex-direction: column;
    gap: var(--Spacing-M, 24px);
  }

  .fwi__block {
    min-width: 0;
  }

  .fwi__title {
    font-size: 28px;
  }
}

@media (min-width: 1600px) {
  .fwi__container {
    padding-left: var(--Padding-Section-XXXL, 120px);
    padding-right: var(--Padding-Section-XXXL, 120px);
  }
}
