/* ============================================================
   aobaheth.com — أبو عمر الباحث | مكافح الشبهات
   Design system: charcoal black · shield yellow · deep maroon
   Fonts: Amiri (headings) · Cairo (body)
   ============================================================ */

:root {
  --black:    #0f0f11;
  --char:     #1a1a1d;
  --char-2:   #26262a;
  --char-3:   #333338;
  --yellow:   #ffd200;
  --yellow-d: #e6b800;
  --yellow-l: #ffe45c;
  --maroon:   #5f0c0c;
  --maroon-d: #4a0808;
  --maroon-l: #7d1414;
  --paper:    #faf8f3;
  --paper-2:  #f3f0e8;
  --white:    #ffffff;
  --line:     #e9e6de;
  --text:     #1c1c1f;
  --muted:    #666a73;
  --shadow-sm: 0 2px 8px rgba(15,15,17,.06);
  --shadow-md: 0 10px 30px rgba(15,15,17,.10);
  --shadow-lg: 0 24px 60px rgba(15,15,17,.18);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: 'Amiri', 'Scheherazade New', serif;
  --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; color: var(--black); }
::selection { background: var(--yellow); color: var(--black); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--char-3); border-radius: 10px; border: 2px solid var(--paper-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.section { padding: 5rem 0; position: relative; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark  { background: var(--char); color: rgba(255,255,255,.88); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-maroon { background: linear-gradient(135deg, var(--maroon-d), var(--maroon-l)); color: #fff; }
.section-maroon h2 { color: #fff; }

/* Shield-style vertical lines texture (from the logo) */
.texture-lines { position: relative; isolation: isolate; }
.texture-lines::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
}
.texture-lines::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255,210,0,.16), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(95,12,12,.55), transparent 60%);
}

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 2.6rem; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .4px;
  color: var(--maroon); background: rgba(95,12,12,.08);
  padding: 5px 14px; border-radius: 999px; margin-bottom: .9rem;
}
.sec-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,210,0,.25); }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.sec-lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .sec-kicker, .section-maroon .sec-kicker { color: var(--yellow); background: rgba(255,210,0,.1); }
.section-dark .sec-lead, .section-maroon .sec-lead { color: rgba(255,255,255,.7); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.sec-head-row .sec-head { margin-bottom: 0; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--yellow-d); margin: 1.2rem auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: .8rem 1.6rem; border-radius: 12px; font-weight: 700; font-size: .96rem;
  line-height: 1.4; border: 2px solid transparent; transition: all .28s var(--ease); white-space: nowrap;
}
.btn svg { flex: none; }
.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); box-shadow: 0 8px 22px rgba(255,210,0,.28); }
.btn-yellow:hover { background: var(--yellow-l); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,210,0,.36); }
.btn-dark { background: var(--char); color: #fff; border-color: var(--char); }
.btn-dark:hover { background: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-maroon { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-maroon:hover { background: var(--maroon-l); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(95,12,12,.35); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--char); border-color: var(--char); }
.btn-outline:hover { background: var(--char); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.05rem; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(15,15,17,.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled { background: rgba(15,15,17,.96); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .3s; }
.brand:hover .brand-logo { transform: scale(1.05) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #fff; }
.brand-tag { font-size: .74rem; font-weight: 700; color: var(--yellow); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; transition: color .25s, background .25s;
}
.nav-link::after { content: ""; position: absolute; right: 14px; left: 14px; bottom: 4px; height: 2px; background: var(--yellow); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-social { display: flex; gap: 6px; }
.header-social a {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); transition: all .25s;
}
.header-social a:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); align-items: center; justify-content: center; }

/* Drawer */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .3s; z-index: 950; }
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(330px, 88vw); z-index: 960;
  background: var(--char); color: #fff; transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5);
  border-left: 3px solid var(--yellow);
}
.nav-drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer-head .brand-name { font-size: 1.15rem; }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.drawer-links { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; font-weight: 600; color: rgba(255,255,255,.85); transition: .25s; }
.drawer-links a:hover, .drawer-links a.active { background: rgba(255,210,0,.12); color: var(--yellow); }
.drawer-links a svg { opacity: .7; }
.drawer-social { margin-top: auto; padding: 18px 20px 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: .25s; }
.drawer-social a:hover { background: var(--yellow); color: var(--black); }

/* Admin bar */
.admin-bar { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; height: 38px; background: var(--maroon-d); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: .8rem; }
.admin-bar a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; color: rgba(255,255,255,.85); font-weight: 600; white-space: nowrap; }
.admin-bar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-bar .ab-edit { background: var(--yellow); color: var(--black); }
.admin-bar .ab-edit:hover { background: var(--yellow-l); color: var(--black); }
.admin-bar .ab-group { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
body.has-admin-bar { padding-top: 38px; }
body.has-admin-bar .site-header { top: 38px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0f0f11 0%, #1a1a1d 55%, #2a1010 100%);
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  min-height: 92vh; display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,210,0,.3); color: var(--yellow); font-size: .86rem; font-weight: 700; margin-bottom: 1.4rem; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulseRing 2s infinite; }
.hero-name { font-size: clamp(2.6rem, 6vw, 4.4rem); color: #fff; line-height: 1.15; margin-bottom: .4rem; }
.hero-name em { font-style: normal; color: var(--yellow); }
.hero-tag { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.hero-tag strong { color: var(--yellow); font-weight: 700; }
.hero-desc { font-size: 1.08rem; color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,210,0,.25); }
.hero-ring.r1 { width: 380px; height: 380px; animation: spinSlow 60s linear infinite; }
.hero-ring.r2 { width: 500px; height: 500px; border-style: solid; border-color: rgba(255,255,255,.06); }
.hero-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,0,.35), transparent 65%); filter: blur(10px); }
.hero-shield { position: relative; width: min(300px, 70vw); filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); animation: floatY 7s ease-in-out infinite; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: rgba(26,26,29,.85); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 700; color: #fff;
}
.hero-chip b { color: var(--yellow); font-size: 1.1rem; font-family: var(--font-head); }
.hero-chip.c1 { top: 8%; right: 0; animation: floatY 6s ease-in-out infinite; }
.hero-chip.c2 { bottom: 12%; left: 0; animation: floatY 8s ease-in-out infinite reverse; }
.hero-chip.c3 { bottom: 0; right: 10%; animation: floatY 7s ease-in-out infinite; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: .78rem; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-scroll svg { animation: floatY 2s ease-in-out infinite; }

/* Stats strip */
.stats-strip { position: relative; z-index: 2; margin-top: -3.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card {
  background: #fff; border-radius: var(--r-md); padding: 1.4rem 1.2rem; text-align: center;
  box-shadow: var(--shadow-md); border-top: 4px solid var(--yellow); transition: transform .3s var(--ease);
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .ico { width: 46px; height: 46px; margin: 0 auto .6rem; border-radius: 12px; background: rgba(95,12,12,.07); color: var(--maroon); display: flex; align-items: center; justify-content: center; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--black); line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Intro / about preview ---------- */
.about-preview { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center; }
.about-figure { position: relative; }
.about-figure .frame {
  border-radius: var(--r-lg); overflow: hidden; background: var(--char); aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.about-figure .frame img.photo { width: 100%; height: 100%; object-fit: cover; }
.about-figure .frame img.shield { width: 62%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.about-figure .frame::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 9px); }
.about-figure .corner { position: absolute; width: 90px; height: 90px; border: 4px solid var(--yellow); border-radius: 18px; z-index: -1; }
.about-figure .corner.tl { top: -18px; right: -18px; border-left: 0; border-bottom: 0; }
.about-figure .corner.br { bottom: -18px; left: -18px; border-right: 0; border-top: 0; border-color: var(--maroon); }
.about-figure .quote-card {
  position: absolute; bottom: 24px; right: 14px; max-width: 280px; background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); border-right: 4px solid var(--yellow); font-family: var(--font-head); font-size: 1rem; color: var(--char);
}
.about-copy p { color: #3d4049; font-size: 1.04rem; margin-bottom: 1rem; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.4rem 0 1.8rem; }
.about-point { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .93rem; }
.about-point .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.article-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(255,210,0,.6); }
.ac-media { position: relative; aspect-ratio: 16/9; background: var(--char); overflow: hidden; }
.ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .ac-media img { transform: scale(1.06); }
.ac-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--char), var(--char-3)); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 9px), linear-gradient(135deg, var(--char), var(--char-3)); }
.ac-placeholder img { width: 38%; opacity: .9; }
.ac-cat { position: absolute; top: 12px; right: 12px; background: var(--maroon); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ac-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.ac-title { font-size: 1.22rem; margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.article-card:hover .ac-title { color: var(--maroon); }
.ac-excerpt { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.ac-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); font-weight: 600; padding-top: .8rem; border-top: 1px dashed var(--line); }
.ac-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ac-meta svg { color: var(--yellow-d); }

/* Featured article (large) */
.article-card.featured { grid-column: span 2; flex-direction: row; }
.article-card.featured .ac-media { flex: 1.1; aspect-ratio: auto; min-height: 280px; }
.article-card.featured .ac-body { flex: 1; padding: 1.8rem; }
.article-card.featured .ac-title { font-size: 1.6rem; -webkit-line-clamp: 3; }

/* ---------- Books ---------- */
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.book-card { display: flex; flex-direction: column; gap: .8rem; }
.bc-cover {
  position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--char);
  box-shadow: 0 14px 30px rgba(15,15,17,.22); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bc-cover::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); z-index: 2; }
