/* ================================================================
   QALAH HASTI - style.css
   Website: https://qalah-hasti.com
   ================================================================

   TABLE OF CONTENTS
   
   1.  Google Fonts Import
   2.  CSS Variables (Change colors/fonts here - design tokens)
   3.  CSS Reset & Base Styles
   4.  Typography
   5.  Layout Utilities
   6.  Navigation (Header + Dropdowns + Mobile Menu)
   7.  Hero Section (Homepage)
   8.  Section Containers & Dividers
   9.  Quote Cards (Listing pages)
   10. Quote Single Page (Individual quotation detail)
   11. Video Cards (Gallery pages)
   12. About Page
   13. Footer
   14. Responsive Design (Tablet & Mobile)
   15. Animations & Transitions

   HOW TO CUSTOMIZE
   
   * Colors    Edit section 2: change --accent-gold, --bg-card, etc.
   * Fonts     Change the Google Fonts URL in section 1, update
                --font-display and --font-body variables
   * New page  Copy an existing HTML page.
                Only change text in the <!-- CONTENT --> sections.
   ================================================================ */


/* ================================================================
   1. GOOGLE FONTS IMPORT
   Loads calligraphic Urdu font + elegant English fonts.
   Noto Nastaliq Urdu: authentic Urdu script (right-to-left)
   Cormorant Garamond: classic literary serif for headings
   Inter: clean modern sans-serif for body text
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');


/* ================================================================
   2. CSS VARIABLES (DESIGN TOKENS)
   Change these values to retheme the entire website at once.
   ================================================================ */
:root {
  /*  Colors  */
  --bg-primary:      #0A0A0A;       /* Main page background */
  --bg-secondary:    #0F0F0F;       /* Slightly lighter background */
  --bg-card:         #141414;       /* Card / panel background */
  --bg-card-hover:   #1C1C1C;       /* Card background on hover */
  --bg-nav:          rgba(10, 10, 10, 0.97); /* Navigation bar background */

  --border:          #242424;       /* Subtle borders */
  --border-light:    #303030;       /* Slightly visible borders */
  --border-accent:   rgba(201, 168, 76, 0.4); /* Gold-tinted border */

  --text-primary:    #F0EDE8;       /* Main body text (warm white) */
  --text-secondary:  #909090;       /* Secondary / muted text */
  --text-muted:      #555555;       /* Very muted (metadata, labels) */
  --white:           #FFFFFF;

  --accent-gold:     #C9A84C;       /* Gold - used for highlights, borders */
  --accent-gold-dim: rgba(201, 168, 76, 0.10); /* Gold for backgrounds */
  --accent-gold-glow: rgba(201, 168, 76, 0.25); /* Gold glow effect */

  /*  Typography  */
  --font-display:    'Cormorant Garamond', Georgia, serif;  /* Headings */
  --font-body:       'Inter', system-ui, sans-serif;         /* Body text */
  --font-urdu:       'Noto Nastaliq Urdu', serif;            /* Urdu text */

  /*  Spacing  */
  --container-width: 1160px;
  --section-gap:     6rem;
  --card-gap:        1.5rem;
  --card-radius:     6px;

  /*  Transitions  */
  --transition:      0.25s ease;
  --transition-slow: 0.45s ease;
}


/* ================================================================
   3. CSS RESET & BASE STYLES
   Normalizes browser differences.
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}


/* ================================================================
   4. TYPOGRAPHY
   ================================================================ */

/* English Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* Urdu text blocks - always right-to-left */
.urdu {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.2;    /* Nastaliq needs more line height */
  unicode-bidi: isolate;
}

/* Urdu sizes */
.urdu-lg  { font-size: clamp(1.8rem, 4vw, 3rem); }
.urdu-md  { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.urdu-sm  { font-size: clamp(1rem, 2vw, 1.3rem); }

/* Category label pills */
.category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

/* Quote number label */
.quote-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}


/* ================================================================
   5. LAYOUT UTILITIES
   ================================================================ */

/* Page wrapper - adds top padding for fixed nav */
.page-wrapper {
  padding-top: 80px;
  min-height: 100vh;
}

/* Centered container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3-column grid for cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

/* 2-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

/* Section padding */
.section {
  padding: var(--section-gap) 0;
}

/* Section with border separator */
.section + .section {
  border-top: 1px solid var(--border);
}

