/* Safety — always 1 slide visible */
.ps-wrap .swiper{ position:relative; width:100%; overflow:hidden; }
.ps-wrap .swiper-wrapper{ display:flex; flex-wrap:nowrap !important; will-change:transform; }
.ps-wrap .swiper-slide{ width:100% !important; flex:0 0 100% !important; }

/* Defaults (overridden by Elementor controls via CSS vars) */
.ps-wrap{
  --ps-arrow-size: 36px;
  --ps-arrow-bottom: 12px;
  --ps-arrow-inset: 12px;
  --ps-arrow-bg: #e64b4b;
  --ps-arrow-color: #fff;
}

.ps-slide{
  display:grid;
  grid-template-columns: 51% 49%;
  gap:28px;
  align-items:center;
}

.ps-left{ position:relative; }
.ps-right{ position:relative; padding-bottom: 44px; }

/* text area */
.ps-eyebrow{ font-weight:700; text-transform:lowercase; font-size:14px; margin-bottom:6px; opacity:.85; }
.ps-title{ font-size:clamp(22px,3.2vw,40px); line-height:1.12; margin:0 0 10px 0; }
.ps-meta{ display:flex; align-items:flex-start; gap:18px; margin:8px 0 18px; }
.ps-desc{ max-width: 520px; font-size:14px; line-height:1.6; opacity:.9; }

/* KPI circle */
.ps-kpi{
  min-width:78px; min-height:78px; width:78px; height:78px;
  border-radius:999px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:#f0e2df; padding:10px; text-align:center;
}
.ps-kpi-value{ font-weight:800; line-height:1; font-size:18px; }
.ps-kpi small{ font-size:11px; display:block; margin-top:2px; }

/* button */
.ps-btn{
  display:inline-block; font-weight:700; font-size:12px; letter-spacing:.4px;
  padding:10px 16px; border-radius:8px; background:#e64b4b; color:#fff; text-decoration:none;
}

/* image */
.ps-image img{ display:block; width:100%; height:auto; border-radius:14px; }

/* arrows (bottom inside image) */
.ps-right > .ps-arrows{
  position:absolute; left:0; right:0; bottom: var(--ps-arrow-bottom);
  pointer-events:none; z-index:1000;
}
.ps-right > .ps-arrows .swiper-button-prev,
.ps-right > .ps-arrows .swiper-button-next{
  position:absolute; bottom:0; top:auto !important;
  width: var(--ps-arrow-size); height: var(--ps-arrow-size);
  border-radius:999px; background: var(--ps-arrow-bg); color: var(--ps-arrow-color);
  display:flex !important; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.15); pointer-events:auto;
}
.ps-right > .ps-arrows .swiper-button-prev{ left: var(--ps-arrow-inset); }
.ps-right > .ps-arrows .swiper-button-next{ right: var(--ps-arrow-inset); }

.ps-right > .ps-arrows .swiper-button-prev::after,
.ps-right > .ps-arrows .swiper-button-next::after{
  content:""; width:10px; height:10px; display:block;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
}
.ps-right > .ps-arrows .swiper-button-next::after{ transform:rotate(-45deg); }
.ps-right > .ps-arrows .swiper-button-prev::after{ transform:rotate(135deg); }

/* responsive */
@media (max-width:1024px){
  .ps-slide{ grid-template-columns:1fr; gap:16px; }
  .ps-right{ padding-bottom:40px; }
}
/* =========================
   MOBILE FIX PATCH
   ========================= */

/* Tablet: stack, tighten spacing */
@media (max-width: 1024px){
  .ps-slide{ grid-template-columns: 1fr; gap: 16px; }
  .ps-left{ padding: 0 20px; }
  .ps-right{ padding-bottom: 40px; }            /* room for arrows under image */
  .ps-desc{ max-width: none; }
  .ps-wrap{
    --ps-arrow-size: 34px;
    --ps-arrow-bottom: 10px;
    --ps-arrow-inset: 12px;
  }
}

