/* ============================================================
   PraySalah — Main Stylesheet
   Design: Light, airy, high contrast, modern 2026
   Fonts: Cormorant Garamond (headings), Amiri (Arabic), DM Sans (UI)
   ============================================================ */

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

:root {
  --green:       #1e6b35;
  --green-mid:   #2e9e50;
  --green-light: #dff2e6;
  --green-pale:  #f0faf3;
  --gold:        #c49a2a;
  --gold-light:  #fef6e0;
  --gold-border: rgba(196,154,42,0.28);
  --ink-1:       #111111;
  --ink-2:       #333333;
  --ink-3:       #555555;
  --white:       #ffffff;
  --page-bg:     #f7f5f0;
  --border:      #e4e4e4;
  --farz:        #c0392b;
  --farz-bg:     #fff0f0;
  --sunnah-bg:   #dff2e6;
  --witr:        #2558b8;
  --witr-bg:     #e6eeff;
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.05);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.07);
  --pad-x:       clamp(20px, 5vw, 72px);
  --r:           14px;
}

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

body {
  background: var(--page-bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
  color: var(--ink-1);
}

/* ── NAV ──────────────────────────────────────────────────── */
#main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 500;
  gap: 16px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo em { color: var(--gold); font-style: normal; }
.logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover,
.nav-link.active-nav {
  background: var(--green-light);
  color: var(--green);
}
.nav-link.active-nav { font-weight: 600; }

/* Language Switcher */
.lang-switcher { position: relative; margin-left: 8px; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--page-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.lang-btn:hover { border-color: var(--green); background: var(--green-light); color: var(--green); }
.lang-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.lang-btn[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 140px;
  overflow: hidden;
  display: none;
  z-index: 600;
}
.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.lang-option:hover { background: var(--green-light); color: var(--green); }
.lang-option.active { color: var(--green); font-weight: 600; background: var(--green-pale); }

/* Mobile hamburger */
.mob-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mob-menu-btn:hover { background: var(--green-light); }
.mob-menu-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--ink-1); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.mob-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-menu-btn.open span:nth-child(2) { opacity: 0; }
.mob-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mob-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--pad-x) 24px;
  z-index: 490;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 2px;
}
.mob-nav.open { display: flex; }

.mob-link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.mob-link:hover { background: var(--green-light); color: var(--green); }

.mob-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.mob-lang {
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.mob-lang:hover, .mob-lang.active {
  border-color: var(--green); color: var(--green); background: var(--green-light);
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
#main-content { min-height: 60vh; }

/* ── HERO / VERSE ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #edf8f1 0%, var(--white) 55%);
  border-bottom: 1px solid var(--border);
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.arabic-verse {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 3.8vw, 3.4rem);
  line-height: 1.9;
  direction: rtl;
  color: var(--ink-1);
  margin-bottom: 32px;
  width: 100%;
  white-space: nowrap;
  overflow: visible;
}

.verse-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em; height: 1.6em;
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  font-size: 0.62em;
  color: var(--gold);
  background: var(--gold-light);
  font-family: 'Amiri', serif;
  vertical-align: middle;
  margin-right: 4px;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%; max-width: 360px;
  margin: 0 auto 32px;
  color: var(--gold);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.verse-translation {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.75;
  width: 100%;
  margin-bottom: 16px;
}

.verse-ref {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── SECTION LAYOUT ───────────────────────────────────────── */
.table-section, .cards-section, .faq-section {
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
}

.cards-section { background: var(--white); border-top: 1px solid var(--border); }
.faq-section   { background: var(--page-bg); border-top: 1px solid var(--border); }

.sec-header { margin-bottom: 28px; }

.sec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 8px;
}

.sec-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 10px;
}

