/* ============================================================
   ZOHAR I.T. SOLUTIONS — BANNER SYSTEM STYLES v1.0
   10 Creative Banner Styles + Position Utilities + Animations
   ============================================================ */

/* ── Base Banner ── */
.zb-banner {
  position: relative;
  overflow: hidden;
  width: var(--bw, 100%);
  box-sizing: border-box;
  display: block;
  height: var(--bh, 300px);
  border-radius: var(--brad, 16px);
  margin: var(--bm, 0 0 40px 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zb-banner .zb-bg {
  position: absolute;
  inset: 0;
  background-size: var(--img-size, cover);
  background-position: var(--img-pos, center);
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}
.zb-banner:hover .zb-bg { transform: scale(1.03); }
.zb-banner .zb-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(5,13,26,0.55));
  transition: background 0.3s ease;
}
.zb-banner .zb-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--bp, 40px 48px);
}
.zb-content.zb-center { align-items: center; text-align: center; }
.zb-content.zb-left   { align-items: flex-start; text-align: left; }
.zb-content.zb-right  { align-items: flex-end; text-align: right; }

.zb-banner .zb-title {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--tc, #ffffff);
  margin: 0 0 12px;
  line-height: 1.2;
  font-family: 'Fira Sans', sans-serif;
  /* full width lets text-align override on individual elements work correctly
     when the flex container uses align-items: center (which shrinks children) */
  width: 100%;
  box-sizing: border-box;
}
.zb-banner .zb-subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  color: var(--tc, rgba(255,255,255,0.85));
  margin: 0 0 24px;
  line-height: 1.65;
  max-width: 560px;
  font-family: 'Fira Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.zb-banner .zb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Fira Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  background: var(--cta-bg, #ffffff);
  color: var(--cta-color, #050d1a);
  border: var(--cta-border, none);
}
.zb-banner .zb-cta:hover { transform: translateY(-2px); opacity: 0.92; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* Close button (sticky/popup banners) */
.zb-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  color: white; font-size: 0.85rem;
  width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background 0.2s;
  font-family: 'Fira Sans', sans-serif;
}
.zb-close:hover { background: rgba(255,255,255,0.30); }


/* ══════════════════════════════════════════════
   STYLE 1 — HERO BLEND (Cinematic Full-Width)
   ══════════════════════════════════════════════ */
.zb-hero-blend .zb-overlay {
  background: linear-gradient(90deg, var(--overlay, rgba(5,13,26,0.80)) 40%, transparent 100%);
}
.zb-hero-blend .zb-content { padding: 40px 56px; max-width: 640px; }
.zb-hero-blend .zb-title { text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* ══════════════════════════════════════════════
   STYLE 2 — SPLIT LEFT (Image Left, Text Right)
   ══════════════════════════════════════════════ */
.zb-split-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--bh, 320px);
}
.zb-split-left .zb-split-image {
  background-size: var(--img-size, cover);
  background-position: var(--img-pos, center);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}