.bc-cover img { width: 100%; height: 100%; object-fit: cover; }
.bc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,17,.85), transparent 55%); opacity: 0; transition: opacity .35s; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem; color: var(--yellow); font-weight: 700; font-size: .9rem; gap: 6px; }
.book-card:hover .bc-cover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 26px 46px rgba(15,15,17,.3); }
.book-card:hover .bc-overlay { opacity: 1; }
.bc-title { font-size: 1.1rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-author { font-size: .84rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.bc-author svg { color: var(--yellow-d); }

/* ---------- Social grid ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: #fff;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.social-card:hover { transform: translateY(-4px); border-color: var(--yellow); background: rgba(255,210,0,.07); }
.social-card .ico { flex: none; width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; }
.social-card .ico.yt { background: #ff0000; }
.social-card .ico.x  { background: #000; border: 1px solid rgba(255,255,255,.2); }
.social-card .ico.fb { background: #1877f2; }
.social-card .ico.tg { background: #229ed9; }
.social-card .ico.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.social-card .ico.tt { background: #111; border: 1px solid rgba(255,255,255,.2); }
.social-card .ico.web { background: var(--maroon); }
.social-card .t b { display: block; font-size: 1rem; }
.social-card .t small { color: rgba(255,255,255,.55); font-size: .8rem; direction: ltr; display: block; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card .arrow { margin-right: auto; color: rgba(255,255,255,.4); transition: .3s; }
.social-card:hover .arrow { color: var(--yellow); transform: translateX(-4px); }

/* ---------- Video ---------- */
.video-frame { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,210,0,.55); background: #000; }
.video-frame::before { content: ""; display: block; padding-top: 56.25%; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { text-align: center; margin-top: 1.2rem; color: rgba(255,255,255,.75); font-family: var(--font-head); font-size: 1.15rem; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 3.2rem 2.6rem;
  background: linear-gradient(135deg, var(--maroon-d), var(--maroon-l)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 9px); }
.cta-box::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,0,.3), transparent 65%); left: -100px; top: -140px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.cta-box p { color: rgba(255,255,255,.78); max-width: 560px; }
.cta-box .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0f0f11, #1d1d21 60%, #2a1010);
  padding: calc(var(--header-h) + 3.4rem) 0 3.2rem;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(255,210,0,.22), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--yellow); }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--yellow); font-weight: 700; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; margin-bottom: .4rem; }
