@font-face {
  font-family: 'SF Arabic';
  src: url('../statics/SF-Arabic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --paper: #F5F5F7;
  --white: #FFFFFF;
  --blue: #0071E3;
  --burgundy: #76201D;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'SF Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 64px;
}
@media (max-width: 1024px) { .wrap { padding-inline: 32px; } }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.site-brand img { height: 64px; width: auto; object-fit: contain; }
.site-nav-links {
  display: flex;
  gap: 28px;
  font-size: 16px;
  color: var(--muted);
}
.site-nav-links a { transition: color .2s ease; }
.site-nav-links a:hover { color: var(--ink); }
.site-nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 8px 19px;
  border-radius: 980px;
  font-size: 16px;
  transition: background .2s ease;
}
.site-nav-cta:hover { background: #000; }
.site-nav-toggle { display: none; }
@media (max-width: 900px) {
  .site-nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: min(220px, calc(100vw - 48px));
    position: fixed;
    top: 68px;
    left: 18px;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(29, 29, 31, 0.12);
    border: 1px solid rgba(29, 29, 31, 0.06);
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav-links a {
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    width: 100%;
    text-align: right;
    border-radius: 12px;
    color: var(--ink);
  }
  .site-nav-links a:hover {
    background: rgba(29, 29, 31, 0.04);
    color: var(--ink);
  }
  .site-nav-cta { display: none; }
  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(29, 29, 31, 0.1);
    color: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background .2s ease, border-color .2s ease;
  }
  .site-nav-toggle:hover {
    background: #fff;
    border-color: rgba(29, 29, 31, 0.18);
  }
  .site-nav-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
  }
}

/* Article */
.article-hero {
  padding: 72px 0 48px;
}
.article-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 28px;
}
.article-hero .back:hover { opacity: 0.72; }
.article-cat {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  font-weight: 400;
}
.article-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-cover {
  height: 320px;
  border-radius: 28px;
  margin-bottom: 48px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.article-cover.cover-1 {
  background-image: url('imgs/acb947be-9a68-4eae-ae3b-7f5d00910283.png');
  background-color: #EAE400;
}
.article-cover.cover-2 {
  background: linear-gradient(135deg, #172259, #00AFFF);
}
.article-cover.cover-3 {
  background: linear-gradient(135deg, #f0c9c7, #76201D);
}
@media (max-width: 640px) {
  .article-cover { height: 200px; border-radius: 20px; }
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.article-body .lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: -0.015em;
}
.article-body h2 {
  font-size: 28px;
  letter-spacing: -0.022em;
  margin: 48px 0 16px;
  font-weight: 400;
  line-height: 1.25;
}
.article-body p {
  font-size: 17px;
  color: rgba(29, 29, 31, 0.82);
  margin-bottom: 20px;
  line-height: 1.75;
}
.article-body ul {
  margin: 16px 0 28px;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body li {
  font-size: 17px;
  color: rgba(29, 29, 31, 0.82);
  line-height: 1.6;
}
.article-body strong {
  font-weight: 400;
  color: var(--ink);
}

.article-cta {
  margin-top: 56px;
  padding: 36px;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(29, 29, 31, 0.05);
  text-align: center;
}
.article-cta h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 400;
}
.article-cta p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 15px;
  transition: background .2s ease;
}
.btn-primary:hover { background: #000; }

.related {
  padding: 64px 0 96px;
  border-top: 1px solid rgba(29, 29, 31, 0.06);
}
.related h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  font-weight: 400;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(29, 29, 31, 0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.06);
}
.related-card .cat {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.related-card h4 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.4;
  font-weight: 400;
}

/* Footer */
.site-footer {
  width: 100%;
  background: #1D1D1F;
  color: rgba(245, 245, 247, 0.72);
  padding: 64px 0 40px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 64px;
}
@media (max-width: 1024px) { .site-footer-inner { padding-inline: 32px; } }
@media (max-width: 640px) { .site-footer-inner { padding-inline: 20px; } }
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
.site-footer-brand {
  display: inline-block;
  margin-bottom: 16px;
  color: #F5F5F7;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.site-footer-desc {
  font-size: 13px;
  color: rgba(245, 245, 247, 0.45);
  max-width: 30ch;
  line-height: 1.7;
}
.site-footer h5 {
  font-size: 13px;
  color: #F5F5F7;
  margin-bottom: 16px;
  font-weight: 400;
}
.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.site-footer-links a {
  color: rgba(245, 245, 247, 0.55);
  transition: color .2s ease;
}
.site-footer-links a:hover { color: #F5F5F7; }
.site-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 245, 247, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(245, 245, 247, 0.35);
}
