/* ═══════════════════════════════════════════════════════════════
   CONTENT PAGES CSS — Professional Islamic Light Theme
   Ruqyah, Duas, Azkar, Wazaif | Crisp White Surfaces & Emerald/Gold
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page Hero (inner pages) — Professional, Compact & Islamic Theme ──── */
.page-hero {
  background: linear-gradient(180deg, #FDFBF7 0%, #F6EFE5 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow: 0 1px 4px rgba(11, 59, 44, 0.03);
  padding: 1.1rem 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
}
.page-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  direction: rtl;
  text-align: right;
  max-width: 820px;
}
.page-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.page-hero-title {
  font-family: var(--font-urdu, 'Noto Nastaliq Urdu', serif);
  font-size: 1.55rem;
  color: var(--green-deep, #0B3B2C);
  direction: rtl;
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}
.page-hero-sub {
  font-family: var(--font-urdu, 'Noto Nastaliq Urdu', serif);
  font-size: 0.86rem;
  color: var(--text-secondary, #52635B);
  direction: rtl;
  line-height: 1.55;
  margin: 0;
}
.page-breadcrumb {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-urdu, 'Noto Nastaliq Urdu', serif);
  font-size: 0.76rem;
  direction: rtl;
}
.page-breadcrumb a {
  color: var(--green-mid, #047857);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.page-breadcrumb a:hover {
  color: var(--gold-deep, #967527);
}
.crumb-sep {
  color: #9FAF9A;
  font-size: 0.82rem;
  user-select: none;
}
.crumb-current {
  color: var(--gold-deep, #967527);
  font-weight: 700;
}
.page-hero-geo {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .page-hero { padding: 0.85rem 0; }
  .page-hero-container { padding: 0 1rem; }
  .page-hero-title { font-size: 1.3rem; }
  .page-hero-sub { font-size: 0.8rem; }
  .page-hero-geo { display: none; }
}

/* ─── Content Categories Grid ────────────────────────────────── */
.content-cats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.content-cat-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  direction: rtl;
  transition: all 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.content-cat-card:hover {
  border-color: #D4AF37;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateX(-4px);
}
.content-cat-icon {
  width: 54px; height: 54px;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #047857;
  transition: all 0.2s ease;
}
.content-cat-card:hover .content-cat-icon {
  background: #047857;
  color: #FFFFFF;
  border-color: #047857;
  transform: scale(1.05);
}
.content-cat-icon svg,
.category-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.content-cat-icon svg {
  width: 26px;
  height: 26px;
}
.content-cat-info { flex: 1; }
.content-cat-name {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  direction: rtl;
  line-height: 1.8;
}
.content-cat-desc {
  font-family: var(--font-urdu);
  font-size: 0.82rem;
  color: #64748B;
  direction: rtl;
  margin-top: 3px;
  line-height: 1.8;
}
.content-cat-arrow {
  font-size: 1.2rem;
  color: #047857;
  flex-shrink: 0;
}

/* ─── Category Detail & Topic Detail Page Layout ─────────────── */
.content-page-layout,
.topic-detail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.2rem;
  max-width: 1300px;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1.5rem;
  direction: rtl;
  align-items: start;
}

@media (max-width: 991px) {
  .content-page-layout,
  .topic-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-main,
  .topic-detail-main {
    width: 100%;
  }
}

/* ─── Sidebar in Content Pages ───────────────────────────────── */
.content-sidebar {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 85px;
}
.sidebar-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar-box-title {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
  line-height: 1.8;
}
.sidebar-filter-link,
.sidebar-cat-link {
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #334155;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-filter-link:hover,
.sidebar-cat-link:hover {
  background: #F1F5F9;
  color: #047857;
}
.sidebar-filter-link.active,
.sidebar-cat-link.active {
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #047857;
  font-weight: 700;
}
.sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #047857;
  background: #ECFDF5;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid #A7F3D0;
  text-decoration: none;
  transition: all 0.15s;
  font-weight: 600;
}
.sidebar-back-link:hover {
  border-color: #047857;
  background: #D1FAE5;
}

/* ─── Topics Grid ────────────────────────────────────────────── */
.content-main { direction: rtl; min-width: 0; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.topic-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.4rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  direction: rtl;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: #D4AF37;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.topic-card-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.source-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-family: var(--font-urdu);
  font-size: 0.75rem;
  font-weight: 700;
}
.source-qurani  { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.source-masnoon { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.count-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-family: var(--font-urdu);
  font-size: 0.75rem;
  font-weight: 700;
}
.topic-card-title {
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  color: #0F172A;
  font-weight: 700;
  direction: rtl;
  margin: 0;
  line-height: 1.8;
}
.topic-card-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  direction: rtl;
  line-height: 2.1;
  background: #FAF8F5;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #FDE68A;
  margin: 0;
}
.topic-card-trans {
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #475569;
  direction: rtl;
  line-height: 2;
  margin: 0;
}
.topic-card-ref {
  font-family: var(--font-urdu);
  font-size: 0.78rem;
  color: #B45309;
  direction: rtl;
  margin-top: auto;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.4rem;
  font-weight: 600;
}
.topic-card-arrow {
  font-family: var(--font-urdu);
  font-size: 0.85rem;
  color: #047857;
  font-weight: 700;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Topic Detail View ──────────────────────────────────────── */
.topic-detail-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.2rem;
  direction: rtl;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.topic-arabic-block {
  background: #FAF8F5;
  border: 1.5px solid #D4AF37;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.08);
}
.topic-arabic-text {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 2.2;
  letter-spacing: 0.02em;
}
.topic-count-badge {
  display: inline-block;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0.8rem;
}
.topic-section-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.3rem 1.6rem;
  margin: 1.2rem 0;
}
.topic-section-title {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.4rem;
  line-height: 1.8;
}
.topic-section-body {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  color: #334155;
  line-height: 2.3;
}
.topic-rich-content {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  color: #334155;
  line-height: 2.4;
  margin-top: 1.5rem;
}
.topic-rich-content h2,
.topic-rich-content h3 {
  font-family: var(--font-urdu);
  color: #047857;
  margin: 1.5rem 0 0.8rem;
}
.topic-rich-content blockquote {
  background: #F8FAFC;
  border-right: 4px solid #D4AF37;
  padding: 1rem 1.5rem;
  margin: 1.2rem 0;
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: #0F172A;
}

/* ─── Empty States ───────────────────────────────────────────── */
.empty-state,
.content-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
}
.empty-icon,
.content-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3,
.content-empty h3 {
  font-family: var(--font-urdu);
  font-size: 1.3rem;
  color: #0F172A;
  margin-bottom: 0.5rem;
}
.empty-state p,
.content-empty p {
  font-family: var(--font-urdu);
  font-size: 0.9rem;
  color: #64748B;
}

/* ─── Topic Detail Typography & Elements ──────────────────────── */
.topic-detail-title {
  font-family: var(--font-urdu);
  font-size: 2.1rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.8;
  margin: 0 0 0.6rem;
}
.topic-detail-title-ar {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: #B45309;
  margin-bottom: 1.2rem;
}
.topic-translation-block,
.topic-instructions-block {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  margin: 1.2rem 0;
}
.topic-trans-label {
  font-family: var(--font-urdu);
  font-size: 0.92rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.35rem;
}
.topic-trans-text {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  color: #334155;
  line-height: 2.3;
}
.topic-reference-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  margin: 1.5rem 0;
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #334155;
}
.topic-ref-icon { font-size: 1.1rem; }
.topic-ref-ar { color: #B45309; font-family: 'Amiri', serif; }
.topic-ref-ur { color: #334155; }
.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-urdu);
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 1.2rem;
}
.topic-breadcrumb a {
  color: #047857;
  text-decoration: none;
  font-weight: 600;
}
.topic-breadcrumb a:hover {
  text-decoration: underline;
}
.topic-nav-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── Global Content Containers ───────────────────────────────── */
.rq-section {
  background-color: #F8FAFC;
  color: #0F172A;
  padding: 2.5rem 0 4rem;
}
.rq-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Article & Research Knowledge System UI Components ────────── */
.article-body-content {
  line-height: 2.2;
  font-size: 1.15rem;
  color: #1E293B;
  direction: rtl;
  text-align: right;
}

/* 1. Summary Callout Box (Green) */
.article-callout-summary {
  background: #F0FDF4;
  border-right: 4px solid #059669;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
  font-size: 1.1rem;
  color: #065F46;
  font-weight: 600;
  line-height: 2;
}

/* 2. Quranic Ayah Card (Gold/Amber) */
.article-ayah-card {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  text-align: center;
  margin: 1.75rem 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.05);
}
.article-ayah-card .ayah-arabic {
  font-family: var(--font-arabic-heading, 'Amiri', serif);
  font-size: 1.45rem;
  color: #92400E;
  margin: 0 0 0.6rem;
  line-height: 2.1;
  direction: rtl;
}
.article-ayah-card .ayah-translation {
  font-size: 1.05rem;
  color: #78350F;
  margin: 0 0 0.35rem;
  line-height: 1.9;
}
.article-ayah-card .ayah-reference {
  font-size: 0.86rem;
  font-weight: 700;
  color: #B45309;
  margin: 0;
}

