
/* Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

.fcw-wrap, .fcw-single { font-family: "Tajawal", sans-serif; }

/* Filter */
.fcw-filter{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px 0}
.fcw-pill{
  appearance:none;border:1px solid rgba(0,0,0,.10);background:#fff;
  padding:10px 14px;border-radius:999px;cursor:pointer;font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;color:inherit;position:relative;
}
.fcw-pill:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.fcw-pill.is-active{background:rgba(255,138,0,.10);border-color:rgba(255,138,0,.45)}

/* Filter variants */
.fcw-filter-square .fcw-pill{border-radius:16px}
.fcw-filter-square .fcw-pill{padding:12px 16px}
.fcw-filter-square .fcw-pill:hover{box-shadow:0 10px 24px rgba(0,0,0,.10)}

.fcw-filter-underline .fcw-pill{
  border-color:transparent;background:transparent;box-shadow:none;padding:10px 8px;border-radius:0;
}
.fcw-filter-underline .fcw-pill::after{
  content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;border-radius:99px;
  background:rgba(255,138,0,.0);transition:background .18s ease;
}
.fcw-filter-underline .fcw-pill.is-active::after{background:rgba(255,138,0,.85)}
.fcw-filter-underline .fcw-pill.is-active{background:transparent;border-color:transparent}
.fcw-filter-underline .fcw-pill:hover{transform:none;box-shadow:none}

/* Grid & Card */
.fcw-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}

.fcw-card{
  position:relative;overflow:hidden;border-radius:18px;background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  text-decoration:none !important;color:inherit;min-height:240px;transform:translateZ(0);cursor:pointer;
}
.fcw-thumb{
  width:100%;height:100%;min-height:240px;background-size:cover;background-position:center;
  transition:transform .45s ease, filter .45s ease;
  will-change:transform;
}

/* Badge logo (top-left) */
.fcw-badge{
  position:absolute;top:14px;left:14px;
  width:var(--fcw-badge-size,52px);height:var(--fcw-badge-size,52px);
  border-radius:18px;
  background:var(--fcw-badge-bg, rgba(255,255,255,.85));
  border:1px solid rgba(255,255,255,.45);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  opacity:var(--fcw-badge-opacity,1);
  backdrop-filter: blur(6px);
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}
.fcw-badge::before{
  content:"";position:absolute;inset:-40%;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%);
  transform:translateX(-80%) rotate(18deg);
  animation:fcwShine 2.8s ease-in-out infinite;
  opacity:.55;
}
@keyframes fcwShine{
  0%, 55% { transform:translateX(-80%) rotate(18deg); }
  100% { transform:translateX(80%) rotate(18deg); }
}
.fcw-badge img{
  position:relative;z-index:1;
  width:72%;height:72%;object-fit:contain;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.12));
}

/* Overlay content hidden by default */
.fcw-overlay{
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:18px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
.fcw-overlay::before{
  content:"";position:absolute;inset:0;
  background:var(--fcw-overlay-color, #000);
  opacity:0;
  transition:opacity .22s ease;
}
.fcw-overlay > *{ position:relative; z-index:1; }

.fcw-title{
  color:#fff;font-size:18px;font-weight:900;line-height:1.25;
  opacity:0;transform:translateY(10px);
  transition:opacity .22s ease, transform .22s ease;
}
.fcw-sub{
  color:rgba(255,255,255,.88);font-size:13px;margin-top:6px;
  opacity:0;transform:translateY(10px);
  transition:opacity .22s ease, transform .22s ease;
}

.fcw-card:hover .fcw-title,
.fcw-card:hover .fcw-sub{
  opacity:1;transform:translateY(0);
}

/* Hover effects on image */
.fcw-card:hover .fcw-thumb{ transform:scale(1.06); }

.fcw-wrap[style*="--fcw-hover-effect:zoom_rotate"] .fcw-card:hover .fcw-thumb{
  transform:scale(1.08) rotate(-1.2deg);
}
.fcw-wrap[style*="--fcw-hover-effect:tilt"] .fcw-card{
  transition:transform .18s ease, box-shadow .18s ease;
}
.fcw-wrap[style*="--fcw-hover-effect:tilt"] .fcw-card:hover{
  transform:translateY(-4px) rotate(-0.3deg);
  box-shadow:0 18px 44px rgba(0,0,0,.12);
}
.fcw-wrap[style*="--fcw-hover-effect:tilt"] .fcw-card:hover .fcw-thumb{
  transform:scale(1.05);
}

/* Empty */
.fcw-empty{grid-column:1/-1;padding:18px;border:1px dashed rgba(0,0,0,.15);border-radius:16px}


/* Show overlay on hover OR tap (mobile) */
.fcw-card:hover .fcw-overlay::before,
.fcw-card.is-active .fcw-overlay::before{
  content:"";position:absolute;inset:0;
  background:var(--fcw-overlay-color, #000);
  opacity: var(--fcw-overlay-alpha, .7);
  transition:opacity .22s ease;
}
.fcw-card.is-active .fcw-title,
.fcw-card.is-active .fcw-sub{
  opacity:1;transform:translateY(0);
}
.fcw-card.is-active .fcw-thumb{ transform:scale(1.06); }

/* Actions */
.fcw-actions{
  position:absolute;top:14px;right:14px;
  display:flex;gap:10px;z-index:5;
  opacity:0;transform:translateY(-6px);
  transition:opacity .2s ease, transform .2s ease;
  pointer-events:auto;
}
.fcw-card:hover .fcw-actions,
.fcw-card.is-active .fcw-actions{
  opacity:1;transform:translateY(0);
}
.fcw-action{
  width:40px;height:40px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.35);
  color:#111;text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  cursor:pointer;
}
.fcw-action:hover{transform:translateY(-1px)}
.fcw-action svg{display:block}

/* Stretch link area */
.fcw-stretch{
  position:absolute;inset:0;z-index:2;
  text-indent:-9999px;overflow:hidden;
}


/* Lightbox (cards lens) */
.fcw-lightbox{
  position:fixed;inset:0;background:rgba(0,0,0,.80);display:none;align-items:center;justify-content:center;
  z-index:999999;padding:18px;
}
.fcw-lightbox.is-open{display:flex}
.fcw-lb-img{max-width:min(1100px,95vw);max-height:85vh;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.fcw-lb-close{
  position:fixed;top:18px;right:18px;
  width:48px;height:48px;border-radius:16px;border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);color:#fff;font-size:28px;font-weight:900;cursor:pointer;
}


/* Multi groups (one widget, multiple independent sections) */
.fcw-multi-groups{display:flex;flex-direction:column;gap:26px}
.fcw-group{width:100%}

/* Load more */
.fcw-load-more-wrap{display:flex;justify-content:center;margin-top:18px}
.fcw-load-more{
  padding:12px 18px;border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;font-weight:900;cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fcw-load-more:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(0,0,0,.10)}
.fcw-load-more.is-loading{opacity:.65;cursor:wait}
