/* ═══════════════════════════════════════════════════════════════
   HOME PAGE & PUBLIC RUQYAH THEME — Professional Islamic Light Theme
   Clean Aesthetic | Crisp White Surfaces | Deep Emerald & Gold Accents
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Section ───────────────────────────────────────────── */
.rq-hero {
  min-height: 500px;
  background:
    linear-gradient(
      135deg,
      rgba(253, 251, 247, 0.94) 0%,
      rgba(246, 239, 229, 0.88) 50%,
      rgba(253, 251, 247, 0.95) 100%
    ),
    url('/static/assets/images/hero-islamic.jpg') center center / cover no-repeat;
  background-color: #FDFBF7;
  padding: 2.2rem 1.5rem 3.2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 168, 76, 0.32);
  direction: rtl;
}

/* Subtle geometric Islamic pattern overlay */
.rq-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.4' opacity='0.12'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: 1;
}

/* ─── Sacred Ayah Banner (Exact Mathematical Center — Symmetrical & Luminous) ─── */
.rq-hero-ayah-wrap {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  margin: 0 auto 1.3rem;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.rq-hero-bismillah {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #967527;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.9), 0 0 14px rgba(201, 168, 76, 0.45);
}

.rq-hero-ayah-main-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 0.45rem;
}

.rq-ayah-main {
  font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #063828;
  line-height: 1.6;
  letter-spacing: 0.02em;
  display: inline-block;
  text-align: center;
  /* Multi-layered crisp outline + golden luminous glow */
  -webkit-text-stroke: 0.5px rgba(201, 168, 76, 0.6);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 2px 4px rgba(6, 56, 40, 0.22),
    0 0 14px rgba(201, 168, 76, 0.50),
    0 0 28px rgba(201, 168, 76, 0.32),
    0 0 45px rgba(201, 168, 76, 0.16);
}

.rq-hero-ayah-ref-wrap {
  width: 100%;
  text-align: center;
}

.rq-ayah-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3px 14px;
  background: rgba(253, 251, 247, 0.94);
  color: #0B3B2C;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 20px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.22), 0 2px 5px rgba(11, 59, 44, 0.05);
}

.rq-ref-gem {
  color: #C9A84C;
  font-size: 0.72rem;
}

/* ─── Hero Advanced Search Bar (Centered Directly Underneath Ayah) ─── */
.rq-hero-search-wrap {
  position: relative;
  z-index: 100;
  max-width: 820px;
  width: 100%;
  margin: 0 auto 2.2rem;
  direction: rtl;
}

.rq-hero-search-bar-wrap {
  position: relative;
  width: 100%;
}

.rq-hero-search-form {
  width: 100%;
}

.rq-hero-search-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.8px solid rgba(201, 168, 76, 0.45);
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(11, 59, 44, 0.08), 0 2px 8px rgba(201, 168, 76, 0.12);
  transition: all 0.25s ease;
}

.rq-hero-search-bar:focus-within {
  border-color: #059669;
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.14), 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.rq-hero-scope-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.rq-hero-scope-select {
  appearance: none;
  -webkit-appearance: none;
  background: #F4EFE6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B3B2C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center;
  color: #0B3B2C;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 40px;
  padding: 0.65rem 1.1rem 0.65rem 2.2rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

html[dir="ltr"] .rq-hero-scope-select {
  background-position: right 14px center;
  padding: 0.65rem 2.2rem 0.65rem 1.1rem;
}

.rq-hero-scope-select:hover {
  background-color: #ECE5D8;
  border-color: #C9A84C;
}

.rq-hero-search-input-wrap {
  flex: 1;
  min-width: 0;
  padding: 0 0.75rem;
}

.rq-hero-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
  font-size: 0.95rem;
  color: #0F172A;
  outline: none;
  padding: 0.4rem 0.2rem;
}

.rq-hero-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.88rem;
}

