/* ============================================================
   Noor Emirates Clean — Main Stylesheet
   RTL, Tajawal/Cairo, mobile-first, max-width 1140px
   ============================================================ */

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

* { box-sizing: border-box; }

html { direction: rtl; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2933;
  background: #fafafa;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand a {
  color: #0d3b66;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}
.brand small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 2px;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.main-nav a {
  color: #2b3a4a;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #0d3b66; border-bottom-color: #0d3b66; }

/* ---------- Hero / page header ---------- */
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  border-bottom: 1px solid #e6e8eb;
  padding: 40px 0 30px;
}
.page-hero h1 {
  margin: 0 0 8px 0;
  font-size: 30px;
  line-height: 1.35;
  color: #0d3b66;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
}
.page-hero .lede {
  color: #4b5563;
  font-size: 17px;
  margin: 0;
  max-width: 760px;
}

/* ---------- Main content ---------- */
main { padding: 30px 0 50px; }

article.content { background: #ffffff; padding: 28px 30px; border: 1px solid #e6e8eb; border-radius: 6px; }
article.content h2 {
  font-size: 22px; margin-top: 28px; margin-bottom: 12px;
  color: #0d3b66; font-family: 'Cairo','Tajawal',sans-serif; font-weight: 700;
  border-bottom: 2px solid #f3f6fa; padding-bottom: 6px;
}
article.content h3 { font-size: 18px; margin: 22px 0 10px; color: #1f3a5f; }
article.content p { margin: 0 0 14px; }
article.content ul, article.content ol { padding-right: 22px; margin: 0 0 16px; }
article.content li { margin-bottom: 6px; }
article.content a { color: #0d6efd; text-decoration: underline; text-underline-offset: 3px; }
article.content a:hover { color: #0a58ca; }
article.content img { max-width: 100%; height: auto; border-radius: 4px; margin: 14px 0; }

/* ---------- Article meta (byline + date) ---------- */
.byline {
  display: flex; gap: 12px; align-items: center;
  color: #6b7280; font-size: 14px; margin-bottom: 18px;
}
.byline a { color: #0d3b66; text-decoration: none; }
.byline .sep { color: #d1d5db; }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; border-top: 1px solid #e6e8eb; padding-top: 20px; }
.faq h2 { border: none; }
.faq .qa { margin-bottom: 18px; }
.faq .qa h3 { font-size: 17px; color: #0d3b66; margin: 0 0 6px; }
.faq .qa p { margin: 0; color: #374151; }

/* ---------- Cards / category index ---------- */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: #fff; border: 1px solid #e6e8eb; border-radius: 6px;
  padding: 18px 18px 16px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.card h3 a { color: #0d3b66; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .excerpt { color: #4b5563; font-size: 15px; margin: 0 0 12px; }
.card .read-more {
  color: #0d6efd; font-size: 14px; text-decoration: none; margin-top: auto;
}
.card .read-more:hover { text-decoration: underline; }

/* ---------- Category header strip ---------- */
.cat-strip {
  background: #fff; border: 1px solid #e6e8eb; border-radius: 6px;
  padding: 16px 20px; margin-bottom: 24px;
}
.cat-strip h2 { margin: 0 0 6px; font-size: 18px; color: #0d3b66; }
.cat-strip p { margin: 0; color: #4b5563; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d3b66; color: #d8e1ec;
  padding: 36px 0 22px; margin-top: 40px;
}
.site-footer .footer-cols {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer .footer-cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 {
  color: #ffffff; margin: 0 0 12px;
  font-size: 16px; font-family: 'Cairo','Tajawal',sans-serif;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d8e1ec; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .copyright {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid #1d4f82;
  color: #a9b8cb; font-size: 13px; text-align: center;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 60px; color: #0d3b66; margin: 0; }
.error-page p { color: #4b5563; }

/* ---------- Utility ---------- */
.muted { color: #6b7280; font-size: 14px; }
.tag {
  display: inline-block; background: #f3f6fa; color: #0d3b66;
  padding: 2px 10px; border-radius: 20px; font-size: 13px; margin-bottom: 8px;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-hero h1 { font-size: 24px; }
  article.content { padding: 20px 18px; }
  article.content h2 { font-size: 19px; }
  .main-nav ul { gap: 4px 14px; }
  .main-nav a { font-size: 14px; }
}