.zb-split-left .zb-content {
  background: var(--overlay, rgba(5,13,26,0.95));
  padding: 36px 40px 36px 20px;
  height: auto;
  justify-content: center;
}
.zb-split-left .zb-bg { display: none; }
.zb-split-left .zb-overlay { display: none; }
.zb-split-left .zb-title, .zb-split-left .zb-subtitle { color: var(--tc, #fff); }

/* ══════════════════════════════════════════════
   STYLE 3 — SPLIT RIGHT (Text Left, Image Right)
   ══════════════════════════════════════════════ */
.zb-split-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--bh, 320px);
}
.zb-split-right .zb-content {
  background: var(--overlay, rgba(5,13,26,0.95));
  padding: 36px 20px 36px 40px;
  height: auto;
  justify-content: center;
  order: 1;
}
.zb-split-right .zb-split-image {
  background-size: var(--img-size, cover);
  background-position: var(--img-pos, center);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  order: 2;
}
.zb-split-right .zb-bg { display: none; }
.zb-split-right .zb-overlay { display: none; }
.zb-split-right .zb-title, .zb-split-right .zb-subtitle { color: var(--tc, #fff); }

/* ══════════════════════════════════════════════
   STYLE 4 — GLASS CARD (Frosted Glassmorphism)
   ══════════════════════════════════════════════ */
.zb-glass-card {
  background: var(--overlay, linear-gradient(135deg, rgba(0,87,255,0.2), rgba(0,212,255,0.05)));
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.zb-glass-card .zb-content { padding: 40px 48px; }
.zb-glass-card .zb-overlay { display: none; }
.zb-glass-card .zb-cta {
  background: rgba(255,255,255,0.9);
  color: #050d1a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.zb-glass-card .zb-title { color: var(--tc, #fff); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.zb-glass-card .zb-subtitle { color: var(--tc, rgba(255,255,255,0.85)); }

/* ══════════════════════════════════════════════
   STYLE 5 — NEON PULSE (Dark + Neon Glow)
   ══════════════════════════════════════════════ */
.zb-neon-pulse {
  background: #020814;
  border: 1px solid var(--neon, rgba(0,212,255,0.4));
  box-shadow: 0 0 40px var(--neon, rgba(0,212,255,0.15)), inset 0 0 80px rgba(0,0,0,0.8);
}
.zb-neon-pulse .zb-bg { opacity: 0.12; }
.zb-neon-pulse .zb-overlay { background: rgba(2,8,20,0.6); }
.zb-neon-pulse .zb-title {
  color: var(--tc, #00d4ff);
  text-shadow: 0 0 30px var(--neon, rgba(0,212,255,0.8)), 0 0 60px var(--neon, rgba(0,212,255,0.4));
  animation: neon-flicker 4s ease-in-out infinite;
}
.zb-neon-pulse .zb-subtitle { color: rgba(255,255,255,0.75); }
.zb-neon-pulse::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon, #00d4ff), transparent);
  animation: neon-scan 3s linear infinite;
}
.zb-neon-pulse::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon, #00d4ff), transparent);
}
.zb-neon-pulse .zb-cta {
  background: transparent;
  color: var(--neon, #00d4ff);
  border: 2px solid var(--neon, #00d4ff);
  box-shadow: 0 0 20px var(--neon, rgba(0,212,255,0.4));
}
.zb-neon-pulse .zb-cta:hover { background: var(--neon, rgba(0,212,255,0.15)); }
@keyframes neon-flicker { 0%,19%,21%,23%,25%,54%,56%,100%{opacity:1} 20%,24%,55%{opacity:0.92} }
@keyframes neon-scan { from{transform:scaleX(0);opacity:0;transform-origin:left} 50%{opacity:1} to{transform:scaleX(1);opacity:0;transform-origin:right} }

/* ══════════════════════════════════════════════
   STYLE 6 — MINIMAL STRIP (Clean, Elegant)
   ══════════════════════════════════════════════ */
.zb-minimal-strip {
  background: var(--overlay, #f8faff);
  border-left: 5px solid var(--primary, #0057ff);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  height: auto !important;
}
.zb-minimal-strip .zb-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.zb-minimal-strip .zb-bg { display: none; }
.zb-minimal-strip .zb-overlay { display: none; }
.zb-minimal-strip .zb-title {
  color: var(--tc, #0a0f1e);
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin: 0;
  width: auto;
}
.zb-minimal-strip .zb-subtitle {
  color: var(--tc, #444);
  margin: 4px 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
  width: auto;
}
.zb-minimal-strip .zb-text-group { flex: 1; }
.zb-minimal-strip .zb-cta {
  background: var(--primary, #0057ff);
  color: white;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   STYLE 7 — SPOTLIGHT (Radial Glow on Content)
   ══════════════════════════════════════════════ */
.zb-spotlight .zb-overlay {
  background: radial-gradient(ellipse 60% 80% at var(--spotlight-x, 30%) 50%,
    transparent 0%, var(--overlay, rgba(2,8,20,0.85)) 70%);
}
.zb-spotlight .zb-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  background: linear-gradient(135deg, #fff 0%, var(--accent, #00d4ff) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.zb-spotlight .zb-subtitle { color: rgba(255,255,255,0.8); }
.zb-spotlight .zb-cta {
  background: var(--gradient, linear-gradient(135deg, #0057ff, #00d4ff));
  color: white;
  box-shadow: 0 4px 24px rgba(0,87,255,0.4);
}

/* ══════════════════════════════════════════════
   STYLE 8 — PROMO BURST (Bold Gradient + Pattern)
   ══════════════════════════════════════════════ */
.zb-promo-burst {
  background: var(--gradient, linear-gradient(135deg, #0057ff 0%, #00d4ff 100%));
  overflow: hidden;
}
.zb-promo-burst::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: promo-pulse 3s ease-in-out infinite;
}
.zb-promo-burst::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: promo-pulse 3s ease-in-out infinite 1.5s;
}
@keyframes promo-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.zb-promo-burst .zb-bg { opacity: 0.08; }
.zb-promo-burst .zb-overlay { background: transparent; }
.zb-promo-burst .zb-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.zb-promo-burst .zb-subtitle { color: rgba(255,255,255,0.9); }
.zb-promo-burst .zb-cta { background: white; color: #050d1a; font-weight: 700; }
.zb-promo-burst .zb-content { z-index: 3; }

/* ══════════════════════════════════════════════
   STYLE 9 — MAGAZINE FEATURE (Editorial Style)
   ══════════════════════════════════════════════ */
.zb-magazine {
  height: var(--bh, 420px);
}
.zb-magazine .zb-overlay {
  background: linear-gradient(to top, rgba(5,13,26,0.95) 0%, rgba(5,13,26,0.3) 60%, transparent 100%);
}
.zb-magazine .zb-content {
  justify-content: flex-end;
  padding: 40px 48px;
}
.zb-magazine .zb-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.zb-magazine .zb-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #00d4ff);
  margin-bottom: 10px;
  display: block;
}
.zb-magazine .zb-subtitle { color: rgba(255,255,255,0.80); font-size: 0.95rem; }
.zb-magazine .zb-cta {
  background: var(--accent, #00d4ff);
  color: #050d1a;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   STYLE 10 — RIBBON ANNOUNCE (Thin Ticker Bar)
   ══════════════════════════════════════════════ */
.zb-ribbon-announce {
  height: auto !important;
  border-radius: var(--brad, 0px);
  background: var(--gradient, linear-gradient(90deg, #0057ff, #00d4ff, #0057ff));
  background-size: 200% auto;
  animation: ribbon-flow 6s linear infinite;
}
@keyframes ribbon-flow { 0%{background-position:0%} 100%{background-position:200%} }
.zb-ribbon-announce .zb-bg { display: none; }
.zb-ribbon-announce .zb-overlay { display: none; }
.zb-ribbon-announce .zb-content {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.zb-ribbon-announce .zb-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: auto;
}
.zb-ribbon-announce .zb-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.9); margin: 0; width: auto; }
.zb-ribbon-announce .zb-cta {
  padding: 6px 18px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.25);
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}
.zb-ribbon-announce .zb-cta:hover { background: rgba(255,255,255,0.40); }


/* ══════════════════════════════════════════════
   POSITION UTILITIES
   ══════════════════════════════════════════════ */
.zb-sticky-top {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 8990;
  border-radius: 0 !important;
  margin: 0 !important;
  height: auto !important;
}
/* Push body down for sticky-top banners */
body.has-sticky-top-banner { padding-top: var(--sticky-top-h, 60px); }
body.has-sticky-top-banner .navbar { top: var(--sticky-top-h, 60px) !important; }
body.zab-editing-mode.has-sticky-top-banner .navbar { top: calc(52px + var(--sticky-top-h, 60px)) !important; }

.zb-sticky-bottom {
  position: fixed !important;
  bottom: 0; left: 0; right: 0;
  z-index: 8990;
  border-radius: 0 !important;
  margin: 0 !important;
  height: auto !important;
}
/* Push content up for sticky-bottom banners */
body.has-sticky-bottom-banner { padding-bottom: var(--sticky-bottom-h, 60px); }

.zb-corner-br {
  position: fixed !important;
  bottom: 100px; right: 24px;
  width: var(--corner-w, 320px) !important;
  z-index: 8990;
  aspect-ratio: auto !important;
  border-radius: var(--brad, 16px) !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5) !important;
  animation: corner-slide-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.zb-corner-bl {
  position: fixed !important;
  bottom: 100px; left: 24px;
  width: var(--corner-w, 320px) !important;
  z-index: 8990;
  aspect-ratio: auto !important;
  border-radius: var(--brad, 16px) !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5) !important;
  animation: corner-slide-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes corner-slide-in { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.zb-float-left { float: left; width: 40% !important; margin: 0 28px 20px 0 !important; }
.zb-float-right { float: right; width: 40% !important; margin: 0 0 20px 28px !important; }


/* ══════════════════════════════════════════════
   ENTRY ANIMATIONS
   ══════════════════════════════════════════════ */
.zb-anim-fade    { animation: zbFadeIn var(--delay, 0.5s) ease forwards; }
.zb-anim-slide-up { animation: zbSlideUp var(--delay, 0.5s) cubic-bezier(0.34,1.2,0.64,1) forwards; }
.zb-anim-slide-left { animation: zbSlideLeft var(--delay, 0.5s) cubic-bezier(0.34,1.2,0.64,1) forwards; }
.zb-anim-slide-right { animation: zbSlideRight var(--delay, 0.5s) cubic-bezier(0.34,1.2,0.64,1) forwards; }
.zb-anim-zoom  { animation: zbZoomIn var(--delay, 0.5s) cubic-bezier(0.34,1.4,0.64,1) forwards; }
.zb-anim-bounce { animation: zbBounce var(--delay, 0.7s) cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* Invisible until animation starts */
.zb-anim-fade,
.zb-anim-slide-up,
.zb-anim-slide-left,
.zb-anim-slide-right,
.zb-anim-zoom,
.zb-anim-bounce { opacity: 0; }

@keyframes zbFadeIn    { to { opacity: 1; } }
@keyframes zbSlideUp   { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes zbSlideLeft { from { transform: translateX(-40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes zbSlideRight{ from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes zbZoomIn    { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zbBounce    { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .zb-split-left, .zb-split-right {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  .zb-split-left .zb-split-image,
  .zb-split-right .zb-split-image {
    height: 0;
    padding-bottom: 56%;   /* 16:9 ratio — shows full image area */
    clip-path: none !important;
    order: -1;
    background-size: var(--img-size, contain);
    background-position: var(--img-pos, center top);
    background-repeat: no-repeat;
    background-color: var(--dark-card, #0d1b35);
  }
  .zb-split-left .zb-content,
  .zb-split-right .zb-content { order: 2; padding: 24px; }
  .zb-float-left, .zb-float-right { float: none; width: 100% !important; margin: 0 0 24px !important; }
  .zb-corner-br, .zb-corner-bl { width: calc(100vw - 32px) !important; right: 16px !important; left: 16px !important; }
  .zb-minimal-strip .zb-content { flex-direction: column; align-items: flex-start; }
  .zb-banner .zb-content { padding: 24px; }
  .zb-magazine .zb-title { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* ── Flex-section banner stacking ── */
  /* .page-hero and .hero are flex containers. Banners inserted via inside-top/bottom
     become flex siblings and squeeze text into a thin column without this fix.
     Column direction makes banners stack cleanly below the content on mobile. */
  .page-hero,
  .hero {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero > .zb-banner,
  .page-hero > .zb-banner-wrapper,
  .hero > .zb-banner,
  .hero > .zb-banner-wrapper {
    width: 100% !important;
    max-width: 100%;
    margin-top: 24px;
    flex-shrink: 0;
  }
  /* Show the full banner image without cropping on mobile — applies to every
     banner placement (above/below/inside-top/inside-bottom/etc.), not just
     ones nested inside a hero section. Viewport-fixed popups (sticky/corner/
     fixed-*) and the square/card banner styles manage their own sizing and
     keep the same aspect ratio on every device, so they're excluded below. */
  .zb-banner .zb-bg {
    background-size: var(--img-size, contain);
    background-repeat: no-repeat;
    background-position: var(--img-pos, center top);
    background-color: var(--dark-card, #0d1b35);
  }
  /* Let the banner grow to fit the full (letterboxed) image instead of clipping it */
  .zb-banner:not(.zb-sticky-top):not(.zb-sticky-bottom):not(.zb-corner-br):not(.zb-corner-bl):not(.zb-fixed-top-left):not(.zb-fixed-top-right):not(.zb-fixed-top-center):not(.zb-fixed-bottom-left):not(.zb-fixed-bottom-right):not(.zb-fixed-bottom-center):not(.zb-sq-showcase):not(.zb-sq-social):not(.zb-sq-portrait):not(.zb-sq-icon):not(.zb-sq-product):not(.zb-sq-polaroid) {
    height: auto !important;
    min-height: 200px;
    overflow: visible;
  }
}


/* ══════════════════════════════════════════════
   SQUARE BANNER STYLES — 6 new styles
   Best used with Banner Width set to 280–600px.
   ══════════════════════════════════════════════ */

/* Shared square base */
.zb-sq-showcase, .zb-sq-social, .zb-sq-portrait, .zb-sq-icon {
  width: var(--bw, 400px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
}
.zb-sq-product, .zb-sq-polaroid {
  width: var(--bw, 400px);
  max-width: 100%;
}

/* ── SQ-1: Square Showcase (image fill + bottom caption) ── */
.zb-sq-showcase .zb-overlay {
  background: linear-gradient(to top, var(--overlay, rgba(5,13,26,0.92)) 0%, rgba(5,13,26,0.04) 60%, transparent 100%);
}
.zb-sq-showcase .zb-content {
  justify-content: flex-end;
  padding: 24px 28px;
}
.zb-sq-showcase .zb-eyebrow {
  display: inline-block;
  background: var(--primary, #0057ff);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.zb-sq-showcase .zb-title { font-size: clamp(1.05rem, 3vw, 1.75rem); color: #fff; }
.zb-sq-showcase .zb-subtitle { font-size: 0.78rem; max-width: 100%; }

/* ── SQ-2: Product Card (image top + content panel bottom) ── */
.zb-sq-product {
  height: var(--bw, 400px) !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}
.zb-sq-product .zb-bg    { display: none !important; }
.zb-sq-product .zb-overlay { display: none !important; }
.zb-sq-product .zb-sq-img {
  flex: 1.3;
  min-height: 0;
  background-size: var(--img-size, cover);
  background-position: var(--img-pos, center);
  border-radius: var(--brad, 16px) var(--brad, 16px) 0 0;
}
.zb-sq-product .zb-content {
  position: relative;
  flex: 0 0 auto;
  height: auto !important;
  background: var(--overlay, rgba(5,13,26,0.97));
  border-radius: 0 0 var(--brad, 16px) var(--brad, 16px);
  padding: 18px 22px;
  justify-content: center;
}
.zb-sq-product .zb-eyebrow { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; display: block; }
.zb-sq-product .zb-title   { font-size: clamp(0.9rem, 2vw, 1.3rem); color: var(--tc, #fff); margin-bottom: 6px; }
.zb-sq-product .zb-subtitle { font-size: 0.74rem; max-width: 100%; margin-bottom: 10px; }

/* ── SQ-3: Social Post (bold gradient, centered) ── */
.zb-sq-social {
  background: var(--gradient, linear-gradient(135deg, #0057ff 0%, #00d4ff 100%));
  overflow: hidden;
}
.zb-sq-social::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.zb-sq-social::after {
  content: '';
  position: absolute; bottom: -30px; left: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.zb-sq-social .zb-bg      { opacity: 0.08; }
.zb-sq-social .zb-overlay  { background: transparent; }
.zb-sq-social .zb-content  { justify-content: center; align-items: center; text-align: center; padding: 28px 24px; z-index: 3; }
.zb-sq-social .zb-eyebrow  { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 10px; }
.zb-sq-social .zb-title    { font-size: clamp(1.2rem, 4vw, 2rem); color: #fff; line-height: 1.2; }
.zb-sq-social .zb-subtitle { color: rgba(255,255,255,0.88); font-size: 0.8rem; }
.zb-sq-social .zb-cta      { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.5); color: #fff; margin-top: 8px; }

/* ── SQ-4: Portrait Frame (with corner label badge) ── */
.zb-sq-portrait { border: 2px solid rgba(255,255,255,0.13); }
.zb-sq-portrait .zb-overlay  { background: linear-gradient(to bottom, rgba(5,13,26,0.04) 0%, rgba(5,13,26,0.80) 100%); }
.zb-sq-portrait .zb-content  { justify-content: flex-end; padding: 20px 22px; }
.zb-sq-portrait .zb-eyebrow  {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary, #0057ff); color: #fff;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px; z-index: 3;
}
.zb-sq-portrait .zb-title    { font-size: clamp(1.05rem, 2.5vw, 1.6rem); color: #fff; }
.zb-sq-portrait .zb-subtitle { font-size: 0.78rem; }
.zb-sq-portrait .zb-cta      { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 0.8rem; }

/* ── SQ-5: Icon Card (large icon, no image needed) ── */
.zb-sq-icon {
  background: var(--overlay, linear-gradient(135deg, #050d1a 0%, #0a1628 100%));
  border: 1px solid rgba(0,87,255,0.22);
  box-shadow: 0 0 60px rgba(0,87,255,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.zb-sq-icon .zb-bg      { display: none !important; }
.zb-sq-icon .zb-overlay  { display: none !important; }
.zb-sq-icon .zb-content  { justify-content: center; align-items: center; text-align: center; flex-direction: column; gap: 14px; padding: 32px; }
.zb-sq-icon .zb-eyebrow  {
  display: block;
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: var(--accent, #00d4ff);
  text-shadow: 0 0 30px rgba(0,212,255,0.5);
  margin-bottom: 0;
}
.zb-sq-icon .zb-title    { font-size: clamp(0.95rem, 2.2vw, 1.4rem); color: #fff; margin: 0; }
.zb-sq-icon .zb-subtitle { font-size: 0.76rem; color: rgba(255,255,255,0.6); margin: 0; max-width: 240px; }
.zb-sq-icon .zb-cta      { background: var(--gradient, linear-gradient(135deg,#0057ff,#00d4ff)); color: #fff; font-size: 0.8rem; }

/* ── SQ-6: Polaroid Card (rotated card effect) ── */
.zb-sq-polaroid {
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  background: #fff;
  padding: 14px 14px 28px;
  box-shadow: 0 10px 48px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.12);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zb-sq-polaroid:hover      { transform: rotate(0deg) translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.zb-sq-polaroid .zb-bg     { display: none !important; }
.zb-sq-polaroid .zb-overlay { display: none !important; }
.zb-sq-polaroid .zb-sq-img {
  height: var(--bh, 240px);
  background-size: var(--img-size, cover);
  background-position: var(--img-pos, center);
  border-radius: 3px;
  flex-shrink: 0;
}
.zb-sq-polaroid .zb-content {
  position: relative;
  height: auto !important;
  padding: 16px 8px 0;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  flex-direction: column;
  flex: 1;
}
.zb-sq-polaroid .zb-eyebrow  { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: #aaa; margin-bottom: 6px; }
.zb-sq-polaroid .zb-title    { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 4px; }
.zb-sq-polaroid .zb-subtitle { font-size: 0.76rem; color: #666; margin: 0; max-width: 100%; }
.zb-sq-polaroid .zb-cta      { background: var(--primary, #0057ff); color: #fff; margin-top: 12px; font-size: 0.78rem; padding: 8px 20px; }

/* Square banners always fill column width when in a column layout */
.zb-in-col.zb-sq-showcase,
.zb-in-col.zb-sq-social,
.zb-in-col.zb-sq-portrait,
.zb-in-col.zb-sq-icon,
.zb-in-col.zb-sq-product,
.zb-in-col.zb-sq-polaroid { width: 100%; }

/* Column banner height modes */
.zb-in-col.zb-col-stretch {
  aspect-ratio: auto !important;
  align-self: stretch !important;
  height: 100% !important;
  max-height: none !important;
}
.zb-in-col.zb-col-fixed-h {
  aspect-ratio: auto !important;
  height: var(--bh, 400px) !important;
}


/* ══════════════════════════════════════════════
   COLUMN LAYOUT WRAPPER
   Used by col-left / col-right positions
   ══════════════════════════════════════════════ */
.zb-col-wrapper {
  display: grid;
  gap: var(--col-gap, 24px);
  align-items: var(--col-valign, center);
  width: 100%;
  box-sizing: border-box;
}
.zb-col-content { min-width: 0; }

@media (max-width: 900px) {
  .zb-col-wrapper {
    grid-template-columns: 1fr !important;
  }
  .zb-col-wrapper .zb-banner,
  .zb-in-col.zb-sq-showcase,
  .zb-in-col.zb-sq-social,
  .zb-in-col.zb-sq-portrait,
  .zb-in-col.zb-sq-icon {
    width: 100% !important;
    aspect-ratio: 4 / 3;
  }
  .zb-sq-polaroid { transform: none; max-width: 400px; margin: 0 auto; }
}


/* ==============================================
   BANNER HORIZONTAL ALIGNMENT
   Controls where a custom-width banner sits.
   ============================================== */
.zb-banner.zb-halign-center { margin-left: auto; margin-right: auto; }
.zb-banner.zb-halign-right  { margin-left: auto; }


/* ==============================================
   FIXED VIEWPORT POSITIONS (6 new)
   Anchored to screen edges; X/Y offsets via
   --pos-x / --pos-y CSS custom properties.
   ============================================== */
.zb-fixed-top-left,
.zb-fixed-top-right,
.zb-fixed-top-center,
.zb-fixed-bottom-left,
.zb-fixed-bottom-right,
.zb-fixed-bottom-center {
  position: fixed !important;
  z-index: 8990;
  width: var(--bw, 340px) !important;
  max-width: calc(100vw - 32px) !important;
  /* Ignore square-style aspect-ratio & let --bh control height */
  aspect-ratio: auto !important;
  height: var(--bh, auto) !important;
  max-height: 80vh !important;
  overflow-y: auto;
  margin: 0 !important;
  border-radius: var(--brad, 16px) !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5) !important;
  animation: corner-slide-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.zb-fixed-top-left     { top:    var(--pos-y, 16px); left:  var(--pos-x, 24px); }
.zb-fixed-top-right    { top:    var(--pos-y, 16px); right: var(--pos-x, 24px); }
.zb-fixed-top-center   { top:    var(--pos-y, 16px); left: 0; right: 0; margin: 0 auto !important; }
.zb-fixed-bottom-left  { bottom: var(--pos-y, 16px); left:  var(--pos-x, 24px); }
.zb-fixed-bottom-right { bottom: var(--pos-y, 16px); right: var(--pos-x, 24px); }
.zb-fixed-bottom-center{ bottom: var(--pos-y, 16px); left: 0; right: 0; margin: 0 auto !important; }