.rq-hero-search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0B3B2C;
  color: #FFFFFF;
  border: 1px solid #0B3B2C;
  border-radius: 40px;
  padding: 0.68rem 1.55rem;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(11, 59, 44, 0.2);
}

.rq-hero-search-submit-btn:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

/* Quick search suggestion tags below search bar */
.rq-hero-search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: 0.85rem;
}

.rq-search-tags-label {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 700;
}

.rq-search-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rq-search-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 20px;
  padding: 3px 11px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0B3B2C;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(11, 59, 44, 0.04);
}

.rq-search-tag-chip span {
  color: #C9A84C;
  font-size: 0.65rem;
}

.rq-search-tag-chip:hover {
  background: #0B3B2C;
  color: #FFFFFF;
  border-color: #0B3B2C;
  transform: translateY(-1px);
}

.rq-search-tag-chip:hover span {
  color: #FBBF24;
}

/* ─── Hero Content Grid (Text + Assessment Card) ─────────────── */
.rq-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  direction: rtl;
}

.rq-hero-text {
  text-align: right;
}

.rq-hero-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #0B3B2C;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.rq-hero-accent {
  color: #047857;
  position: relative;
}

.rq-hero-sub {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.95rem;
  color: #4A5D54;
  line-height: 1.95;
  margin-bottom: 1.5rem;
}

.rq-hero-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.rq-hero-pill-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: #0B3B2C;
  padding: 4px 13px;
  border-radius: 20px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(11, 59, 44, 0.03);
}

.rq-pill-gold-dot {
  color: #C9A84C;
  font-size: 0.68rem;
}

.rq-hero-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.rq-btn-primary {
  padding: 0.75rem 1.6rem;
  background: #0B3B2C;
  color: #FFFFFF !important;
  border: 1px solid #0B3B2C;
  border-radius: 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(11, 59, 44, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rq-btn-primary:hover {
  background: #06281E;
  border-color: #06281E;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 59, 44, 0.28);
}

.rq-btn-outline {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0B3B2C !important;
  border: 1.5px solid rgba(11, 59, 44, 0.35);
  border-radius: 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rq-btn-outline:hover {
  border-color: #0B3B2C;
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11, 59, 44, 0.1);
}

.rq-btn-whatsapp {
  padding: 0.75rem 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  color: #047857 !important;
  border: 1.5px solid #10B981;
  border-radius: 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rq-btn-whatsapp:hover {
  background: #10B981;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

/* ─── Hero Quick Assessment Box ──────────────────────────────── */
.rq-hero-assess-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 20px rgba(11, 59, 44, 0.07), 0 1px 3px rgba(0,0,0,0.03);
  direction: rtl;
}

.rq-assess-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding-bottom: 0.5rem;
}

.rq-assess-badge {
  background: rgba(201, 168, 76, 0.12);
  color: #967527;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 20px;
  padding: 2px 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.74rem;
  font-weight: 700;
}
.rq-assess-badge-sub {
  color: #C9A84C;
  font-size: 0.9rem;
}

.rq-assess-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0B3B2C;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}

.rq-assess-list {
  list-style: none;
  margin: 0 0 1.15rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rq-assess-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.84rem;
  color: #4A5D54;
  line-height: 1.7;
}

.rq-assess-dot {
  color: #C9A84C;
  font-size: 1rem;
  line-height: 1;
}

.rq-assess-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #0B3B2C 0%, #165641 100%);
  color: #FFFFFF !important;
  border-radius: 10px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(11, 59, 44, 0.2);
}
.rq-assess-btn:hover {
  background: linear-gradient(135deg, #06281E 0%, #0B3B2C 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 59, 44, 0.3);
}

/* ─── English / LTR Mode Adaptations for Hero ────────────────── */
html[dir="ltr"] .rq-hero {
  direction: ltr !important;
}
html[dir="ltr"] .rq-hero-grid {
  direction: ltr !important;
  grid-template-columns: 1.25fr 0.9fr;
}
html[dir="ltr"] .rq-hero-text {
  order: 1;
  text-align: left !important;
  direction: ltr !important;
}
html[dir="ltr"] .rq-hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.15rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
}
html[dir="ltr"] .rq-hero-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  text-align: left;
}
html[dir="ltr"] .rq-hero-pill-item,
html[dir="ltr"] .rq-btn-primary,
html[dir="ltr"] .rq-btn-outline,
html[dir="ltr"] .rq-btn-whatsapp,
html[dir="ltr"] .rq-assess-badge,
html[dir="ltr"] .rq-assess-title,
html[dir="ltr"] .rq-assess-item,
html[dir="ltr"] .rq-assess-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html[dir="ltr"] .rq-hero-assess-card {
  order: 2;
  direction: ltr !important;
  text-align: left !important;
}
html[dir="ltr"] .rq-assess-header {
  flex-direction: row;
}
html[dir="ltr"] .rq-assess-title {
  direction: ltr !important;
  text-align: left !important;
  line-height: 1.35;
  unicode-bidi: isolate;
}
html[dir="ltr"] .rq-assess-item {
  flex-direction: row;
  text-align: left;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   MAIN TWO-COLUMN LAYOUT: Content Stream + Right Sidebar
   ═══════════════════════════════════════════════════════════════ */
.rq-main-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  direction: rtl;
  align-items: start;
}

