/* صفحه مجله مایسل — گرید کارت‌ها */

/* هیرو بنر — هم‌سبک مقالات */
.mycell-blog-archive .mycell-article-hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, #000037 0%, #000852 100%);
  color: #fff;
  box-sizing: border-box;
}

.mycell-blog-archive .mycell-article-hero-banner__title {
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(1.55rem, 3.8vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

body.mycell-blog-page .mycell-page.mycell-blog-archive {
  padding-top: 0;
}

.mycell-blog-archive {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  margin-top: 0;
  font-family: Vazir, VazirMatn, sans-serif;
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(124, 43, 232, 0.1), transparent 55%),
    radial-gradient(860px 420px at 4% 100%, rgba(0, 109, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
}

.mycell-blog-archive__hero {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.mycell-blog-archive__hero-sub {
  margin: 0.75rem 0 0;
  max-width: 42ch;
  margin-inline: auto;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.mycell-blog-archive__inner {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  direction: rtl;
}

/* گرید ۳ ستونه */
.mycell-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.65rem);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .mycell-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mycell-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* کارت */
.mycell-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 0 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 214, 0.28);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 40px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.mycell-blog-card:hover,
.mycell-blog-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(124, 43, 232, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 56px rgba(30, 20, 80, 0.14),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.mycell-blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.mycell-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 28px 0 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mycell-blog-card:hover .mycell-blog-card__img,
.mycell-blog-card:focus-within .mycell-blog-card__img {
  transform: scale(1.06);
}

.mycell-blog-card__media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 45%,
    rgba(15, 23, 42, 0.18) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mycell-blog-card:hover .mycell-blog-card__media-shade,
.mycell-blog-card:focus-within .mycell-blog-card__media-shade {
  opacity: 1;
}

.mycell-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(0.95rem, 2.2vw, 1.2rem) clamp(1rem, 2.4vw, 1.25rem) clamp(1.1rem, 2.4vw, 1.35rem);
}

.mycell-blog-card__meta {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.mycell-blog-card__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.55;
  font-weight: 800;
  color: #0f172a;
}

.mycell-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.mycell-blog-card__title a:hover,
.mycell-blog-card__title a:focus-visible {
  color: #5b21b6;
}

.mycell-blog-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #475569;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.mycell-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7c2be8;
  text-decoration: none;
  transition: color 0.22s ease, gap 0.22s ease;
}

.mycell-blog-card__cta span[aria-hidden] {
  transition: transform 0.22s ease;
}

.mycell-blog-card__cta:hover,
.mycell-blog-card__cta:focus-visible {
  color: #5b21b6;
}

.mycell-blog-card__cta:hover span[aria-hidden],
.mycell-blog-card__cta:focus-visible span[aria-hidden] {
  transform: translateX(-4px);
}

/* حالت خالی */
.mycell-blog-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 0 24px 0 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(148, 163, 214, 0.45);
  color: #64748b;
}

/* صفحه‌بندی */
.mycell-blog-pagination {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.mycell-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  height: 2.65rem;
  padding: 0 0.65rem;
  border-radius: 0 14px 0 0;
  border: 1px solid rgba(148, 163, 214, 0.35);
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.2s ease,
    box-shadow 0.22s ease;
}

.mycell-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mycell-blog-pagination li {
  margin: 0;
}

.mycell-blog-pagination .page-numbers:hover,
.mycell-blog-pagination .page-numbers:focus-visible {
  border-color: rgba(124, 43, 232, 0.45);
  color: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 20, 80, 0.1);
}

.mycell-blog-pagination .page-numbers.current {
  background: linear-gradient(135deg, #7c2be8, #5b21b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 43, 232, 0.28);
}

.mycell-blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: auto;
  padding: 0 0.25rem;
  color: #94a3b8;
}

.mycell-blog-pagination .page-numbers.dots:hover {
  transform: none;
  box-shadow: none;
}

.mycell-blog-pagination .prev,
.mycell-blog-pagination .next {
  min-width: 2.85rem;
}

/* انیمیشن ورود کارت‌ها — تأخیر بیشتر برای ۶ کارت */
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(1) {
  transition-delay: 0.05s;
}
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(2) {
  transition-delay: 0.12s;
}
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(3) {
  transition-delay: 0.19s;
}
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(4) {
  transition-delay: 0.26s;
}
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(5) {
  transition-delay: 0.33s;
}
[data-reveal].reveal-stagger.is-revealed > .mycell-blog-card:nth-child(6) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .mycell-blog-card,
  .mycell-blog-card__img,
  .mycell-blog-pagination .page-numbers {
    transition: none;
  }

  .mycell-blog-card:hover,
  .mycell-blog-card:focus-within {
    transform: none;
  }
}
