/* ============================================================
   Avan Pages — Workshops + Mentors
   Clean · Modern · Responsive
   ============================================================ */

/* ----- Page Shell ----- */
.av-pg {
  background: #FCF8EF;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #2E1A47;
  overflow-x: hidden;
}

.av-pg-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ----- Hero ----- */
.av-pg-hero {
  text-align: center;
  margin-bottom: 44px;
}

.av-pg-badge {
  display: inline-block;
  background: rgba(46,26,71,.06);
  color: #6B5B7B;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.av-pg-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.av-pg-hero p {
  font-size: 15px;
  color: #6B5B7B;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ----- Filter Pills ----- */
.av-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.av-filter {
  background: #fff;
  border: 1px solid rgba(46,26,71,.10);
  color: #5A4E6B;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.av-filter:hover { border-color: #2E1A47; color: #2E1A47; }
.av-filter.active { background: #2E1A47; color: #fff; border-color: #2E1A47; }

/* ============================================================
   Workshop Cards — کارتِ ویترینی
   ------------------------------------------------------------
   طرحِ قبلی یک نوارِ پاستلی با ایموجی بود و تصویرِ واقعیِ کارگاه —
   که همیشه در دیتابیس وجود داشت — هرگز دیده نمی‌شد. حالا جلدِ
   تصویری ستونِ فقراتِ کارت است و بقیه زیرش می‌نشیند.
   ============================================================ */
.av-ws-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* نشانِ «مخصوص خانواده‌های آوان» — کلاسی که ثبت‌نام مهمان ندارد.
   روی کارت می‌نشیند تا بازدیدکننده قبل از پر کردن فرم بداند. */
.av-ws-famonly {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3;
  background: #fff8e1; color: #8a5a00; border: 1px solid #f0d090;
  border-radius: 999px; padding: 5px 12px;
  font-size: 11.5px; font-weight: 800; line-height: 1.6;
}

.av-ws-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(46,26,71,.07);
  box-shadow: 0 1px 2px rgba(46,26,71,.04);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.av-ws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(46,26,71,.22);
  border-color: rgba(46,26,71,.14);
}

/* ----- جلد ----- */
.av-ws-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #EFE7F7, #E3EDF6);
  overflow: hidden;
  text-decoration: none;
}

.av-ws-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.av-ws-card:hover .av-ws-cover img { transform: scale(1.05); }

.av-ws-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  opacity: .5;
}

/* سایه‌ی تیره از پایین، تا عنوانِ سفید روی هر تصویری خوانا بماند —
   حتی تصویرِ روشن. بدون این، عنوان روی عکس‌های روشن گم می‌شود. */
.av-ws-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,12,38,.86) 0%, rgba(24,12,38,.35) 42%, rgba(24,12,38,0) 68%);
  pointer-events: none;
}