.rq-content-stream {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rq-right-sidebar {
  position: sticky;
  top: 85px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── Sidebar Widgets ────────────────────────────────────────── */
.rq-side-widget {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  direction: rtl;
}

.rq-side-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.5rem;
}

.rq-side-widget-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 2;
  margin: 0;
}

.rq-widget-icon {
  font-size: 1.1rem;
}

.rq-side-widget-more {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.75rem;
  color: #B45309;
  text-decoration: none;
  font-weight: 700;
}
.rq-side-widget-more:hover {
  text-decoration: underline;
}

.rq-side-widget-p {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 2;
  margin: 0 0 0.8rem;
}

/* Search widget */
.rq-side-search-form {
  display: flex;
  gap: 0.4rem;
}
.rq-side-search-input {
  flex: 1;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  color: #0F172A;
  padding: 0.55rem 0.85rem;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s;
}
.rq-side-search-input:focus {
  border-color: #047857;
  background: #FFFFFF;
}
.rq-side-search-btn {
  background: #047857;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 0.95rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.rq-side-search-btn:hover {
  background: #065F46;
}

/* Patient CTA widget */
.rq-side-cta-widget {
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #D4AF37;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.1);
}
.rq-side-cta-badge {
  display: inline-block;
  background: rgba(180, 83, 9, 0.12);
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-family: 'Noto Nastaliq Urdu', serif;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.rq-side-cta-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.9;
  margin: 0 0 0.5rem;
}
.rq-side-cta-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #475569;
  line-height: 2;
  margin: 0 0 0.85rem;
}
.rq-side-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #B45309;
  color: #FFFFFF !important;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}
.rq-side-cta-btn:hover {
  background: #92400E;
}

/* Category List inside Sidebar */
.rq-side-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rq-side-cat-item {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.55rem;
}
.rq-side-cat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rq-side-cat-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1E293B;
  transition: all 0.18s;
  font-family: 'Noto Nastaliq Urdu', serif;
}
.rq-side-cat-link:hover {
  background: #F1F5F9;
  color: #047857;
  transform: translateX(-3px);
}

.rq-side-cat-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.rq-side-cat-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.8;
}

