/* ======================================
   Workshops Page Styles — v7
   هيرو بدون إحصائيات + شريط تصفية عائم
   + شبكة بطاقات مدمجة (Option C)
====================================== */

* { box-sizing: border-box; }

body {
  font-family: 'Tajawal', sans-serif;
  background: #ffffff;
}

/* ===========================
   HERO — لا توجد إحصائيات،
   نص متمركز + خلفية شبكية تتحرك مع الماوس
=========================== */
.ws-hero {
  position: relative;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  overflow: hidden;
  padding: 150px 24px 110px;
  text-align: center;
}

.ws-hero-grid-bg {
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  will-change: transform;
  transition: transform .15s ease-out;
}

.ws-hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(10,77,77,.45), transparent 70%);
  border-radius: 50%;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ws-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  animation: wsFadeUp .7s ease forwards;
}

.ws-title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: wsFadeUp .7s ease .1s forwards;
}
.ws-title span { color: #5dcaa5; }

.ws-sub {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  animation: wsFadeUp .7s ease .2s forwards;
}

@keyframes wsFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   FLOATING FILTER BAR
   يتراكب على حافة الهيرو السفلية
=========================== */
.ws-filter-wrap {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: -46px auto 0;
  padding: 0 24px;
}

.ws-filter-bar {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(6,33,65,.18);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #475569;
  font-family: 'Tajawal', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.ws-filter-tab i { font-size: 12px; color: #94a3b8; transition: color .2s; }
.ws-filter-tab:hover { background: #f1f5f9; }
.ws-filter-tab.active {
  background: linear-gradient(135deg, #062141, #0a4d4d);
  color: #fff;
}
.ws-filter-tab.active i { color: rgba(255,255,255,.8); }

.ws-filter-count {
  background: rgba(0,0,0,.07);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 2px;
}
.ws-filter-tab.active .ws-filter-count {
  background: rgba(255,255,255,.2);
}

/* ===========================
   CONTENT / GRID — Option C
=========================== */
.ws-content {
  background: #ffffff;
  padding: 50px 24px 70px;
}

.ws-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.ws-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(6,33,65,.07);
  border: 1px solid rgba(6,33,65,.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px);
}
.ws-card.ws-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, border-color .3s ease;
}
.ws-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(6,33,65,.14);
  border-color: rgba(10,77,77,.18);
}

/* hide cards filtered out (kept in DOM, no layout shift jank) */
.ws-card.ws-hidden {
  display: none;
}

.ws-card-band { height: 6px; flex-shrink: 0; }
.band-open      { background: linear-gradient(90deg,#10b981,#059669); }
.band-upcoming  { background: linear-gradient(90deg,#3b82f6,#2563eb); }
.band-ended     { background: linear-gradient(90deg,#6b7280,#4b5563); }
.band-full      { background: linear-gradient(90deg,#ef4444,#dc2626); }

.ws-card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ws-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-card-icon i { font-size: 20px; color: #fff; }
.ws-icon-r { font-size: 19px; font-weight: 800; color: #fff; }

.ws-card-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-open     { background: #d1fae5; color: #065f46; }
.pill-upcoming { background: #dbeafe; color: #1e40af; }
.pill-ended    { background: #e5e7eb; color: #374151; }
.pill-full     { background: #fee2e2; color: #991b1b; }

.ws-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #062141;
  line-height: 1.45;
}

.ws-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ws-card-partner {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 3px solid #0a4d4d;
  padding-right: 8px;
}
.ws-card-partner i { color: #0a4d4d; font-size: 11px; }

.ws-card-divider {
  height: 1px;
  background: rgba(6,33,65,.06);
  margin: 0 24px;
}

.ws-card-footer {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.ws-card-metas {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ws-card-mi {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.ws-card-mi i { color: #0a4d4d; font-size: 11px; width: 12px; }

.ws-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: gap .25s ease;
}
.ws-card:hover .ws-card-btn { gap: 10px; }
.ws-card-btn i { font-size: 10px; }

/* ===========================
   EMPTY STATE
=========================== */
.ws-empty {
  max-width: 1100px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  color: #94a3b8;
}
.ws-empty i { font-size: 40px; margin-bottom: 14px; }
.ws-empty h3 { font-size: 17px; color: #475569; margin-bottom: 6px; }
.ws-empty p { font-size: 13.5px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .ws-hero { padding: 130px 24px 90px; }
  .ws-title { font-size: 34px; }
}

@media (max-width: 640px) {
  .ws-hero { padding: 110px 20px 80px; }
  .ws-title { font-size: 27px; }
  .ws-sub { font-size: 14px; }
  .ws-filter-wrap { margin-top: -38px; padding: 0 16px; }
  .ws-filter-bar { padding: 8px; gap: 4px; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ws-filter-tab { padding: 8px 14px; font-size: 12.5px; }
  .ws-content { padding: 40px 16px 50px; }
  .ws-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .ws-title { font-size: 23px; }
}