/* ============================================================
   Homepage-specific styles
   ============================================================ */

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.ticker__track {
  display: inline-flex;
  gap: 48px;
  padding: 9px 0;
  animation: scroll 26s linear infinite;
}
.ticker__track span { font-size: 12.5px; letter-spacing: 0.04em; font-weight: 500; }
.ticker__track span b { color: var(--safety); font-weight: 700; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 2px solid var(--fg);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 64px 0 0;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 40px; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--fg);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transform: rotate(-2deg);
  background: var(--safety);
  color: var(--ink);
  margin-bottom: 22px;
}
.badge i { width: 7px; height: 7px; background: var(--ink); border-radius: 50%; display: inline-block; }
.hero h1 { font-size: clamp(48px, 8.4vw, 108px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.55;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__art { position: relative; padding: 20px 0 40px; }
.hero__image { display: block; width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border: 1px solid var(--line); }
.hero__stamp {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px dashed var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(8deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
  padding: 10px;
}
@media (max-width: 900px) { .hero__stamp { display: none; } }

/* ---------- Categories ---------- */
.catgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--fg);
  border: 2px solid var(--fg);
  justify-content: center;
}
.cat {
  background: var(--bg);
  padding: 34px 26px;
  min-height: 190px;
  flex: 1 1 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.cat:hover .cat__icon { transform: translate(4px, -4px); }
.cat__icon { width: 44px; height: 44px; transition: transform 0.2s ease; }
.cat__name { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.cat__count { font-size: 12.5px; color: var(--fg-soft); font-weight: 600; }

/* ---------- Editorial banner ---------- */
.banner {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  padding: 76px 0;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.banner .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .banner .wrap { grid-template-columns: 1fr; } }
.banner h2 { font-size: clamp(30px, 5vw, 54px); color: var(--paper); }
.banner h2 em { font-style: normal; color: var(--safety); }
.banner p {
  color: #C9C2AC;
  margin-top: 16px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
}
.banner .btn { margin-top: 24px; border-color: var(--paper); color: var(--paper); }
.banner .btn:hover { background: var(--safety); color: var(--ink); border-color: var(--safety); }
.banner__stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 2px solid rgba(238,234,219,0.25);
  padding-left: 32px;
}
@media (max-width: 820px) {
  .banner__stats { border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; }
}
.banner__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--safety);
}
.banner__stat span { font-size: 12.5px; color: #C9C2AC; }

/* ---------- Newsletter ---------- */
.news { background: var(--bg-2); border-bottom: 2px solid var(--fg); }
.news .wrap {
  padding: 56px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.news h3 { font-size: clamp(24px, 3.4vw, 32px); max-width: 16ch; }
.newsform { display: flex; gap: 0; flex: 1; min-width: 280px; max-width: 420px; }
.newsform input {
  flex: 1;
  border: 2px solid var(--fg);
  border-right: none;
  background: var(--surface);
  color: var(--fg);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
}
.newsform input:focus-visible { outline-offset: -2px; }
.newsform button {
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  padding: 0 20px;
  font-weight: 700;
  font-size: 13.5px;
}
.newsform button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.news small { display: block; margin-top: 8px; color: var(--fg-soft); font-size: 12px; }
/* در styles.css اضافه کن */
.fgrid { 
  display: grid; 
  grid-template-columns: 1.4fr 1fr 1fr 1fr; 
  gap: 30px; 
}
.fgrid__columns {
  display: contents;  /* سه ستون رو مستقیماً تو گرید والد می‌ذاره */
}