.sec-desc {
  font-size: 0.98rem;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── LEGEND ───────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.lpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  border: 1.5px solid transparent;
}
.lp-farz   { background: var(--farz-bg);   color: var(--farz);  border-color: rgba(192,57,43,0.22); }
.lp-sunnah { background: var(--sunnah-bg); color: var(--green); border-color: rgba(30,107,53,0.22); }
.lp-witr   { background: var(--witr-bg);   color: var(--witr);  border-color: rgba(37,88,184,0.22); }
.lp-plain  { background: #f0f0f0;          color: var(--ink-2); border-color: #d8d8d8; }
.ldot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── TABLE ────────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.table-wrap:focus { box-shadow: 0 0 0 3px rgba(30,107,53,0.2); }

table { width: 100%; border-collapse: collapse; min-width: 580px; }

thead tr { background: var(--green); }
thead th {
  padding: 18px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
thead th:last-child { border-right: none; }
th.th-prayer { text-align: left; padding-left: 24px; color: #fff; min-width: 155px; font-size: 0.82rem; }
th.th-farz   { background: #9b2c2c; color: #fff; }
th.th-total  { background: #0f3018; color: rgba(255,255,255,0.95); min-width: 72px; }

tbody tr { border-bottom: 1px solid #eeeeee; transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: #fdfdfd; }
tbody tr:hover { background: var(--green-light); }

td {
  padding: 18px 14px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #eeeeee;
  font-size: 1rem;
}
td:last-child { border-right: none; }
td.td-prayer { text-align: left; padding-left: 24px; }

.pname { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; color: var(--green); line-height: 1; display: block; }
.par   { font-family: 'Amiri', serif; font-size: 1.05rem; color: var(--ink-2); display: block; margin-top: 4px; }
.ptime { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 3px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}
.chip-f { background: var(--farz-bg);   color: var(--farz);  border: 1.5px solid rgba(192,57,43,0.25); }
.chip-s { background: var(--sunnah-bg); color: var(--green); border: 1.5px solid rgba(30,107,53,0.25); }
.chip-w { background: var(--witr-bg);   color: var(--witr);  border: 1.5px solid rgba(37,88,184,0.25); }

.plain-n { font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.dash-n  { font-size: 1.2rem; color: #c0c0c0; font-weight: 300; }

td.td-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
}

.table-foot {
  padding: 14px 24px;
  background: var(--gold-light);
  border-top: 1px solid var(--gold-border);
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── CARDS ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--page-bg);
  border-radius: var(--r);
  padding: 26px 22px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-1); margin: 8px 0 10px; }
.card p  { font-size: 0.87rem; color: var(--ink-2); line-height: 1.75; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin-top: 28px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-1);
  transition: color 0.15s;
}
.faq-q:hover { color: var(--green); }
.faq-icon { font-size: 1.3rem; font-weight: 300; color: var(--green); flex-shrink: 0; transition: transform 0.22s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.faq-a[hidden] { display: none; }

/* ── GLOSSARY ─────────────────────────────────────────────── */
.glossary-hero {
  background: linear-gradient(160deg, #edf8f1 0%, var(--white) 55%);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(40px, 5vw, 60px);
}

.search-bar {
  margin-top: 28px;
  position: relative;
  max-width: 460px;
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  line-height: 0;
}
.search-bar input {
  width: 100%;
  padding: 13px 18px 13px 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink-1);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-bar input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,107,53,0.1); }

.glossary-body { padding: clamp(36px, 5vw, 60px) var(--pad-x) 80px; }

.g-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.g-category:first-child { margin-top: 0; }

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.g-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.g-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.g-left { flex: 1; }
.g-right { text-align: right; flex-shrink: 0; }

.g-english {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  line-height: 1.1;
}
.g-translit {
  font-size: 0.8rem;
  color: var(--ink-3);
  display: block;
  margin-top: 4px;
}
.g-translit em { color: var(--ink-3); font-style: italic; }

.g-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--ink-1);
  display: block;
  line-height: 1.5;
}
.g-urdu {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--ink-3);
  display: block;
  margin-top: 2px;
}

.g-divider { height: 1px; background: var(--border); margin-bottom: 12px; }

.g-definition { font-size: 0.87rem; color: var(--ink-2); line-height: 1.75; }

.no-results {
  text-align: center;
  padding: 60px var(--pad-x);
  color: var(--ink-3);
  font-size: 1rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px var(--pad-x);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
}
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-dua { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a { font-size: 0.84rem; color: var(--ink-3); text-decoration: none; padding: 4px 10px; border-radius: 6px; transition: background 0.12s, color 0.12s; }
.footer-links a:hover { background: var(--green-light); color: var(--green); }
.footer-copy { font-size: 0.78rem; color: var(--ink-3); width: 100%; }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-hero, .howto-hero, .contact-hero, .privacy-hero {
  background: linear-gradient(160deg, #edf8f1 0%, var(--white) 55%);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(40px, 5vw, 60px);
}
.about-body { padding: clamp(40px, 5vw, 64px) var(--pad-x) 80px; max-width: 820px; }
.about-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--green); margin: 40px 0 14px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p  { font-size: 0.98rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.about-body ul { margin: 8px 0 14px 20px; }
.about-body li { font-size: 0.98rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.15s;
}
.about-cta:hover { background: var(--green-mid); }

/* ── HOW TO PRAY (placeholder) ────────────────────────────── */
.howto-body { padding: clamp(40px, 5vw, 64px) var(--pad-x) 80px; max-width: 820px; }
.coming-soon-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.coming-soon-box h2 { font-size: 1.8rem; color: var(--green); margin-bottom: 16px; }
.coming-soon-box p  { font-size: 1rem; color: var(--ink-2); line-height: 1.75; max-width: 480px; margin: 0 auto 24px; }

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-body { padding: clamp(40px, 5vw, 64px) var(--pad-x) 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; max-width: 1100px; }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink-1);
  background: var(--page-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,107,53,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--green);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.submit-btn:hover { background: var(--green-mid); }
.form-message { padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; margin-top: 16px; }
.form-message.success { background: var(--green-light); color: var(--green); border: 1px solid rgba(30,107,53,0.2); }
.form-message.error   { background: var(--farz-bg); color: var(--farz); border: 1px solid rgba(192,57,43,0.2); }
.contact-info h3 { font-size: 1.3rem; color: var(--ink-1); margin-bottom: 10px; }
.contact-info p  { font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }

/* ── PRIVACY POLICY ───────────────────────────────────────── */
.privacy-body { padding: clamp(40px, 5vw, 64px) var(--pad-x) 80px; max-width: 820px; }
.privacy-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--green); margin: 36px 0 12px; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p, .privacy-body li { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.privacy-body ul { margin: 8px 0 12px 20px; }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.not-found h1 { font-size: clamp(4rem, 12vw, 9rem); font-weight: 700; color: var(--green-light); line-height: 1; margin-bottom: 16px; }
.not-found h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green); margin-bottom: 16px; }
.not-found p  { font-size: 1rem; color: var(--ink-2); margin-bottom: 32px; max-width: 420px; }
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--green-mid); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .mob-menu-btn { display: flex; }
  html { font-size: 16px; }
  .arabic-verse { white-space: normal; line-height: 2.1; font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .verse-translation { font-size: 1.1rem; }
  thead th { padding: 13px 8px; font-size: 0.7rem; }
  td { padding: 14px 8px; font-size: 0.92rem; }
  td.td-prayer { padding-left: 12px; }
  .pname { font-size: 1.2rem; }
  .chip { min-width: 34px; height: 34px; font-size: 0.95rem; }
  td.td-total { font-size: 1.5rem; }
  .glossary-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-top: 4px; }
}

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