/* 3. Masnoon Hadith & Dua Card (Mint/Emerald) */
.article-dua-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-right: 4px solid #059669;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 1.25rem 0;
  transition: all 0.2s ease;
}
.article-dua-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}
.article-dua-card .dua-arabic {
  font-family: var(--font-arabic-heading, 'Amiri', serif);
  font-size: 1.35rem;
  color: #065F46;
  margin: 0 0 0.5rem;
  line-height: 2;
  direction: rtl;
}
.article-dua-card .dua-translation {
  font-size: 1.02rem;
  color: #334155;
  margin: 0 0 0.35rem;
  line-height: 1.9;
}
.article-dua-card .dua-notes {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0;
  font-weight: 600;
}

/* 4. Evidence & Signs Card (Blue) */
.article-info-card {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.article-info-card h3, .article-info-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E40AF;
  margin: 0 0 0.75rem;
}

/* 5. General Gray Facts Card */
.article-gray-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.article-gray-card h3, .article-gray-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 0.75rem;
}

/* 6. Step-by-Step Practical Protocol Card (White + Emerald header) */
.article-step-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.article-step-card .step-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

/* 7. Warning & Advice Card (Gold/Amber) */
.article-warning-card {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  color: #78350F;
}
.article-warning-card h3, .article-warning-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400E;
  margin: 0 0 0.75rem;
}

