/**
 * Sunni Tableeghi Jamaat - Maslak-e-Alahazrat
 * Modern Islamic Editorial Design System
 * Pure CSS3 with Custom Variables
 */

/* ==========================================================================
   1. Root Variables & Color System
   ========================================================================== */
:root {
  /* Brand Palette */
  --primary: #0f5132;
  --primary-dark: #073822;
  --primary-deep: #052617;
  --primary-light: #198754;
  --secondary: #173f35;
  --spruce: #112d26;

  /* Gold & Accents */
  --gold: #b08d57;
  --gold-light: #c5a36e;
  --gold-dark: #8e6c38;
  --gold-subtle: #f6efe2;
  --gold-glow: rgba(176, 141, 87, 0.15);

  /* Backgrounds & Surfaces */
  --cream: #faf7f0;
  --cream-alt: #f3ede2;
  --surface: #ffffff;
  --surface-tint: #fcfbf7;

  /* Text & Contrast */
  --text-main: #1f2923;
  --text-body: #344038;
  --text-muted: #5e6f65;
  --text-light: #899a90;
  --text-inverse: #fbfbf9;

  /* Borders & Shadows */
  --border-color: #e2ddd3;
  --border-subtle: #ece7dc;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 81, 50, 0.05);
  --shadow-card: 0 10px 25px -4px rgba(7, 56, 34, 0.06);
  --shadow-lift: 0 16px 32px -4px rgba(7, 56, 34, 0.1);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;

  /* Sizing & Transitions */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Global Styles & Reset Enhancements
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--cream);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection {
  background-color: var(--gold-subtle);
  color: var(--primary-dark);
}

/* ==========================================================================
   Islamic Symmetric Geometric Pattern System
   ========================================================================== */