/* ── Contact Info Cards ───────────────────────────────────── */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 10px;
}
.contact-info-card p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.contact-info-card a { color: var(--green); }
.contact-info-card a:hover { text-decoration: underline; }

/* Required field asterisk */
.req { color: var(--farz); margin-left: 2px; }

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

/* ── Share Button ─────────────────────────────────────────── */
.tbl-heading-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.tbl-heading-row .sec-header {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.share-wrap {
  position: relative;
  flex-shrink: 0;
  padding-top: 8px;
}
.share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 1px 6px rgba(30,107,53,0.08);
}
.share-toggle:hover {
  background: var(--green-light);
  box-shadow: 0 3px 12px rgba(30,107,53,0.16);
  transform: translateY(-1px);
}
.share-toggle:active { transform: scale(0.97); }
.share-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.share-toggle[aria-expanded="true"] .share-chevron { transform: rotate(180deg); }
.share-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 210px;
  z-index: 400;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  animation: sddropIn 0.18s cubic-bezier(.22,.68,0,1.15) both;
}
.share-dropdown[hidden] { display: none; }
@keyframes sddropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.12s;
}
.share-option:last-child { border-bottom: none; }
.share-option:hover { background: var(--green-pale); }
.share-option-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-option-text { display: flex; flex-direction: column; gap: 2px; }
.share-option-text strong { font-size: 0.88rem; font-weight: 600; color: var(--ink-1); line-height: 1.2; }
.share-option-text span   { font-size: 0.76rem; color: var(--ink-3); line-height: 1.2; }
.share-toast {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(30,107,53,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  text-align: center;
  animation: stoastIn 0.22s cubic-bezier(.22,.68,0,1.2) both;
}
.share-toast[hidden] { display: none; }
@keyframes stoastIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .tbl-heading-row  { flex-direction: column; gap: 12px; }
  .share-wrap       { padding-top: 0; }
  .share-dropdown   { right: auto; left: 0; }
}

