:root {
  --bg: #07141C;
  --bg2: #0B1C24;
  --bg3: #102830;
  --text-primary: #F7F3EA;
  --text-muted: rgba(247, 243, 234, 0.82);
  --text-muted2: rgba(247, 243, 234, 0.64);
  --accent-purple: #1F8A70;
  --accent-pink: #C9A227;
  --accent-cyan: #E4C56A;
  --accent-gold: #E4C56A;
  --accent-gold-deep: #C9A227;
  --accent-emerald: #1F8A70;
  --accent-burgundy: #8B3A46;
  --line: rgba(228, 197, 106, 0.22);
  --radius: 14px;
  --max: 1120px;
  --prose: 740px;
  --space: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: auto; max-width: 100%; }
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(31, 138, 112, 0.18), transparent 58%),
    radial-gradient(820px 420px at 100% 8%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2) 40%, var(--bg3));
  color: var(--text-primary);
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  line-height: 1.9;
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space); }
.prose-wrap { width: 100%; max-width: var(--prose); margin: 0 auto; }

/* Top nav */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: #07141C;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .topbar { background: #07141C; }
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; border-radius: 10px; background: #07141C; border: 1px solid rgba(228,197,106,0.40); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58vw; }
.navlinks { display: none; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  font-weight: 800; font-size: 13px;
}
.chip:hover, .chip.is-on { border-color: var(--accent-purple); background: rgba(31,138,112,0.16); }
.menu-trigger {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-trigger svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; }
@media (min-width: 900px) {
  .navlinks { display: flex; }
  .menu-trigger { display: none; }
}
.site-drawer[hidden] { display: none; }
.site-drawer {
  border-top: 1px solid var(--line);
  background: #09070f;
  padding: 8px 0 16px;
}
.site-drawer a, .site-drawer button.drawer-wa {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: right; padding: 13px 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}
.site-drawer .sub { color: var(--text-muted2); font-size: 12px; font-weight: 400; }
.drawer-wa { color: #fff !important; }

/* Hero */
.article-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #07050e;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero-fallback {
  width: 100%; height: 100%;
  background:
    radial-gradient(700px 380px at 20% 20%, rgba(31,138,112,0.35), transparent 60%),
    radial-gradient(640px 340px at 90% 80%, rgba(201,162,39,0.28), transparent 62%),
    linear-gradient(145deg, #0B1C24, #07141C 55%, #0A2430);
  display: flex; align-items: center; justify-content: center;
}
.hero-fallback .hero-logo { width: 140px; height: 140px; object-fit: contain; opacity: 0.28; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,4,9,0.35) 0%, rgba(5,4,9,0.45) 38%, rgba(5,4,9,0.96) 100%),
    linear-gradient(90deg, rgba(31,138,112,0.22), transparent 55%, rgba(201,162,39,0.18));
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 28px; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--text-muted2); margin-bottom: 16px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent-cyan); }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: 0; background: linear-gradient(90deg, #E4C56A, #C9A227); color: #07141C;
  color: #fff; box-shadow: 0 8px 24px rgba(201,162,39,0.28);
}
.article-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(26px, 6.2vw, 48px);
  line-height: 1.28;
  font-weight: 800;
  text-shadow: 0 10px 40px rgba(0,0,0,0.55);
  max-width: 18ch;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-muted); font-size: 13px; font-weight: 800; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.share-btn, .share-row button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.35);
  color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.share-btn:hover, .share-row button:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Article layout */
.article-layout { padding: 8px 0 24px; }
.toc {
  background: linear-gradient(180deg, rgba(31,138,112,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(31,138,112,0.30);
  border-right: 5px solid var(--accent-purple);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 8px 0 28px;
}
.toc strong { display: block; font-size: 16px; margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0 18px 0 0; }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--text-muted); font-weight: 800; font-size: 14px; }
.toc a:hover { color: var(--accent-cyan); }