.bg-islamic-pattern {
  --pattern-bg: #faf7f0;
  --pattern-stroke: #b08d57;
  --pattern-opacity: 0.22;
  background-color: var(--pattern-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23b08d57' stroke-width='0.75' stroke-opacity='0.22' stroke-linejoin='round' stroke-linecap='round'%3E%3Cline x1='17.57' y1='0' x2='42.43' y2='0'/%3E%3Cline x1='42.43' y1='0' x2='60' y2='17.57'/%3E%3Cline x1='60' y1='17.57' x2='60' y2='42.43'/%3E%3Cline x1='60' y1='42.43' x2='42.43' y2='60'/%3E%3Cline x1='42.43' y1='60' x2='17.57' y2='60'/%3E%3Cline x1='17.57' y1='60' x2='0' y2='42.43'/%3E%3Cline x1='0' y1='42.43' x2='0' y2='17.57'/%3E%3Cline x1='0' y1='17.57' x2='17.57' y2='0'/%3E%3Crect x='18' y='18' width='24' height='24'/%3E%3Crect x='18' y='18' width='24' height='24' transform='rotate(45 30 30)'/%3E%3Ccircle cx='30' cy='30' r='4.5'/%3E%3Cline x1='30' y1='6' x2='30' y2='18'/%3E%3Cline x1='30' y1='42' x2='30' y2='54'/%3E%3Cline x1='6' y1='30' x2='18' y2='30'/%3E%3Cline x1='42' y1='30' x2='54' y2='30'/%3E%3Cline x1='21.5' y1='21.5' x2='17.57' y2='17.57'/%3E%3Cline x1='38.5' y1='21.5' x2='42.43' y2='17.57'/%3E%3Cline x1='21.5' y1='38.5' x2='17.57' y2='42.43'/%3E%3Cline x1='38.5' y1='38.5' x2='42.43' y2='42.43'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3Crect x='-6' y='-6' width='12' height='12' transform='rotate(45 0 0)'/%3E%3Crect x='54' y='-6' width='12' height='12' transform='rotate(45 60 0)'/%3E%3Crect x='-6' y='54' width='12' height='12' transform='rotate(45 0 60)'/%3E%3Crect x='54' y='54' width='12' height='12' transform='rotate(45 60 60)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-repeat: repeat;
  background-position: 0 0;
}

/* Dark Symmetric Pattern variant */
.bg-pattern-dark {
  background-color: var(--primary-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.75' stroke-opacity='0.16' stroke-linejoin='round' stroke-linecap='round'%3E%3Cline x1='17.57' y1='0' x2='42.43' y2='0'/%3E%3Cline x1='42.43' y1='0' x2='60' y2='17.57'/%3E%3Cline x1='60' y1='17.57' x2='60' y2='42.43'/%3E%3Cline x1='60' y1='42.43' x2='42.43' y2='60'/%3E%3Cline x1='42.43' y1='60' x2='17.57' y2='60'/%3E%3Cline x1='17.57' y1='60' x2='0' y2='42.43'/%3E%3Cline x1='0' y1='42.43' x2='0' y2='17.57'/%3E%3Cline x1='0' y1='17.57' x2='17.57' y2='0'/%3E%3Crect x='18' y='18' width='24' height='24'/%3E%3Crect x='18' y='18' width='24' height='24' transform='rotate(45 30 30)'/%3E%3Ccircle cx='30' cy='30' r='4.5'/%3E%3Cline x1='30' y1='6' x2='30' y2='18'/%3E%3Cline x1='30' y1='42' x2='30' y2='54'/%3E%3Cline x1='6' y1='30' x2='18' y2='30'/%3E%3Cline x1='42' y1='30' x2='54' y2='30'/%3E%3Cline x1='21.5' y1='21.5' x2='17.57' y2='17.57'/%3E%3Cline x1='38.5' y1='21.5' x2='42.43' y2='17.57'/%3E%3Cline x1='21.5' y1='38.5' x2='17.57' y2='42.43'/%3E%3Cline x1='38.5' y1='38.5' x2='42.43' y2='42.43'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3Crect x='-6' y='-6' width='12' height='12' transform='rotate(45 0 0)'/%3E%3Crect x='54' y='-6' width='12' height='12' transform='rotate(45 60 0)'/%3E%3Crect x='-6' y='54' width='12' height='12' transform='rotate(45 0 60)'/%3E%3Crect x='54' y='54' width='12' height='12' transform='rotate(45 60 60)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-repeat: repeat;
}

/* ==========================================================================
   Internal Page Background Variations for Islamic Symmetric Pattern
   ========================================================================== */
/* Quran Page - Sacred Sage / Mint Cream */
body.page-quran .bg-islamic-pattern,
.bg-islamic-pattern--sage {
  --pattern-bg: #edf5f0;
  background-color: #edf5f0;
}

/* Books Library - Illuminated Parchment */
body.page-books .bg-islamic-pattern,
.bg-islamic-pattern--parchment {
  --pattern-bg: #f8f4ea;
  background-color: #f8f4ea;
}

/* Bayaanat - Scholarly Amber Sand */
body.page-bayan .bg-islamic-pattern,
.bg-islamic-pattern--amber {
  --pattern-bg: #faf4e8;
  background-color: #faf4e8;
}

/* Maslak-e-Alahazrat - Royal Raza Emerald Pearl */
body.page-maslak .bg-islamic-pattern,
.bg-islamic-pattern--emerald {
  --pattern-bg: #edf6f1;
  background-color: #edf6f1;
}

/* Fatawa - Scholarly Alabaster Sapphire */
body.page-fatwa .bg-islamic-pattern,
.bg-islamic-pattern--slate {
  --pattern-bg: #f1f5f9;
  background-color: #f1f5f9;
}

/* Naat Sharif - Gulshan-e-Madinah Roseate Cream */
body.page-naat .bg-islamic-pattern,
.bg-islamic-pattern--rose {
  --pattern-bg: #fbf2f4;
  background-color: #fbf2f4;
}

/* Roza (Fasting) - Ramadan Twilight Pearl */
body.page-roza .bg-islamic-pattern,
.bg-islamic-pattern--twilight {
  --pattern-bg: #f5f3f9;
  background-color: #f5f3f9;
}

/* Zakat - Barakah Golden-Leaf Ivory */
body.page-zakat .bg-islamic-pattern,
.bg-islamic-pattern--gold {
  --pattern-bg: #faf5e4;
  background-color: #faf5e4;
}

/* Huzur Siraj-e-Millat - Noble Emerald Cream */
body.page-sirajemillat .bg-islamic-pattern,
.bg-islamic-pattern--siraji {
  --pattern-bg: #ecf5f1;
  background-color: #ecf5f1;
}

/* Photo Gallery - Curated Museum Ivory */
body.page-gallery .bg-islamic-pattern,
.bg-islamic-pattern--gallery {
  --pattern-bg: #f6f5f1;
  background-color: #f6f5f1;
}

/* Media Reports - Editorial Chronicle Pearl */
body.page-reports .bg-islamic-pattern,
.bg-islamic-pattern--news {
  --pattern-bg: #f2f5f7;
  background-color: #f2f5f7;
}

/* Live Broadcast - Sanctuary Broadcast Mist */
body.page-live .bg-islamic-pattern,
.bg-islamic-pattern--studio {
  --pattern-bg: #eef5f4;
  background-color: #eef5f4;
}

/* Contact & Inquiry - Hospitality Warm Sand */
body.page-contact .bg-islamic-pattern,
.bg-islamic-pattern--sand {
  --pattern-bg: #faf5ee;
  background-color: #faf5ee;
}

/* ==========================================================================
   3. Typography & Editorial Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.font-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 1.8;
}

.text-gold {
  color: var(--gold) !important;
}

.text-primary-dark {
  color: var(--primary-dark) !important;
}

.lead-editorial {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--gold);
}

.section-title {
  font-size: 2.15rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Traditional Islamic Divider */
.islamic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.islamic-divider::before,
.islamic-divider::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.islamic-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.islamic-divider i {
  color: var(--gold);
  font-size: 1rem;
}

/* ==========================================================================
   4. Header & Top Utility Strip
   ========================================================================== */
.top-utility-strip {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
  padding: 0.4rem 0;
}

.top-utility-strip a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.top-utility-strip a:hover {
  color: var(--gold-light);
}

.calligraphy-bar {
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  text-align: center;
}

.calligraphy-bar img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.durood-arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0;
  direction: rtl;
}

/* ==========================================================================
   5. Navigation Bar
   ========================================================================== */
.navbar-custom {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: var(--transition-smooth);
  z-index: 1030;
}

.navbar-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.35rem;
}