/* ── Table width fix (large screens) ─────────────────────── */
.table-wrap { max-width: 1000px; }

th.th-prayer  { width: 16%; }
thead th:nth-child(2),
thead th:nth-child(4) { width: 13%; }
th.th-farz    { width: 9%; }
thead th:nth-child(5),
thead th:nth-child(6),
thead th:nth-child(7) { width: 8%; }
th.th-total   { width: 9%; }

/* ── Table column distribution fix ───────────────────────── */
.table-wrap { max-width: none; }

table { table-layout: fixed; }

th.th-prayer                          { width: 20%; }
thead th:nth-child(2)                 { width: 13%; }
th.th-farz                            { width: 10%; }
thead th:nth-child(4)                 { width: 13%; }
thead th:nth-child(5),
thead th:nth-child(6),
thead th:nth-child(7)                 { width: 9%; }
th.th-total                           { width: 10%; }

/* ── Column proportion fix ────────────────────────────────── */

/* Allow header text to wrap — fixes overlap on small screens */
thead th {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

/* Rebalanced column widths */
th.th-prayer                          { width: 14%; }
thead th:nth-child(2)                 { width: 12%; }
th.th-farz                            { width: 9%;  }
thead th:nth-child(4)                 { width: 12%; }
thead th:nth-child(5),
thead th:nth-child(6),
thead th:nth-child(7)                 { width: 9%;  }
th.th-total                           { width: 9%;  }

/* ── Swipe hint (mobile table) ────────────────────────────── */
.swipe-wrap { position: relative; }
.swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  transition: opacity 0.4s ease;
}
.swipe-hint.faded { opacity: 0; pointer-events: none; }
.swipe-hint-track {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.swipe-hint-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--green);
  border-radius: 2px;
  animation: slideThumb 1.6s ease-in-out infinite;
}
@keyframes slideThumb {
  0%   { left: 0; }
  50%  { left: 60%; }
  100% { left: 0; }
}
.swipe-hint-text  { font-weight: 500; }
.swipe-hint-arrow { color: var(--green); font-size: 0.9rem; }
@media (max-width: 700px) {
  .swipe-hint { display: flex; }
}

/* ── FAQ centered ─────────────────────────────────────────── */
.faq-section .sec-header,
.faq-section .faq-list {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── About two-column ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: start;
}
.about-left {
  position: sticky;
  top: 88px;
}
.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 14px;
  border: 2px solid rgba(30,107,53,0.15);
}
.about-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 4px;
}
.about-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.about-bio {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0 0 20px;
}
.about-cta-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: 9px;
  padding: 9px 18px;
  transition: background 0.15s;
}
.about-cta-sm:hover { background: var(--green-light); }
.about-right h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  margin: 36px 0 12px;
}
.about-right h2:first-child { margin-top: 0; }
.about-right p  { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.about-right ul { margin: 8px 0 12px 20px; }
.about-right li { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }
@media (max-width: 700px) {
  .about-grid  { grid-template-columns: 1fr; gap: 32px; }
  .about-left  { position: static; }
}

/* ── Contact centered ─────────────────────────────────────── */
.contact-body .contact-grid {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Glossary card share ──────────────────────────────────── */
.g-card { position: relative; }

.g-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}

.g-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0.5px solid var(--border);
  border-radius: 7px;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.g-share-btn:hover,
.g-share-btn.active {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.g-share-dropdown {
  position: fixed;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  z-index: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
  animation: gDropIn 0.17s cubic-bezier(.22,.68,0,1.15) both;
}
.g-share-dropdown[hidden] { display: none; }
@keyframes gDropIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.g-share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.12s;
}
.g-share-option:last-child { border-bottom: none; }
.g-share-option:hover { background: var(--green-pale); }

.g-share-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-share-text { display: flex; flex-direction: column; gap: 2px; }
.g-share-text strong { font-size: 0.85rem; font-weight: 600; color: var(--ink-1); }
.g-share-text span   { font-size: 0.72rem; color: var(--ink-3); }

/* g-toast (reuse share-toast style) */
.g-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(30,107,53,0.25);
  border-radius: 999px;
  padding: 8px 20px;
  z-index: 700;
  white-space: nowrap;
  animation: gToastIn 0.22s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes gToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── About layout fix ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-col h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  margin: 36px 0 12px;
}
.about-col h2:first-child { margin-top: 0; }
.about-col p  { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.about-col ul { margin: 8px 0 12px 20px; }
.about-col li { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }

.founder-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-top: 20px;
}
.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  border: 2px solid rgba(30,107,53,0.15);
}
.founder-info { flex: 1; }
.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 3px;
}
.founder-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.founder-bio {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0;
}

