/* ============================================================
   مجله نینو — v2 شیک و مینیمال (blog-carousel-v2.css)
   جایگاه: بین «نظرات والدین» (بژ) و CTA
   ایده: پس‌زمینه سفید برای جدایی کامل از بخش بژ بالایی،
         کارت‌های هوادار با بوردر ظریف + سایه نرم، فضای تنفسی زیاد
   ============================================================ */

.journal {
  background: var(--white);
  padding: 96px 0 88px;
  direction: rtl;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* نوار تزئینی باریک بالای سکشن برای تاکید جدایی */
.journal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--black);
  opacity: .14;
  border-radius: 99px;
}

.journal-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
  padding: 0 24px;
}

.journal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,0,0,.42);
  margin-bottom: 18px;
}
.journal-kicker::before,
.journal-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(0,0,0,.18);
  display: block;
}

.journal-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.015em;
  margin-bottom: 14px;
  color: var(--black);
}

.journal-head p {
  font-size: 14.5px;
  color: rgba(0,0,0,.58);
  line-height: 2.05;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- صحنه اسلایدر ---------- */
.journal-stage {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 72px;
}

.journal-window {
  overflow: hidden;
  border-radius: 22px;
  /* خود window دیگر باکس سفید نیست؛ کارت‌ها خودشان باکس‌اند */
}

.journal-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* ---------- کارت مقاله ---------- */
.journal-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 6px; /* جا برای سایه */
  box-sizing: border-box;
}

.journal-card-inner {
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 368px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 48px -28px rgba(0,0,0,.18), 0 2px 10px rgba(0,0,0,.04);
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}

.journal-card:hover .journal-card-inner {
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.22), 0 8px 18px rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.10);
}

.journal-media {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #f6f4ef;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}

.journal-card:hover .journal-media img { transform: scale(1.04); }

.journal-cat {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 99px;
  letter-spacing: .4px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.journal-body {
  padding: 36px 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  min-width: 0;
}

.journal-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(0,0,0,.46);
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.journal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.journal-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  display: inline-block;
}

.journal-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-title a { color: inherit; transition: opacity .2s ease; }
.journal-title a:hover { opacity: .62; }

.journal-excerpt {
  font-size: 13.6px;
  line-height: 2.05;
  color: rgba(0,0,0,.62);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 22px;
}

.journal-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  position: relative;
  padding-bottom: 4px;
}

.journal-more::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 1px;
  background: var(--black);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  transform-origin: right;
}

.journal-more:hover::after { transform: scaleX(.72); }
.journal-more:hover { opacity: .72; }

/* ---------- فلش‌ها ---------- */
.journal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.journal-arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}

.journal-arrow:active { transform: translateY(-50%) scale(.96); }
.journal-arrow.prev { right: 10px; }
.journal-arrow.next { left: 10px; }

/* ---------- نقطه‌ها — خطی مینیمال ---------- */
.journal-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.journal-dot {
  height: 6px;
  border-radius: 99px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,.61,.36,1);
  background: rgba(0,0,0,.15);
  width: 18px;
}

.journal-dot.active {
  background: var(--black);
  width: 30px;
}

/* ---------- لینک همه مقالات ---------- */
.journal-all {
  text-align: center;
  margin-top: 36px;
}

.journal-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 30px;
  border: 1.5px solid var(--black);
  border-radius: 99px;
  color: var(--black);
  background: transparent;
  transition: background .22s ease, color .22s ease, transform .15s ease;
}

.journal-all a:hover { background: var(--black); color: var(--white); transform: translateY(-1px); }
.journal-all a:active { transform: scale(.97); }

/* ---------- تبلت ---------- */
@media (max-width: 1024px) {
  .journal-stage { padding: 0 48px; }
  .journal-card-inner { min-height: 340px; }
  .journal-body { padding: 30px 28px; }
}

/* ---------- موبایل ---------- */
@media (max-width: 768px) {
  .journal { padding: 64px 0 56px; }
  .journal-head { margin-bottom: 36px; }
  .journal-kicker { font-size: 11px; letter-spacing: 2.2px; gap: 10px; }
  .journal-kicker::before, .journal-kicker::after { width: 20px; }
  .journal-stage { padding: 0 14px; }
  .journal-card { padding: 4px; }
  .journal-card-inner { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .journal-media { aspect-ratio: 16/10.2; min-height: 0; }
  .journal-body { padding: 24px 20px 26px; }
  .journal-title { font-size: 18.5px; line-height: 1.65; }
  .journal-excerpt { font-size: 13px; margin-bottom: 18px; }
  .journal-arrow { display: none; }
  .journal-dots { margin-top: 20px; }
  .journal-all { margin-top: 28px; }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  .journal-track { transition: none; }
  .journal-media img { transition: none; }
  .journal-card-inner { transition: none; }
}
