@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

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

:root {
  --dark: #1a1f2e;
  --red: #c0392b;
  --light-bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --border: #e8eaed;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.8;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.logo-badge {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ===== ARTICLE WRAP ===== */
.article-wrap {
  padding-top: 28px;
  padding-bottom: 60px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ===== ARTICLE ===== */
article {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.article-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 14px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.meta-sep { color: var(--border); }

.article-hero {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* ===== ARTICLE BODY CONTENT ===== */
.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 28px 0 12px;
  padding-right: 12px;
  border-right: 4px solid var(--red);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 22px 0 10px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
  color: var(--text);
}

.article-body ul, .article-body ol {
  margin: 12px 0 20px 0;
  padding-right: 24px;
}

.article-body li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--red);
  text-decoration: none;
}

.article-body a:hover { text-decoration: underline; }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px auto;
  display: block;
}

.article-body blockquote {
  border-right: 4px solid var(--red);
  background: #fef9f9;
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
  margin: 20px 0;
}

.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: right;
}

.article-body th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

.article-body tr:nth-child(even) { background: #f8f9fa; }

/* ===== BACK LINK ===== */
.back-link {
  margin-top: 28px;
}

.back-link a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.back-link a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  article { padding: 20px 16px; }
  .article-title { font-size: 20px; }
  .article-body h2 { font-size: 17px; }
}