/* Remove old about styles that conflict */
.about-left, .about-right, .about-avatar,
.about-name, .about-role, .about-bio, .about-cta-sm { all: unset; }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Glossary card footer fix ─────────────────────────────── */
.g-card {
  display: flex;
  flex-direction: column;
}
.g-definition { flex: 1; }
.g-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
  flex-shrink: 0;
}

/* ── Contact form width fix ───────────────────────────────── */
.contact-body .contact-grid {
  max-width: 1080px;
  grid-template-columns: 1.6fr 1fr;
}
@media (max-width: 900px) {
  .contact-body .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── About page width override ────────────────────────────── */
.about-body {
  max-width: none;
  padding: clamp(40px, 5vw, 64px) var(--pad-x) 80px;
}
.about-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ── About mobile single column (override) ────────────────── */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ── Learn pages ──────────────────────────────────────────── */
.learn-hero {
  background: linear-gradient(160deg, #edf8f1 0%, var(--white) 55%);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(40px, 5vw, 60px);
}
.learn-body {
  padding: clamp(36px, 5vw, 60px) var(--pad-x) 80px;
  max-width: 860px;
}

/* Content lines (Azan, Darood) */
.content-lines { display: flex; flex-direction: column; gap: 0; }
.content-line {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.content-line:last-child { border-bottom: none; }

.line-badge {
  flex-shrink: 0;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(30,107,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}
.line-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.line-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--ink-1);
  line-height: 1.9;
  text-align: right;
}
.line-translit {
  font-size: 0.95rem;
  color: var(--green);
  font-style: italic;
  font-weight: 500;
}
.line-meaning {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.line-context {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.65;
  padding-top: 4px;
  border-top: 0.5px solid var(--border);
  margin-top: 4px;
}
.line-part-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 4px;
}
.line-response {
  font-size: 0.85rem;
  color: var(--ink-3);
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
}
.line-response-label {
  font-weight: 600;
  color: var(--gold);
  margin-right: 6px;
}

/* Learn section heading */
.learn-section-heading {
  margin: 36px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
}
.learn-section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--green);
}

/* Learn note card */
.learn-note-card {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  padding: 20px 22px;
  margin: 24px 0;
}
.learn-note-card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--ink-1);
  direction: rtl;
  text-align: right;
  margin-bottom: 8px;
}
.learn-note-card .note-translit {
  font-size: 0.9rem; color: var(--green); font-style: italic; margin-bottom: 4px;
}
.learn-note-card .note-meaning {
  font-size: 0.9rem; color: var(--ink-2); margin-bottom: 8px;
}
.learn-note-card .note-text,
.learn-note-card p {
  font-size: 0.85rem; color: var(--ink-2); line-height: 1.7;
}

/* Kalma cards */
.kalma-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.kalma-card:last-of-type { margin-bottom: 0; }
.kalma-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.kalma-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.kalma-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 3px;
}
.kalma-meaning {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 0;
  font-style: italic;
}

/* Two-column info cards */
.learn-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.learn-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
}
.learn-info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.learn-info-card p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.learn-info-card ul { margin: 0 0 0 18px; }
.learn-info-card li {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 6px;
}
.learn-virtue-card { background: var(--green-pale); border-color: rgba(30,107,53,0.15); }

/* Qiyam sections */
.qiyam-sections { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.qiyam-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.qiyam-section:last-child { border-bottom: none; }
.qiyam-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
.qiyam-section p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.8;
}

