:root {
  --ink:          #0C0800;
  --ink-soft:     #1E1505;
  --gold:         #B8913A;
  --gold-light:   #D4AA5A;
  --gold-pale:    #F2E4C0;
  --gold-border:  rgba(184,145,58,0.25);
  --cream:        #FAF6EE;
  --cream-2:      #F3EDD9;
  --cream-3:      #EBE2C8;
  --green-deep:   #152510;
  --green-mid:    #1E3A18;
  --green-accent: #2C5522;
  --text-main:    #1A1000;
  --text-soft:    #4A3A1A;
  --text-muted:   #7A6A4A;
  --shadow-sm:    0 2px 8px rgba(12,8,0,0.08);
  --shadow-md:    0 6px 24px rgba(12,8,0,0.13);
  --shadow-lg:    0 16px 48px rgba(12,8,0,0.18);
  --radius:       10px;
  --radius-lg:    16px;
  --font-urdu:    'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-arabic:  'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --transition:   0.22s ease;
  --site-max:     1320px;
  --site-pad:     24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-urdu);
  background: var(--cream-3);
  color: var(--text-main);
  direction: rtl;
  line-height: 2.2;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  box-shadow: 0 0 48px rgba(12, 8, 0, 0.1);
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 20px;
  font-size: 1rem;
  z-index: 9999;
  transition: top .2s;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* Announcement bar */
