/* ═══════ TOKENS ═══════ */
:root {
  --navy: #1B2B6B;
  --crimson: #9B1A4A;
  --crimson-hi: #b82058;
  --crimson-lo: #7a1439;
  --grey: #4d4d4d;
  --cg: rgba(155, 26, 74, 0.12);

  --bg: #f0f0f0;
  --bg-alt: #e8e8e8;
  --bg-card: #ffffff;
  --bg-card-h: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.97);

  --text: #1a1a1a;
  --text-2: #4d4d4d;
  --text-3: #999999;
  --heading: #1B2B6B;

  --bd: rgba(0, 0, 0, 0.08);
  --bd-c: rgba(27, 43, 107, 0.18);

  --sh: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

  --r: 12px;
  --rs: 8px;
}

body.dark {
  --bg: #111827;
  --bg-alt: #1a2234;
  --bg-card: #1e293b;
  --bg-card-h: #253345;
  --bg-nav: rgba(17, 24, 39, 0.97);

  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --heading: #e2e8f0;

  --bd: rgba(255, 255, 255, 0.08);
  --bd-c: rgba(27, 43, 107, 0.35);

  --sh: 0 1px 4px rgba(0, 0, 0, 0.3);
  --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

body::after {
  display: none;
}

/* ═══════ NAV ═══════ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 68px;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bd);
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background .35s, border-color .35s;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter .35s;
}

body.dark .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-active {
  background: var(--crimson);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: .86rem !important;
  box-shadow: 0 4px 16px var(--cg);
  transition: background .2s, transform .2s, color .2s, padding .2s !important;
}

.nav-links a.nav-active:hover {
  background: var(--crimson-hi) !important;
  transform: translateY(-1px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-site-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-site-icon img {
  height: 42px;
  width: auto;
  display: block;
  transition: filter .35s;
}


.theme-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ti {
  font-size: .9rem;
  line-height: 1;
  user-select: none;
}

.theme-btn {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg-alt);
  border: 1.5px solid var(--bd);
  position: relative;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  flex-shrink: 0;
}

.theme-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  transition: transform .3s, background .3s;
}

body.dark .theme-btn {
  background: rgba(42, 63, 148, .4);
  border-color: rgba(42, 63, 148, .5);
}

body.dark .theme-btn::after {
  transform: translateX(-22px);
  background: #c8d0f0;
}


/* ═══════ SITE ICON BAR ═══════ */
.site-icon-bar {
  text-align: center;
  padding: 1.8rem 0 0.8rem;
}

.site-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}


/* ═══════ BUTTONS ═══════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .96rem;
  padding: 13px 30px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-red {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 6px 22px var(--cg);
}

.btn-red:hover {
  background: var(--crimson-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(155, 26, 74, .3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--bd);
}

.btn-ghost:hover {
  background: rgba(27, 43, 107, .06);
  border-color: rgba(27, 43, 107, .28);
  transform: translateY(-2px);
}

body.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
}

/* ═══════ SECTION COMMON ═══════ */
.sec {
  position: relative;
  z-index: 1;
  padding: clamp(2.8rem, 5.5vw, 4.8rem) clamp(1.2rem, 4vw, 4.5rem);
}

.sec-alt {
  background: var(--bg-alt);
  transition: background .35s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .65rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--navy);
  flex-shrink: 0;
}

.sec-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: .45rem;
}

.sec-desc {
  color: var(--text-2);
  font-size: .98rem;
  line-height: 1.85;
  max-width: 580px;
}

.sec-head {
  margin-bottom: 2.6rem;
}

.rule {
  width: 52px;
  height: 3px;
  background: var(--navy);
  margin: .8rem 0 1.7rem;
}

/* ═══════ 1. HERO — دليل الحج ═══════ */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  min-height: 86vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 55% at 10% 0%, rgba(27, 43, 107, .07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 88% 90%, rgba(155, 26, 74, .07) 0%, transparent 55%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155, 26, 74, .09);
  border: 1px solid var(--bd-c);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--crimson-hi);
  margin-bottom: 1.4rem;
  width: fit-content;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-hi);
  animation: blink 2.2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.7)
  }
}

.hero-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: normal;
  color: var(--crimson);
}

.hero-title small {
  font-size: .58em;
  color: var(--text-2);
  display: block;
  margin-top: .4rem;
  font-weight: 400;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 2.4rem;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: .9rem;
  align-items: center;
  flex-wrap: wrap;
}

.video-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--bd);
  aspect-ratio: 16/10;
  position: relative;
  box-shadow: var(--sh-lg);
  transition: border-color .3s, box-shadow .3s;
}

.video-card:hover {
  border-color: var(--bd-c);
  box-shadow: 0 20px 60px rgba(27, 43, 107, .2);
}

.video-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, #1f3080 0%, #0e1840 45%, #280d40 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  position: relative;
}

.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(155, 26, 74, .22) 0%, transparent 65%);
}

.kaaba {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
  background: linear-gradient(150deg, #2e2e2e, #111);
  border: 2px solid rgba(155, 26, 74, .55);
}

.kaaba::after {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 17px;
  background: var(--crimson-hi);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.video-label {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #eef0ff;
  z-index: 1;
  text-align: center;
}

.video-sub {
  font-size: .82rem;
  color: rgba(210, 215, 250, .65);
  z-index: 1;
}

.play-fab {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--cg);
  transition: background .2s, transform .2s;
}

.play-fab:hover {
  background: var(--crimson-hi);
  transform: scale(1.1);
}

.play-fab svg {
  width: 19px;
  height: 19px;
  fill: #fff;
  margin-right: -3px;
}

.video-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 14, 40, .8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .76rem;
  color: #8ab0ff;
  font-weight: 600;
}

/* ═══════ HERO CENTERED VARIANT ═══════ */
.hero.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
}