/* Media player */
.media-player-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-display {
  background: #1a2a3a;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-placeholder-text {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 500;
}
#mediaVideo {
  width: 100%;
  max-height: 460px;
  display: block;
}
#mediaAudio {
  width: calc(100% - 48px);
  margin: 0 24px;
}
.media-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--page-bg);
}
.media-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.media-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.media-btn-active { background: var(--green) !important; color: var(--white) !important; border-color: var(--green) !important; }
.media-btn-dl { font-size: 0.82rem; padding: 10px 16px; }

/* Nav dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.nav-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.nav-dropdown-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  z-index: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  animation: sddropIn 0.17s cubic-bezier(.22,.68,0,1.15) both;
}
.nav-dropdown[hidden] { display: none; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.12s;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active { background: var(--green-pale); color: var(--green); }
.nav-dropdown-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-dropdown-divider { height: 0.5px; background: var(--border); margin: 4px 0; }
.nav-dropdown-soon { cursor: default; color: var(--ink-3) !important; }
.nav-dropdown-soon:hover { background: none !important; }
.nav-soon-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--page-bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
}

/* Globe language button */
.lang-panel-wrap { position: relative; margin-left: 6px; }
.lang-globe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--page-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.lang-globe-btn:hover { border-color: var(--green); background: var(--green-light); color: var(--green); }
.lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 240px;
  z-index: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  animation: sddropIn 0.17s cubic-bezier(.22,.68,0,1.15) both;
}
.lang-panel[hidden] { display: none; }
.lang-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin: 0 0 14px;
}
.lang-panel-row {
  margin-bottom: 12px;
}
.lang-panel-row:last-of-type { margin-bottom: 0; }
.lang-panel-row label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 500;
}
.lang-panel-row select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--ink-1);
  background: var(--page-bg);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.lang-panel-row select:focus { border-color: var(--green); }
.lang-panel-hint {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}

/* Mobile section label */
.mob-section-label {
  padding: 8px 16px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-top: 4px;
  border-top: 0.5px solid var(--border);
}
.mob-link-sub { padding-left: 30px !important; font-size: 0.92rem !important; }
.mob-link-soon { color: var(--ink-3) !important; cursor: default; display: flex; justify-content: space-between; align-items: center; }
.mob-lang-section { padding: 14px 16px; border-top: 0.5px solid var(--border); margin-top: 4px; }
.mob-lang-row { margin-bottom: 10px; }
.mob-lang-row label { display: block; font-size: 0.78rem; color: var(--ink-3); margin-bottom: 4px; font-weight: 500; }
.mob-lang-row select { width: 100%; font-size: 0.88rem; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); color: var(--ink-1); background: var(--page-bg); font-family: 'DM Sans', sans-serif; -webkit-appearance: none; }

/* Responsive */
@media (max-width: 700px) {
  .learn-two-col { grid-template-columns: 1fr; }
  .media-controls { gap: 8px; }
  .media-btn { padding: 9px 14px; font-size: 0.82rem; }
}