.rq-side-cat-count {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.rq-side-cat-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.rq-side-cat-accordion-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 0.4rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}
.rq-side-cat-accordion-btn:hover {
  background: #F1F5F9;
  color: #047857;
}
.rq-acc-chevron {
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ─── Category Submenu Indicator Chevron ────────────────── */
.rq-cat-indicator-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  margin-inline-start: 2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.rq-submenu-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.rq-side-cat-item.has-flyout:hover .rq-cat-indicator-wrap,
.rq-side-cat-item.has-flyout.flyout-active .rq-cat-indicator-wrap {
  color: #047857;
  transform: translateX(-3px);
}

[dir="ltr"] .rq-side-cat-item.has-flyout:hover .rq-cat-indicator-wrap,
[dir="ltr"] .rq-side-cat-item.has-flyout.flyout-active .rq-cat-indicator-wrap {
  transform: translateX(3px);
}

.rq-side-cat-item.accordion-open .rq-cat-indicator-wrap {
  transform: rotate(-90deg);
  color: #047857;
}

/* ─── Desktop Hover Flyout Submenu ──────────────────────── */
.rq-side-cat-item {
  position: relative;
}

.rq-side-cat-flyout {
  position: absolute;
  top: -4px;
  right: calc(100% + 2px);
  width: 320px;
  max-height: 480px;
  overflow-y: auto;
  background: #ffffff !important;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.24), 0 6px 16px -3px rgba(15, 23, 42, 0.1);
  padding: 1rem;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
}

/* Hover bridge: spans 30px gap to ensure mouse never drops hover between row and flyout */
.rq-side-cat-flyout::before {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -15px;
  right: -25px;
  width: 30px;
  display: block;
}

/* On desktop, since sidebar is on the right, flyout always emerges to the left (towards content) */
[dir="ltr"] .rq-side-cat-flyout {
  right: calc(100% + 2px);
  left: auto;
  direction: ltr;
  text-align: left;
  transform: translateX(6px);
}
[dir="ltr"] .rq-side-cat-flyout::before {
  right: -25px;
  left: auto;
}

.rq-side-cat-item.has-flyout:hover .rq-side-cat-flyout,
.rq-side-cat-item.has-flyout.flyout-active .rq-side-cat-flyout {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

@media (min-width: 992px) {
  .rq-side-cat-accordion-btn {
    display: none;
  }
}

.rq-flyout-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #F1F5F9;
}

.rq-flyout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.rq-flyout-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rq-flyout-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.rq-flyout-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
}

.rq-flyout-subtopic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rq-flyout-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  transition: all 0.16s ease;
}

.rq-flyout-link:hover {
  background: #F0FDF4;
  color: #047857;
  transform: translateX(-3px);
}

[dir="ltr"] .rq-flyout-link:hover {
  transform: translateX(3px);
}

.rq-flyout-bullet {
  font-size: 0.65rem;
  color: #059669;
  flex-shrink: 0;
}

.rq-flyout-link-title {
  flex: 1;
  line-height: 1.6;
}

.rq-flyout-arrow {
  font-size: 0.75rem;
  color: #94A3B8;
  transition: color 0.16s;
}

.rq-flyout-link:hover .rq-flyout-arrow {
  color: #047857;
}

.rq-flyout-footer {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #E2E8F0;
  text-align: center;
}

.rq-flyout-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
  font-family: 'Noto Nastaliq Urdu', serif;
  transition: color 0.16s;
}

.rq-flyout-more-link:hover {
  color: #065F46;
}

/* ─── Mobile Accordion Adaptation (< 992px) ───────────────── */
@media (max-width: 991px) {
  .rq-side-cat-accordion-btn {
    display: flex;
  }

  .rq-side-cat-flyout {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
    transform: none !important;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
  }
  
  .rq-side-cat-item.accordion-open .rq-side-cat-flyout {
    max-height: 650px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.65rem 0.5rem 0.5rem 0.5rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 0.35rem;
  }
  
  .rq-side-cat-item.accordion-open .rq-acc-chevron {
    transform: rotate(90deg);
  }
}

.rq-side-empty {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  color: #94A3B8;
  text-align: center;
  padding: 0.8rem 0;
}

