/*
Theme Name: Islamic Research Centre
Theme URI: http://way.local
Author: Islamic Research Centre
Description: A beautiful Islamic calligraphic research platform for Quran, Hadees, and Islamic History in Urdu and English.
Version: 1.0
Text Direction: rtl
Tags: islamic, urdu, arabic, calligraphy, research, rtl
*/

/* =======================================
   IMPORTS & FONTS
   ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'AlMushaf';
  src: url('assets/fonts/almushaf.woff') format('woff'),
       url('assets/fonts/almushaf.ttf')  format('truetype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}
@font-face {
  font-family: 'KFGQPCUthmanTahaNaskh-Bold';
  src: url('assets/fonts/uthmantahanaskh-bold.woff2') format('woff2'),
       url('assets/fonts/uthmantahanaskh-bold.woff')  format('woff');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}
@font-face {
  font-family: 'NooreHira';
  src: url('assets/fonts/noorehira.woff') format('woff'),
       url('assets/fonts/noorehira.ttf')  format('truetype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}

/* =======================================
   CSS VARIABLES
   ======================================= */
:root {
  --green-dark:    #0d4a2e;
  --green-mid:     #1a6b42;
  --green-light:   #2e8b57;
  --gold:          #c8a84b;
  --gold-light:    #e8c96a;
  --gold-pale:     #f5e6b0;
  --cream:         #fdf6e3;
  --cream-dark:    #f5ead4;
  --text-dark:     #1a1a2e;
  --text-mid:      #3d3d5c;
  --text-light:    #6b6b8a;
  --white:         #ffffff;
  --border:        rgba(200, 168, 75, 0.3);
  --shadow:        0 4px 24px rgba(13,74,46,0.12);
  --shadow-hover:  0 8px 40px rgba(13,74,46,0.22);
  --radius:        12px;
  /* Quran ayat — NooreHira renders Quranic Uthmani text correctly in Firefox
     too (KFGQPC's WOFF has incomplete shaping tables that Firefox can't parse). */
  --font-arabic:        'NooreHira', 'KFGQPCUthmanTahaNaskh-Bold', 'AlMushaf', serif;  /* Quran ayat */
  /* Hadith Arabic — KFGQPC works fine here because hadith text uses less Uthmani markup */
  --font-arabic-hadees: 'KFGQPCUthmanTahaNaskh-Bold', 'NooreHira', 'AlMushaf', serif;  /* Hadees text */
  --font-arabic-name: 'Noto Nastaliq Urdu', serif; /* Arabic names, titles, labels */
  --font-urdu:        'Noto Nastaliq Urdu', serif;
  --font-latin:    'Inter', sans-serif;
}

/* =======================================
   RESET & BASE
   ======================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-latin);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--green-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* =======================================
   GEOMETRIC PATTERN BACKGROUND
   ======================================= */
.geometric-bg {
  position: relative;
  overflow: hidden;
}
.geometric-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,168,75,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,74,46,0.08) 0%, transparent 50%),
    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' fill-rule='evenodd'%3E%3Cg fill='%23c8a84b' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* =======================================
   TOP BAR
   ======================================= */
.top-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.04em;
}
.top-bar span:first-child {
  /* Bismillah text uses Quranic Uthmani chars — KFGQPC handles them properly */
  font-family: var(--font-arabic-hadees);
  font-size: 0.95rem;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--white); }

/* =======================================
   HEADER
   ======================================= */
.site-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(200,168,75,0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-arabic {
  /* "مرکز تحقیقات اسلامیہ" is Urdu — uses Urdu chars (ہ ی ک), needs Nastaliq font */
  
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.5;
  direction: rtl;
}

.brand-english {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =======================================
   NAVIGATION
   ======================================= */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  background: rgba(200,168,75,0.2);
  color: var(--gold-light);
}

.nav-ask-btn {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
}
.nav-ask-btn:hover {
  background: var(--gold-light) !important;
  color: var(--green-dark) !important;
}

/* =======================================
   HERO BANNER
   ======================================= */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0a3d25 50%, #062918 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50Z' fill='none' stroke='%23c8a84b' stroke-width='0.3' opacity='0.15'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23c8a84b' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E") repeat;
  background-size: 80px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-bismillah {
  /* Bismillah text uses Quranic Uthmani chars (ٱ ٰ ۡ) — KFGQPC Uthman Taha Naskh handles these properly */
  font-family: var(--font-arabic-hadees);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-light);
  margin-bottom: 16px;
  line-height: 1.2;
  padding: 0.3em 0.2em 0.15em;
  direction: rtl;
  text-shadow: 0 2px 20px rgba(200,168,75,0.3);
  position: relative;
  overflow: visible;
  display: inline-block;
}