/* Page header (title area below nav) */
.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Text alignment helpers */
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Flex helpers */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* "View All" link row */
.view-all-row {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.7rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--card-radius);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

/* Gold accent button */
.btn-gold {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  padding: 0.8rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--card-radius);
  transition: opacity var(--transition), transform var(--transition);
}

.btn-gold:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ================================================================
   6. NAVIGATION
   Fixed top bar with logo, nav links, and dropdowns.
   ================================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-en {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo-ur {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  color: var(--accent-gold);
  direction: rtl;
  line-height: 1.4;
}

/* Nav menu items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

/* Down arrow for dropdown items */
.nav-link .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  margin-top: 1px;
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown a:hover {
  color: var(--white);
  background: var(--bg-card-hover);
}

.nav-dropdown a .dd-icon {
  color: var(--accent-gold);
  font-size: 0.7rem;
}

/* Divider inside dropdown */
.nav-dropdown .dd-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

/* ── Two-level (Option C) sub-menu ───────────────────────── */
/* Wrapper for an item that has a flyout sub-menu */
.nav-sub-item {
  position: relative;
}

/* The clickable row inside the first dropdown */
.nav-sub-item > .dd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: default;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-sub-item:hover > .dd-row {
  color: var(--white);
  background: var(--bg-card-hover);
}

.nav-sub-item > .dd-row .dd-icon {
  color: var(--accent-gold);
  font-size: 0.7rem;
}

.nav-sub-item > .dd-row .dd-arrow {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-left: auto;
  padding-left: 0.5rem;
}

/* The flyout panel — appears to the RIGHT */
.nav-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  min-width: 170px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.nav-sub-item:hover .nav-sub-menu,
.nav-sub-item:focus-within .nav-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile hamburger (hidden by default, shown on small screens) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger  X animation when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-down menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-mobile-link:hover { color: var(--white); }

.nav-mobile-sublabel {
  padding: 0.5rem 2rem 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.nav-mobile-sub {
  padding: 0.5rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-mobile-sub:hover { color: var(--accent-gold); }


/* ================================================================
   7. HERO SECTION (Homepage only)
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: 72px; /* clear the fixed navbar */
}

/* Radial gold glow background effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 70%);
  pointer-events: none;
}

/* Top and bottom gradients removed, replaced by flow element */

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  padding: 0 2rem;
}

/* Ornamental vertical line flowing below the buttons */
.hero-content::after {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  margin: 4rem auto 0 auto;
  opacity: 0.8;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 2.5rem;
  animation: fadeInDown 1s ease both;
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.2));
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title-ur {
  font-family: var(--font-urdu);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.6;
  direction: rtl;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-title-en {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
  max-width: 520px;
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-tagline p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-tagline .urdu {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-cta {
  display: flex;
  gap: 2rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Ensure the main button is consistent within the item */
.hero-cta-item .btn-gold,
.hero-cta-item .btn-outline {
  width: 100%;
  min-width: 220px;
}

.hero-cta-sub {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-cta-sub a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-cta-sub a:hover {
  color: var(--accent-gold);
}

.hero-cta-sub .sep {
  opacity: 0.4;
}


/* ================================================================
   8. SECTION CONTAINERS & DIVIDERS
   ================================================================ */

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Ornamental divider with gold line and center diamond */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-accent));
}

.ornament::after {
  background: linear-gradient(to left, transparent, var(--border-accent));
}

.ornament-icon {
  color: var(--accent-gold);
  font-size: 0.7rem;
  opacity: 0.8;
}


/* ================================================================
   9. QUOTE CARDS (Listing pages)
   ================================================================ */

/* Card grid wrapper */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

/* Individual quote card */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-accent);
  border-radius: var(--card-radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.quote-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  border-top-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Large Urdu quote text on the card */
.quote-card-urdu {
  font-family: var(--font-urdu);
  font-size: 1.4rem;
  color: var(--white);
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  flex: 1;
}

/* English translation below */
.quote-card-english {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Card footer row: category + source */
.quote-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quote-card-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Read more link */
.quote-card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-top: auto;
  opacity: 0;
  transition: opacity var(--transition);
}

.quote-card:hover .quote-card-link {
  opacity: 1;
}


/* ================================================================
   10. QUOTE SINGLE PAGE (Individual quotation: /quotes/xxx.html)
   ================================================================ */

/* Main quote display area */
.quote-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

/* Large decorative opening quote mark */
.quote-single-ornament {
  text-align: center;
  color: var(--accent-gold);
  font-size: 4rem;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: -1rem;
}

/* Main Urdu quotation text - big and beautiful */
.quote-single-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.4rem, 5vw, 3rem);
  line-height: 2.4;
  color: var(--white);
  direction: rtl;
  text-align: right;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}