/* 8. Closing Prayer Box (Emerald) */
.article-closing-dua {
  margin-top: 2.25rem;
  padding: 1.35rem;
  background: #F0FDF4;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #BBF7D0;
}
.article-closing-dua .closing-arabic {
  font-family: var(--font-arabic-heading, 'Amiri', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #065F46;
  margin: 0;
  line-height: 1.9;
}
.article-closing-dua .closing-sub {
  font-size: 0.95rem;
  color: #047857;
  margin: 0.5rem 0 0;
}

/* Headings */
.article-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
  margin: 2.5rem 0 1rem;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 0.5rem;
}
.article-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  margin: 1.75rem 0 0.75rem;
}

/* Lists */
.article-list-diamond {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.article-list-diamond li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 2;
}
.article-list-diamond li::before {
  content: '◈';
  position: absolute;
  right: 0;
  color: var(--gold-main, #C9A84C);
  font-size: 0.85rem;
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE FIRST RESPONSIVE ADJUSTMENTS (< 768px and < 480px)
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .content-page-layout,
  .topic-detail-layout {
    padding: 0 0.85rem;
    margin: 0.85rem auto 2rem;
    gap: 1.5rem;
  }
  .content-cat-card {
    padding: 1rem;
    gap: 0.85rem;
  }
  .content-cat-icon {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  .topic-card {
    padding: 1.15rem;
  }
  .topic-card-arabic {
    font-size: 1.15rem;
    padding: 0.5rem 0.75rem;
  }
}