/* Quran Quick Widget */
.rq-side-quran-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.rq-side-quran-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #047857;
  color: #FFFFFF !important;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.2);
}
.rq-side-quran-btn:hover {
  background: #065F46;
}
.rq-side-quran-btn-alt {
  background: #FFFFFF;
  color: #047857 !important;
  border: 1.5px solid #047857;
  box-shadow: none;
}
.rq-side-quran-btn-alt:hover {
  background: #ECFDF5;
}

/* Contact Widget */
.rq-side-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10B981;
  color: #FFFFFF !important;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.rq-side-whatsapp-btn:hover {
  background: #059669;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT STREAM SECTIONS (Crisp White Surfaces on Light Body)
   ═══════════════════════════════════════════════════════════════ */
.rq-stream-card {
  background: #FFFFFF;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 1.25rem 1.6rem;
  box-shadow: 0 1px 6px rgba(11, 59, 44, 0.03);
  direction: rtl;
}

.rq-section-hd {
  text-align: right;
  margin-bottom: 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  position: relative;
  direction: rtl;
}
.rq-section-hd::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 44px;
  height: 2px;
  background: #C9A84C;
  border-radius: 2px;
}

.rq-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: rgba(11, 59, 44, 0.07);
  color: #0B3B2C;
  border: 1px solid rgba(11, 59, 44, 0.16);
  border-radius: 6px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.rq-pill-gold {
  background: rgba(201, 168, 76, 0.1);
  color: #967527;
  border-color: rgba(201, 168, 76, 0.28);
}

.rq-section-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B3B2C;
  margin: 0;
  line-height: 1.45;
}

.rq-section-sub {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.84rem;
  color: #556B61;
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ─── DYNAMIC HOME CONTENT CARDS & SECTIONS ────────────────── */
.rq-home-section-card {
  margin-bottom: 0.5rem;
}

.rq-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  background: rgba(11, 59, 44, 0.05);
  color: #0B3B2C !important;
  border: 1px solid rgba(11, 59, 44, 0.2);
  border-radius: 8px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.rq-view-all-btn:hover {
  background: #0B3B2C;
  color: #FFFFFF !important;
  border-color: #0B3B2C;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11, 59, 44, 0.15);
}

.rq-view-all-arrow {
  font-size: 0.88rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.rq-view-all-btn:hover .rq-view-all-arrow {
  transform: translateX(-3px);
}

.rq-dynamic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  direction: rtl;
}

.rq-content-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(11, 59, 44, 0.03);
  position: relative;
  overflow: hidden;
}
.rq-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0B3B2C, #C9A84C);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rq-content-card:hover {
  border-color: #C9A84C;
  background: #FCFDFD;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 59, 44, 0.08);
}
.rq-content-card:hover::before {
  opacity: 1;
}

.rq-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.rq-card-type-tag {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0B3B2C;
  background: rgba(11, 59, 44, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(11, 59, 44, 0.12);
}

.rq-card-count-badge {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #FDE68A;
}

.rq-card-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.65;
  margin: 0;
  transition: color 0.2s;
}
.rq-content-card:hover .rq-card-title {
  color: #0B3B2C;
}

.rq-card-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.rq-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(201, 168, 76, 0.2);
  margin-top: auto;
}

.rq-card-action-text {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #047857;
}

.rq-card-arrow {
  font-size: 0.85rem;
  color: #047857;
  transition: transform 0.2s;
}
.rq-content-card:hover .rq-card-arrow {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .rq-dynamic-cards-grid,
  .rq-home-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .rq-dynamic-cards-grid,
  .rq-home-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Premium Dynamic Content Cards on Home Page ─────────────────── */
.rq-home-article-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 3px solid #059669;
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: relative;
}
.rq-home-article-card:hover {
  border-color: #CBD5E1;
  border-top-color: #047857;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.1) !important;
  transform: translateY(-4px);
}
.rq-home-card-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.rq-home-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.55;
  margin: 0 0 0.65rem;
  font-family: var(--font-urdu-heading, 'Noto Sans Arabic', sans-serif);
}
.rq-home-card-title a {
  color: #0F172A;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.rq-home-article-card:hover .rq-home-card-title a {
  color: #059669;
}
.rq-home-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  font-family: var(--font-urdu-text, sans-serif);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rq-home-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 0.5rem;
}
.rq-home-card-meta {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}
.rq-home-card-read-more {
  font-size: 0.86rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap 0.2s ease;
}
.rq-home-card-read-more .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.rq-home-article-card:hover .rq-home-card-read-more .arrow {
  transform: translateX(-4px);
}