/* Paragraph spacing inside blockquote (multi-verse quotes) */
.quote-single-urdu p {
  margin-bottom: 1.2rem;
  text-align: right;
  line-height: 2.2;
}

.quote-single-urdu p:last-child { margin-bottom: 0; }

/* Long-format lecture articles (Power of Iman) */
.quote-long-article-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  line-height: 2.2;
  color: var(--text-primary);
  text-align: justify;
  text-justify: inter-word;
  direction: rtl;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}

.quote-long-article-urdu p { margin-bottom: 1.5rem; text-align: justify; }
.quote-long-article-urdu p:last-child { margin-bottom: 0; }


/* English translation */
.quote-single-english {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Attribution block (book, volume, author) */
.quote-attribution {
  padding: 1.5rem 2rem;
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--card-radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
}

.quote-attribution-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quote-attribution-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-attribution-item .value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.quote-attribution-item .value-ur {
  font-family: var(--font-urdu);
  font-size: 1rem;
  direction: rtl;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Explanation/Tashreeh section */
.explanation-block {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--card-radius);
}

.explanation-heading-ur {
  font-family: var(--font-urdu);
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  text-align: right;
  letter-spacing: normal;
}

.explanation-body-ur {
  font-family: var(--font-urdu);
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--text-secondary);
  text-align: right;
  direction: rtl;
}

.explanation-body-ur p {
  margin-bottom: 1.25rem;
}

.explanation-body-ur p:last-child {
  margin-bottom: 0;
}

.explanation-body-ur em {
  color: var(--accent-gold);
  font-style: normal;
}

/* Mobile */
@media (max-width: 640px) {
  .explanation-block {
    padding: 1.5rem 1.25rem;
  }
  .explanation-body-ur {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
  }
}



.quote-explanation-section h2 {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.explanation-en,
.explanation-ur {
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}

.explanation-en p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.explanation-ur p {
  font-family: var(--font-urdu);
  font-size: 1.2rem;
  line-height: 2.4;
  direction: rtl;
  text-align: right;
  color: var(--text-secondary);
}

/* Share button */
.quote-share {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all var(--transition);
}

.btn-share:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

#copy-success {
  font-size: 0.8rem;
  color: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition);
}

#copy-success.show { opacity: 1; }


/* ================================================================
   11. VIDEO CARDS (Gallery pages: /videos.html)
   ================================================================ */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

/* Each video card */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Thumbnail wrapper - 16:9 */
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.video-thumb-wrap:hover img {
  transform: scale(1.04);
  opacity: 0.75;
}

/* Play button overlay - circle with triangle */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  z-index: 2;
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #0A0A0A;
  margin-left: 3px; /* Optical centering */
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-gold);
}

.video-card:hover .play-btn::after {
  border-left-color: #000;
}

/* Duration badge */
.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  z-index: 2;
}

/* Category badge on thumbnail */
.video-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

/* Video info below the thumbnail */
.video-info {
  padding: 1.25rem 1.4rem 1.5rem;
}

.video-info .category-tag { margin-bottom: 0.6rem; }

.video-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.video-title-ur {
  font-family: var(--font-urdu);
  font-size: 1rem;
  color: var(--text-secondary);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.video-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Responsive YouTube iframe (after clicking play) */
.video-iframe-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ================================================================
   12. ABOUT PAGE
   ================================================================ */

.about-hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  background: radial-gradient(ellipse at top, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.about-hero .about-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.3));
  animation: fadeInDown 1s ease;
}

.about-hero h1 {
  font-family: var(--font-urdu);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent-gold);
  margin-bottom: 2.5rem;
  direction: rtl;
}

.about-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Stacked Language Introduction Block */
.dual-lang-section {
  padding: 5rem 0 3rem;
}

/* Flow Introduction Block */
.intro-flow {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.intro-urdu {
  font-family: var(--font-urdu);
  font-size: 1.6rem;
  line-height: 2.4;
  color: var(--white);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-accent);
  margin-bottom: 2.5rem;
}

.intro-urdu p {
  margin-bottom: 1.5rem;
}