.hero-center-inner {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center-inner .hero-eyebrow {
  margin-bottom: 1.1rem;
}

.hero-title-center {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.6rem;
  color: var(--heading);
}

.video-card.video-card-lg {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16/9;
}

.hero-btns-center {
  justify-content: center;
  margin-top: 1.8rem;
}

@media (max-width:960px) {
  .hero.hero-center {
    padding-block: clamp(2rem, 5vw, 3.5rem);
  }

  .video-card.video-card-lg {
    max-width: 100%;
  }
}

/* ═══════ HERO MOBILE OPTIMIZATIONS ═══════ */
@media (max-width:600px) {
  .hero.hero-center {
    padding: 1.5rem 1rem 1.8rem;
  }

  .hero-center-inner {
    gap: 0;
  }

  /* Keep proper order on mobile: eyebrow → title → video → buttons */
  .hero-center-inner .hero-eyebrow {
    order: 1;
    margin-bottom: .6rem;
    font-size: .72rem;
    padding: 4px 12px;
  }

  .hero-center-inner .hero-title-center {
    order: 2;
  }

  .hero-center-inner .video-card {
    order: 3;
  }

  .hero-center-inner .hero-btns-center {
    order: 4;
  }

  .hero-title.hero-title-center {
    font-size: clamp(1.45rem, 5.5vw, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.35;
  }

  .video-card.video-card-lg {
    border-radius: 14px;
    aspect-ratio: 16/9;
  }

  .video-label {
    font-size: 1rem;
  }

  .video-sub {
    font-size: .7rem;
  }

  .video-badge {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: .65rem;
    border-radius: 6px;
  }

  .play-fab {
    width: 38px;
    height: 38px;
    bottom: 10px;
    left: 10px;
  }

  .play-fab svg {
    width: 15px;
    height: 15px;
  }

  .hero-btns-center {
    margin-top: 1.2rem;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }

  .hero-btns-center .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: .93rem;
    border-radius: 14px;
  }

  .hero-btns-center .btn-red {
    box-shadow: 0 4px 16px var(--cg);
  }

  .hero-btns-center .btn-ghost {
    background: var(--bg-card);
    border-color: var(--bd);
  }
}

@media (max-width:400px) {
  .hero.hero-center {
    padding: 1rem .75rem 1.4rem;
  }

  .hero-title.hero-title-center {
    font-size: 1.3rem;
    margin-bottom: .8rem;
  }

  .hero-center-inner .hero-eyebrow {
    font-size: .66rem;
    padding: 3px 10px;
    margin-top: 15px;
  }

  .hero-btns-center .btn {
    padding: 11px 16px;
    font-size: .86rem;
    border-radius: 12px;
  }

  .video-card.video-card-lg {
    border-radius: 12px;
  }
}



/* ═══════ QUICK ACCESS BAR — شريط الوصول السريع ═══════ */
.quick-access-bar {
  background: linear-gradient(135deg, #1a2d5e 0%, #243b6e 40%, #1e3462 100%);
  padding: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.quick-access-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 42px;
  color: #d4c9a8;
  text-decoration: none;
  transition: background .25s, color .25s, transform .2s;
  position: relative;
  flex: 1;
  justify-content: center;
}

.qa-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transform: translateY(-1px);
}

.qa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .85;
  transition: opacity .25s;
}

.qa-btn:hover .qa-icon {
  opacity: 1;
}

.qa-label {
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
}

.qa-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, .12);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .quick-access-inner {
    flex-direction: column;
    gap: 0;
  }

  .qa-btn {
    padding: 16px 24px;
    width: 100%;
    justify-content: center;
  }

  .qa-divider {
    width: 60%;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .qa-btn {
    padding: 14px 20px;
    gap: 10px;
  }

  .qa-label {
    font-size: .92rem;
  }

  .qa-icon svg {
    width: 18px;
    height: 18px;
  }
}


body.dark .quick-access-bar {
  background: linear-gradient(135deg, #0f1b3d 0%, #162550 40%, #11203e 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.dark .qa-btn {
  color: #c8bfa0;
}

body.dark .qa-btn:hover {
  color: #eee;
  background: rgba(255, 255, 255, .06);
}



/* ═══════ 2. أنواع النسك ═══════ */

.nusuk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.nusuk-card {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .2s;
  box-shadow: var(--sh);
  cursor: pointer;
}

.nusuk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity .3s;
}

.nusuk-card.tamattua::before {
  background: linear-gradient(90deg, var(--crimson), var(--crimson-hi));
}

.nusuk-card.qiran::before {
  background: linear-gradient(90deg, var(--navy), #3a5cc5);
}

.nusuk-card.ifrad::before {
  background: linear-gradient(90deg, #1a7a4a, #22a862);
}

.nusuk-card:hover {
  border-color: var(--bd-c);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--cg);
  background: var(--bg-card-h);
}

.nusuk-card:hover::before {
  opacity: 1;
}

.nusuk-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.2rem;
  border: 2px solid;
}

.tamattua .nusuk-icon {
  background: rgba(155, 26, 74, .09);
  border-color: var(--bd-c);
}

.qiran .nusuk-icon {
  background: rgba(27, 43, 107, .09);
  border-color: var(--bd);
}

.ifrad .nusuk-icon {
  background: rgba(26, 122, 74, .09);
  border-color: rgba(26, 122, 74, .25);
}

.nusuk-num {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.tamattua .nusuk-num {
  color: var(--crimson);
}

.qiran .nusuk-num {
  color: var(--navy);
}

body.dark .qiran .nusuk-num {
  color: #7090ff;
}

.ifrad .nusuk-num {
  color: #1a7a4a;
}

body.dark .ifrad .nusuk-num {
  color: #3dc87a;
}

.nusuk-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .7rem;
}

.nusuk-body {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.78;
}