.ann-bar {
  background: var(--green-deep);
  color: var(--gold-pale);
  text-align: center;
  padding: 9px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
.ann-bar strong { color: var(--gold-light); }

/* Header */
.site-header {
  background: var(--ink-soft);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  width: 100%;
  padding: 0 var(--site-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  background: rgba(184,145,58,0.1);
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-text-wrap { line-height: 1.15; }
.logo-ur {
  display: block;
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-light);
}
.logo-tagline {
  display: block;
  font-size: 0.78rem;
  color: rgba(212,170,90,0.85); /* Increased contrast */
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.main-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  background: rgba(184,145,58,0.1);
  border-color: var(--gold-border);
}
.nav-count {
  background: rgba(184,145,58,0.2);
  color: var(--gold-pale);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-family: monospace;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.lang-switch {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(184,145,58,0.25);
  line-height: 1;
}
.lang-switch:hover,
.lang-switch.is-active {
  color: var(--gold-light);
  background: rgba(184,145,58,0.15);
  border-color: var(--gold-border);
}
.mobile-nav .lang-switcher {
  margin-bottom: 12px;
  justify-content: center;
}

.lang-bar-mobile {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(184,145,58,0.4);
  border-radius: 6px;
  color: var(--gold-light);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  background: var(--ink-soft);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(44,85,34,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(184,145,58,0.07) 0%, transparent 55%);
  padding: 72px 48px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.2' fill='rgba(184,145,58,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-ornament {
  display: block;
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
  letter-spacing: 0.3em;
}
.hero h1 {
  font-family: var(--font-arabic);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(212,170,90,0.65);
  margin-bottom: 28px;
  font-family: var(--font-arabic);
  line-height: 2;
}
.hero-desc {
  max-width: 760px;
  margin: 0 auto 44px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 2.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 560px;
  margin-inline: auto;
}
.stat-item {
  flex: 1;
  padding: 22px 20px;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid var(--gold-border);
  text-align: center;
  transition: background var(--transition);
}
.stat-item:first-child { border-left: none; }
.stat-item:hover { background: rgba(184,145,58,0.1); }
.stat-number {
  display: block;
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 8px;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.8;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(184,145,58,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,145,58,0.55);
}
.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-dark);
}
.btn-outline:hover {
  background: rgba(184,145,58,0.1);
  border-color: var(--gold);
}

/* Search band */
.search-band {
  background: var(--cream-2);
  border-top: 1px solid var(--gold-border);
  border-bottom: 3px solid var(--gold-border);
  padding: 32px 48px;
}
.search-form {
  display: flex;
  max-width: 820px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 16px 24px;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  border: 2px solid var(--gold-border);
  border-left: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #fff;
  color: var(--text-main);
  direction: rtl;
  outline: none;
  transition: border-color var(--transition);
}
.search-form input[type="search"]:focus { border-color: var(--gold); }
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--green-deep);
  color: var(--gold-pale);
  border: none;
  padding: 0 36px;
  font-family: var(--font-urdu);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
  white-space: nowrap;
}
.search-form button:hover { background: var(--green-accent); }

.header-inner > .search-form {
  flex: 0 1 260px;
  min-width: 180px;
  max-width: 280px;
  margin: 0;
  box-shadow: none;
  align-self: center;
}
.header-inner > .search-form input[type="search"] {
  padding: 10px 12px;
  font-size: 0.88rem;
  min-width: 0;
}
.header-inner > .search-form button {
  padding: 0 12px;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-tags {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.search-tags a {
  display: inline-block;
  margin: 3px 5px;
  background: var(--cream-3);
  color: var(--text-soft);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.search-tags a:hover {
  background: var(--gold-pale);
  color: var(--ink);
  border-color: var(--gold);
}

/* Content sections */
.content-section {
  padding: 52px 48px;
  border-bottom: 1px solid var(--gold-border);
}
.content-section:nth-child(even) { background: var(--cream-2); }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gold-border);
  position: relative;
}
.sec-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 2px;
  background: var(--gold);
}
.sec-head-left { display: flex; align-items: center; gap: 16px; }
.sec-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.sec-icon-green { background: linear-gradient(135deg, var(--green-deep), var(--green-accent)); }
.sec-icon-gold  { background: linear-gradient(135deg, #5a3a00, var(--gold)); }
.sec-icon-cream { background: linear-gradient(135deg, #1a1a4a, #2a2a7a); }
.sec-title {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}
.sec-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.sec-all {
  color: var(--green-accent);
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--green-accent);
  padding-bottom: 2px;
  white-space: nowrap;
}
.sec-all:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* Grids */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card-img,
.card-thumb {
  position: relative;
  background: var(--cream-2);
  line-height: 0;
}
.card-img img,
.card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.card-featured .card-img,
.card-featured .card-thumb {
  background: var(--ink-soft);
}
.card-cat,
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 12px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-green  { background: var(--green-deep); color: var(--gold-pale); }
.badge-gold   { background: var(--gold); color: var(--ink); }
.badge-blue   { background: #1a1a5a; color: #d0d4ff; }

.card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title,
.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.card-num,
.card-num-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-foot,
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--cream);
}
.read-link {
  color: var(--green-accent);
  font-size: 0.82rem;
}

.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  background: linear-gradient(135deg, var(--ink-soft) 0%, #1c1200 100%);
  border-color: rgba(184,145,58,0.4);
  color: #fff;
}
.card-featured .card-thumb,
.card-featured .card-img { width: 42%; max-width: 420px; flex-shrink: 0; }
.card-featured .card-body { padding: 32px 36px; flex: 1; }
.card-featured .card-body h3 { color: var(--gold-light); -webkit-line-clamp: 3; line-clamp: 3; }

/* List cards */
.list-card {
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  transition: all var(--transition);
}
.list-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}
.list-main { padding: 14px 16px; flex: 1; }
.list-main h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 2;
}
.list-excerpt {
  font-size: 0.85rem;
  color: var(--text-soft);
}
.list-meta {
  padding: 14px 16px;
  display: flex;
  align-items: center;
}

/* Quote band */
.quote-band {
  background: var(--green-deep);
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(184,145,58,0.06), transparent);
  padding: 56px 48px;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.quote-inner { max-width: 900px; margin: 0 auto; }
.quote-ar {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--gold-pale);
}
.quote-tr {
  font-size: 1rem;
  color: var(--gold-pale);
}

/* About strip */
.about-strip {
  background: var(--cream-2);
  padding: 52px 48px;
  border-bottom: 1px solid var(--gold-border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
}
.about-card {
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 22px;
}
.about-card h2 {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.about-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 2.6;
}

/* Footer */
.site-footer {
  background: var(--ink-soft);
  border-top: 3px solid var(--gold);
}
.footer-main {
  padding: 56px 48px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(184,145,58,0.15);
}
.footer-brand .logo-ur {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 2.4;
  margin-bottom: 20px;
}
.play-store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.play-store-badge:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.play-store-badge img {
  display: block;
  width: auto;
  height: 50px;
}
.play-store-badge--footer {
  margin-bottom: 20px;
}
.play-store-badge--footer img {
  height: 44px;
}
.play-store-badge--hero img {
  height: 54px;
}
.play-store-badge--mobile {
  margin: 8px 0 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-col h3 {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184,145,58,0.2);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}
.footer-bottom {
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* Single content */
.entry-content {
  font-family: var(--font-urdu);
  font-size: clamp(1.05rem, 2.5vw, 2.2rem);
  line-height: 3;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto;
}
.entry-content p { margin-bottom: 1.8em; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-arabic);
  color: var(--green-deep);
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.entry-content blockquote {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  color: var(--gold-dark);
  border-right: 4px solid var(--gold-dark);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--cream-2);
  border-radius: 0 8px 8px 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-soft);
  background: #fff;
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-accent);
}