.intro-urdu p:last-child {
  margin-bottom: 0;
}

.intro-english {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.intro-english p {
  margin-bottom: 1.5rem;
}

.intro-english p:last-child {
  margin-bottom: 0;
}

/* Vertical Flow for Pillars & Dimensions */
.pillars-section, .dimensions-section {
  padding: 4rem 0;
  position: relative;
}

.vertical-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.flow-block {
  text-align: center;
}

.flow-title-ur {
  font-family: var(--font-urdu);
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.flow-title-en {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.flow-desc-ur {
  font-family: var(--font-urdu);
  font-size: 1.35rem;
  color: var(--white);
  direction: rtl;
  line-height: 2.2;
  margin-bottom: 1.5rem;
}

.flow-desc-en {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.conclusion-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.conclusion-ur {
  font-family: var(--font-urdu);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 2.2;
  margin-bottom: 2rem;
}

.prayer {
  font-family: var(--font-urdu);
  font-size: 2rem;
  color: var(--accent-gold);
  margin-top: 2rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .vertical-flow-container {
    gap: 3rem;
  }
}

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


/* ================================================================
   13. FOOTER
   ================================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-logo-names {
  display: flex;
  flex-direction: column;
}

.footer-logo-en {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-logo-ur {
  font-family: var(--font-urdu);
  font-size: 0.9rem;
  color: var(--accent-gold);
  direction: rtl;
  line-height: 1.5;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 220px;
}

.footer-section h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

/* Bottom bar */
.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-gold);
  font-size: 0.78rem;
}


/* ================================================================
   14. RESPONSIVE DESIGN
   Breakpoints: 1024px (tablet) and 640px (mobile)
   ================================================================ */

/*  Tablet (max 1024px)  */
@media (max-width: 1024px) {
  :root { --section-gap: 4rem; }

  .quotes-grid,
  .videos-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/*  Mobile (max 640px)  */
@media (max-width: 640px) {
  :root { --section-gap: 3rem; --card-gap: 1rem; }

  /* Navigation - show hamburger, hide desktop menu */
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }

  /* Logo text - keep it compact */
  .nav-logo-en { font-size: 0.85rem; }

  /* Grids go single column */
  .quotes-grid,
  .videos-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero-logo { width: 100px; height: 100px; }
  .hero-cta { flex-direction: column; align-items: center; }

  /* Quote single adjustments */
  .quote-attribution {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand { flex-direction: column; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Container padding on mobile */
  .container { padding: 0 1.25rem; }

  /* ── Quote Single Page: smaller Urdu text on mobile ── */
  .quote-single {
    padding: 2rem 0 4rem;
  }

  /* !important needed to override per-file inline <style> blocks */
  .quote-single-urdu {
    font-size: 1.1rem !important;
    line-height: 1.9 !important;
    padding: 1.25rem 1rem !important;
  }

  /* p tags inside blockquote also need override */
  .quote-single-urdu p {
    font-size: 1.1rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1rem !important;
  }

  /* Long-format lectures (Power of Iman) */
  .quote-long-article-urdu {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
  }

  .quote-long-article-urdu p {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1rem !important;
  }

  /* Quote listing cards: tighten Urdu preview text */
  .quote-card-urdu {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
  }

  .quote-single-ornament {
    font-size: 2.5rem;
  }
}


/* ================================================================
   15. ANIMATIONS & TRANSITIONS
   ================================================================ */

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Card entry animation - triggered by IntersectionObserver in JS */
.card-enter {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* ================================================================
   16. COLLAPSIBLE PREFACE
   ================================================================ */

.preface-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.preface-content {
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  line-height: 2.2;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.preface-content p {
  margin-bottom: 1.25rem;
}

.preface-content p:last-child {
  margin-bottom: 0;
}

.preface-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0), var(--bg-card) 90%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.preface-toggle-btn {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.preface-toggle-btn:hover {
  background: var(--accent-gold-dim);
}

/* Expanded state */
.preface-container.expanded .preface-content {
  max-height: 5000px; /* large enough to fit content */
}

.preface-container.expanded .preface-fade {
  opacity: 0;
  pointer-events: none;
}

.preface-collapse-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.preface-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.preface-container.expanded .preface-collapse-btn {
  display: block;
}

@media (max-width: 768px) {
  .preface-container {
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
  .preface-content {
    font-size: 1.05rem;
    line-height: 2;
    max-height: 200px;
  }
}