.nusuk-badge {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

.tamattua .nusuk-badge {
  background: rgba(155, 26, 74, .1);
  color: var(--crimson);
  border: 1px solid var(--bd-c);
}

.qiran .nusuk-badge {
  background: rgba(27, 43, 107, .1);
  color: var(--navy);
  border: 1px solid var(--bd);
}

body.dark .qiran .nusuk-badge {
  color: #7090ff;
  border-color: rgba(112, 144, 255, .3);
  background: rgba(112, 144, 255, .1);
}

.ifrad .nusuk-badge {
  background: rgba(26, 122, 74, .1);
  color: #1a7a4a;
  border: 1px solid rgba(26, 122, 74, .25);
}

body.dark .ifrad .nusuk-badge {
  color: #3dc87a;
  border-color: rgba(61, 200, 122, .3);
  background: rgba(61, 200, 122, .1);
}

/* ═══════ 3. على خطى إبراهيم ═══════ */
.ibrahim-banner {
  background: #ffffff;
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background .35s;
  box-shadow: var(--sh);
}

body.dark .ibrahim-banner {
  background: var(--bg-card);
}

.ibrahim-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(155, 26, 74, .1) 0%, transparent 65%);
  pointer-events: none;
}

.ibrahim-steps {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.i-step {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  padding: 10px 14px;
  transition: border-color .2s, background .2s;
}

.i-step:hover {
  border-color: var(--bd-c);
  background: rgba(155, 26, 74, .05);
}

.i-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.i-text {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}

/* ═══════ 4. مختارات الحج — TABS ═══════ */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 2.2rem;
  background: transparent;
  border-bottom: 2px solid var(--bd);
  width: 100%;
}

.tab {
  padding: 12px 28px;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'Cairo', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  background: transparent;
  color: var(--text-2);
  margin-bottom: -2px;
  position: relative;
}

.tab.on {
  color: var(--navy);
  border-bottom-color: var(--navy);
  background: transparent;
}

body.dark .tab.on {
  color: #93b4ff;
  border-bottom-color: #93b4ff;
}

.tab:not(.on):hover {
  color: var(--text);
  background: rgba(27, 43, 107, 0.04);
}

.tab-panel {
  display: none;
}

.tab-panel.on {
  display: block;
  animation: fadeUp .35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  box-shadow: var(--sh);
}

.card:hover {
  border-color: var(--bd-c);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--cg);
  background: var(--bg-card-h);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(155, 26, 74, .08);
  border: 1.5px solid var(--bd-c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  font-size: 1.25rem;
}

.card-t {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .4rem;
}

.card-b {
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.72;
}

.card-tag {
  display: inline-block;
  margin-top: .9rem;
  padding: 3px 11px;
  border-radius: 50px;
  background: rgba(155, 26, 74, .09);
  color: var(--crimson);
  font-size: .76rem;
  font-weight: 600;
  border: 1px solid var(--bd-c);
}

/* ═══════ 5. روحانيات ═══════ */
.rouhaniyat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
}

.r-card {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .2s;
  box-shadow: var(--sh);
}

.r-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.r-card:hover {
  border-color: var(--bd-c);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--cg);
  background: var(--bg-card-h);
}

.r-card:hover::after {
  opacity: 1;
}

.r-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.r-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .6rem;
}

.r-body {
  font-size: .87rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ═══════ 6. تأصيل الحج ═══════ */
.taaseel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.t-card {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  box-shadow: var(--sh);
}

.t-card:hover {
  border-color: var(--bd-c);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--cg);
  background: var(--bg-card-h);
}

.t-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e3082, #0e1840, #280d40);
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(155, 26, 74, .2);
  border: 1.5px solid var(--bd-c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson-hi);
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.t-card:hover .t-play {
  background: var(--crimson);
  color: #fff;
}

.t-info {
  padding: 1.1rem 1.3rem;
}

.t-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .98rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 3px;
}

.t-sub {
  font-size: .8rem;
  color: var(--text-2);
}

/* ═══════ 7. أحكام الحج للصم ═══════ */
.deaf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.deaf-vis {
  background: linear-gradient(160deg, #f5f7fc 0%, #eaecf5 50%, #f0edf6 100%);
  border: 1.5px solid var(--bd);
  border-radius: 22px;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27, 43, 107, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}

body.dark .deaf-vis {
  background: linear-gradient(160deg, #1a2550 0%, #151d3e 50%, #1c1535 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.deaf-vis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(155, 26, 74, .06) 0%, transparent 70%);
}

.deaf-sign {
  font-size: 5rem;
  opacity: .5;
  z-index: 1;
}

.deaf-vis-label {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(220, 225, 255, .7);
  z-index: 1;
  text-align: center;
}

.deaf-svg-img {
  width: 82%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(27, 43, 107, .15));
  transition: transform .3s ease;
}

.deaf-vis:hover .deaf-svg-img {
  transform: scale(1.04);
}

.deaf-content {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.deaf-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: var(--sh);
}

.deaf-item:hover {
  border-color: var(--bd-c);
  background: rgba(155, 26, 74, .05);
  box-shadow: 0 4px 16px var(--cg);
}

.deaf-arr {
  color: var(--crimson);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.deaf-item h4 {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .97rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 3px;
}

.deaf-item p {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.62;
}

.deaf-cta {
  margin-top: 1.5rem;
  padding: 1.4rem 1.8rem;
  background: var(--bg-card);
  border: 1.5px solid var(--bd-c);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--sh);
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
}

.deaf-cta:hover {
  background: rgba(155, 26, 74, .06);
  box-shadow: 0 6px 24px var(--cg);
}

.deaf-cta-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.deaf-cta-text h4 {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .3rem;
}

.deaf-cta-text p {
  font-size: .85rem;
  color: var(--text-2);
}

/* ═══════ FOOTER ═══════ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--bd);
  padding: 3rem clamp(1.2rem, 4vw, 4.5rem);
  transition: background .35s;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: .8rem;
  display: block;
  transition: filter .35s;
}

body.dark .footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 4rem;
}

.fcol {
  list-style: none;
}

.fcol-head {
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .65rem;
}

.fcol li+li {
  margin-top: .4rem;
}

.fcol a {
  font-size: .84rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}

.fcol a:hover {
  color: var(--crimson);
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-3);
  align-self: end;
  text-align: left;
}

/* ═══════ 4-COL GRID ═══════ */
.nusuk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ═══════ HAMBURGER MENU ═══════ */
.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background .3s;
}