.article-body {
  font-size: clamp(17px, 2.6vw, 19px);
  line-height: 2.05;
  color: var(--text-muted);
  max-width: var(--prose);
}
.article-body p { margin: 0 0 1.15em; }
.article-body strong, .article-body b { color: #fff; font-weight: 800; }
.article-body a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.article-body a:hover { color: #fff; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-right: 1.2em; }
.article-body li { margin: 0 0 0.45em; }
.article-body h2 {
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 2em 0 0.7em;
  padding: 6px 0 6px 0;
  border-right: 5px solid var(--accent-pink);
  padding-right: 14px;
  scroll-margin-top: 84px;
}
.article-body h3 {
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 800;
  color: #fff;
  margin: 1.5em 0 0.6em;
  border-right: 3px solid var(--accent-cyan);
  padding-right: 12px;
  scroll-margin-top: 84px;
}
.article-body blockquote, .mystic-note, .dynamic-question-box {
  margin: 0 0 1.2em;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(31,138,112,0.12);
  border: 1px solid rgba(31,138,112,0.30);
  border-right: 5px solid var(--accent-purple);
  color: #fff;
}
.mystic-note { background: rgba(201,162,39,0.10); border-color: rgba(201,162,39,0.40); border-right-color: var(--accent-pink); }
.dynamic-question-box { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3); border-right-color: var(--accent-cyan); font-weight: 800; }

.cta-box {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 22px 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,162,39,0.16), rgba(31,138,112,0.2));
  border: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 12px 40px rgba(201,162,39,0.12);
}
.cta-box strong { display: block; font-size: 16px; color: #fff; }
.cta-box small { display: block; color: var(--text-muted2); margin-top: 4px; font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn.primary {
  background: linear-gradient(90deg, #E4C56A, #C9A227); color: #07141C;
  box-shadow: 0 10px 28px rgba(201,162,39,0.32);
}
.btn.primary:hover { filter: brightness(1.08); }
.pulse-pink { animation: pulseGold 2.2s ease-in-out infinite; }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(201,162,39,0); }
}
.hr-line { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.related-item.my-4, .article-body .related-item {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.related-item a { color: #fff; text-decoration: none; }

/* FAQ */
.faq-block { margin: 36px 0 10px; }
.faq-block h2 {
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 800;
  margin: 0 0 16px;
  border-right: 5px solid var(--accent-pink);
  padding-right: 14px;
}
.faq-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin: 0 0 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  padding-left: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; left: 14px; top: 12px;
  color: var(--accent-pink); font-size: 22px; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 16px 16px; color: var(--text-muted); line-height: 1.95; font-size: 16px; }

/* Related cards */
.related-block h2 { font-size: 24px; font-weight: 800; margin: 28px 0 16px; }
.related-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr 1fr; } }
.related-card {
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: rgba(18,14,33,0.8);
  border: 1px solid var(--line);
  min-height: 100%;
}
.related-card:hover { border-color: var(--accent-purple); transform: translateY(-3px); transition: border-color 0.2s ease, transform 0.2s ease; }
.related-thumb { aspect-ratio: 16/9; background: #120818; overflow: hidden; position: relative; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-thumb .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,138,112,0.35), rgba(139,58,70,0.25), #07141C);
  font-size: 36px; color: #fff;
}
.related-card .body { padding: 12px 14px 16px; }
.related-card b { display: block; font-size: 15px; line-height: 1.45; color: #fff; }
.related-card .tag { display: inline-block; margin-bottom: 6px; font-size: 11px; font-weight: 800; color: var(--accent-cyan); }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #07141C;
  border-top: 1px solid var(--line);
  transform: translateZ(0);
}
.sticky-cta .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: #120818;
  border: 1px solid rgba(201,162,39,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.sticky-cta b { display: block; font-size: 14px; }
.sticky-cta small { color: var(--text-muted2); font-size: 11px; }
.sticky-cta .btn { flex: 0 0 auto; min-width: 132px; }
@media (max-width: 899px) { .sticky-cta { display: block; } }

footer { padding: 22px 0 28px; color: var(--text-muted2); border-top: 1px solid var(--line); margin-top: 28px; font-size: 13px; }
@media (max-width: 899px) { footer { padding-bottom: 110px; } }
.foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot a { color: #fff; font-weight: 800; }

/* Blog list */
.blog-header { padding: 22px 0 8px; }
.blog-header h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; line-height: 1.25; margin: 10px 0 8px; max-width: 16ch; }
.blog-header p.lead { color: var(--text-muted); font-size: 16px; max-width: 46ch; margin: 0 0 18px; }
.search-form { display: flex; gap: 8px; margin: 0 0 20px; }
.search-input {
  flex: 1; min-height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: #fff; font: inherit;
}
.search-btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(90deg, #E4C56A, #C9A227); color: #07141C; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 24px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 96px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line);
  background:
    radial-gradient(80px 60px at 80% 0%, rgba(31,138,112,0.30), transparent 70%),
    linear-gradient(160deg, #14101f, #0a0710);
  font-weight: 800;
}
.cat-card.active, .cat-card:hover { border-color: var(--accent-pink); box-shadow: 0 0 0 1px rgba(201,162,39,0.25); }
.cat-card span { font-size: 12px; color: var(--text-muted2); font-weight: 400; }

.blog-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: 1fr 1fr 1fr; } }
.blog-card {
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: rgba(18,14,33,0.85);
  border: 1px solid var(--line);
  min-height: 100%;
}
.blog-card:hover { border-color: var(--accent-purple); transform: translateY(-3px); transition: border-color 0.2s ease, transform 0.2s ease; }
.blog-img-box { aspect-ratio: 16/9; position: relative; background: #120818; overflow: hidden; }
.blog-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fallback-glow-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,138,112,0.4), rgba(139,58,70,0.28), #07141C);
  font-size: 42px; color: #fff;
}
.blog-card-tag {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: linear-gradient(90deg, #E4C56A, #C9A227); color: #07141C; color: #fff;
}
.blog-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-title { font-size: 18px; line-height: 1.4; font-weight: 800; margin: 0; color: #fff; }
.blog-desc { margin: 0; color: var(--text-muted2); font-size: 14px; line-height: 1.7; }
.blog-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.btn.sm { min-height: 36px; font-size: 13px; padding: 0 12px; }

.modern-pagination-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 20px; }
.pag-btn {
  min-width: 42px; min-height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); font-weight: 800;
}
.pag-btn.current { background: linear-gradient(90deg, #E4C56A, #C9A227); color: #07141C; border-color: transparent; }
.pag-btn.disabled { opacity: 0.35; pointer-events: none; }
.blog-cta { text-align: center; padding: 28px 16px; border-radius: 16px; border: 1px solid rgba(201,162,39,0.35); background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(31,138,112,0.12)); margin: 10px 0 20px; }
.blog-cta h2 { margin: 0 0 8px; font-size: 24px; }

@media (max-width: 699px) {
  .article-body { text-align: right; }
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box .btn { width: 100%; }
  .article-hero { min-height: 320px; }
  .article-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn.primary { color: #07141C; }
.article-body a { color: var(--accent-gold); }
.cat-chip { color: #07141C; }
.blog-card-tag { color: #07141C; }

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: #E4C56A;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(228,197,106,0.45);
  background: rgba(228,197,106,0.10);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.cta-box .pay-badge { margin-top: 10px; }
.sticky-cta .pay-badge { margin-top: 4px; font-size: 11.5px; padding: 3px 10px; }
.foot .pay-badge, .footer-col .pay-badge { margin-top: 8px; }
.pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(228,197,106,0.12);
  border: 1px solid rgba(228,197,106,0.40);
  font-size: 11.5px;
  color: #E4C56A;
  font-weight: 800;
}
