.mmc-directory {
    --navy-950: #060f1e;
    --navy-900: #0b1c31;
    --navy-850: #0f2440;
    --navy-800: #15304f;
    --gold-300: #e8cd8a;
    --gold-400: #d8b562;
    --gold-500: #c9a227;
    --gold-600: #a5811d;
    --ivory: #f4f1ea;
    --steel: #8fa3bd;
    --steel-dim: #5f7794;

    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: var(--navy-950);
    color: var(--ivory);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  .mmc-directory * { box-sizing: border-box; }

  .mmc-eng {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  /* ---------- HERO ---------- */
  .mmc-hero {
    position: relative;
    padding: 96px 24px 72px;
    text-align: center;
    background:
      radial-gradient(ellipse at 50% -10%, rgba(201,162,39,0.14), transparent 55%),
      linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(216,181,98,0.18);
  }

  .mmc-corner {
    position: absolute;
    width: 46px;
    height: 46px;
    border-color: var(--gold-500);
    border-style: solid;
    border-width: 0;
    opacity: 0.85;
  }
  .mmc-hero .mmc-corner--tl { top: 22px; right: 22px; border-top-width: 1.5px; border-right-width: 1.5px; }
  .mmc-hero .mmc-corner--bl { bottom: 22px; left: 22px; border-bottom-width: 1.5px; border-left-width: 1.5px; }

  .mmc-eyebrow {
    color: var(--gold-400);
    font-size: 12px;
    margin: 0 0 18px;
  }

  .mmc-hero-title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--ivory);
  }

  .mmc-hero-sub {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--gold-300);
    font-weight: 500;
    margin: 0 0 26px;
  }

  .mmc-hero-rule {
    width: 64px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  }

  .mmc-hero-note {
    margin: 26px auto 0;
    max-width: 520px;
    color: var(--steel);
    font-size: 14.5px;
  }

  /* ---------- FILTER BAR ---------- */
  .mmc-filter-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6,15,30,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216,181,98,0.15);
    padding: 14px 16px;
  }

  .mmc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .mmc-filter-btn {
    flex: none;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--navy-800);
    background: transparent;
    color: var(--steel);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
  }
  .mmc-filter-btn:hover { border-color: var(--gold-500); color: var(--gold-300); }
  .mmc-filter-btn.is-active {
    background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
    border-color: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
  }

  /* ---------- GRID ---------- */
  .mmc-grid-section { padding: 48px 20px 96px; }

  .mmc-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
  }

  .mmc-card {
    background: var(--navy-900);
    border: 1px solid var(--navy-800);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    animation: mmc-rise .5s ease both;
    animation-delay: calc(var(--d) * 60ms);
  }
  @keyframes mmc-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mmc-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-500);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  }
  .mmc-card.mmc-hidden { display: none; }

  .mmc-card-media {
    position: relative;
    line-height: 0;
  }
  .mmc-card-media img {
    width: 100%;
    height: auto;
    display: block;
  }
  .mmc-card-media .mmc-corner { width: 26px; height: 26px; opacity: 0; transition: opacity .25s ease; }
  .mmc-card-media .mmc-corner--tl { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
  .mmc-card-media .mmc-corner--br { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
  .mmc-card:hover .mmc-card-media .mmc-corner { opacity: 0.9; }

  .mmc-card-body { padding: 18px 20px 20px; }

  .mmc-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ivory);
  }

  .mmc-card-role {
    font-size: 13.5px;
    color: var(--steel);
    margin: 0 0 12px;
  }
  .mmc-card-sep { color: var(--steel-dim); margin: 0 2px; }

  .mmc-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .mmc-card-tag {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--navy-800);
    color: var(--gold-300);
    background: rgba(201,162,39,0.06);
  }

  .mmc-card-meta { margin: 0; border-top: 1px dashed var(--navy-800); padding-top: 12px; }
  .mmc-card-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    padding: 3px 0;
  }
  .mmc-card-meta-row dt { color: var(--steel-dim); }
  .mmc-card-meta-row dd { margin: 0; color: var(--steel); }
  .mmc-card-meta-row a { color: var(--gold-300); text-decoration: none; }
  .mmc-card-meta-row a:hover { text-decoration: underline; }

  .mmc-empty {
    display: none;
    text-align: center;
    color: var(--steel-dim);
    padding: 60px 20px;
    font-size: 14px;
  }
  .mmc-empty.is-visible { display: block; }

  /* ---------- بزرگ‌نمایی عکس با کلیک (اضافه‌شده) ---------- */
  .mmc-card-media { cursor: zoom-in; }

  .mmc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 15, 30, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 24px;
  }
  .mmc-lightbox.is-open { display: flex; }
  .mmc-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(216, 181, 98, 0.35);
  }

  @media (max-width: 640px) {
    .mmc-hero { padding: 72px 18px 56px; }
    .mmc-grid { grid-template-columns: 1fr; gap: 22px; }
  }