/* ── Force overrides ─────────────────────────────────────── */
.learn-hero { text-align: center !important; }
.learn-hero .sec-label,
.learn-hero .sec-title,
.learn-hero .sec-desc { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.learn-body { margin-left: auto !important; margin-right: auto !important; }
.line-meaning[dir="rtl"] { text-align: right !important; direction: rtl !important; }

/* ── Page-wide centering ─────────────────────────────────── */
.glossary-body,
.about-body,
.contact-body,
.faq-section .sec-header,
.faq-section .faq-list,
.table-section .legend,
.cards-section .cards-grid {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* glossary-hero uses its own two-column layout — no centering */


/* ── Global centering fix ────────────────────────────────── */
.about-body    { margin-left: auto !important; margin-right: auto !important; }
.howto-body    { margin-left: auto !important; margin-right: auto !important; }
.privacy-body  { margin-left: auto !important; margin-right: auto !important; }
.contact-body  { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.contact-grid  { margin-left: auto !important; margin-right: auto !important; }
.faq-section   { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.faq-section .faq-list { margin-left: auto !important; margin-right: auto !important; }
.cards-section { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.table-section { max-width: 1400px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.glossary-body { max-width: 1300px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ── Glossary hero + body centering ─────────────────────── */
.glossary-hero {
  text-align: center;
}
.glossary-hero .sec-label,
.glossary-hero .sec-title,
.glossary-hero .sec-desc {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.glossary-hero .search-bar {
  margin-left: auto;
  margin-right: auto;
}
.glossary-body {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}




/* ── About + Contact hero: center text only ──────────────── */
.about-hero { text-align: center; }
.contact-hero { text-align: center; }
.about-hero .sec-label, .about-hero .sec-title, .about-hero .sec-desc,
.contact-hero .sec-label, .contact-hero .sec-title, .contact-hero .sec-desc {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Fix hero white box on About + Contact ───────────────── */
.about-hero,
.contact-hero {
  background: linear-gradient(160deg, #edf8f1 0%, var(--white) 55%) !important;
  max-width: none !important;
  text-align: center;
}
.about-hero .sec-label,
.about-hero .sec-title,
.about-hero .sec-desc,
.contact-hero .sec-label,
.contact-hero .sec-title,
.contact-hero .sec-desc {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── How to Pray hero centering ─────────────────────────── */
.howto-hero { text-align: center; }
.howto-hero .sec-label, .howto-hero .sec-title, .howto-hero .sec-desc {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Dua after Adhan box ─────────────────────────────────── */
.learn-body > .content-line:last-child {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ── Dua box title ───────────────────────────────────────── */
.dua-box-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Dua box ─────────────────────────────────────────────── */
.dua-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Verse line spacing ──────────────────────────────────── */
.line-arabic   { margin-bottom: 10px; }
.line-translit { margin-bottom: 8px;  }
.line-meaning  { margin-bottom: 4px;  }
.line-part-label { margin-bottom: 12px; }
.content-line  { padding: 28px 0; }
.kalma-card .line-content { padding-top: 16px; }

/* ── Verse line spacing increase ────────────────────────── */
.line-arabic   { margin-bottom: 16px !important; }
.line-translit { margin-bottom: 14px !important; }
.line-meaning  { margin-bottom: 8px  !important; }
.content-line  { padding: 36px 0     !important; }
.kalma-card .line-content { gap: 0; padding-top: 20px; }
.dua-box .line-arabic,
.dua-box .line-translit,
.dua-box .line-meaning { margin-bottom: 16px !important; }

/* ── Cards section full width fix ───────────────────────── */
/* Background must be full width — only constrain the inner grid */
.cards-section {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.cards-section .sec-header,
.cards-section > .sec-label,
.cards-section > .sec-title,
.cards-section .cards-grid {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ── Mobile menu scrollable ──────────────────────────────── */
.mob-nav {
  overflow-y: auto !important;
  max-height: calc(100vh - 68px) !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px !important;
}

/* Ensure language section always visible at bottom */
.mob-lang-section {
  margin-top: 8px;
  border-top: 0.5px solid var(--border);
  padding: 16px;
  background: var(--white);
}

/* ── Mobile Learn toggle ─────────────────────────────────── */
.mob-learn-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.mob-learn-toggle:hover { background: var(--green-light); color: var(--green); }
.mob-learn-toggle[aria-expanded="true"] .mob-learn-chevron { transform: rotate(180deg); }
.mob-learn-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.mob-learn-items[hidden] { display: none; }
.mob-learn-items { margin-bottom: 4px; }
.mob-learn-items[hidden] { display: none !important; }

/* ── Nav button padding consistency ─────────────────────── */
.nav-link.nav-dropdown-btn {
  padding: 7px 14px;
}

/* ── Mobile nav scrollable ──────────────────────────────── */
.mob-nav { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }

/* ── How to Listen ───────────────────────────────────────── */
.how-to-listen {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.htl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 6px;
}
.htl-intro { font-size: 0.92rem; color: var(--ink-3); margin: 0 0 20px; }
.htl-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.htl-card {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.htl-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.htl-list { margin: 0 0 0 16px; padding: 0; }
.htl-list li { font-size: 0.88rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 6px; }
.htl-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-style: italic;
  border-top: 0.5px solid var(--border);
  padding-top: 14px;
  margin: 0;
  line-height: 1.65;
}
@media (max-width: 700px) {
  .htl-steps-grid { grid-template-columns: 1fr; }
}

/* ── How to Listen ───────────────────────────────────────── */
.how-to-listen {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.htl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 18px;
}
.htl-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.htl-card {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.htl-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  margin: 0 0 10px;
}
.htl-list { margin: 0 0 0 18px; padding: 0; }
.htl-list li { font-size: 0.92rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 6px; }
.surah-spelling-note { font-size: 0.82rem; color: var(--ink-3); font-style: italic; text-align: center; margin: 24px auto 0; max-width: 760px; line-height: 1.6; }
