/* ══════════════════════════════════════════════════════════════
   کوچ — استایل اختصاصی «مجله» (magazine.css)
   پیش‌نیاز: assets/css/base.css
   ══════════════════════════════════════════════════════════════ */

.mag-search { width: 100%; max-width: 560px; margin-top: 8px; }
.mag-search .search-box input { padding-block: 16px; font-size: 15px; box-shadow: var(--shadow); }

/* ═══ مقاله ویژه ═══ */
.featured-post { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.fp-media { position: relative; overflow: hidden; min-height: 320px; }
.fp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.featured-post:hover .fp-media img { transform: scale(1.06); }
.fp-body { padding: 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: flex-start; }
.fp-meta { display: flex; gap: 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fp-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.7; }
.fp-body p { font-size: 14.5px; line-height: 2.1; color: var(--muted); }

/* ═══ نوار ابزار ═══ */
.mag-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ═══ کارت خبرنامه ═══ */
.news-card { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; background: linear-gradient(to left, var(--primary), #374151); border-radius: 26px; padding: 36px 40px; color: #fff; }
html[data-theme="dark"] .news-card { background: linear-gradient(to left, #111827, #1f2937); }
.news-card h3 { font-size: 20px; font-weight: 900; }
.news-card p { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.newsletter-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); margin-top: 0; }

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .fp-media { min-height: 240px; position: relative; }
  .fp-media img { position: relative; height: 260px; }
  .fp-body { padding: 30px 26px; }
  .news-card { grid-template-columns: 1fr; padding: 30px 26px; }
}