.hero-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

.hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
  position: relative;
}

.hero-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--gold-pale);
  direction: rtl;
  margin-bottom: 8px;
  position: relative;
}

.hero-search {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  position: relative;
}

.hero-search input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-latin);
  background: rgba(255,255,255,0.95);
  outline: none;
}

.hero-search button {
  padding: 14px 28px;
  background: var(--gold);
  border: none;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--gold-light); }

/* =======================================
   FEATURES STRIP
   ======================================= */
.features-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.features-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.feature-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* =======================================
   MAIN LAYOUT
   ======================================= */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.content-area { min-width: 0; }

/* =======================================
   SECTION HEADINGS
   ======================================= */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading::before,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-heading::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-heading h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =======================================
   ARTICLE CARDS
   ======================================= */
.articles-grid {
  display: grid;
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-category {
  font-family: var(--font-arabic-hadees);
  font-size: 1rem;
  color: var(--gold-light);
  direction: rtl;
}

.card-badge {
  background: rgba(200,168,75,0.2);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold-light);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body { padding: 20px; }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--green-mid); }

.card-arabic {
  font-family: var(--font-arabic-hadees);
  font-size: 1.05rem;
  color: var(--green-dark);
  direction: rtl;
  margin-bottom: 10px;
  line-height: 1.6;
  padding: 8px 12px;
  background: var(--cream);
  border-right: 3px solid var(--gold);
  border-radius: 4px;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-date { display: flex; align-items: center; gap: 5px; }

.read-more {
  background: var(--green-dark);
  color: var(--gold-light) !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.read-more:hover { background: var(--green-mid); color: var(--white) !important; }

/* =======================================
   SIDEBAR
   ======================================= */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.widget-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-icon { font-size: 1rem; }

.widget-body { padding: 16px; }

/* Ask the Bot widget */
.ask-bot-form { display: flex; flex-direction: column; gap: 10px; }

.ask-bot-form select,
.ask-bot-form input,
.ask-bot-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-latin);
  font-size: 0.85rem;
  background: var(--cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.ask-bot-form select:focus,
.ask-bot-form input:focus,
.ask-bot-form textarea:focus {
  border-color: var(--green-mid);
}

.ask-bot-form textarea { resize: vertical; min-height: 90px; }

.ask-bot-submit {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  transition: opacity 0.2s;
}
.ask-bot-submit:hover { opacity: 0.9; }

.lang-note {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* Quran Verse widget */
.quran-verse-box {
  text-align: center;
  padding: 8px 0;
}

.verse-arabic {
  font-family: var(--font-arabic-hadees);
  font-size: 1.4rem;
  color: var(--green-dark);
  direction: rtl;
  line-height: 2;
  margin-bottom: 10px;
}

.verse-translation {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.verse-ref {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Categories widget */
.categories-list { list-style: none; }

.categories-list li {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.categories-list li:last-child { border-bottom: none; }

.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: color 0.2s;
}
.categories-list a:hover { color: var(--green-mid); }

.categories-list .count {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* =======================================
   SINGLE POST / PAGE
   ======================================= */
.single-article {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 32px;
  color: var(--white);
  text-align: center;
}

.article-banner .bismillah {
  font-family: var(--font-arabic-hadees);
  font-size: 1.8rem;
  color: var(--gold-light);
  direction: rtl;
  margin-bottom: 12px;
  line-height: 2;
  padding: .3em .2em .15em;
  overflow: visible;
  display: inline-block;
}

.article-banner h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
}

.article-content { padding: 32px; }

.article-content p {
  margin-bottom: 1.4em;
  line-height: 1.9;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.article-content h2, .article-content h3 {
  color: var(--green-dark);
  margin: 1.5em 0 0.6em;
}

.article-content blockquote {
  background: var(--cream);
  border-right: 4px solid var(--gold);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-arabic-hadees);
  font-size: 1.1rem;
  direction: rtl;
  color: var(--green-dark);
  line-height: 1.8;
}

/* =======================================
   AHL AL-BAYT SALUTATION ARTICLE
   Scoped under .article-content so it inherits article padding.
   ======================================= */
.article-content .ahlbayt-article { direction: rtl; }

.article-content .ahlbayt-intro {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-dark);
  direction: rtl;
  text-align: justify;
  margin-bottom: 1.2em;
}
.article-content .ahlbayt-intro em {
  color: var(--green-dark);
  font-style: normal;
}
.article-content .ahlbayt-intro strong { color: var(--green-dark); }

.article-content .ahlbayt-stats {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  direction: rtl;
  font-family: var(--font-urdu);
}
.article-content .ahlbayt-stats h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 8px;
}
.article-content .ahlbayt-stats ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.article-content .ahlbayt-stats li { padding: 2px 0; }
.article-content .ahlbayt-stats .ahlbayt-stats-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--gold);
  color: var(--green-dark);
}

.article-content .ahlbayt-section-title {
  font-family: var(--font-urdu);
  color: var(--green-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin: 40px 0 14px;
  direction: rtl;
  font-size: 1.25rem;
}

.article-content .ahlbayt-section-meta {
  font-family: var(--font-urdu);
  direction: rtl;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 18px;
}
.article-content .ahlbayt-section-meta strong { color: var(--green-dark); }
.article-content .ahlbayt-section-meta-was { color: var(--text-light); font-size: 0.9rem; }

.article-content .ahlbayt-hadith {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--white);
  direction: rtl;
  box-shadow: var(--shadow);
}

.article-content .ahlbayt-hadith-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.article-content .ahlbayt-book-name {
  font-family: var(--font-urdu);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.95rem;
}
.article-content .ahlbayt-hadith-num {
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 3px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.article-content .ahlbayt-hadith-num a {
  color: var(--gold-light);
  text-decoration: none;
}
.article-content .ahlbayt-hadith-num a:hover { color: #fff; }

.article-content .ahlbayt-arabic {
  font-family: var(--font-arabic-hadees);
  font-size: 1.2rem;
  line-height: 2.1;
  color: var(--green-dark);
  margin-bottom: 12px;
  direction: rtl;
  text-align: justify;
}

.article-content .ahlbayt-urdu {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text-mid);
  direction: rtl;
  text-align: justify;
}

/* Highlight chips — used inline in both Arabic and Urdu blocks */
.article-content .ahlbayt-hl-correct {
  background: #fff3a8;
  color: var(--green-dark);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  /* Match the surrounding script for shaping */
}
.article-content .ahlbayt-arabic .ahlbayt-hl-correct {
  font-family: var(--font-arabic-hadees);
}
.article-content .ahlbayt-urdu .ahlbayt-hl-correct {
  font-family: var(--font-urdu);
}

.article-content .ahlbayt-hl-wrong {
  color: #a14545;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 700;
  font-family: var(--font-urdu);
}

.article-content .ahlbayt-legend {
  background: var(--cream);
  border-right: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 30px;
  direction: rtl;
  font-family: var(--font-urdu);
  line-height: 1.95;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.article-content .ahlbayt-legend strong { color: var(--green-dark); }

/* =======================================
   BOT RESPONSE AREA
   ======================================= */
.bot-response-area {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  display: none;
}

.bot-response-area.active { display: block; }

.bot-response-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.bot-name {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.88rem;
}

.bot-response-content {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.loading-dots span {
  animation: dot-pulse 1.4s infinite;
  display: inline-block;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* =======================================
   FOOTER
   ======================================= */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-arabic {
  font-family: var(--font-urdu);
  font-size: 1.6rem;
  color: var(--gold-light);
  direction: rtl;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-top: 10px;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(200,168,75,0.2);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.75rem;
}

.footer-arabic {
  font-family: var(--font-arabic-hadees);
  font-size: 1rem;
  color: var(--gold-light);
  direction: rtl;
  margin-bottom: 6px;
}

/* =======================================
   ORNAMENTAL DIVIDER
   ======================================= */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 32px 0;
  opacity: 0.6;
}

/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 900px) {
  .site-main {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .features-strip-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .main-nav { display: none; }
  .hero { padding: 48px 16px; }
  .hero-search { flex-direction: column; border-radius: 12px; }
  .hero-search input, .hero-search button { border-radius: 8px; }
  .site-main { padding: 24px 16px; }
}

/* =======================================
   ADMIN BAR OFFSET
   ======================================= */
.admin-bar .site-header { top: 32px; }