.page-sub { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 720px; }
.page-hero .ornament { margin: 1rem 0 0; justify-content: flex-start; }

/* ---------- Filters & pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.filter-btn { padding: 7px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--muted); transition: .25s; }
.filter-btn:hover { border-color: var(--char); color: var(--char); }
.filter-btn.active { background: var(--char); color: var(--yellow); border-color: var(--char); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 3rem; flex-wrap: wrap; }
.page-btn { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; transition: .25s; }
.page-btn:hover { border-color: var(--char); }
.page-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .ico { width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 22px; background: #fff; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--yellow-d); }
.empty-state h3 { font-size: 1.4rem; margin-bottom: .3rem; }

/* ---------- Article page ---------- */
#read-progress { position: fixed; top: var(--header-h); right: 0; height: 3px; width: 0; background: var(--yellow); z-index: 890; transition: width .1s linear; }
body.has-admin-bar #read-progress { top: calc(var(--header-h) + 38px); }
.article-hero { padding-bottom: 0; }
.article-hero .page-title { max-width: 900px; font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
.article-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600; margin-top: 1rem; }
.article-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero-meta svg { color: var(--yellow); }
.article-cover { max-width: 980px; margin: -2.2rem auto 0; position: relative; z-index: 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body-wrap { padding-top: 3rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 1.2rem; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.side-card h4 { font-size: 1.1rem; margin-bottom: .8rem; display: flex; align-items: center; gap: 8px; }
.side-card h4 svg { color: var(--yellow-d); }
.side-author { display: flex; align-items: center; gap: 12px; }
.side-author img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--char); padding: 4px; }
.side-author b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.side-author small { color: var(--muted); }
.side-list a { display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: .92rem; transition: color .2s; }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--maroon); }

