/* Alternate Feature block - 60/40 split and side switching */
.alternate-feature {
  padding: 56px 80px;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
}

.af-inner {
  max-width: 1580px;
  max-height: 678px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* row - uses flex to place columns 60/40 */
.af-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  background-image: linear-gradient(to top, #fae7f6, #fbe9f7, #fbebf7, #fceef8, #fcf0f9, #fcf1f9, #fdf3fa, #fdf4fa, #fdf5fb, #fdf6fb, #fef6fc, #fef7fc);
  background-size: cover;
  border-radius: 54px;
  overflow: hidden;
  height: 680px;
}

.af-col{
    max-height: 100%;
}

/* content column (60%) */
.af-col--content {
  width: 40%;
  box-sizing: border-box;
  padding: 50px;
}


/* media column (40%) */
.af-col--media {
  width: 60%;
  box-sizing: border-box;
  background-image:
  radial-gradient(circle at 85% 10%, rgba(253,164,193,0.45) 0%, rgba(253,164,193,0.0) 40%),
  linear-gradient(180deg, #f9eff8 0%, #e8bbcb 32%, #c47cb4 70%, #9c318a 100%);
  background-repeat: no-repeat;
  background-size: cover;
  height: -webkit-fill-available;
}

/* reverse order when side is content-right */
.alternate-feature.af--content-right .af-row {
  flex-direction: row-reverse;
}

/* Heading & description */
.af-heading {
  font-family: Inter;
  font-weight: 500;
  font-size: 48px;
  line-height: 117%;
  letter-spacing: 0;
  margin-bottom: 34px;
  color: #000;
}

.af-description {
  font-family: Inter;
  font-weight: 300;
  font-size: 24px;
  line-height: 31px;
  letter-spacing: 0;
  color: #181818;
  margin-bottom: 30px;
}

/* Button (CTA) */
.af-cta .af-button {
  display: inline-block;
  font-family: Inter;
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: -0.33px;
  text-align: center;
  padding: 18px;
  border-radius: 11px;
  background: transparent;
  color: #982A86;
  text-decoration: none;
  transition: transform .12s ease;
  border: 2px solid #982A86;
  width: 100%;
  margin-top: 30px;
}
.af-cta .af-button:hover {
  transform: translateY(-3px);
}

/* Media wrapper */
.af-media-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
}

/* make media area responsive with aspect-ratio */
.af-media {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image */
.af-media--image img,
.af-media--placeholder .af-placeholder-inner {
  display: block;
  border-radius: 15px;
  box-shadow: 5px 4px 16px 2px #0000001A;
  object-fit: contain;
  max-height: 100%;
  max-width: 100%;
}

/* iframe fills the media area */
.af-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* placeholder style when no media */
.af-media--placeholder {
  background: #f5f5f7;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.af-placeholder-inner {
  color: #888;
  padding: 28px;
  text-align: center;
}

/* Responsive: stack on smaller screens - media above or below depending on side */
@media (max-width: 1000px) {
  .alternate-feature {
    padding: 40px 32px;
  }
  .af-row {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
  }
  .af-col--content, .af-col--media { flex: 1 1 100%; width: 100%; }
  .af-col--content {
    padding: 30px;
  }
  .af-media { width: 100%; aspect-ratio: 16 / 9; min-height: 180px; }
  .af-heading { font-size: 26px; }
  .af-description { font-size: 15px; }
  .af-media-wrap {
    padding: 20px;
  }
  .alternate-feature.af--content-right .af-row {
    flex-direction: column-reverse;
  }
  .af-inner {
    max-height: unset !important;
  }
}

/* small screens further adjustments */
@media (max-width: 480px) {
  .af-heading { font-size: 22px; }
  .af-description { font-size: 14px; }
  .af-cta .af-button { padding: 10px 20px; margin-top: unset; font-size: 18px;}
}