/* ═══════ RESPONSIVE ═══════ */
@media(max-width:960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero .video-card {
    order: -1;
  }

  .nusuk-grid {
    grid-template-columns: 1fr;
  }

  .nusuk-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ibrahim-banner {
    grid-template-columns: 1fr;
  }

  .taaseel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deaf-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: right;
  }

  /* Hide nav links on tablets & mobile (both orientations) */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--bd);
    box-shadow: var(--sh-lg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    z-index: 199;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--bd);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: .8rem 0;
    font-size: .95rem;
  }

  .nav-links .nav-cta {
    margin-top: .5rem;
    text-align: center;
    display: block;
    padding: 10px 20px;
  }

  .menu-btn {
    display: flex;
  }

  .nav-site-icon img {
    height: 34px;
  }
}

@media(max-width:600px) {
  .nusuk-grid {
    grid-template-columns: 1fr;
  }

  .nusuk-grid-4 {
    grid-template-columns: 1fr;
  }

  .taaseel-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Tabs: scroll horizontally on small screens */
  .tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0;
    gap: 0;
    padding-bottom: 0;
  }

  .tab-bar::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: .84rem;
    flex-shrink: 0;
  }

  .sec {
    padding: clamp(1.8rem, 4vw, 3rem) clamp(.8rem, 3vw, 2rem);
  }

  .sec-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .nusuk-card {
    padding: 1.5rem 1.2rem;
  }

  .nusuk-title {
    font-size: 1.15rem;
  }

  .nusuk-body {
    font-size: .84rem;
  }

  .ibrahim-banner {
    padding: 2rem 1.4rem;
  }

  .footer-cols {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ═══════ NUSUK BOOKMARKS (Home) ═══════ */
.nusuk-hero-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--crimson);
  text-align: center;
}

.home-nusuk-wrap {
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

/* Tabs bar */
.home-nusuk-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-bottom: 1.5px solid var(--bd);
}

.home-nusuk-tab {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.home-nusuk-tab:hover {
  color: var(--text);
  background: rgba(27, 43, 107, .03);
}

.home-nusuk-tab.active {
  background: var(--navy);
  color: #fff;
}

body.dark .home-nusuk-tab.active {
  background: #2a3f94;
}

/* Panels */
.home-nusuk-panel {
  display: none;
}

.home-nusuk-panel.active {
  display: block;
}

/* Two-column layout */
.hn-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  min-height: 400px;
}

.hn-sidebar {
  border-left: 1.5px solid var(--bd);
  background: linear-gradient(180deg, rgba(27, 43, 107, .03), rgba(155, 26, 74, .03));
  padding: 2rem 1.5rem;
  position: relative;
}

.hn-info-card {
  position: sticky;
  top: 100px;
  text-align: center;
}

.hn-info-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
}

.hn-info-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 .6rem;
}

.hn-info-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--navy), var(--crimson));
  color: #fff;
  margin-bottom: 1rem;
}

.hn-info-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.hn-info-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hn-stat {
  text-align: center;
}

.hn-stat-num {
  display: block;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crimson);
}

.hn-stat-label {
  font-size: .75rem;
  color: var(--text-2);
  font-weight: 600;
}

.hn-sidebar .nusuk-link {
  display: block;
  text-align: center;
}

.hn-main {
  padding: 1.5rem 2rem 2rem;
}

/* Home timeline index */
.home-tl {
  margin-bottom: .5rem;
}

.home-tl-group {
  margin-bottom: 1rem;
}

.home-tl-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(27, 43, 107, .06), rgba(155, 26, 74, .04));
  border: 1.5px solid var(--bd-c);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
}

.home-tl-group-head.accent {
  background: linear-gradient(135deg, rgba(0, 120, 180, .08), rgba(27, 43, 107, .06));
  border-color: rgba(0, 120, 180, .2);
}

.home-tl-kaaba {
  font-size: 1.1rem;
}

.home-tl-arrow {
  margin-right: auto;
  color: var(--crimson);
  font-size: .7rem;
}

.home-tl-items {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0 .8rem;
}

.home-tl-items li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bd);
}

.home-tl-items li:last-child {
  border-bottom: none;
}

.home-tl-items a {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  display: block;
  transition: color .2s;
}

.home-tl-items a:hover {
  color: var(--crimson);
}

.home-tl-sub {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.6;
  font-family: 'Cairo', sans-serif;
}

.home-tl-wada {
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--bd);
}

.home-tl-wada a {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  transition: color .2s;
}

.home-tl-wada a:hover {
  color: var(--crimson);
}

@media(max-width:768px) {
  .hn-layout {
    grid-template-columns: 1fr;
  }

  .hn-sidebar {
    border-left: none;
    border-bottom: 1.5px solid var(--bd);
    padding: 1.5rem 1rem;
  }

  .hn-info-card {
    position: static;
  }

  .hn-info-stats {
    gap: 1rem;
  }

  .hn-main {
    padding: 1rem;
  }

  .home-nusuk-tab {
    font-size: .92rem;
    padding: 12px 0;
  }
}

