/* ================================================
   ARTICLE PAGE — shared styles
   ================================================ */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --footer-bg: #0F172A;
  --text: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #CBD5E1;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 6px 20px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.07);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-text { font-family: 'Heebo', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.logo-url { font-size: .65rem; color: var(--text-secondary); letter-spacing: .03em; text-align: center; }

.back-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--primary-dark);
  padding: 6px 12px; border: 1.5px solid var(--primary);
  border-radius: 20px; transition: background .15s;
}
.back-btn:hover { background: var(--primary-light); }
.back-btn svg { flex-shrink: 0; }

/* ---- HERO ---- */
.article-hero {
  width: 100%; height: 320px; max-height: 40vw;
  position: relative; overflow: hidden;
}
.article-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-hero-gradient {
  width: 100%; height: 100%;
}

/* ---- BODY ---- */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  background: #FFFFFF;
}

.article-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .78rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em;
}

.article-title {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700; line-height: 1.22;
  color: var(--text); margin-bottom: 20px;
  letter-spacing: -.02em;
}

.article-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: .85rem; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}

.article-body { font-size: 1.08rem; line-height: 1.9; color: var(--text-secondary); }

.article-body h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--text); margin: 44px 0 14px;
  padding-right: 14px;
  border-right: 3px solid var(--primary);
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  margin: 0 20px 18px 0;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--text); font-weight: 700; }

.article-body blockquote {
  border-right: none;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  padding: 20px 24px;
  margin: 36px 0;
  background: transparent;
  border-radius: 0;
  font-family: 'Heebo', sans-serif;
  font-size: 1.18rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

/* ---- SEO article heading style (clean, no border) ---- */
.article-body h2.seo-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 10px;
  padding-right: 0;
  border-right: none;
  letter-spacing: 0;
}
.article-body h3.seo-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 18px 0 6px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 32px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  align-items: start;
}
@media (max-width: 900px) { .footer { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
@media (max-width: 540px) { .footer { grid-template-columns: 1fr; gap: 24px; } }

.footer-section { padding: 0; }
.footer-heading { font-family: 'Heebo', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 14px; text-align: right; color: #fff; letter-spacing: .01em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s; display: block; font-weight: 400; text-align: right; }
.footer-links a:hover { color: #fff; }
.footer-seo { grid-column: 1 / -1; font-size: .78rem; color: rgba(255,255,255,.45); text-align: center; line-height: 1.7; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 4px; }
.footer-copyright { grid-column: 1 / -1; text-align: center; font-size: .78rem; color: rgba(255,255,255,.55); padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-copyright a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ---- RELATED ---- */
.related-section { background: var(--bg-alt); padding: 48px 24px 56px; }
.related-section h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  text-align: right; margin-bottom: 28px; color: var(--text);
  border-right: 3px solid var(--primary);
  padding-right: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; max-width: 900px; margin: 0 auto;
}
.related-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card-tag { font-size: .72rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.related-card-title { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.4; }

@media (max-width: 600px) {
  .article-hero { height: 200px; max-height: 55vw; }
  .article-wrap { padding: 32px 20px 60px; }
  .article-body { font-size: 1.05rem; line-height: 1.88; }
}