/* ─── Conditions Grid (Legacy Fallback) ───────────────────────── */
.rq-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  direction: rtl;
}

.rq-condition-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: all 0.22s;
}
.rq-condition-card:hover {
  border-color: #D4AF37;
  background: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.rq-cond-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rq-cond-name {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.8;
}

.rq-cond-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.9;
}

/* ─── 4-Step Process ─────────────────────────────────────────── */
.rq-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  direction: rtl;
}

.rq-step {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  transition: all 0.2s;
}
.rq-step:hover {
  border-color: #D4AF37;
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.rq-step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #FFFBEB;
  color: #B45309;
  border: 1.5px solid #FDE68A;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.rq-step-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  color: #0F172A;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.8;
}

.rq-step-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.9;
}

/* ─── Healing Ayahs ──────────────────────────────────────────── */
.rq-ayah-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  direction: rtl;
}

.rq-ayah-cards .rq-ayah-card {
  background: #FAF8F5;
  border: 1.5px solid #E2E8F0;
  border-top: 3.5px solid #D4AF37;
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rq-ayah-cards .rq-ayah-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 2.2;
  margin-bottom: 0.75rem;
}

.rq-ayah-cards .rq-ayah-ref {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  color: #047857;
  border-top: 1px solid #E2E8F0;
  padding-top: 0.5rem;
  font-weight: 600;
}

/* ─── Tools & Quick Access ───────────────────────────────────── */
.rq-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  direction: rtl;
}

.rq-tool {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  direction: rtl;
  transition: all 0.2s;
}
.rq-tool:hover {
  border-color: #047857;
  background: #FFFFFF;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.rq-tool-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.rq-tool-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.8;
}

.rq-tool-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.8;
}

.rq-tool-arrow {
  margin-right: auto;
  font-size: 1.2rem;
  color: #047857;
  flex-shrink: 0;
}

/* ─── Patient Portal Banner ──────────────────────────────────── */
.rq-portal-banner {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  border: 1.5px solid #059669;
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  direction: rtl;
  box-shadow: 0 6px 24px rgba(6, 78, 59, 0.25);
  color: #FFFFFF;
}

.rq-portal-content {
  flex: 1;
}

.rq-portal-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #FEF3C7;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.rq-portal-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.6rem;
  line-height: 1.8;
}

.rq-portal-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 2.1;
  margin-bottom: 0;
}

