/* Vazirmatn, served from this site (news/fonts/): some Iranian networks block Google Fonts. SIL Open Font License 1.1. */
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #16305c;
  --green: #1e7b34;
  --yellow: #ffc21a;
  --rasp: #c9264e;
  --green-tint: #e3f2e6;
  --yellow-tint: #fff3cc;
  --navy-tint: #e8ecf4;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --line: #e1e4ec;
  --text: #16305c;
  --text-muted: #4a5670;
  --radius: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Vazirmatn', Tahoma, sans-serif; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
header { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 250, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--text-muted); font-weight: 500; }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--navy); }
.nav-links a[aria-current] { font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* the two login buttons, as on the home page */
.nav-cta { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 10px; }
.nav-cta-green { background: var(--green); color: #fff; }
.nav-cta-yellow { background: var(--yellow); color: var(--navy); }
@media (max-width: 480px) {
  .nav-cta { font-size: 13px; padding: 7px 11px; }
  .lbl-pre { display: none; }
}
.menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 66px; inset-inline: 0; background: var(--surface); padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); }
}

/* news index */
.news-hero { text-align: center; max-width: 680px; margin: 0 auto; padding: 70px 0 40px; }
.eyebrow-line { width: 46px; height: 3px; background: var(--yellow); margin: 0 auto 18px; border-radius: 3px; }
.news-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 14px; line-height: 1.5; }
.news-hero p { color: var(--text-muted); margin: 0; font-size: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 16px 30px -18px rgba(22, 48, 92, 0.4); }
.news-card h3 { font-size: 18px; font-weight: 700; line-height: 1.7; margin: 12px 0 8px; }
.news-card p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 14px; }
.news-card .more { margin-top: auto; color: var(--green); font-weight: 700; font-size: 14px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.chip { background: var(--green-tint); color: var(--green); font-weight: 700; padding: 2px 12px; border-radius: 999px; font-size: 12.5px; }
.empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* article */
.article-wrap { padding-top: 28px; }
.crumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; max-width: 760px; margin-inline: auto; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.article { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 44px; }
@media (max-width: 600px) { .article { padding: 26px 20px; border-radius: 16px; } }
.article h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.6; margin: 14px 0 12px; }
.lead { font-size: 17px; color: var(--text-muted); margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.prose { font-size: 17px; line-height: 2.1; color: #1f2a40; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; color: var(--navy); }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--yellow-tint); border-inline-start: 4px solid var(--yellow); border-radius: 10px; padding: 14px 18px; margin: 22px 0; font-size: 16px; }
.source { margin: 26px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text-muted); }
.source a { color: var(--green); text-decoration: underline; }
.more-news { margin: 56px 0 0; }
.more-news h2 { font-size: 22px; font-weight: 800; margin: 0 0 20px; }

/* «اخبار در اپ رودو»: the news is in the drivers' app too */
.app-follow { display: flex; align-items: center; gap: 16px; background: var(--green-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 32px; color: var(--text); }
.article-wrap .app-follow { margin: 32px 0 0; }
.app-follow-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--yellow-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.app-follow-text { flex: 1; min-width: 0; }
.app-follow-text strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.app-follow-text span { display: block; font-size: 14px; color: var(--text-muted); line-height: 1.9; }
.app-follow .btn-app { flex: 0 0 auto; padding: 11px 24px; font-size: 15px; }
@media (max-width: 600px) {
  .app-follow { flex-wrap: wrap; }
  .app-follow .btn-app { flex: 1 1 100%; text-align: center; }
}

/* app mini CTA */
.apps-mini { max-width: 760px; margin: 36px auto 0; background: var(--navy-tint); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; text-align: center; }
.apps-mini h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.apps-mini p { margin: 0 0 20px; color: var(--text-muted); }
.apps-mini-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-app { display: inline-block; font-weight: 700; font-size: 16px; padding: 13px 30px; border-radius: 10px; transition: transform .18s ease; }
.btn-app:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 90px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.foot-col h4 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.foot-col a, .foot-col span { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .news-card, .btn-app { transition: none; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