/* Back to top */
#back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  background: var(--green-deep);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 300;
}
#back-top.visible { opacity: 1; pointer-events: all; }

/* Play Store app promo popup */
body.nb-app-popup-open {
  overflow: hidden;
}
.nb-app-popup {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nb-app-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nb-app-popup[hidden] {
  display: none !important;
}
.nb-app-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 0, 0.72);
}
.nb-app-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}
.nb-app-popup.is-open .nb-app-popup__dialog {
  transform: none;
}
.nb-app-popup__link {
  display: block;
  line-height: 0;
}
.nb-app-popup__link img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #0f2a18;
}
.nb-app-popup__close {
  position: absolute;
  top: 1.4%;
  right: 1.4%;
  width: max(44px, 12%);
  aspect-ratio: 1;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
@media print {
  .nb-app-popup { display: none !important; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink-soft);
  z-index: 600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px;
}
.mobile-nav.open { display: flex; }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Archive & Search heads */
.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-border);
}
.archive-head h1 {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--ink);
}
.archive-desc {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 700px;
}
.archive-count {
  background: var(--cream-3);
  color: var(--text-muted);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--gold-border);
}

/* Page layout */
.page-wrap {
  width: 100%;
  padding: 0 var(--site-pad) 64px;
}

#main-content > .breadcrumb {
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}

