.cme-video-cta {
  background: #eee;
  padding: 80px 0;
}

.cme-video-cta__inner {
  max-width: 90%;
  margin: 0 auto;
}

.cme-video-cta__heading {
  margin: 0 0 26px;
  font-weight: 900;
  color: #000;
}

.cme-video-cta__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: stretch; /* was start */
}

/* LEFT: video thumbnail panel */
.cme-video-cta__video {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  background-color: #5b2a86;
  background-size: cover;
  background-position: center;
  height: 100%;
  min-height: 0;
}

/* subtle dark overlay so play button pops */
.cme-video-cta__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}

.cme-video-cta__video-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cme-video-cta__video-trigger:hover {
    background: none;
}

/* play button */
.cme-video-cta__play {
  width: 78px;
  height: 54px;
  border-radius: 14px;
  background: rgba(91, 42, 134, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  position: relative;
}

.cme-video-cta__play:before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* RIGHT: copy */
.cme-video-cta__copy h3,
.cme-video-cta__copy h4 {
  margin: 0 0 8px;
  font-weight: 900;
}

.cme-video-cta__copy h4 {
    color: #000;
    margin-bottom: 15px;
}

.cme-video-cta__copy p {
  margin: 0 0 18px;
  line-height: 1.65;
  margin-bottom: 25px;
}

/* Purple CTA */
.cme-video-cta__purple {
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  padding: 22px;
  color: #fff;

  background: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg") center / cover no-repeat;

  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cme-video-cta__purple-heading {
  margin: 0 0 8px;
  font-weight: 900;
  line-height: 38px;
  color: #fff;
}

.cme-video-cta__purple-copy p {
    font-style: italic;
    font-weight: 500;
    line-height: 32px;
  color: #fff;
}

/* Toolkit bar */
.cme-video-cta__toolkit {
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  border: 2px solid rgba(79, 188, 193, 0.8);
}

.cme-video-cta__toolkit-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cme-video-cta__toolkit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #5b2a86;
  opacity: 0.9;
}

.cme-video-cta__toolkit-title {
  font-weight: 900;
  line-height: normal;
  color: #000;
}

.cme-video-cta__toolkit-sub {
  line-height: 32px;
}

.cme-video-cta__video {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Buttons */
.white-btn {
  white-space: nowrap;
}

/* ===== MODAL ===== */
.cme-video-modal:not(.is-open) {
  display: none !important;
}

.cme-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.cme-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 1;
}

.cme-video-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  max-width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.cme-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.cme-video-modal__frame iframe,
.cme-video-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cme-video-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #52287E;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
}

.cme-video-cta__toolkit {
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  border: 2px solid rgba(79, 188, 193, 0.8);
}

.cme-video-cta__toolkit-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
}

.cme-video-cta__toolkit .purple-btn {
  margin-top: 0;
  align-self: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .cme-video-modal {
    padding: 12px;
  }

  .cme-video-modal__dialog {
    width: 100%;
    border-radius: 14px;
  }

  .cme-video-modal__close {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}


@media (max-width: 1100px) {
  .cme-video-cta__purple-right .purple-btn {
    margin-top: 1%;
  }
  .cme-video-cta__grid {
    grid-template-columns: 1fr;
  }
  .cme-video-cta__video {
    min-height: 420px;
  }
  .cme-video-cta__toolkit .purple-btn {
      width: auto;
    }
}

@media (max-width: 768px) {
  
    .cme-video-cta__purple {
        flex-wrap: wrap;
        padding: 20px 15px;
    }
    .cme-video-cta__purple-right {
        width: 100%;
    }
    .cme-video-cta__btn {
        justify-content: space-between;
        width: 100%;
    }
    .cme-video-cta__toolkit {
        flex-wrap: wrap;
    }
    .cme-video-cta {
      margin-top: 0;
    }
    .cme-video-cta__purple-heading {
      line-height: normal;
    }
    .cme-video-cta__purple-copy p {
      line-height: 25.6px;
    }
    .cme-video-cta__toolkit-title {
      line-height: normal;
    }
    .cme-video-cta__toolkit-sub {
      line-height: 25.6px;
    }
    .cme-video-cta__toolkit .purple-btn {
      justify-content: space-between;
      width: 100%;
    }
}


/* =========================
   Inserter / Example Preview
   ========================= */

.cme-video-cta.is-example {
  max-width: 100%;
  margin: 0;
  padding: 14px;
}

.cme-video-cta.is-example .cme-video-cta__inner {
  padding: 0;
}

/* Make it a compact preview card */
.cme-video-cta.is-example .cme-video-cta__heading {
  margin: 0 0 10px;
  line-height: 1.2;
}

.cme-video-cta.is-example .cme-video-cta__grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Thumbnail: remove giant height + heavy shadow */
.cme-video-cta.is-example .cme-video-cta__video {
  min-height: 140px;
  border-radius: 14px;
  box-shadow: none;
}

.cme-video-cta.is-example .cme-video-cta__play {
  width: 44px;
  height: 32px;
  border-radius: 10px;
}

.cme-video-cta.is-example .cme-video-cta__play:before {
  left: 18px;
  border-left-width: 10px;
  border-top-width: 7px;
  border-bottom-width: 7px;
}

/* Copy: tighten typography so it doesn't look like a wall of text */
.cme-video-cta.is-example .cme-video-cta__copy p {
  line-height: 1.4;
  margin: 0 0 10px;
}

.cme-video-cta.is-example .cme-video-cta__copy h4 {
  margin: 0 0 8px;
}

/* Purple CTA: keep it visible but compact */
.cme-video-cta.is-example .cme-video-cta__purple {
  padding: 12px;
  border-radius: 14px;
  gap: 10px;
}

.cme-video-cta.is-example .cme-video-cta__purple-heading {
  line-height: 1.2;
  margin: 0 0 6px;
}

.cme-video-cta.is-example .cme-video-cta__purple-copy p {
  line-height: 1.35;
}

/* Buttons: keep them from stretching weird in preview */
.cme-video-cta.is-example .cme-video-cta__btn {
  padding: 10px 12px;
}

/* Toolkit: shrink, remove heavy shadow */
.cme-video-cta.is-example .cme-video-cta__toolkit {
  padding: 12px;
  border-radius: 14px;
  box-shadow: none;
  gap: 10px;
}

.cme-video-cta.is-example .cme-video-cta__toolkit-sub {
  line-height: 1.35;
}

.cme-video-cta.is-example .cme-video-cta__toolkit-left svg {
  width: 36px;
  height: 36px;
}
