/* Scoped styles: only affect the promo offers output */
.po-wrap{
--po-radius: 18px;
  --po-gap: 14px;
  --po-border: rgba(0,0,0,.10);
  --po-shadow: 0 14px 30px rgba(0,0,0,.14);
  --po-text: rgba(0,0,0,.85);
  --po-muted: rgba(0,0,0,.60);
  --po-white: #fff;

  width: 100%;

  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}


/* Responsive grid */
.po-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--po-gap);
}

}

/* Card (Landscape) */
.po-card{
display: grid;
  grid-template-rows: 2fr 1fr; /* top image ~2/3, bottom white ~1/3 */
  border-radius: var(--po-radius);
  overflow: hidden;
  text-decoration: none !important;
  border: 1px solid var(--po-border);
  box-shadow: var(--po-shadow);
  background: var(--po-white);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 280px;
  position: relative;

  cursor: pointer;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}


.po-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.po-card:focus{
  outline: 3px solid rgba(0, 140, 255, .25);
  outline-offset: 2px;
}

/* Media area */
.po-card-media{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 0;
}

/* Soft overlay for readability (optional) */
.po-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.08) 100%);
  pointer-events:none;
}

.po-card-fallback{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  color: rgba(255,255,255,.85);
  background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
  font-weight: 700;
  text-align:center;
}


/* Bottom white text area */
.po-card-body{
  background: var(--po-white);
  padding: 16px 18px;
  color: var(--po-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;   /* center horizontally */
  gap: 8px;
  text-align: center;    /* text centered across white area */
}

.po-card-title,
.po-card-text{
  width: 100%;
  max-width: none !important;
}

.po-card-body *{
  max-width: none !important;
  float: none !important;
}
.po-empty{
  margin: 0;
  padding: 12px 0;
  color: rgba(0,0,0,.65);
  font-weight: 600;
}

.po-wrap{ direction: rtl; }


/* FIX: ensure image area always visible */
.po-card{
  display: grid;
  grid-template-rows: 2.5fr 1.2fr;
}

.po-card-media{
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px){
  .po-card-media{
    min-height: 200px;
  }
}


/* Title overlay on image */
.po-card-media{
  position: relative;
}

.po-card-title-overlay{
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff5722, #e53935);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  max-width: calc(100% - 32px);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px){
  .po-card-title-overlay{
    font-size: 16px;
    padding: 8px 14px;
  }
}


/* Reduce unnecessary top spacing in themes (like Jannah sections) */
.po-wrap{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Softer, more attractive rounding */
.po-card{
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform, box-shadow;
}

/* Ensure inner parts follow rounding */
.po-card-media,
.po-card-body{
  border-radius: 0;
}

/* Hover: gentle lift + red glow around edges */
.po-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.22),
    0 0 0 2px rgba(255, 70, 70, 0.25),
    0 0 26px rgba(255, 0, 0, 0.22);
}

/* Focus state for accessibility */
.po-card:focus{
  outline: none;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.22),
    0 0 0 3px rgba(255, 70, 70, 0.35),
    0 0 28px rgba(255, 0, 0, 0.24);
}

/* Optional: subtle shine on hover */
.po-card:hover .po-card-media::after{
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,0,0,0.10) 100%);
}


/* FIX internal empty space & remove theme artifacts */
.po-card{
  grid-template-rows: auto auto !important;
  min-height: unset !important;
}

/* Ensure media does not create extra space */
.po-card-media{
  min-height: 220px !important;
}

/* Remove any injected arrows/icons from theme */
.po-card::before,
.po-card::after{
  content: none !important;
  display: none !important;
}

/* Prevent theme controls from appearing */
.po-card a,
.po-card svg{
  pointer-events: none;
}


/* Remove any theme-injected chevrons/arrows/icons inside the card (Jannah sometimes adds them) */
.po-card *::before,
.po-card *::after{
  content: none !important;
}

.po-card i,
.po-card .fa,
.po-card .fas,
.po-card .far,
.po-card .fal,
.po-card .fab,
.po-card svg{
  display: none !important;
}

/* Also protect against background-image icons at top-right */
.po-card{
  background-image: none !important;
}