/* Phone: image first, smaller typography/KPI, tighter arrows */
@media (max-width: 767px){
  /* Put IMAGE above text */
  .ps-right{ order: -1; }                        /* move image on top */
  .ps-left{ padding: 0 16px; }

  /* Typography */
  .ps-eyebrow{ font-size: 12px; margin-bottom: 4px; }
  .ps-title{ font-size: clamp(20px, 6.2vw, 26px); line-height: 1.15; margin: 2px 0 8px; }
  .ps-desc{ font-size: 13px; line-height: 1.55; }

  /* KPI cluster */
  .ps-meta{ gap: 12px; align-items: center; }
  .ps-kpi{
    width: 64px; height: 64px; min-width: 64px; min-height: 64px;
    padding: 8px; border-radius: 999px;
  }
  .ps-kpi-value{ font-size: 16px; }

  /* Button */
  .ps-btn{
    margin-top: 12px;                 /* you can change in Elementor too */
    padding: 10px 14px;               /* safe default on small screens */
    border-radius: 8px;
  }

  /* Image + arrows */
  .ps-right{ padding-bottom: 36px; }  /* keep arrows inside image */
  .ps-image img{ border-radius: 12px; }
  .ps-wrap{
    --ps-arrow-size: 32px;
    --ps-arrow-bottom: 8px;
    --ps-arrow-inset: 10px;
  }
}

/* Very small phones: extra tightening */
@media (max-width: 420px){
  .ps-left{ padding: 0 12px; }
  .ps-title{ font-size: 22px; }
  .ps-desc{ font-size: 12.5px; }
  .ps-meta{ gap: 10px; }
  .ps-kpi{
    width: 56px; height: 56px; min-width: 56px; min-height: 56px;
    padding: 6px;
  }
  .ps-wrap{
    --ps-arrow-size: 30px;
    --ps-arrow-bottom: 8px;
    --ps-arrow-inset: 8px;
  }
}
/* =========================
   HARD MOBILE OVERRIDES
   ========================= */

/* Tablet: stack and breathe a bit */
@media (max-width: 1024px){
  .ps-wrap .ps-slide{
    grid-template-columns: 1fr !important;  /* force single column */
    gap: 16px !important;
  }
  .ps-left{ padding: 0 20px !important; }
  .ps-right{ padding: 0 20px 40px !important; }  /* room for arrows */
  .ps-desc{ max-width: none !important; }
}

/* Phones: image on top, comfy text width, smaller KPI & arrows */
@media (max-width: 767px){
  /* Put IMAGE above the text */
  .ps-right{ order: -1 !important; }

  /* Side padding for both blocks */
  .ps-left{  padding: 0 16px !important; }
  .ps-right{ padding: 0 16px 36px !important; }

  /* Title & copy */
  .ps-title{ font-size: clamp(20px, 6vw, 26px) !important; line-height: 1.2 !important; margin: 2px 0 8px !important; }
  .ps-eyebrow{ font-size: 12px !important; margin-bottom: 4px !important; }
  .ps-desc{ font-size: 13.5px !important; line-height: 1.55 !important; }

  /* KPI + paragraph spacing */
  .ps-meta{ gap: 12px !important; align-items: center !important; }

  /* KPI size */
  .ps-kpi{
    width: 64px !important; height: 64px !important;
    min-width: 64px !important; min-height: 64px !important;
    padding: 8px !important; border-radius: 999px !important;
  }
  .ps-kpi-value{ font-size: 16px !important; }

  /* Button */
  .ps-btn{
    margin-top: 12px !important; padding: 10px 14px !important; border-radius: 8px !important;
  }

  /* Image corners & arrows */
  .ps-image img{ border-radius: 12px !important; }
  .ps-wrap{
    --ps-arrow-size: 30px;
    --ps-arrow-bottom: 8px;
    --ps-arrow-inset: 10px;
  }
}

/* Very small devices */
@media (max-width: 420px){
  .ps-left{ padding: 0 12px !important; }
  .ps-right{ padding: 0 12px 32px !important; }
  .ps-title{ font-size: 22px !important; }
  .ps-desc{ font-size: 12.5px !important; }
  .ps-meta{ gap: 10px !important; }
  .ps-kpi{
    width: 56px !important; height: 56px !important;
    min-width: 56px !important; min-height: 56px !important; padding: 6px !important;
  }
  .ps-wrap{
    --ps-arrow-size: 28px;
    --ps-arrow-bottom: 8px;
    --ps-arrow-inset: 8px;
  }
}
/* Mobile: text first, image below */
@media (max-width: 767px){
  .ps-right{ order: 0 !important; }   /* reset: image after text */
  .ps-left { order: 0 !important; }   /* (optional) make both default order */
}