@media(max-width:600px) {
  .home-nusuk-wrap {
    border-radius: 14px;
    margin: 0 -.2rem;
  }

  .hn-sidebar {
    padding: 1.2rem .8rem;
  }

  .hn-info-icon {
    font-size: 2.4rem;
    margin-bottom: .5rem;
  }

  .hn-info-title {
    font-size: 1.25rem;
  }

  .hn-info-desc {
    font-size: .82rem;
    line-height: 1.7;
  }

  .hn-main {
    padding: .8rem .6rem;
  }

  .home-nusuk-tab {
    font-size: .84rem;
    padding: 10px 0;
  }

  .home-tl-group-head {
    font-size: .85rem;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .home-tl-items {
    padding: 0 .4rem;
  }

  .home-tl-items li {
    padding: 8px 8px;
  }

  .home-tl-items a {
    font-size: .84rem;
  }

  .home-tl-sub {
    font-size: .74rem;
  }
}


.nusuk-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  background: var(--crimson);
  text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 14px var(--cg);
}

.nusuk-link:hover {
  background: var(--crimson-hi);
  transform: translateY(-2px);
}

/* ═══════ NUSUK DETAIL PAGE ═══════ */
.nusuk-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.nusuk-detail-header {
  text-align: center;
  margin-bottom: 2rem;
}

.nusuk-detail-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
}

.nusuk-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh);
}

.nusuk-tab {
  flex: 1;
  text-align: center;
  padding: 14px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  background: transparent;
  position: relative;
}

.nusuk-tab:hover {
  color: var(--text);
  background: rgba(27, 43, 107, .04);
}

.nusuk-tab.active {
  background: var(--navy);
  color: #fff;
}

body.dark .nusuk-tab.active {
  background: #2a3f94;
}

.nusuk-desc-bar {
  background: linear-gradient(135deg, rgba(27, 43, 107, .08), rgba(155, 26, 74, .08));
  border: 1.5px solid var(--bd-c);
  border-radius: var(--r);
  padding: 1rem 1.5rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--crimson);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Timeline wrapper */
.nusuk-timeline-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--sh-lg);
}

/* Timeline groups */
.tl-group {
  margin-bottom: 2.5rem;
}

.tl-group:last-child {
  margin-bottom: 0;
}

.tl-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(27, 43, 107, .06), rgba(155, 26, 74, .06));
  border: 1.5px solid var(--bd-c);
  border-radius: var(--r);
  padding: 12px 18px;
  margin-bottom: 1.5rem;
  cursor: default;
}

.tl-group-arrow {
  color: var(--crimson);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(155, 26, 74, .1);
}

.tl-group-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

/* Timeline items */
.tl-group-body {
  position: relative;
  padding-right: 28px;
  border-right: 2px solid var(--bd);
  margin-right: 14px;
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
  scroll-margin-top: 90px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-dot {
  position: absolute;
  right: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--crimson);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--crimson);
  z-index: 2;
}

.tl-content {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}

.tl-content:hover {
  border-color: var(--bd-c);
  box-shadow: 0 4px 16px var(--cg);
}

.tl-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bd);
}

.tl-intro {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: .8rem;
}

.tl-sub {
  margin-top: 1rem;
}

.tl-sub-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

body.dark .tl-sub-title {
  color: #93b4ff;
}

.tl-text {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: .4rem;
}

.tl-text strong,
.tl-text b {
  font-weight: 700;
  color: var(--heading);
}

.tl-text .tl-label {
  font-weight: 700;
  color: var(--navy);
  display: inline;
}

body.dark .tl-text .tl-label {
  color: #93b4ff;
}

/* Key term inline highlights */
.tl-key {
  font-weight: 700;
  color: var(--crimson);
}

body.dark .tl-key {
  color: #ff7ea5;
}

/* Quranic verse styling */
.tl-quran {
  font-family: 'Noto Naskh Arabic', serif;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(27, 43, 107, .06), rgba(155, 26, 74, .04));
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(27, 43, 107, .12);
  display: inline;
  line-height: 2.2;
}

body.dark .tl-quran {
  color: #93b4ff;
  background: rgba(147, 180, 255, .08);
  border-color: rgba(147, 180, 255, .15);
}

/* Dua/Talbiyah styling */
.tl-dua {
  font-family: 'Noto Naskh Arabic', serif;
  font-weight: 600;
  color: #1a7a4a;
  background: rgba(26, 122, 74, .06);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(26, 122, 74, .12);
  display: inline;
  line-height: 2.2;
}

body.dark .tl-dua {
  color: #3dc87a;
  background: rgba(61, 200, 122, .08);
  border-color: rgba(61, 200, 122, .15);
}

/* Bullet items */
.tl-bullet {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: .45rem;
  padding-right: 1.4rem;
  position: relative;
}

.tl-bullet::before {
  content: '';
  position: absolute;
  right: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
}

.tl-bullet strong,
.tl-bullet b {
  font-weight: 700;
  color: var(--heading);
}

/* Sub-bullets (nested) */
.tl-sub-bullet {
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: .3rem;
  padding-right: 2.6rem;
  position: relative;
}

.tl-sub-bullet::before {
  content: '';
  position: absolute;
  right: 1.3rem;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: .5;
}

body.dark .tl-sub-bullet::before {
  background: #93b4ff;
}

/* Note/Warning callout */
.tl-note {
  font-size: .86rem;
  color: var(--crimson);
  font-weight: 600;
  line-height: 1.85;
  margin: .5rem 0;
  padding: 8px 14px;
  background: rgba(155, 26, 74, .05);
  border-right: 3px solid var(--crimson);
  border-radius: 0 8px 8px 0;
}

body.dark .tl-note {
  background: rgba(155, 26, 74, .1);
}

