/* Nakahat Ailiyeh — magazine chrome + reading typography */

:root {
  --nakahat-orange: #ca6702;
  --nakahat-teal: #005f73;
  --nakahat-ink: #0b3d4a;
  --nakahat-accent: #e87722;
  --nakahat-sage: #a4ac86;
  --nakahat-olive: #51603b;
  --nakahat-footer-bg: #f7f7f2;
  --nakahat-title-band: #c5c7a6;
  --nakahat-surface: #fafaf6;
  --nakahat-white: #ffffff;

  --nakahat-font-ui: ge-ss-regular, "GE SS Regular", Tahoma, sans-serif;
  --nakahat-font-bold: ge-ss-bold, ge-ss-regular, Tahoma, sans-serif;
  --nakahat-font-body: "Bahij Muna", Tahoma, "Segoe UI", Arial, sans-serif;

  --nakahat-text-body: clamp(18.5px, 0.3vw + 16px, 20px);
  --nakahat-text-lead: clamp(19.5px, 0.35vw + 16.5px, 21px);
  --nakahat-text-h2: clamp(23px, 0.45vw + 17px, 26px);
  --nakahat-text-h3: clamp(19px, 0.3vw + 16px, 21px);
  --nakahat-text-page-title: clamp(30px, 3.4vw, 42px);
  --nakahat-text-nav: 16px;
  --nakahat-text-cat: 16px;
  --nakahat-text-card: 16.5px;
  --nakahat-text-meta: 13px;
  --nakahat-lh-body: 1.82;
  --nakahat-lh-title: 1.35;
  --nakahat-max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nakahat-theme {
  margin: 0;
  direction: rtl;
  background: var(--nakahat-surface);
  color: #1a1a1a;
  font-family: var(--nakahat-font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--nakahat-teal); text-decoration: none; }
a:hover { color: var(--nakahat-accent); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.nakahat-wrap {
  max-width: var(--nakahat-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ——— Top bar ——— */
.nakahat-topbar {
  background: var(--nakahat-orange);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(120, 50, 0, .22);
  position: relative;
  z-index: 1000;
  font-family: var(--nakahat-font-ui);
}
.nakahat-topbar__inner {
  max-width: var(--nakahat-max);
  min-height: 48px;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nakahat-topbar__social { display: flex; gap: 6px; flex: 0 0 auto; }
.nakahat-topbar__social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff;
}
.nakahat-topbar__social a:hover { background: rgba(255,255,255,.28); color: #fff; }
.nakahat-topbar__social svg { width: 14px; height: 14px; fill: currentColor; }
.nakahat-topbar__meta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nakahat-topbar__date {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--nakahat-orange);
  border-radius: 999px; padding: 4px 12px;
  font-size: var(--nakahat-text-meta); font-weight: 600;
}
.nakahat-topbar__date svg { width: 14px; height: 14px; fill: currentColor; }
.nakahat-topbar__nums { font-family: "Segoe UI", Arial, sans-serif; }
.nakahat-topbar__home {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff;
}
.nakahat-topbar__home svg { width: 15px; height: 15px; fill: currentColor; }
.nakahat-topbar__menu {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 14px;
}
.nakahat-topbar__menu a { color: #fff; opacity: .95; }
.nakahat-topbar__menu a:hover { opacity: 1; text-decoration: underline; }

/* ——— Brand + category bar ——— */
.nakahat-brandbar {
  background: var(--nakahat-white);
  padding: 12px 0 8px;
}
.nakahat-brandbar__inner {
  max-width: var(--nakahat-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nakahat-brandbar__logo { max-height: 72px; width: auto; }

.nakahat-catbar {
  background: var(--nakahat-orange);
  box-shadow: 0 6px 18px rgba(120, 50, 0, .18);
}
.nakahat-catbar__inner {
  max-width: var(--nakahat-max);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.nakahat-catbar__menu {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  justify-content: center;
}
.nakahat-catbar__menu a {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  font-family: var(--nakahat-font-ui);
  font-size: var(--nakahat-text-cat);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1;
}
.nakahat-catbar__menu a:hover,
.nakahat-catbar__menu .current-menu-item > a {
  background: rgba(255,255,255,.16);
  color: #fff !important;
}
.nakahat-search { position: relative; flex: 0 0 auto; }
.nakahat-search__toggle {
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nakahat-search__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.nakahat-search__panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  display: flex; gap: 6px; z-index: 20;
  min-width: 240px;
}
.nakahat-search__panel[hidden] { display: none !important; }
.nakahat-search__panel input {
  flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px;
  font-family: var(--nakahat-font-ui);
}
.nakahat-search__panel button {
  border: 0; border-radius: 8px; background: var(--nakahat-teal); color: #fff;
  padding: 8px 12px; cursor: pointer; font-family: var(--nakahat-font-ui);
}

/* ——— Title band ——— */
.nakahat-titleband {
  background: var(--nakahat-title-band);
  padding: 18px 16px;
  text-align: center;
}
.nakahat-titleband h1 {
  margin: 0;
  font-family: var(--nakahat-font-ui);
  font-size: var(--nakahat-text-page-title);
  font-weight: 400;
  line-height: var(--nakahat-lh-title);
  color: #2a2a2a;
}

/* ——— Layout ——— */
.nakahat-main { padding: 24px 0 48px; }
.nakahat-layout {
  max-width: var(--nakahat-max);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .nakahat-layout { grid-template-columns: 1fr; }
}

/* ——— Article reading ——— */
.nakahat-article__media {
  margin: 0 0 20px;
  border-radius: 4px;
  overflow: hidden;
  background: #dae8ea;
}
.nakahat-article__media img { width: 100%; object-fit: cover; max-height: 520px; }
.nakahat-article__content,
.nakahat-article__content p,
.nakahat-article__content li,
.nakahat-article__content h2,
.nakahat-article__content h3,
.nakahat-article__content h4,
.nakahat-article__content strong,
.nakahat-article__content b {
  font-family: var(--nakahat-font-body) !important;
  font-weight: 400 !important;
}
.nakahat-article__content p,
.nakahat-article__content li {
  font-size: var(--nakahat-text-body) !important;
  line-height: var(--nakahat-lh-body) !important;
  margin: 0 0 1em;
}
.nakahat-article__content > p:first-of-type {
  font-size: var(--nakahat-text-lead) !important;
}
.nakahat-article__content h1 {
  font-family: var(--nakahat-font-body) !important;
  font-size: var(--nakahat-text-lead) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 0 .8em;
  color: var(--nakahat-ink);
}
.nakahat-article__content h2 {
  font-size: var(--nakahat-text-h2) !important;
  line-height: 1.45 !important;
  margin: 1.35em 0 .55em;
  color: var(--nakahat-ink);
}
.nakahat-article__content h3 {
  font-size: var(--nakahat-text-h3) !important;
  line-height: 1.5 !important;
  margin: 1.2em 0 .45em;
}
.nakahat-article__share {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(11,82,104,.12);
}
.nakahat-article__share h2 {
  font-family: var(--nakahat-font-ui);
  font-size: 18px;
  font-weight: 400;
  color: var(--nakahat-teal);
  margin: 0 0 10px;
}

/* ——— Sidebar latest ——— */
.nakahat-latest {
  background: #fff;
  border: 1px solid rgba(11, 82, 104, .1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(11, 82, 104, .06);
}
.nakahat-latest__title {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(11, 82, 104, .1);
  border-inline-start: 4px solid var(--nakahat-teal);
  color: var(--nakahat-teal);
  font-family: var(--nakahat-font-ui);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}
.nakahat-latest__list { list-style: none; margin: 0; padding: 0; }
.nakahat-latest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(11, 82, 104, .08);
  min-height: 72px;
}
.nakahat-latest__item:last-child { border-bottom: 0; }
.nakahat-latest__item:hover { background: #f6f4ec; }
.nakahat-latest__thumb {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--nakahat-sage);
  background: #dae8ea;
}
.nakahat-latest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nakahat-latest__link {
  flex: 1;
  min-width: 0;
  color: var(--nakahat-ink) !important;
  font-family: var(--nakahat-font-ui);
  font-size: var(--nakahat-text-card);
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nakahat-latest__item:hover .nakahat-latest__link { color: var(--nakahat-accent) !important; }

/* ——— Home cards ——— */
.nakahat-section { margin: 0 0 36px; }
.nakahat-section__title {
  font-family: var(--nakahat-font-ui);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--nakahat-teal);
  margin: 0 0 16px;
  text-align: center;
}
.nakahat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .nakahat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nakahat-cards { grid-template-columns: 1fr; }
}
.nakahat-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.nakahat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 82, 104, .1);
}
.nakahat-card__media { aspect-ratio: 4/3; overflow: hidden; background: #dae8ea; }
.nakahat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nakahat-card__title {
  margin: 0;
  padding: 12px 10px 14px;
  text-align: center;
  font-family: var(--nakahat-font-ui);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.4;
}
.nakahat-card__title a { color: #1a1a1a; }
.nakahat-card:hover .nakahat-card__title a { color: var(--nakahat-teal); }

.nakahat-archive-list { display: grid; gap: 18px; }
.nakahat-archive-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  background: #fff;
  padding: 12px;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .nakahat-archive-item { grid-template-columns: 1fr; }
}
.nakahat-archive-item h2 {
  margin: 0 0 8px;
  font-family: var(--nakahat-font-ui);
  font-size: 20px;
  font-weight: 400;
}
.nakahat-archive-item p {
  margin: 0;
  font-family: var(--nakahat-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* ——— Footer ——— */
.nakahat-footer {
  background: var(--nakahat-footer-bg);
  border-top: 1px solid rgba(41, 49, 25, .12);
  color: #26301e;
  font-family: var(--nakahat-font-ui);
  padding: 28px 0 0;
}
.nakahat-footer__intro { text-align: center; padding: 0 18px 12px; }
.nakahat-footer__intro-title {
  display: block; color: #1f5fae; font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.nakahat-footer__intro p {
  max-width: 620px; margin: 0 auto; color: #3f4634; font-size: 14px; line-height: 1.65;
}
.nakahat-footer__grid {
  max-width: var(--nakahat-max);
  margin: 0 auto;
  padding: 10px 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 46px);
}
@media (max-width: 900px) {
  .nakahat-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nakahat-footer__grid { grid-template-columns: 1fr; text-align: center; }
}
.nakahat-footer h3 {
  margin: 0 0 8px; color: var(--nakahat-olive); font-size: 16px; font-weight: 700;
}
.nakahat-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nakahat-footer a { color: #26301e; font-size: 13.5px; line-height: 1.65; }
.nakahat-footer a:hover { color: #1f5fae; }
.nakahat-footer__contact .nakahat-contact-label {
  color: var(--nakahat-olive); font-weight: 700; font-size: 13px; margin-inline-end: 4px;
}
.nakahat-footer__contact a {
  direction: ltr; unicode-bidi: plaintext;
  font-family: "Segoe UI", Arial, sans-serif;
}
.nakahat-footer__bottom {
  text-align: center;
  padding: 14px 16px 22px;
  color: #51603b;
  font-size: 13px;
  border-top: 1px solid rgba(41, 49, 25, .08);
}
.nakahat-footer__social {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 12px;
}
.nakahat-footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--nakahat-olive); color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
}
.nakahat-footer__social a:hover { background: #1f5fae; }
.nakahat-footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.nakahat-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.nakahat-pagination a,
.nakahat-pagination span {
  padding: 8px 14px; border-radius: 8px; background: #fff;
  border: 1px solid rgba(11,82,104,.15);
  font-family: var(--nakahat-font-ui);
}
.nakahat-pagination .current { background: var(--nakahat-teal); color: #fff; border-color: var(--nakahat-teal); }
