* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0f172a;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --gold: #f59e0b;
  --bg: #f4f5f7;
  --card: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
}

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar .date { color: #94a3b8; }

header.site {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 22px 0 18px;
  border-bottom: 4px solid var(--accent);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(225,29,72,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,29,72,.6); }
  70% { box-shadow: 0 0 0 12px rgba(225,29,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}
.logo h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.logo h1 span { color: var(--accent); }
.logo p { color: #94a3b8; font-size: 13px; margin-top: -4px; }

nav.main {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
nav.main ul { display: flex; list-style: none; gap: 4px; overflow-x: auto; }
nav.main a {
  display: block; padding: 13px 18px; font-weight: 700; font-size: 15px;
  color: var(--ink); border-bottom: 3px solid transparent; white-space: nowrap;
}
nav.main a:hover, nav.main a.active { color: var(--accent); border-bottom-color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ===== Ticker ===== */
.ticker {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 9px 0;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.ticker .label {
  background: var(--gold); color: #1c1917; font-weight: 800;
  padding: 2px 12px; border-radius: 20px; font-size: 12px; flex-shrink: 0;
}
.ticker .items { color: #7c2d12; font-weight: 600; overflow: hidden; white-space: nowrap; }
.ticker .items b { color: var(--accent-dark); }

/* ===== Layout ===== */
main { padding: 28px 0 50px; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; margin: 26px 0 16px;
}
.section-title::before {
  content: ""; width: 6px; height: 24px; background: var(--accent); border-radius: 3px;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.10); }
.card .thumb {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 58px; color: #fff;
}
.card.big .thumb { height: 280px; font-size: 84px; }
.thumb.sport { background: linear-gradient(135deg, #065f46, #10b981); }
.thumb.news { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.thumb.art { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.thumb.tech { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 800;
  padding: 2px 12px; border-radius: 20px; margin-bottom: 8px; width: fit-content;
}
.badge.sport { background: #d1fae5; color: #065f46; }
.badge.news { background: #dbeafe; color: #1e40af; }
.badge.art { background: #ffedd5; color: #9a3412; }
.badge.tech { background: #ede9fe; color: #5b21b6; }
.card h2, .card h3 { font-size: 20px; line-height: 1.5; font-weight: 800; }
.card.big h2 { font-size: 26px; }
.card .excerpt { color: var(--muted); font-size: 14.5px; margin-top: 8px; flex: 1; }
.meta { color: #94a3b8; font-size: 12.5px; margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 4px; }

/* Sidebar-ish strip */
.strip {
  margin-top: 30px;
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff; border-radius: 14px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.strip h3 { font-size: 20px; }
.strip p { color: #cbd5e1; font-size: 14px; }
.strip .btn {
  background: var(--accent); color: #fff; font-weight: 800;
  padding: 10px 26px; border-radius: 30px; white-space: nowrap;
}

/* ===== Article page ===== */
article.post {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 38px; max-width: 820px; margin: 0 auto;
}
article.post h1 { font-size: 30px; line-height: 1.55; margin: 10px 0 14px; font-weight: 800; }
article.post .lead {
  font-size: 17px; font-weight: 700; color: #334155;
  border-right: 4px solid var(--accent); padding-right: 14px; margin: 18px 0;
}
article.post p { margin: 14px 0; font-size: 16.5px; color: #1e293b; }
article.post h2 { font-size: 21px; margin: 26px 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--accent); font-weight: 700; }
figure.banner {
  height: 260px; border-radius: 12px; margin: 18px 0 6px;
  display: flex; align-items: center; justify-content: center; font-size: 90px; color: #fff;
}
.sources {
  background: #f8fafc; border: 1px dashed var(--line);
  border-radius: 12px; padding: 16px 20px; margin-top: 28px; font-size: 14.5px;
}
.sources h4 { font-size: 15px; margin-bottom: 6px; }
.sources a { color: var(--accent); font-weight: 700; }
.sources li { margin-right: 18px; margin-bottom: 4px; color: var(--muted); }

.related { max-width: 820px; margin: 30px auto 0; }
.related .grid { grid-template-columns: repeat(2, 1fr); }
.related .thumb { height: 120px; font-size: 40px; }

footer {
  background: var(--ink); color: #94a3b8; padding: 30px 0; margin-top: 20px;
  font-size: 14px; text-align: center;
}
footer b { color: #fff; }
footer .note { margin-top: 8px; font-size: 12.5px; color: #64748b; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .related .grid { grid-template-columns: 1fr; }
  article.post { padding: 22px 18px; }
  .card.big .thumb { height: 190px; }
}