/* Fiqh ruling highlight */
.tl-ruling {
  font-size: .86rem;
  line-height: 1.85;
  margin: .5rem 0;
  padding: 8px 14px;
  background: rgba(27, 43, 107, .04);
  border-right: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

body.dark .tl-ruling {
  background: rgba(147, 180, 255, .06);
  border-color: #93b4ff;
}

/* Responsive detail page */
@media(max-width:600px) {
  .nusuk-timeline-wrap {
    padding: 1.5rem 1rem;
    border-radius: 14px;
  }

  .nusuk-tabs {
    border-radius: 10px;
  }

  .nusuk-tab {
    padding: 10px 12px;
    font-size: .88rem;
  }

  .tl-group-body {
    padding-right: 20px;
    margin-right: 10px;
  }

  .tl-dot {
    right: -27px;
    width: 12px;
    height: 12px;
  }

  .tl-content {
    padding: 1rem 1.1rem;
  }

  .tl-title {
    font-size: 1.02rem;
  }
}

/* ═══════ VIDEO LIGHTBOX ═══════ */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-content {
  position: relative;
  width: min(88vw, 1100px);
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.video-lightbox.active .video-lightbox-content {
  transform: scale(1) translateY(0);
}

.video-lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
}

.video-lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
  transform: scale(1.1);
}

/* ═══════ VIDEO THUMBNAILS (shared) ═══════ */
.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s;
}

.t-card:hover .video-thumb-img,
.video-card:hover .video-thumb-img {
  transform: scale(1.06);
  filter: brightness(.85);
}

/* Hero video card with thumbnail */
.video-card[data-video] {
  cursor: pointer;
}

.video-thumb-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

/* ═══════ TAASEEL CARDS WITH THUMBNAILS ═══════ */
.t-thumb {
  position: relative;
  overflow: hidden;
}

.t-thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.t-card:hover .t-thumb-overlay {
  opacity: 1;
}

.t-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--crimson);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(155, 26, 74, .4);
  transition: transform .25s;
}

.t-card:hover .t-play-circle {
  transform: scale(1.12);
}

.t-play-circle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-right: -2px;
}

.t-card[data-video] {
  cursor: pointer;
}

.t-card .t-episode {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--crimson);
  background: rgba(155, 26, 74, .08);
  border: 1px solid var(--bd-c);
  margin-bottom: 4px;
}

/* ═══════ SIGN LANGUAGE VIDEO GRID ═══════ */
.deaf-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.deaf-vcard {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: border-color .25s, transform .25s, box-shadow .25s, background .2s;
}

.deaf-vcard:hover {
  border-color: var(--bd-c);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--cg);
  background: var(--bg-card-h);
}

.deaf-vcard-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2a70, #0e1535);
}

.deaf-vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s;
}

.deaf-vcard:hover .deaf-vcard-thumb img {
  transform: scale(1.06);
  filter: brightness(.82);
}

.deaf-vcard-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .15);
  opacity: 0;
  transition: opacity .3s;
}

.deaf-vcard:hover .deaf-vcard-play {
  opacity: 1;
}

.deaf-vcard-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(155, 26, 74, .4);
}

.deaf-vcard-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-right: -2px;
}

.deaf-vcard-sign {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .7rem;
  color: #e0e7ff;
}

.deaf-vcard-info {
  padding: .85rem 1rem;
}

.deaf-vcard-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
}

/* Deaf section layout update: sidebar + grid */
.deaf-layout-v2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.deaf-sidebar-vis {
  position: sticky;
  top: 100px;
}

@media(max-width:960px) {
  .deaf-layout-v2 {
    grid-template-columns: 1fr;
  }

  .deaf-sidebar-vis {
    position: static;
  }

  .deaf-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media(max-width:600px) {
  .deaf-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }

  .deaf-vcard-title {
    font-size: .82rem;
  }

  .deaf-vcard-info {
    padding: .7rem .8rem;
  }

  .video-lightbox-content {
    width: 96vw;
    border-radius: 10px;
  }
}

@media(max-width:400px) {
  .deaf-video-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════ مختارات الحج — TABS & CARDS ═══════ */
.moktarat-tabs-bar {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}

.moktarat-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}

.moktarat-tab:not(:last-child) {
  border-left: 1.5px solid var(--bd);
}

.moktarat-tab:hover {
  color: var(--text);
  background: rgba(27, 43, 107, .03);
}

.moktarat-tab.active {
  background: var(--navy);
  color: #fff;
}

body.dark .moktarat-tab.active {
  background: #2a3f94;
}

/* Panels */
.moktarat-panel {
  display: none;
  animation: fadeUp .35s ease;
}

.moktarat-panel.active {
  display: block;
}

/* Cards Grid */
.moktarat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

/* نسخة 4 أعمدة (تستخدم في الصفحة الرئيسية لعرض 4 مقالات بصف واحد) */
.moktarat-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width:1100px) {
  .moktarat-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:820px) {
  .moktarat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:520px) {
  .moktarat-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* Card */
.moktarat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh);
  transition: border-color .25s, transform .25s, box-shadow .25s, background .2s;
  display: flex;
  flex-direction: column;
}

.moktarat-card:hover {
  border-color: var(--bd-c);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--cg);
  background: var(--bg-card-h);
}

/* Card Image */
.moktarat-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a2a70 0%, #0e1535 100%);
}

.moktarat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s;
}

.moktarat-card:hover .moktarat-card-img img {
  transform: scale(1.07);
  filter: brightness(.85);
}

.moktarat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35) 100%);
  pointer-events: none;
}

/* Card Body */
.moktarat-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.moktarat-card-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
  margin-bottom: .5rem;
}

.moktarat-card-excerpt {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  margin-bottom: .8rem;
}

.moktarat-card-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--crimson);
  transition: color .2s;
}

.moktarat-card:hover .moktarat-card-link {
  color: var(--crimson-hi);
}

/* ═══════ ARTICLE PAGE ═══════ */
.article-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Breadcrumb Bar */
.bc-bar {
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--bd);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  margin-bottom: 0;
}