.prose { font-size: 1.1rem; line-height: 2.05; color: #2a2c33; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.3rem; }
.prose h2, .prose h3, .prose h4 { margin: 2rem 0 .9rem; }
.prose h2 { font-size: 1.75rem; padding-right: 14px; border-right: 4px solid var(--yellow); }
.prose h3 { font-size: 1.4rem; }
.prose ul, .prose ol { margin: 0 1.6rem 1.3rem 0; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.6rem; background: #fff; border-right: 4px solid var(--maroon); border-radius: 10px; font-family: var(--font-head); font-size: 1.2rem; color: var(--char); box-shadow: var(--shadow-sm); }
.prose img { border-radius: 12px; margin: 1.5rem auto; box-shadow: var(--shadow-md); }
.prose a { color: var(--maroon); text-decoration: underline; text-underline-offset: 4px; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; }
.prose th { background: var(--char); color: #fff; }
.prose pre { background: var(--char); color: #fff; padding: 1rem; border-radius: 10px; overflow-x: auto; direction: ltr; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.tag { padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.tag::before { content: "#"; color: var(--yellow-d); margin-left: 3px; }

.share-bar { margin-top: 2.4rem; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-bar .lbl { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.share-bar .lbl svg { color: var(--maroon); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .25s, box-shadow .25s; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share-btn.fb { background: #1877f2; } .share-btn.x { background: #000; } .share-btn.tg { background: #229ed9; }
.share-btn.wa { background: #25d366; } .share-btn.mail { background: var(--maroon); } .share-btn.copy { background: var(--char-3); }
.share-btn.copy.copied { background: #16a34a; }

/* ---------- Book detail ---------- */
.book-detail { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 3rem; align-items: start; }
.bd-cover { position: sticky; top: calc(var(--header-h) + 20px); }
.bd-cover img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.bd-badge { display: inline-block; background: var(--maroon); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 1rem; }
.bd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1.6rem 0; }
.bd-meta div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.bd-meta small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.bd-meta b { font-size: 1rem; }
.bd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }
.related-books .books-grid { grid-template-columns: repeat(6, 1fr); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--yellow), var(--maroon)); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; }
.input, .textarea { width: 100%; padding: .85rem 1.1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .25s, box-shadow .25s, background .25s; outline: none; }
.input:focus, .textarea:focus { border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 4px rgba(255,210,0,.2); }
.textarea { min-height: 160px; resize: vertical; }
.alert { padding: .9rem 1.2rem; border-radius: 12px; font-weight: 600; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
.alert.success { background: #e8f7ee; color: #14532d; }
.alert.error { background: #fdecec; color: #7f1d1d; }
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-tile { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.contact-tile .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--char); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.contact-tile b { display: block; font-size: 1rem; }
.contact-tile span { color: var(--muted); font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: start; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.8rem 1.5rem; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.support-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.support-card .ico { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 18px; background: var(--char); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.support-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.support-card p { color: var(--muted); font-size: .95rem; }
.verse-card { max-width: 860px; margin: 0 auto; text-align: center; padding: 2.4rem 2rem; border-radius: var(--r-lg); background: var(--char); color: #fff; position: relative; overflow: hidden; }
.verse-card::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.verse-card > * { position: relative; }
.verse-text { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--yellow-l); line-height: 2; }
.verse-ref { display: inline-block; margin-top: .8rem; color: rgba(255,255,255,.6); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px); pointer-events: none; }
.footer-stripe { height: 5px; background: linear-gradient(90deg, var(--maroon), var(--yellow) 50%, var(--maroon)); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { margin-top: 1rem; color: rgba(255,255,255,.62); font-size: .95rem; max-width: 380px; }
.footer-title { font-family: var(--font-head); color: #fff; font-size: 1.25rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .5rem; }
.footer-title::after { content: ""; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; background: var(--yellow); border-radius: 2px; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); transition: color .25s, transform .25s; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon-l); transition: background .25s; }
.footer-links a:hover { color: var(--yellow); transform: translateX(-4px); }
.footer-links a:hover::before { background: var(--yellow); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: .25s; }
.footer-social a:hover { background: var(--yellow); color: var(--black); transform: translateY(-3px); }
.footer-note { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 1.2rem; }
.footer-note p { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: .8rem; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: var(--yellow); }
.footer-ayah { font-family: var(--font-head); color: var(--yellow-l); font-size: 1.05rem; }

/* ---------- Utilities ---------- */
.back-to-top { position: fixed; bottom: 26px; left: 26px; z-index: 800; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--yellow-l); }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--char); color: #fff; padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; transition: .3s; z-index: 2000; border-right: 4px solid var(--yellow); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Maintenance / 404 */
.full-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 2rem) 1.2rem 3rem; }
.nf-card { max-width: 620px; width: 100%; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 3rem 2rem; backdrop-filter: blur(10px); }
.nf-card img { width: 120px; margin: 0 auto 1rem; }
.nf-num { font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--yellow); }
.nf-card h1 { color: #fff; font-size: 1.8rem; margin: .4rem 0 .6rem; }
.nf-card p { color: rgba(255,255,255,.7); margin-bottom: 1.6rem; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .nav-link { padding: 8px 10px; font-size: .9rem; }
  .header-actions .btn span { display: none; }
}
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .related-books .books-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-link { padding: 8px 10px; font-size: .9rem; }
  .header-social { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .header-social, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 340px; order: -1; }
  .hero-chip.c1 { right: 4%; } .hero-chip.c2 { left: 4%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-figure { max-width: 420px; margin: 0 auto; }
  .about-figure .quote-card { right: 10px; }
  .article-card.featured { grid-column: span 2; flex-direction: column; }
  .article-card.featured .ac-media { aspect-ratio: 16/9; min-height: 0; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .book-detail { grid-template-columns: 1fr; }
  .bd-cover { position: static; max-width: 300px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.4rem 1.6rem; }
}
@media (max-width: 640px) {
  .section { padding: 3.6rem 0; }
  .container { padding: 0 16px; }
  .brand-text .brand-tag { display: none; }
  .brand-logo { width: 44px; height: 44px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .related-books .books-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: .7rem; }
  .stat-card { padding: 1rem .6rem; }
  .stat-card b { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-ring.r2 { width: 360px; height: 360px; }
  .hero-ring.r1 { width: 280px; height: 280px; }
  .hero-chip { font-size: .78rem; padding: 8px 12px; }
  .about-points { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem 1.2rem; }
  .share-bar { justify-content: center; }
  .prose { font-size: 1.02rem; }
}