.breadcrumb {
  padding: 24px 0 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.breadcrumb a {
  color: var(--green-accent);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }

.main-grid {
  display: block;
}
.main-grid.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

.single-article .entry-content {
  max-width: none;
  margin: 0;
}

/* Single Post Specifics — full-bleed image + 70% black overlay + centered text */
.single-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 56px 32px;
  min-height: clamp(240px, 38vh, 420px);
  background-color: #0c0800;
  background-image: var(--single-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(184, 145, 58, 0.35);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.single-hero--overlay .single-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.single-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.single-badge {
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.single-num {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.single-title {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 2;
  margin-bottom: 0;
  color: var(--ink);
}
.single-hero .single-title {
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}
.single-hero .single-num {
  color: rgba(255, 255, 255, 0.9);
}
.single-thumb {
  display: none;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 48px 0;
  padding-top: 32px;
  border-top: 1.5px solid var(--gold-border);
}
.post-nav a {
  font-weight: 600;
  color: var(--green-accent);
}
.post-nav a:hover { color: var(--gold-dark); }

.related-posts {
  margin-top: 64px;
}
.related-posts .sec-title {
  margin-bottom: 24px;
}

.no-results {
  text-align: center;
  padding: 48px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* =============================================
   RESPONSIVE BREAKPOINTS — Full Overhaul
   ============================================= */

/* Large desktop – keep things from stretching too wide */
@media (max-width: 1400px) {
  .header-inner { padding: 0 32px; }
  .hero { padding: 64px 32px 56px; }
  .page-wrap { padding: 0 var(--site-pad) 48px; }
  .search-band,
  .content-section,
  .about-strip,
  .quote-band { padding: 44px 32px; }
  .footer-main { padding: 48px 32px 36px; gap: 32px; }
  .footer-bottom { padding: 18px 32px; }
}

/* 1200 – 4-col → 2-col */
@media (max-width: 1200px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* 1024 – tablet landscape */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; gap: 16px; }

  /* hide desktop search from header; it clutters things */
  .header-inner > .search-form { display: none; }
  .header-inner > .lang-switcher { display: none; }

  .lang-bar-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--ink-soft);
    border-bottom: 2px solid var(--gold-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .lang-bar-label {
    font-size: 0.9rem;
    color: var(--gold-pale);
    font-family: var(--font-urdu);
    font-weight: 600;
    white-space: nowrap;
  }
  .lang-bar-mobile .lang-switch {
    font-size: 0.95rem;
    padding: 8px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 145, 58, 0.5);
  }
  .lang-bar-mobile .lang-switch:hover {
    color: var(--gold-pale);
    background: rgba(184, 145, 58, 0.2);
    border-color: var(--gold-light);
  }
  .lang-bar-mobile .lang-switch.is-active {
    color: var(--ink-soft);
    background: var(--gold-light);
    border-color: var(--gold);
    font-weight: 700;
  }

  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-featured { flex-direction: column; }
  .card-featured .card-thumb,
  .card-featured .card-img { width: 100%; max-width: none; }
  .card-featured .card-body { padding: 20px 24px; }

  .main-grid.content-sidebar {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .single-hero {
    gap: 0;
    padding: 40px 24px;
    min-height: clamp(220px, 34vh, 360px);
  }
  .single-thumb {
    display: none;
  }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-inner { grid-template-columns: 1fr; }
}

/* 900 – mid-tablet */
@media (max-width: 900px) {
  .hero-stats { max-width: 100%; }
  .list-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sec-head::after { width: 60px; }
}

/* 768 – tablet portrait ↓  */
@media (max-width: 768px) {
  /* ── Announcement bar ── */
  .ann-bar {
    font-size: 0.8rem;
    padding: 7px 14px;
    line-height: 2;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .page-wrap { padding: 0 var(--site-pad) 48px; }
  .breadcrumb { padding: 16px 0 14px; font-size: 0.82rem; }

  .single-hero {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 36px 16px;
    text-align: center;
    min-height: 220px;
  }
  .single-hero .header-meta {
    justify-content: center;
  }
  .single-thumb {
    display: none;
  }

  /* ── Header ── */
  .header-inner {
    padding: 0 16px;
    height: 64px;
    gap: 12px;
  }
  .main-nav { display: none; }
  .hamburger { display: flex; }

  /* hide search from header on mobile – it's in the mobile-nav & search-band */
  .header-inner > .search-form { display: none; }
  .header-inner > .lang-switcher { display: none; }

  /* Logo: shrink text on small screens */
  .logo-icon { width: 44px; height: 44px; }
  .logo-ur { font-size: 1.3rem; }
  .logo-tagline { display: none; }

  /* ── Mobile nav overlay ── */
  .mobile-nav {
    padding: 32px 24px;
    gap: 16px;
  }
  .mobile-nav a {
    font-size: 1.2rem;
    color: var(--gold-light);
    padding: 12px 0;
    border-bottom: 1px solid rgba(184,145,58,0.15);
    width: 100%;
    text-align: center;
  }
  .mobile-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 1.4rem;
    cursor: pointer;
  }
  /* search inside mobile nav */
  .mobile-nav .search-form { width: 100%; margin-top: 8px; }
  .mobile-nav .search-form input { border-radius: var(--radius) 0 0 var(--radius); }

  /* ── Hero ── */
  .hero { padding: 44px 20px 40px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 32px; }

  .hero-stats {
    flex-direction: column;
    max-width: 260px;
    border-radius: var(--radius);
    margin-bottom: 32px;
  }
  .stat-item {
    border-left: none;
    border-top: 1px solid var(--gold-border);
    padding: 16px 20px;
  }
  .stat-item:first-child { border-top: none; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── Search band ── */
  .search-band { padding: 24px 16px; }
  .search-form {
    flex-direction: column;
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: none;
    gap: 8px;
  }
  .search-form input[type="search"] {
    border-radius: var(--radius);
    border: 2px solid var(--gold-border);
    width: 100%;
  }
  .search-form button {
    border-radius: var(--radius);
    padding: 14px 20px;
    width: 100%;
  }
  .search-tags { font-size: 0.82rem; }

  /* ── Content sections ── */
  .content-section { padding: 32px 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-head::after { display: none; }
  .sec-title { font-size: 1.4rem; }
  .sec-all { font-size: 0.85rem; }

  .card-grid-3,
  .card-grid-4,
  .list-grid { grid-template-columns: 1fr; gap: 16px; }

  /* featured card: stack vertically */
  .card-featured { flex-direction: column; }
  .card-featured .card-thumb,
  .card-featured .card-img { width: 100%; max-width: none; }
  .card-featured .card-body { padding: 20px; }

  /* section CTA button full width */
  .section-cta { text-align: center; }
  .section-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── Quote band ── */
  .quote-band { padding: 40px 16px; }
  .quote-ar { font-size: 1.2rem; }
  .quote-tr { font-size: 0.9rem; }

  /* ── About strip ── */
  .about-strip { padding: 32px 16px; }
  .about-card h2 { font-size: 1.4rem; }

  /* ── Footer ── */
  .footer-main {
    grid-template-columns: 1fr;
    padding: 36px 16px 28px;
    gap: 24px;
  }
  .footer-bottom {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 0.75rem;
  }
  .footer-brand .logo-ur { font-size: 1.5rem; }
  .footer-col h3 { font-size: 1rem; }

  /* ── Archive / Search heads ── */
  .archive-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .archive-head h1 { font-size: 1.6rem; }

  /* ── Single post ── */
  .post-nav { flex-direction: column; gap: 12px; }
}

/* 480 – large phones */
@media (max-width: 480px) {
  .ann-bar { font-size: 0.75rem; padding: 6px 12px; }
  .header-inner { height: 58px; }
  .logo-ur { font-size: 1.15rem; }
  .logo-icon { width: 38px; height: 38px; }

  .hero { padding: 36px 14px 32px; }
  .hero h1 { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .hero-ornament { font-size: 1rem; letter-spacing: 0.2em; }
  .hero-stats { max-width: 220px; }
  .stat-number { font-size: 1.6rem; }

  .content-section { padding: 24px 14px; }
  .sec-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .sec-title { font-size: 1.25rem; }

  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .card-body { padding: 14px 16px; }
  .card-foot, .card-footer { padding: 10px 16px; }

  .quote-band { padding: 32px 14px; }
  .quote-ar { font-size: 1.05rem; }

  .about-strip { padding: 24px 14px; }
  .about-card { padding: 16px; }

  .footer-main { padding: 28px 14px; }
  .footer-bottom { padding: 14px; }

  .search-band { padding: 20px 14px; }
  .search-tags { line-height: 2.4; }
  .search-tags a { margin: 4px; }
}

/* 360 – very small phones */
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .logo-ur { font-size: 1rem; }
  .  .hero-stats { max-width: 190px; }
  .btn { padding: 11px 18px; font-size: 0.88rem; }
  .sec-title { font-size: 1.1rem; }
}

/* Prevent any element from causing horizontal overflow */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, .search-form, .hero-stats { max-width: 100%; }

/* Override JNews / Plugin specific colors */
.jeg_menu_style_1>li>a:before, .jeg_menu_style_2>li>a:before, .jeg_menu_style_3>li>a:before, .jeg_side_toggle, .jeg_slide_caption .jeg_post_category a, .jeg_slider_type_1_wrapper .tns-controls button.tns-next, .jeg_block_heading_1 .jeg_block_title span, .jeg_block_heading_2 .jeg_block_title span, .jeg_block_heading_3, .jeg_block_heading_4 .jeg_block_title span, .jeg_block_heading_6:after, .jeg_pl_lg_box .jeg_post_category a, .jeg_pl_md_box .jeg_post_category a, .jeg_readmore:hover, .jeg_thumb .jeg_post_category a, .jeg_block_loadmore a:hover, .jeg_postblock.alt .jeg_block_loadmore a:hover, .jeg_block_loadmore a.active, .jeg_postblock_carousel_2 .jeg_post_category a, .jeg_heroblock .jeg_post_category a, .jeg_pagenav_1 .page_number.active, .jeg_pagenav_1 .page_number.active:hover, input[type="submit"], .btn, .button, .widget_tag_cloud a:hover, .popularpost_item:hover .jeg_post_title a:before, .jeg_splitpost_4 .page_nav, .jeg_splitpost_5 .page_nav, .jeg_post_via a:hover, .jeg_post_source a:hover, .jeg_post_tags a:hover, .comment-reply-title small a:before, .comment-reply-title small a:after, .jeg_storelist .productlink, .authorlink li.active a:before, .jeg_footer.dark .socials_widget:not(.nobg) a:hover .fa, .jeg_footer.dark .socials_widget:not(.nobg) a:hover > span.jeg-icon, div.jeg_breakingnews_title, .jeg_overlay_slider_bottom_wrapper .tns-controls button, .jeg_overlay_slider_bottom_wrapper .tns-controls button:hover, .jeg_vertical_playlist .jeg_video_playlist_current, .woocommerce span.onsale, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .jeg_popup_post .caption, .jeg_footer.dark input[type="submit"], .jeg_footer.dark .btn, .jeg_footer.dark .button, .footer_widget.widget_tag_cloud a:hover, .jeg_inner_content .content-inner .jeg_post_category a:hover, #buddypress .standard-form button, #buddypress a.button, #buddypress input[type="submit"], #buddypress input[type="button"], #buddypress input[type="reset"], #buddypress ul.button-nav li a, #buddypress .generic-button a, #buddypress .generic-button button, #buddypress .comment-reply-link, #buddypress a.bp-title-button, #buddypress.buddypress-wrap .members-list li .user-update .activity-read-more a, div#buddypress .standard-form button:hover, div#buddypress a.button:hover, div#buddypress input[type="submit"]:hover, div#buddypress input[type="button"]:hover, div#buddypress input[type="reset"]:hover, div#buddypress ul.button-nav li a:hover, div#buddypress .generic-button a:hover, div#buddypress .generic-button button:hover, div#buddypress .comment-reply-link:hover, div#buddypress a.bp-title-button:hover, div#buddypress.buddypress-wrap .members-list li .user-update .activity-read-more a:hover, #buddypress #item-nav .item-list-tabs ul li a:before, .jeg_inner_content .jeg_meta_container .follow-wrapper a {
    background-color: var(--gold) !important;
}

/* Social Share & Refined Nav */
.social-share-wrap {
  margin-top: 48px;
  padding: 24px;
  background: var(--cream-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.share-title {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.social-share-buttons {
  display: flex;
  gap: 12px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff !important;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.share-btn svg { width: 20px; height: 20px; }
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-x { background-color: #000000; }
.share-tg { background-color: #229ED9; }

/* Enhanced Post Nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 2px solid var(--gold-border);
  margin-bottom: 48px;
  gap: 24px;
}
.post-prev a, .post-next a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green-deep);
  transition: color var(--transition);
}
.post-prev a:hover, .post-next a:hover { color: var(--gold); }
.post-prev a span, .post-next a span { font-size: 1.2rem; color: var(--gold); }

/* Fix JNews trailing rule */
.jeg_inner_content .jeg_meta_container .follow-wrapper a {
    background-color: var(--gold) !important;
}} .jeg_inner_content .jeg_meta_container .follow-wrapper a {
    background-color: var(--gold) !important;
}

/* Single Post UI Fixes */
.single-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.45; }
/* Pagination Next/Prev Fixes */
.pagination .page-numbers.prev, .pagination .page-numbers.next { width: auto; padding: 0 20px; white-space: nowrap; }
.pagination .page-numbers.dots { width: auto; padding: 0 16px; background: transparent; border: none; }


/* ==========================================================================
   v1.4 — accessibility, FAQ (AEO) and citation box (GEO / AI citation)
   ========================================================================== */

/* Visually hidden but readable by screen readers and search engines. */
.screen-reader-text:not(.skip-link) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Below-the-fold sections skip layout/paint until needed (faster first render). */
.about-strip,
.nb-faq,
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* FAQ */
.nb-faq { padding-block: 32px; }
.nb-faq .sec-title { margin-block-end: 18px; }
.nb-faq__list { display: grid; gap: 12px; max-width: 60rem; }
.nb-faq__item {
  background: #fff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.nb-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nb-faq__q::-webkit-details-marker { display: none; }
.nb-faq__q::after { content: "+"; font-weight: 700; color: var(--gold-dark); flex: none; }
.nb-faq__item[open] .nb-faq__q::after { content: "–"; }
.nb-faq__q h3 { font-size: 1.05rem; line-height: 1.9; margin: 0; }
.nb-faq__a { padding: 0 20px 16px; color: var(--text-soft); }
.nb-faq__q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* Quick facts & citation */
.nb-cite {
  margin-block: 28px;
  padding: 18px 22px;
  background: var(--cream-2);
  border: 1px solid var(--gold-border);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.nb-cite__title { font-size: 1.1rem; margin: 0 0 10px; }
.nb-cite__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 22px;
  margin: 0 0 12px;
}
.nb-cite__facts div { display: flex; gap: 8px; }
.nb-cite__facts dt { font-weight: 700; color: var(--text-soft); }
.nb-cite__facts dt::after { content: ":"; }
.nb-cite__facts dd { margin: 0; }
.nb-cite__ref { margin: 0; line-height: 2; overflow-wrap: anywhere; }
.nb-cite__ref cite { font-style: normal; }
.nb-cite__ref a { color: var(--gold-dark); font-size: 0.85rem; }
