/* ================================
   CTA STRIP (Screenshot-style)
   Fully scoped to .xyz-ctaStrip
   ✅ matches screenshot layout
   ✅ repeating chakra background + side watermarks
   ✅ zig-zag ribbon
   ✅ no "card" look
================================ */
.xyz-ctaStrip {
  --c-bg: #fff3f3;         /* light pink like screenshot */
  --c-red1: #8f0000;
  --c-red2: #ff0000;
  --c-text: #111;
  --c-muted: #222;
  --c-speed: 220ms;

  background: var(--c-bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(30px, 3.2vw, 48px) 0;
}

/* Wrap */
.xyz-ctaStrip .xyz-ctaStrip__wrap {
  position: relative;
}

/* ✅ repeating chakra pattern (VERY subtle) */
.xyz-ctaStrip .xyz-ctaStrip__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;

  background-image: url("https://bestastrologervishnu.com/wp-content/uploads/2025/09/frame-44030-68c143f064e3f.webp");
  background-repeat: repeat;
  background-size: 160px 160px;
  background-position: 30px 30px;

  /* soft fade to edges (screenshot look) */
  mask-image: radial-gradient(circle at 55% 45%, rgba(0,0,0,1), rgba(0,0,0,0.25) 65%, rgba(0,0,0,0) 92%);
  -webkit-mask-image: radial-gradient(circle at 55% 45%, rgba(0,0,0,1), rgba(0,0,0,0.25) 65%, rgba(0,0,0,0) 92%);
}

/* ✅ side watermark chakras (left + right) */
.xyz-ctaStrip::before,
.xyz-ctaStrip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.10;
  pointer-events: none;

  background-image: url("https://bestastrologervishnu.com/wp-content/uploads/2025/09/frame-44030-68c143f064e3f.webp");
  background-size: contain;
  background-repeat: no-repeat;
  filter: grayscale(1);
}

.xyz-ctaStrip::before { left: 26px; }
.xyz-ctaStrip::after  { right: 26px; transform: translateY(-50%) scaleX(-1); }

/* Container */
.xyz-ctaStrip .xyz-ctaStrip__container {
  position: relative;
  z-index: 1;
  width: min(1250px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}

/* LEFT chakra */
.xyz-ctaStrip .xyz-ctaStrip__left {
  display: grid;
  place-items: center;
}

.xyz-ctaStrip .xyz-ctaStrip__chakra {
  width: min(520px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,0.12));
  animation: xyzCtaFloat 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes xyzCtaFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* RIGHT side (NO CARD) */
.xyz-ctaStrip .xyz-ctaStrip__right {
  padding: 0;            /* screenshot = no box */
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* ✅ ribbon with zig-zag edges */
.xyz-ctaStrip .xyz-ctaStrip__ribbon {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 16px 26px;
  min-width: min(680px, 100%);
  text-align: center;

  background: linear-gradient(135deg, var(--c-red1), var(--c-red2));
  color: #fff;
  font-weight: 1000;
  font-size: clamp(22px, 2.25vw, 44px);
  letter-spacing: -0.4px;

  /* zig-zag (screenshot style) */
  clip-path: polygon(
    12px 0, calc(100% - 12px) 0,
    100% 14px, calc(100% - 12px) 28px,
    100% 42px, calc(100% - 12px) 56px,
    100% 70px, calc(100% - 12px) 84px,
    100% 100%, 0 100%,
    12px 84px, 0 70px,
    12px 56px, 0 42px,
    12px 28px, 0 14px
  );

  box-shadow: 0 18px 55px rgba(179,0,0,0.22);
}

/* Subhead */
.xyz-ctaStrip .xyz-ctaStrip__subhead {
  margin: 18px 0 14px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 34px);
  font-weight: 500;
  color: #111;
  font-family: Georgia, "Times New Roman", serif; /* screenshot vibe */
}

/* Buttons row */
.xyz-ctaStrip .xyz-ctaStrip__btnRow {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

/* Big red buttons like screenshot */
.xyz-ctaStrip .xyz-ctaStrip__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(340px, 100%);
  padding: 16px 20px;
  border-radius: 12px;

  background: #d10000;
  color: #fff;

  font-weight: 1000;
  font-size: clamp(18px, 1.4vw, 28px);
  letter-spacing: 0.6px;

  box-shadow: 0 16px 44px rgba(209,0,0,0.20);
  transition: transform var(--c-speed) ease, box-shadow var(--c-speed) ease, filter var(--c-speed) ease;
}

.xyz-ctaStrip .xyz-ctaStrip__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 22px 62px rgba(209,0,0,0.30);
}

