.contentModular2 {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 5rem 2rem;
}

.contentModular2__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 81.25rem;
}

/* Image on right: reorder via CSS */
.contentModular2[data-img-pos="right"] .contentModular2__imageSide {
  order: 2;
}
.contentModular2[data-img-pos="right"] .contentModular2__textSide {
  order: 1;
}

/* Image side */
.contentModular2__imageSide {
  display: flex;
  flex-direction: column;
}

.contentModular2__imageWrap {
  border-radius: 0.5rem;
  overflow: hidden;
  line-height: 0;
}

.contentModular2[data-frame="shadow"] .contentModular2__imageWrap {
  box-shadow: 0 8px 40px rgba(5, 8, 63, 0.13), 0 2px 8px rgba(5, 8, 63, 0.06);
}

.contentModular2[data-frame="browser"] .contentModular2__imageWrap {
  border-radius: 0 0 0.5rem 0.5rem;
  border: 1px solid #d4d5dc;
  border-top: none;
  box-shadow: 0 8px 40px rgba(5, 8, 63, 0.1);
}

.contentModular2__imageWrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Browser bar */
.contentModular2__browserBar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #e8e9ee;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid #d4d5dc;
  border-bottom: none;
}

.contentModular2__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.contentModular2__dot--red    { background-color: #ff5f57; }
.contentModular2__dot--yellow { background-color: #febc2e; }
.contentModular2__dot--green  { background-color: #28c840; }

.contentModular2__browserUrl {
  flex: 1;
  height: 1.125rem;
  background-color: #fff;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  border: 1px solid #d4d5dc;
}

/* Text side */
.contentModular2__textSide {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contentModular2__subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0047ff;
  margin: 0;
}

.contentModular2__title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: #05083f;
  margin: 0;
}

/* Feature list */
.contentModular2__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contentModular2__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contentModular2__featureIcon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contentModular2__featureIcon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* Numbered badge fallback */
.contentModular2__featureBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #f0f3ff;
  color: #0047ff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contentModular2__featureText {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.125rem;
}

.contentModular2__featureTitle {
  font-size: 1rem;
  font-weight: 700;
  color: #05083f;
  line-height: 1.3;
}

.contentModular2__featureDesc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #565a66;
  margin: 0;
}

/* Button */
.contentModular2__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2.25rem;
  align-self: flex-start;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.contentModular2__button--primary {
  background-color: #0047ff;
  color: #fff;
  border: 2px solid #0047ff;
}
.contentModular2__button--primary:hover {
  background-color: #0039d4;
  border-color: #0039d4;
}

.contentModular2__button--outline {
  background-color: transparent;
  color: #0047ff;
  border: 2px solid #0047ff;
}
.contentModular2__button--outline:hover {
  background-color: #0047ff;
  color: #fff;
}

@container (width < 64rem) {
  .contentModular2__inner {
    gap: 2.5rem;
  }

  .contentModular2__title {
    font-size: 1.875rem;
  }
}

@container (width < 48rem) {
  .contentModular2 {
    padding: 3.5rem 1.5rem;
  }

  .contentModular2__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Image always on top when stacked */
  .contentModular2__imageSide,
  .contentModular2[data-img-pos="right"] .contentModular2__imageSide {
    order: 1;
  }
  .contentModular2__textSide,
  .contentModular2[data-img-pos="right"] .contentModular2__textSide {
    order: 2;
  }

  .contentModular2__button {
    align-self: stretch;
    text-align: center;
  }
}

@container (width < 37rem) {
  .contentModular2 {
    padding: 2.5rem 1.25rem;
  }

  .contentModular2__title {
    font-size: 1.625rem;
  }
}