.rq-portal-btn-wrap {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE & MOBILE FIRST DESIGN
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .rq-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rq-main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rq-content-stream {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .rq-hero {
    padding: 1.8rem 1rem 2.5rem;
  }
  .rq-hero-ayah-wrap {
    margin-bottom: 1.5rem;
  }
  .rq-hero-bismillah {
    font-size: 1.05rem;
  }
  .rq-ayah-main {
    font-size: 1.65rem;
    line-height: 1.6;
  }
  .rq-ayah-ref {
    font-size: 0.74rem;
    padding: 2px 10px;
  }
  .rq-hero-search-wrap {
    margin-bottom: 1.8rem;
  }
  .rq-hero-search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.65rem;
    gap: 0.55rem;
  }
  .rq-hero-scope-select-wrap,
  .rq-hero-scope-select,
  .rq-hero-search-input-wrap,
  .rq-hero-search-submit-btn {
    width: 100%;
  }
  .rq-hero-scope-select {
    text-align: center;
    border-radius: 12px;
  }
  .rq-hero-search-input {
    text-align: center;
    padding: 0.5rem 0.3rem;
  }
  .rq-hero-search-submit-btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .rq-hero-search-tags {
    justify-content: center;
  }
  .rq-hero-title {
    font-size: 1.85rem;
  }
  .rq-conditions {
    grid-template-columns: repeat(2, 1fr);
  }
  .rq-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .rq-ayah-cards {
    grid-template-columns: 1fr;
  }
  .rq-tools {
    grid-template-columns: 1fr;
  }
  .rq-portal-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem 1.25rem;
  }
  .rq-portal-btn-wrap {
    width: 100%;
  }
  .rq-portal-btn-wrap .rq-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .rq-hero-title {
    font-size: 1.6rem;
  }
  .rq-hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .rq-btn-primary, .rq-btn-outline, .rq-btn-whatsapp {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .rq-conditions {
    grid-template-columns: 1fr;
  }
  .rq-steps {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO INSTANT LIVE SEARCH AUTO-SUGGEST DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
.rq-hero-live-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.8px solid #C9A84C;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(11, 59, 44, 0.22), 0 4px 18px rgba(201, 168, 76, 0.2);
  z-index: 1000;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  animation: rqDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rqDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rq-live-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.rq-live-item {
  display: block;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  transition: all 0.18s ease;
}

.rq-live-item:last-child {
  border-bottom: none;
}

.rq-live-item:hover,
.rq-live-item.is-selected {
  background: #FAF8F5;
  border-right: 3px solid #059669;
  padding-right: 1.4rem;
}

.rq-live-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.rq-live-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.rq-live-cat {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 600;
}

.rq-live-title {
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B3B2C;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.rq-live-snippet {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.7;
}

.rq-live-empty {
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: #64748B;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.rq-live-empty-dot {
  color: #C9A84C;
}

.rq-live-results-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  padding: 0.65rem 1.2rem;
  text-align: center;
}

.rq-live-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #0B3B2C;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rq-live-view-all:hover {
  color: #059669;
}

.rq-live-arrow {
  color: #C9A84C;
  transition: transform 0.2s ease;
}

.rq-live-view-all:hover .rq-live-arrow {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE SELF-ASSESSMENT WIZARD MODAL
   ═══════════════════════════════════════════════════════════════ */
.rq-assess-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 59, 44, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: rqModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rqModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rq-assess-modal {
  background: #FAF8F5;
  border: 1.8px solid rgba(201, 168, 76, 0.55);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 35px rgba(201, 168, 76, 0.25);
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  animation: rqModalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rqModalScaleUp {
  from { transform: scale(0.96) translateY(10px); }
  to { transform: scale(1) translateY(0); }
}

/* Modal Header */
.rq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem 1rem;
  border-bottom: 1.5px solid rgba(201, 168, 76, 0.25);
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.rq-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rq-modal-gem {
  color: #C9A84C;
  font-size: 1.4rem;
}

.rq-modal-title {
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0B3B2C;
  margin: 0 0 0.2rem;
  line-height: 1.4;
}

.rq-modal-sub {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

.rq-modal-close {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rq-modal-close:hover {
  background: #0B3B2C;
  color: #FFFFFF;
  border-color: #0B3B2C;
}

/* Stepper Indicators */
.rq-modal-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem;
  background: #F4EFE6;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.rq-step-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94A3B8;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.rq-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.rq-step-item.active {
  color: #0B3B2C;
}

.rq-step-item.active .rq-step-num {
  background: #0B3B2C;
  color: #FFFFFF;
}

.rq-step-item.completed {
  color: #059669;
}

.rq-step-item.completed .rq-step-num {
  background: #059669;
}

.rq-step-sep {
  color: rgba(201, 168, 76, 0.4);
  font-size: 0.75rem;
}

/* Step Panes */
.rq-step-pane {
  padding: 1.5rem 1.8rem 1.8rem;
}

.rq-pane-intro {
  margin-bottom: 1.1rem;
}

.rq-pane-intro p {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.9;
  margin: 0;
  font-weight: 600;
}

/* Symptom Checkbox Cards */
.rq-symptom-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.rq-symptom-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rq-symptom-label:hover {
  border-color: #C9A84C;
  background: #FDFAF4;
}

.rq-symptom-check {
  display: none;
}

.rq-symptom-custom-box {
  width: 22px;
  height: 22px;
  border: 2px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.rq-symptom-check:checked + .rq-symptom-custom-box {
  background: #0B3B2C;
  border-color: #0B3B2C;
}

.rq-symptom-check:checked + .rq-symptom-custom-box::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 900;
}

.rq-symptom-label:has(.rq-symptom-check:checked) {
  border-color: #059669;
  background: #ECFDF5;
}

.rq-symptom-text {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.9rem;
  color: #1E293B;
  line-height: 1.95;
  font-weight: 600;
}

/* Modal Actions */
.rq-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.rq-actions-split {
  justify-content: space-between;
}

.rq-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.8rem;
  background: #0B3B2C;
  color: #FFFFFF;
  border: 1px solid #0B3B2C;
  border-radius: 30px;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(11, 59, 44, 0.2);
}

.rq-modal-btn-primary:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.rq-modal-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  background: #FFFFFF;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  border-radius: 30px;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rq-modal-btn-back:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

/* Step 3: Diagnosis Result Card */
.rq-diagnosis-result-card {
  background: #FFFFFF;
  border: 1.8px solid rgba(201, 168, 76, 0.45);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(11, 59, 44, 0.06);
}

.rq-diag-badge-wrap {
  margin-bottom: 0.7rem;
}

.rq-diag-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 16px;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.diag-sev-high { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.diag-sev-med  { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.diag-sev-low  { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }

.rq-diag-title {
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0B3B2C;
  margin: 0 0 0.5rem;
}

.rq-diag-desc {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  color: #334155;
  line-height: 2.1;
  margin: 0 0 1.2rem;
}

.rq-diag-prescription-box {
  background: #FAF8F5;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-right: 3px solid #C9A84C;
  border-radius: 6px 12px 12px 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
}

.rq-presc-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #0B3B2C;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.rq-presc-gem {
  color: #C9A84C;
}

.rq-presc-body {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.88rem;
  color: #047857;
  line-height: 2.0;
  margin: 0;
  font-weight: 600;
}

.rq-diag-symptoms-summary {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.rq-symp-sum-title {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 0.4rem;
}

.rq-symp-sum-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rq-symp-sum-list li {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.8;
}

/* Action Buttons */
.rq-diag-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rq-btn-whatsapp-diag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #10B981;
  color: #FFFFFF !important;
  border-radius: 30px;
  padding: 0.85rem 1.4rem;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.rq-btn-whatsapp-diag:hover {
  background: #059669;
  transform: translateY(-1px);
}

.rq-wa-symbol {
  font-size: 1.1rem;
}

.rq-btn-portal-diag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0B3B2C;
  color: #FFFFFF !important;
  border-radius: 30px;
  padding: 0.8rem 1.4rem;
  font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.rq-btn-portal-diag:hover {
  background: #07271D;
}

.rq-btn-restart-diag {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #64748B;
  border-radius: 30px;
  padding: 0.65rem 1.2rem;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rq-btn-restart-diag:hover {
  background: #F1F5F9;
  color: #1E293B;
}

@media (max-width: 768px) {
  .rq-assess-modal {
    max-height: 94vh;
    border-radius: 18px;
  }
  .rq-modal-header {
    padding: 1.1rem 1.2rem 0.8rem;
  }
  .rq-modal-steps {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
  }
  .rq-step-pane {
    padding: 1.2rem 1.2rem 1.5rem;
  }
  .rq-modal-actions {
    flex-direction: column-reverse;
  }
  .rq-modal-btn-primary, .rq-modal-btn-back {
    width: 100%;
    min-height: 44px;
  }
}
