/* ==============================================
   SEERAH PAGES — Shared Stylesheet
   ============================================== */

:root {
  --seerah-dark: #1a3a2e;
  --seerah-mid: #2d6a4f;
  --seerah-light: #40916c;
  --seerah-pale: #d8f3dc;
  --seerah-bg: #f0faf4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* ---- Hero ---- */
.seerah-hero {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d6a4f 50%, #40916c 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.seerah-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.seerah-hero-img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  margin-top: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .seerah-hero-img { max-height: 200px; border-radius: 0.5rem; margin-top: 1.5rem; }
}

.seerah-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.seerah-breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.seerah-breadcrumb a:hover { color: #fff; }

.seerah-breadcrumb span { margin: 0 0.4em; }

.seerah-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.seerah-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin: 0 auto;
  max-width: 500px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Article Card ---- */
.seerah-article {
  max-width: 860px;
  margin: 3rem auto 4rem;
  padding: 3rem 2.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  line-height: 1.95;
  font-size: 1.1rem;
  color: #374151;
}

@media (max-width: 640px) {
  .seerah-article { padding: 1.25rem 0.875rem; margin: 0.75rem 0 2rem; border-radius: 0.5rem; }
}

.seerah-article p { margin: 0 0 1.2rem; }

.seerah-article p:last-child { margin-bottom: 0; }

/* ---- Section Headings ---- */
.seerah-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--seerah-dark);
  border-left: 4px solid var(--seerah-light);
  padding-left: 0.75rem;
  margin: 2.25rem 0 1rem;
  line-height: 1.4;
}

/* ---- Arabic/Urdu Honorific ---- */
.seerah-honorific {
  direction: rtl;
  display: inline;
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Scheherazade New', 'PDMS Saleem QuranFont', serif;
  font-size: 0.95em;
  color: var(--seerah-mid);
  line-height: 1.8;
  unicode-bidi: embed;
}

/* ---- Arabic Quranic Ayah Block ---- */
.seerah-ayah {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: 1.55rem;
  line-height: 2.5;
  padding: 1.5rem 2rem;
  background: var(--seerah-bg);
  border-right: 4px solid var(--seerah-light);
  border-radius: 0.5rem;
  color: var(--seerah-dark);
  margin: 1.5rem 0 0.75rem;
}

.seerah-ayah-translation {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  background: #fafafa;
  border-left: 3px solid #d1d5db;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

/* ---- Hadees / Quote Block ---- */
.seerah-hadees {
  border-left: 4px solid var(--seerah-light);
  background: var(--seerah-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.25rem 0;
  font-style: italic;
  line-height: 1.9;
}

.seerah-citation {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ---- Poem Block ---- */
.seerah-poem {
  text-align: center;
  font-style: italic;
  color: #4a5568;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  margin: 1.75rem 0;
  line-height: 2.2;
  font-size: 0.95rem;
}

.seerah-poem p { margin: 0; }

/* ---- Trait Cards (blessed-habits) ---- */
.seerah-trait {
  background: var(--seerah-bg);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--seerah-light);
}

.seerah-trait-num {
  display: inline-block;
  background: var(--seerah-light);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  text-align: center;
  line-height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.seerah-trait-title {
  font-weight: 700;
  color: var(--seerah-dark);
  display: inline;
  font-size: 1.1rem;
}

.seerah-trait p {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: #374151;
}

/* ---- Footnotes ---- */
.seerah-footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.seerah-footnotes h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--seerah-dark);
  margin: 0 0 0.75rem;
}

.seerah-footnotes ol { padding-left: 1.25rem; }

.seerah-footnotes li { margin-bottom: 0.4rem; }

/* ---- More from Seerah ---- */
.seerah-more {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 4rem 0 5rem;
}

.seerah-more h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--seerah-dark);
  margin-bottom: 2rem;
}

.seerah-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.seerah-nav-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid transparent;
}

.seerah-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(40,120,70,0.15);
  border-color: var(--seerah-light);
  color: inherit;
  text-decoration: none;
}

.seerah-nav-card-icon { font-size: 2rem; }

.seerah-nav-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--seerah-dark);
  line-height: 1.35;
}