.av-ws-title {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 14px;
  margin: 0;
  z-index: 2;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.av-ws-chips {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.av-ws-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.av-ws-chip.kind  { background: rgba(255,255,255,.9);  color: #2E1A47; }
.av-ws-chip.avail { background: rgba(16,140,110,.92);  color: #fff; }
.av-ws-chip.full  { background: rgba(24,12,38,.62);    color: #F2E9EA; }

/* ----- بدنه ----- */
.av-ws-body {
  padding: 16px 18px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.av-ws-teacher {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
  color: #2E1A47;
}

.av-ws-teacher small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8A7E9B;
  margin-top: 1px;
}

.av-ws-ava {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, #E8745B, #D45A3F);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.av-ws-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: #5A4E6B;
}

.av-ws-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-bottom: 4px;
}

.av-ws-tag {
  background: #F7F4FA;
  border: 1px solid rgba(46,26,71,.06);
  color: #5A4E6B;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

/* ----- پاورقی ----- */
.av-ws-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(46,26,71,.06);
  margin-top: 12px;
}

.av-ws-price small {
  display: block;
  font-size: 10.5px;
  color: #8A7E9B;
  font-weight: 700;
  margin-bottom: 2px;
}

.av-ws-price strong {
  font-size: 16px;
  font-weight: 900;
  color: #2E1A47;
}

.av-ws-cta {
  background: #2E1A47;
  color: #fff;
  padding: 10px 20px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

.av-ws-cta:hover { background: #3D2B5C; transform: translateX(-2px); }
.av-ws-cta.waitlist { background: #8A7E9B; }

/* شمارنده‌ی کنارِ دکمه‌های فیلتر */
.av-filter-n {
  display: inline-block;
  background: rgba(46,26,71,.08);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-right: 4px;
}

.av-filter.active .av-filter-n { background: rgba(255,255,255,.22); }

/* ----- Empty State ----- */
.av-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8A7E9B;
}
.av-empty h3 { font-size: 18px; margin-top: 12px; }

/* ----- CTA Banner (login/register) ----- */
.av-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 48px;
}

.av-cta-box {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(46,26,71,.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.av-cta-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.av-cta-box h4 { margin: 0 0 4px; font-size: 15px; }
.av-cta-box p  { margin: 0 0 10px; font-size: 12px; color: #8A7E9B; }
.av-cta-box a  { display: inline-block; background: #2E1A47; color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration: none; }

/* ============================================================
   MENTORS PAGE
   ============================================================ */

/* ----- Section Head ----- */
.av-sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  margin-top: 44px;
}

.av-sec-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.av-sec-label {
  font-size: 11px;
  color: #8A7E9B;
  font-weight: 700;
  display: block;
}

.av-sec-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.av-sec-count {
  margin-right: auto;
  font-size: 13px;
  color: #8A7E9B;
  font-weight: 700;
}

/* ----- Core Team Cards ----- */
.av-core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.av-core-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(46,26,71,.06);
}

.av-core-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px 24px;
  position: relative;
}

.av-core-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  font-weight: 900;
  background: #2E1A47;
  color: #E2D4A8;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto;
}

.av-core-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.av-core-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  left: auto;
  background: rgba(46,26,71,.9);
  color: #E2D4A8;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.av-core-info { text-align: center; word-break: break-word; overflow-wrap: break-word; }

.av-core-tag {
  display: inline-block;
  background: #F4EFE6;
  color: #6B5B7B;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.av-core-info h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 2px;
  word-break: break-word;
}

.av-core-role {
  font-size: 13px;
  color: #8A7E9B;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-word;
}

.av-core-bio {
  font-size: 13px;
  line-height: 1.8;
  color: #6B5B7B;
  margin-bottom: 12px;
  word-break: break-word;
}

.av-core-tags {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}

.av-core-tags span {
  background: #F4EFE6;
  color: #5A4E6B;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

/* ----- Divider ----- */
.av-divider {
  text-align: center;
  color: #A89BB5;
  font-size: 13px;
  margin: 28px 0 16px;
  font-weight: 600;
}

/* ----- Facilitators Grid ----- */
.av-fac-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.av-fac-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid rgba(46,26,71,.06);
}

.av-fac-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.av-fac-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 900;
  background: #F4EFE6;
  color: #6B5B7B;
  overflow: hidden;
  flex-shrink: 0;
}

.av-fac-photo img { width: 100%; height: 100%; object-fit: cover; }

.av-fac-top h4 { margin: 0; font-size: 16px; font-weight: 800; }
.av-fac-top .av-fac-role { font-size: 11px; color: #8A7E9B; font-weight: 700; margin-top: 2px; }

.av-fac-bio {
  font-size: 12px; line-height: 1.7; color: #6B5B7B; margin-bottom: 10px;
}

.av-fac-tags {
  display: flex; gap: 5px; flex-wrap: wrap;
}

.av-fac-tags span {
  background: #F4EFE6;
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
  color: #5A4E6B;
}

/* ----- Join CTA ----- */
.av-join {
  background: #2E1A47;
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  margin-top: 40px;
}

.av-join h3 { margin: 0 0 6px; font-size: 18px; }
.av-join p { font-size: 13px; opacity: .75; margin: 0 0 16px; }
.av-join a {
  display: inline-block;
  background: #fff;
  color: #2E1A47;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE — Tablet 640+
   ============================================================ */
@media (min-width: 640px) {
  .av-pg-wrap { padding: 60px 32px 80px; }
  .av-ws-grid { grid-template-columns: 1fr 1fr; }
  .av-cta-row { grid-template-columns: 1fr 1fr; }
  .av-core-inner { grid-template-columns: 120px 1fr; text-align: right; gap: 20px; padding: 28px; }
  .av-core-photo { margin: 0; width: 100px; height: 100px; }
  .av-core-info { text-align: right; }
  .av-core-tags { justify-content: flex-end; }
  .av-fac-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — Desktop 960+
   ============================================================ */
@media (min-width: 960px) {
  .av-pg-wrap { padding: 72px 32px 96px; }
  .av-ws-grid { grid-template-columns: repeat(3, 1fr); }
  .av-core-inner { grid-template-columns: 160px 1fr; padding: 36px; }
  .av-core-photo { width: 140px; height: 140px; border-radius: 20px; font-size: 52px; }
  .av-core-info h3 { font-size: 28px; }
  .av-fac-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — Wide 1200+
   ============================================================ */
@media (min-width: 1200px) {
  .av-core-grid { grid-template-columns: 1fr 1fr; }
  .av-fac-grid { grid-template-columns: repeat(4, 1fr); }
}