/* Paragraph under buttons */
.xyz-ctaStrip .xyz-ctaStrip__desc {
  margin: 0;
  text-align: center;
  color: #111;
  font-size: clamp(14px, 1.02vw, 18px);
  line-height: 1.9;
  max-width: 900px;
  margin-inline: auto;
}

/* ================================
   Responsive (match screenshot feel)
================================ */
@media (max-width: 980px) {
  .xyz-ctaStrip .xyz-ctaStrip__container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .xyz-ctaStrip .xyz-ctaStrip__chakra {
    width: min(420px, 88%);
  }

  .xyz-ctaStrip .xyz-ctaStrip__ribbon {
    min-width: 1px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .xyz-ctaStrip::before,
  .xyz-ctaStrip::after {
    width: 150px;
    height: 150px;
    opacity: 0.08;
  }

  .xyz-ctaStrip .xyz-ctaStrip__btnRow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xyz-ctaStrip .xyz-ctaStrip__btn {
    width: 100%;
  }

  .xyz-ctaStrip .xyz-ctaStrip__subhead {
    margin-top: 14px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .xyz-ctaStrip .xyz-ctaStrip__chakra { animation: none; }
  .xyz-ctaStrip .xyz-ctaStrip__btn { transition: none; }
}

/* ================================
   Responsive (match screenshot feel)
================================ */
@media (max-width: 980px) {
  .xyz-ctaStrip .xyz-ctaStrip__container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .xyz-ctaStrip .xyz-ctaStrip__chakra {
    width: min(420px, 88%);
  }

  .xyz-ctaStrip .xyz-ctaStrip__ribbon {
    min-width: 1px;
    width: 100%;
  }
}

/* ✅ FULL MOBILE FIX (replaces your old 520 block + fixes ribbon text cut) */
@media (max-width: 520px) {

  /* watermarks smaller */
  .xyz-ctaStrip::before,
  .xyz-ctaStrip::after {
    width: 150px;
    height: 150px;
    opacity: 0.08;
    left: 10px;
    right: 10px;
  }

  /* ✅ Prevent right side blank/overflow on mobile */
  .xyz-ctaStrip { overflow-x: hidden; }
  .xyz-ctaStrip .xyz-ctaStrip__container,
  .xyz-ctaStrip .xyz-ctaStrip__left,
  .xyz-ctaStrip .xyz-ctaStrip__right {
    width: 100%;
    max-width: 100%;
    min-width: 0;       /* IMPORTANT: stops grid overflow */
  }

  /* Chakra size */
  .xyz-ctaStrip .xyz-ctaStrip__chakra {
    width: min(360px, 86%);
  }

  /* ✅ Ribbon: make it wrap + never cut text */
  .xyz-ctaStrip .xyz-ctaStrip__ribbon {
    /* override inline-flex behaviour that can prevent wrapping */
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    /* spacing + readable sizes */
    padding: 14px 14px;
    font-size: 19px;
    line-height: 1.2;

    /* allow wrapping on all devices */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    /* ✅ disable zig-zag cut ONLY on mobile */
    clip-path: none;
    border-radius: 12px;

    /* keep same look */
    text-align: center;
  }

  /* Buttons stack */
  .xyz-ctaStrip .xyz-ctaStrip__btnRow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xyz-ctaStrip .xyz-ctaStrip__btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 18px; /* keep readable */
  }

  .xyz-ctaStrip .xyz-ctaStrip__subhead {
    margin-top: 14px;
    font-size: 18px; /* stabilize on small screens */
    line-height: 1.35;
    padding-inline: 6px;
  }

  .xyz-ctaStrip .xyz-ctaStrip__desc {
    padding-inline: 6px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .xyz-ctaStrip .xyz-ctaStrip__chakra { animation: none; }
  .xyz-ctaStrip .xyz-ctaStrip__btn { transition: none; }
}