.bc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 2rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .88rem;
}

.bc-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 50px;
  transition: all .22s;
  font-weight: 600;
}

.bc-item svg {
  opacity: .55;
  transition: opacity .2s;
}

.bc-item:hover {
  color: var(--crimson);
  background: rgba(155, 26, 74, .06);
}

.bc-item:hover svg {
  opacity: 1;
}

.bc-arrow {
  color: var(--text-3);
  opacity: .45;
  flex-shrink: 0;
}

.bc-current {
  color: var(--navy);
  font-weight: 700;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .92rem;
  padding: 5px 0;
}

body.dark .bc-current {
  color: #8aa8ff;
}

body.dark .bc-bar {
  border-color: var(--bd);
}


/* Layout: Main + Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* Article Main */
.article-main {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}

.article-header {
  padding: 2rem 2.2rem 0;
}

.article-category-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(155, 26, 74, .09);
  color: var(--crimson);
  border: 1px solid var(--bd-c);
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--bd);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-2);
}

.article-source {
  text-decoration: none;
  color: var(--navy);
  transition: color .2s;
}

.article-source:hover {
  color: var(--crimson);
}

/* Featured Image */
.article-featured-img {
  margin: 1.5rem 2.2rem;
  border-radius: var(--rs);
  overflow: hidden;
  border: 1px solid var(--bd);
}

.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* Body */
.article-body {
  padding: 0 2.2rem 2.5rem;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1rem;
  text-align: justify;
}

.article-body p[style*="text-align"] {
  text-align: justify !important;
}

.article-body font[color="0000ff"],
.article-body font[color="0000ff"] {
  color: var(--navy) !important;
  font-weight: 600;
}

body.dark .article-body font[color="0000ff"] {
  color: #7090ff !important;
}

.article-body font[color="008000"] {
  color: #1a7a4a !important;
  font-weight: 500;
}

body.dark .article-body font[color="008000"] {
  color: #3dc87a !important;
}

.article-body font[color="800000"] {
  color: var(--crimson) !important;
  font-weight: 600;
}

body.dark .article-body font[color="800000"] {
  color: #e87090 !important;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--sh);
  margin-bottom: 1.2rem;
}

.sidebar-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--bd);
}

.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.sidebar-related-item {
  display: flex;
  gap: .9rem;
  text-decoration: none;
  color: inherit;
  padding: .6rem;
  border-radius: var(--rs);
  transition: background .2s;
}

.sidebar-related-item:hover {
  background: rgba(155, 26, 74, .04);
}

.sidebar-related-img {
  width: 80px;
  min-width: 80px;
  height: 55px;
  border-radius: var(--rs);
  overflow: hidden;
  border: 1px solid var(--bd);
}

.sidebar-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-related-info h4 {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
  margin-bottom: 3px;
}

.sidebar-related-info p {
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Article Show — Sidebar cards ── */
.article-side-card {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--sh);
  margin-bottom: 1rem;
}

.article-side-card h4 {
  margin: 0 0 .8rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--cg);
  color: var(--heading);
  font-size: .95rem;
  font-weight: 700;
}

.article-side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-side-card li {
  margin: 0;
}

.article-side-card .side-link {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .55rem .6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: .85rem;
  line-height: 1.6;
  transition: background .15s;
}

.article-side-card .side-link:hover {
  background: var(--cg);
  color: var(--crimson);
}

.article-side-card .side-link.active {
  background: var(--cg);
  color: var(--crimson);
  font-weight: 700;
}

.article-side-card .side-arrow {
  color: var(--crimson);
  flex-shrink: 0;
}

/* ── Article Show — Breadcrumb ── */
.article-breadcrumb {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
  font-size: .85rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.article-breadcrumb a {
  color: var(--crimson);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ═══════ ARTICLE PAGE RESPONSIVE ═══════ */
@media(max-width:960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .moktarat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .moktarat-grid {
    grid-template-columns: 1fr;
  }

  .moktarat-tabs-bar {
    border-radius: var(--rs);
  }

  .moktarat-tab {
    padding: 11px 0;
    font-size: .84rem;
  }

  .moktarat-card-body {
    padding: 1rem 1.1rem 1.2rem;
  }

  .moktarat-card-title {
    font-size: .95rem;
  }

  .moktarat-card-excerpt {
    font-size: .8rem;
    margin-bottom: .6rem;
  }

  .moktarat-card-img {
    aspect-ratio: 16/9;
  }

  .article-header {
    padding: 1.5rem 1.3rem 0;
  }

  .article-featured-img {
    margin: 1rem 1.3rem;
  }

  .article-body {
    padding: 0 1.3rem 1.8rem;
    font-size: .97rem;
  }

  .article-title {
    font-size: 1.3rem;
  }

  .bc-inner {
    padding: 10px 1rem;
    font-size: .82rem;
    gap: 3px;
  }

  .bc-item {
    padding: 4px 10px;
    font-size: .8rem;
  }

  .bc-current {
    font-size: .84rem;
  }

  .bc-arrow {
    width: 14px;
    height: 14px;
  }

  .sec-desc {
    font-size: .88rem;
    line-height: 1.7;
  }
}



/* ═══════ HAJJ MAP LIGHTBOX ═══════ */
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .90);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.map-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.map-lightbox-content {
  position: relative;
  width: min(94vw, 1400px);
  height: min(90vh, 900px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transform: scale(.90) translateY(30px);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  background: var(--bg-card);
}

.map-lightbox.active .map-lightbox-content {
  transform: scale(1) translateY(0);
}

.map-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--navy), var(--crimson));
  color: #fff;
}

.map-lightbox-title {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-lightbox-title svg {
  opacity: .85;
}

.map-lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
}

.map-lightbox-close:hover {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.1);
}

.map-lightbox-iframe-wrap {
  width: 100%;
  height: calc(100% - 56px);
  position: relative;
}