.brand-title-wrap .brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-title-wrap .brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 600;
}

.nav-link-custom {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
  color: var(--primary) !important;
  background-color: var(--gold-subtle);
}

.nav-link-custom.active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

.nav-link-custom.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--gold);
}

.btn-header-cta {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-dark);
  transition: var(--transition-smooth);
  min-height: 40px;
}

.btn-header-cta:hover {
  background: var(--primary-dark);
  color: var(--gold-light) !important;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #062315 0%, #0d442a 60%, #154e34 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(176, 141, 87, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(25, 135, 84, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(176, 141, 87, 0.15);
  border: 1px solid rgba(176, 141, 87, 0.4);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-btn-primary {
  background: var(--gold);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-dark);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.hero-cta-btn-primary:hover {
  background: var(--gold-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(176, 141, 87, 0.3);
}

.hero-cta-btn-secondary {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.hero-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Hero Feature Card (Arch Container Aesthetic) */
.hero-card-arch {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 120px 120px var(--radius-md) var(--radius-md);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.arch-crest-icon {
  width: 72px;
  height: 72px;
  background: rgba(176, 141, 87, 0.2);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold-light);
  font-size: 2rem;
}

.hero-card-arch .arabic-verse {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.hero-card-arch .verse-translation {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   7. Announcement / Urgent Sharia Notice Strip
   ========================================================================== */
.shariah-notice-strip {
  background: #fff9e6;
  border-bottom: 1px solid #ebd9a7;
  padding: 0.9rem 0;
  color: #5c4405;
}

.notice-pill {
  background: #c53030;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   7b. Daily Prayer Timings (اوقات الصلوٰۃ)
   ========================================================================== */
.prayer-section-wrap {
  position: relative;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

.prayer-location-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--cream) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.next-prayer-spotlight {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(7, 56, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.prayer-time-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-subtle);
}

.prayer-time-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.prayer-time-card.is-active {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(176, 141, 87, 0.08) 0%, #ffffff 100%);
  box-shadow: 0 10px 28px rgba(176, 141, 87, 0.2);
}

.prayer-active-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.65rem;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.prayer-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(15, 81, 50, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: var(--transition-smooth);
}

.prayer-time-card.is-active .prayer-card-icon {
  background: var(--gold);
  color: #ffffff;
}

.prayer-name-en {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.prayer-name-ar {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}

.prayer-clock-time {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.prayer-time-card.is-active .prayer-clock-time {
  color: var(--primary);
}

.prayer-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

.countdown-clock {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.location-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 81, 50, 0.08);
  border: 1px solid rgba(15, 81, 50, 0.15);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   8. Cards & Content Modules
   ========================================================================== */
.islamic-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

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

.islamic-card-header {
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.islamic-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.card-category-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(15, 81, 50, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 81, 50, 0.15);
}

.card-category-badge.gold {
  color: var(--gold-dark);
  background: var(--gold-subtle);
  border-color: rgba(176, 141, 87, 0.25);
}

.card-title-editorial {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-title-editorial a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.card-title-editorial a:hover {
  color: var(--primary);
}

/* Audio Track Listing Component */
.audio-track-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.audio-track-item:hover {
  border-color: var(--gold);
  background-color: var(--surface-tint);
  transform: translateX(4px);
}

.track-btn-play {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.track-btn-play:hover {
  background: var(--primary-dark);
  color: var(--gold-light);
  transform: scale(1.05);
}

.track-btn-play.playing {
  background: var(--gold);
  color: #ffffff;
}

/* Book Showcase Cards */
.book-cover-wrap {
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.book-cover-img {
  max-height: 180px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.islamic-card:hover .book-cover-img {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   9. Interactive Floating Audio Player
   ========================================================================== */
.interactive-audio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-deep);
  color: #ffffff;
  border-top: 2px solid var(--gold);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  transition: var(--transition-smooth);
}

.audio-bar-play-toggle {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-bar-play-toggle:hover {
  background: var(--gold-light);
  color: var(--primary-deep);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ==========================================================================
   10. Gallery & Media Grid
   ========================================================================== */
.gallery-thumbnail-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-color);
  background: var(--cream);
  cursor: pointer;
}

.gallery-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumbnail-wrap:hover img {
  transform: scale(1.06);
}

.gallery-overlay-badge {
  position: absolute;
  inset: 0;
  background: rgba(7, 56, 34, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: #ffffff;
  font-size: 1.5rem;
}

.gallery-thumbnail-wrap:hover .gallery-overlay-badge {
  opacity: 1;
}

/* ==========================================================================
   11. Call to Action (CTA) Section
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 4rem 0;
  position: relative;
}

.cta-banner-section .cta-title {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   12. Footer Design
   ========================================================================== */
.site-footer {
  background-color: var(--primary-deep);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--gold);
  padding-top: 4rem;
  font-size: 0.925rem;
}

.footer-heading {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-bottom-strip {
  background: #03150c;
  border-top: 1px solid rgba(176, 141, 87, 0.2);
  padding: 1.25rem 0;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary-dark);
  color: var(--gold-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   13. Responsive Styles
   ========================================================================== */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1400px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .hero-card-arch {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
  }
  .brand-title-wrap .brand-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .interactive-audio-bar {
    padding: 0.5rem 0.75rem;
  }
  .audio-bar-play-toggle {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   14. Accessibility & Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