.map-lightbox-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading spinner for map */
.map-lightbox-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: opacity .4s;
  z-index: 2;
}

.map-lightbox-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bd);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: mapSpin 1s linear infinite;
}

@keyframes mapSpin {
  to {
    transform: rotate(360deg);
  }
}


/* ═══════ HAJJ MAP LIGHTBOX RESPONSIVE ═══════ */
@media(max-width:768px) {
  .map-lightbox-content {
    width: 98vw;
    height: 92vh;
    border-radius: 12px;
  }

  .map-lightbox-header {
    padding: 10px 16px;
  }

  .map-lightbox-title {
    font-size: 1rem;
  }
}

@media(max-width:480px) {
  .map-lightbox-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}


/* ═══════════════════════════════════════════════════════════
   FATAWA  ─  فتاوى الحج
   ═══════════════════════════════════════════════════════════ */

/* ── شبكة بطاقات التصنيفات ── */
.fatwa-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.fatwa-cat-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.4rem 1.2rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.fatwa-cat-card::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--crimson), var(--navy));
  opacity: 0;
  transition: opacity .25s;
}

.fatwa-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--bd-c);
}

.fatwa-cat-card:hover::before {
  opacity: 1;
}

.fatwa-cat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--cg);
  color: var(--crimson);
  border-radius: 10px;
}

.fatwa-cat-title {
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.fatwa-cat-count {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-alt);
  padding: .18rem .55rem;
  border-radius: 6px;
  align-self: flex-start;
  font-family: 'Cairo', sans-serif;
}

.fatwa-cat-link {
  margin-top: auto;
  font-size: .85rem;
  color: var(--crimson);
  font-weight: 600;
}


/* ── قائمة الفتاوى (listing) ── */
.fatwa-list {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.fatwa-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh);
  transition: all .2s ease;
}

.fatwa-item:hover {
  transform: translateX(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--bd-c);
  background: var(--bg-card-h);
}

.fatwa-item-num {
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--crimson);
  background: var(--cg);
  padding: .3rem .6rem;
  border-radius: 6px;
  font-family: 'Cairo', monospace;
  margin-top: .15rem;
}

.fatwa-item-body {
  flex: 1;
  min-width: 0;
}

.fatwa-item-title {
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 .45rem;
}

.fatwa-item-excerpt {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0 0 .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fatwa-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  font-size: .78rem;
  color: var(--text-3);
}

.fatwa-item-arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--crimson);
  align-self: center;
  transition: transform .2s;
}

.fatwa-item:hover .fatwa-item-arrow {
  transform: translateX(-4px);
}

/* ── Pagination ── */
.fatwa-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.fatwa-pager-btn {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: 8px;
  text-decoration: none;
  transition: all .18s ease;
}

.fatwa-pager-btn:hover:not(.active):not(.disabled) {
  border-color: var(--crimson);
  color: var(--crimson);
}

.fatwa-pager-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  cursor: default;
}

.fatwa-pager-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.fatwa-pager-dots {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 38px;
  color: var(--text-3);
  font-weight: 700;
  user-select: none;
}

/* ── Empty state ── */
.fatwa-empty {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px dashed var(--bd-c);
  border-radius: var(--r);
}

/* ─────────── صفحة تفاصيل الفتوى ─────────── */
.fatwa-breadcrumb {
  max-width: 900px;
  margin: 1rem auto 0;
  padding: .8rem 1.2rem;
  font-size: .85rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
}

.fatwa-breadcrumb a {
  color: var(--crimson);
  text-decoration: none;
  font-weight: 600;
}

.fatwa-breadcrumb a:hover {
  text-decoration: underline;
}

.fatwa-breadcrumb .current {
  color: var(--text-2);
  font-weight: 600;
}

.fatwa-article {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 2rem 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.fatwa-article-head {
  border-bottom: 2px solid var(--bd);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
}

.fatwa-article-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.fatwa-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.meta-pill {
  font-size: .78rem;
  padding: .32rem .7rem;
  background: var(--cg);
  color: var(--crimson);
  border-radius: 6px;
  font-weight: 600;
}

/* بلوكات السؤال والجواب */
.fatwa-block {
  margin-block: 1.4rem;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
}

.fatwa-block-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--bd);
}

.fatwa-block-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}

.fatwa-question .fatwa-block-icon {
  background: var(--navy);
}

.fatwa-answer .fatwa-block-icon {
  background: var(--crimson);
}

.fatwa-block-title {
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 700;
  margin: 0;
}

.fatwa-block-body {
  padding: 1.3rem 1.4rem;
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Noto Naskh Arabic', 'Cairo', serif;
}

/* فتاوى ذات صلة */
.fatwa-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--bd);
}

.fatwa-related-title {
  font-size: 1.1rem;
  color: var(--heading);
  font-weight: 700;
  margin: 0 0 1rem;
}

.fatwa-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.fatwa-related-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--bd);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  transition: all .18s;
}

.fatwa-related-list a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  transform: translateX(-3px);
}

.rel-arrow {
  color: var(--crimson);
  font-weight: 700;
}

.fatwa-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bd);
}

/* ─── Responsive ─── */
@media (max-width:640px) {
  .fatwa-article {
    padding: 1.4rem 1.1rem;
  }

  .fatwa-block-body {
    padding: 1rem;
    font-size: .95rem;
    line-height: 1.95;
  }

  .fatwa-cats {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .8rem;
  }

  .fatwa-cat-card {
    padding: 1.1rem .9rem;
  }

  .fatwa-item {
    padding: .9rem;
    gap: .7rem;
  }

  .fatwa-item-title {
    font-size: .95rem;
  }

  .fatwa-item-arrow {
    font-size: 1.1rem;
  }

  .fatwa-pager-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 .55rem;
    font-size: .82rem;
  }
}