/**
 * ============================================================================
 * PRYASKAY ABDY — MODERN HERITAGE / MANUSCRIPT LUXE STYLE (EXPERIMENTAL)
 * Preserves exact existing color palette (Sage Green #86b89c, Warm Parchment,
 * Espresso #361c0c, Royal Amber Gold) while elevating structure, symmetry,
 * manuscript borders, shadows, typography hierarchy, and eliminating stray blues.
 * ============================================================================
 */

/* 1. VELVETY SAGE CANVAS DEPTH (Same #86b89c color, richer tactile finish) */
#landingPage {
  background-color: #86b89c !important;
  background-image:
    radial-gradient(ellipse 85% 55% at 50% 18%, rgba(255, 252, 240, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(28, 56, 40, 0.14) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
}

#landingPage .landing-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%20fill%3D%22none%22%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.75%22%20opacity%3D%220.126%22%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2214%22%20stroke-dasharray%3D%222%202%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%227.5%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%222%22%20fill%3D%22%231b432e%22%2F%3E%20%3Cpath%20d%3D%22M90%2068v-5M90%20117v-5M68%2090h-5M117%2090h-5M74.4%2074.4l-3.5-3.5M109.1%20109.1l-3.5-3.5M105.6%2074.4l3.5-3.5M70.9%20109.1l3.5-3.5M82.5%2070l-1.5-4.5M99%20114.5l-1.5-4.5M110%2082.5l4.5-1.5M65.5%2099l4.5-1.5%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.8%22%20opacity%3D%220.147%22%3E%20%3Cpath%20d%3D%22M40%2024a12%2012%200%201%200%2011%2016.5A9.5%209.5%200%201%201%2040%2024Z%22%20fill%3D%22%231b432e%22%20fill-opacity%3D%220.05%22%2F%3E%20%3Cpath%20d%3D%22M52%2024l1.2%203.2%203.2%201.2-3.2%201.2-1.2%203.2-1.2-3.2-3.2-1.2%203.2-1.2Z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.75%22%20opacity%3D%220.126%22%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%226.5%22%20fill%3D%22%231b432e%22%20fill-opacity%3D%220.14%22%2F%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%223%22%20fill%3D%22%231b432e%22%20fill-opacity%3D%220.35%22%2F%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%2210%22%20stroke-dasharray%3D%221.8%202.2%22%2F%3E%20%3Cpath%20d%3D%22M139%20124v-4M139%20158v-4M124%20139h-4M158%20139h-4M128.4%20128.4l-2.8-2.8M152.4%20152.4l-2.8-2.8M149.6%20128.4l2.8-2.8M125.6%20152.4l2.8-2.8%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.7%22%20opacity%3D%220.126%22%3E%20%3Cpath%20d%3D%22M142%2030l2%206%206%202-6%202-2%206-2-6-6-2%206-2Z%22%2F%3E%20%3Ccircle%20cx%3D%22142%22%20cy%3D%2238%22%20r%3D%2213%22%20stroke-dasharray%3D%221.5%203.5%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.75%22%20opacity%3D%220.147%22%3E%20%3Cpath%20d%3D%22M44%20134a10%2010%200%201%201-9.5%2013.5%208%208%200%201%200%209.5-13.5Z%22%2F%3E%20%3Cpath%20d%3D%22M29%20144l1%202.6%202.6%201-2.6%201-1%202.6-1-2.6-2.6-1%202.6-1Z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%231b432e%22%20stroke-width%3D%220.55%22%20opacity%3D%220.084%22%3E%20%3Cpath%20d%3D%22M90%200v14M90%20166v14M0%2090h14M166%2090h14%22%20stroke-dasharray%3D%222%203%22%2F%3E%20%3Cpath%20d%3D%22M0%200l16%2016M180%200l-16%2016M0%20180l16-16M180%20180l-16-16%22%20stroke-dasharray%3D%221.5%203%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%22160%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%2220%22%20cy%3D%2290%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%22160%22%20cy%3D%2290%22%20r%3D%221.5%22%2F%3E%20%3Cpath%20d%3D%22M22%2058l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M158%2064l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M64%20162l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M118%2018l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E") !important;
  background-size: 180px 180px !important;
  background-repeat: repeat !important;
  mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
}

/* 2. TOP NAVIGATION BAR — CLEAN MANUSCRIPT HEADER */
#landingHeader.landing-navbar-premium {
  background: rgba(238, 224, 204, 0.95) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.34) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 251, 244, 0.55),
    0 10px 28px -10px rgba(42, 24, 10, 0.16) !important;
  padding-top: 0.72rem !important;
  padding-bottom: 0.72rem !important;
}

/* Exquisite Islamic Calligraphic Brand Word "پریاسکە" Sliding & Emerging from Emblem */
@keyframes pryaskaIslamicEmergence {
  0%, 10% {
    opacity: 0;
    transform: translateX(38px) scale(0.72) rotate(-2deg);
    filter: blur(6px);
    clip-path: inset(-30% -20% -35% 100%);
    pointer-events: none;
  }
  22% {
    opacity: 1;
    transform: translateX(-3px) scale(1.04) rotate(0deg);
    filter: blur(0px) drop-shadow(0 2px 8px rgba(217, 119, 6, 0.28));
    clip-path: inset(-30% -20% -35% -20%);
    pointer-events: auto;
  }
  27% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    filter: blur(0px) drop-shadow(0 1px 4px rgba(23, 73, 47, 0.15));
    clip-path: inset(-30% -20% -35% -20%);
  }
  55% {
    opacity: 1;
    transform: translateX(-1.5px) translateY(-1px) scale(1.02);
    filter: blur(0px) drop-shadow(0 3px 10px rgba(217, 119, 6, 0.30));
    clip-path: inset(-30% -20% -35% -20%);
  }
  84% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    filter: blur(0px);
    clip-path: inset(-30% -20% -35% -20%);
    pointer-events: auto;
  }
  95%, 100% {
    opacity: 0;
    transform: translateX(38px) scale(0.72) rotate(-2deg);
    filter: blur(6px);
    clip-path: inset(-30% -20% -35% 100%);
    pointer-events: none;
  }
}

html body #landingHeader .logo-text-wrapper {
  overflow: visible !important;
  padding: 0.1rem 0.2rem !important;
}

html body #landingHeader .logo-text-animated,
html body #landingHeader .landing-brand-word {
  display: inline-block !important;
  animation: pryaskaIslamicEmergence 7.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
  transform-origin: right center !important;
  will-change: transform, opacity, filter, clip-path !important;
  color: #17492f !important;
  -webkit-text-fill-color: #17492f !important;
  font-family: 'Aref Ruqaa', 'Amiri Quran', 'Amiri', serif !important;
  font-size: clamp(1.55rem, 2.45vw, 1.95rem) !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 0.05rem 0.35rem 0.18rem !important;
  text-shadow:
    0 1px 0 rgba(255, 252, 244, 0.96),
    0 2px 0 rgba(180, 128, 44, 0.36),
    0 5px 14px rgba(23, 73, 47, 0.20) !important;
}

@keyframes pryaskaGoldenStrokeDance {
  0%, 17% {
    opacity: 0;
    transform: scaleX(0) translateX(10px);
    transform-origin: right center;
    background-position: 100% 50%;
    filter: blur(2px);
  }
  28% {
    opacity: 1;
    transform: scaleX(1.08) translateX(-2px);
    transform-origin: right center;
    background-position: 60% 50%;
    filter: blur(0px) drop-shadow(0 1px 6px rgba(245, 158, 11, 0.65));
  }
  34% {
    opacity: 0.96;
    transform: scaleX(0.96) translateX(0);
    transform-origin: center center;
    background-position: 35% 50%;
  }
  48% {
    opacity: 1;
    transform: scaleX(1.05) translateX(-3px);
    transform-origin: center center;
    background-position: 0% 50%;
    filter: blur(0px) drop-shadow(0 2px 8px rgba(251, 191, 36, 0.8));
  }
  64% {
    opacity: 0.95;
    transform: scaleX(0.92) translateX(2px);
    transform-origin: center center;
    background-position: -60% 50%;
    filter: blur(0px) drop-shadow(0 1px 5px rgba(217, 119, 6, 0.5));
  }
  77% {
    opacity: 1;
    transform: scaleX(1.02) translateX(0);
    transform-origin: right center;
    background-position: -100% 50%;
  }
  87%, 100% {
    opacity: 0;
    transform: scaleX(0) translateX(12px);
    transform-origin: right center;
    background-position: 100% 50%;
    filter: blur(2px);
  }
}

html body #landingHeader .landing-brand-word::after {
  content: "" !important;
  display: block !important;
  width: 92% !important;
  height: 2.5px !important;
  margin: -0.06rem auto 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #b45309 18%,
    #f59e0b 38%,
    #fef08a 50%,
    #f59e0b 62%,
    #b45309 82%,
    transparent 100%
  ) !important;
  background-size: 220% 100% !important;
  animation: pryaskaGoldenStrokeDance 7.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
  will-change: transform, opacity, background-position, filter !important;
}

#landingHeader .landing-emblem-box {
  background: linear-gradient(145deg, #fdf6ec 0%, #e4d4bd 100%) !important;
  border: 1.5px solid rgba(180, 83, 9, 0.42) !important;
  box-shadow:
    0 4px 12px -2px rgba(54, 28, 12, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  padding: 2px !important;
}

#landingHeader .landing-nav-login-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;
  color: #2b1406 !important;
  border: 1px solid rgba(180, 83, 9, 0.48) !important;
  border-radius: 0.85rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.65),
    0 6px 16px -4px rgba(180, 83, 9, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#landingHeader .landing-nav-login-btn:hover {
  transform: translateY(-1.5px) !important;
  filter: brightness(1.04) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.8),
    0 10px 22px -4px rgba(180, 83, 9, 0.45) !important;
}

/* 3. HERO STAGE — QURAN.COM INSPIRED FRAMELESS CALLIGRAPHIC CENTERPIECE */
html body #landingPage main {
  padding-top: 4.35rem !important;
}

@media (min-width: 640px) {
  html body #landingPage main {
    padding-top: 4.85rem !important;
  }
}

#landingPage #landingQuranHero.landing-quran-hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  padding-top: 0 !important;
  padding-bottom: 0.25rem !important;
  margin-top: -0.25rem !important;
}

#landingHeader #btnDialectDropdown.landing-nav-icon-btn {
  background: rgba(235, 219, 198, 0.92) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  color: #361c0c !important;
  border-radius: 9999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 8px -2px rgba(42, 24, 10, 0.14) !important;
}

#landingHeader #btnDialectDropdown.landing-nav-icon-btn:hover {
  background: rgba(226, 206, 180, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.52) !important;
  transform: translateY(-1px);
}

html body #landingPage #landingQuranHero #heroTitle.quran-hero-main-title {
  font-family: 'Aref Ruqaa', 'Amiri Quran', 'Amiri', serif !important;
  font-size: clamp(2.15rem, 5.1vw, 3.65rem) !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
  color: #fff8eb !important;
  -webkit-text-fill-color: #fff8eb !important;
  letter-spacing: 0 !important;
  text-shadow:
    0 2px 0 #173d2b,
    0 6px 18px rgba(16, 44, 30, 0.42),
    0 0 22px rgba(245, 158, 11, 0.20) !important;
  padding-top: 0 !important;
  padding-bottom: 0.2rem !important;
  margin: 0 auto 0.2rem !important;
}

html body #landingPage #landingQuranHero #heroTitle.quran-hero-main-title::after {
  content: "" !important;
  display: block !important;
  width: 6rem !important;
  height: 2px !important;
  margin: 0.35rem auto 0.15rem !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 248, 235, 0.45) 20%, #fbbf24 50%, rgba(255, 248, 235, 0.45) 80%, transparent 100%) !important;
}

html body #landingPage #landingQuranHero #heroSubtitle.quran-hero-subtitle {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: clamp(1rem, 1.55vw, 1.2rem) !important;
  color: #fef3c7 !important;
  -webkit-text-fill-color: #fef3c7 !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  text-shadow:
    0 1.5px 6px rgba(14, 40, 26, 0.65),
    0 1px 2px rgba(12, 35, 23, 0.8) !important;
  margin-top: 0.1rem !important;
}

/* Wide Rounded-Full Search Bar (Quran.com Hero Search Pill) */
#landingPage .quran-hero-search-bar {
  background: linear-gradient(166deg, rgba(247, 238, 224, 0.98) 0%, rgba(235, 220, 198, 0.97) 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.46) !important;
  box-shadow:
    0 18px 40px -12px rgba(28, 16, 6, 0.24),
    0 4px 12px -3px rgba(28, 16, 6, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  color: #361c0c !important;
}

#landingPage .quran-hero-search-bar:hover,
#landingPage .quran-hero-search-bar:focus-within {
  border-color: rgba(180, 83, 9, 0.72) !important;
  box-shadow:
    0 22px 44px -12px rgba(28, 16, 6, 0.28),
    0 0 0 3px rgba(245, 158, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

#landingPage .quran-hero-search-icon {
  color: #b45309 !important;
}

#landingPage .quran-hero-search-placeholder,
#landingPage #heroInlineSearchInput.quran-hero-search-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #361c0c !important;
  -webkit-text-fill-color: #361c0c !important;
  font-family: 'Noto Naskh Arabic', 'Amiri', serif !important;
  font-weight: 700 !important;
  width: 100% !important;
  padding: 0.1rem 0 !important;
  margin: 0 !important;
}

#landingPage #heroInlineSearchInput.quran-hero-search-input::placeholder {
  color: #54371f !important;
  -webkit-text-fill-color: #54371f !important;
  opacity: 0.92 !important;
  font-weight: 600 !important;
}

#landingPage #heroInlineSearchResults.quran-hero-search-dropdown {
  position: absolute !important;
  top: calc(100% + 0.55rem) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 80 !important;
  max-height: 22rem !important;
  overflow-y: auto !important;
  border-radius: 1.35rem !important;
  background: linear-gradient(166deg, rgba(248, 240, 227, 0.99) 0%, rgba(235, 220, 198, 0.98) 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.48) !important;
  box-shadow:
    0 24px 48px -12px rgba(28, 16, 6, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  padding: 0.65rem !important;
  text-align: right !important;
  direction: rtl !important;
}

#landingPage .quran-hero-search-badge {
  background: rgba(217, 119, 6, 0.15) !important;
  border: 1px solid rgba(180, 83, 9, 0.32) !important;
  color: #92400e !important;
}

/* Quick Action Pill Buttons Below Search Bar (Quran.com Pill Row) */
#landingPage .quran-hero-pill-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;
  color: #261204 !important;
  border: 1px solid rgba(180, 83, 9, 0.52) !important;
  box-shadow:
    0 10px 22px -6px rgba(180, 83, 9, 0.42),
    inset 0 1px 0 rgba(255, 250, 230, 0.72) !important;
}

#landingPage .quran-hero-pill-primary:hover {
  filter: brightness(1.04) !important;
  transform: translateY(-1.5px) !important;
}

#landingPage .quran-hero-pill-outline {
  background: rgba(244, 233, 216, 0.88) !important;
  color: #361c0c !important;
  border: 1.5px solid rgba(156, 120, 78, 0.46) !important;
  box-shadow:
    0 8px 18px -6px rgba(34, 20, 8, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

#landingPage .quran-hero-pill-outline:hover {
  background: rgba(249, 241, 228, 0.98) !important;
  border-color: rgba(180, 83, 9, 0.58) !important;
  transform: translateY(-1.5px) !important;
}

/* 4. THE 4 FEATURED ACTION CARDS — ARCHITECTURAL SYMMETRIC FOLIO TILES */
#landingFeaturedDualSection {
  margin-top: 1.75rem !important;
  margin-bottom: 2.25rem !important;
}

#landingFeaturedDualSection > .grid {
  gap: 1rem !important;
}

/* Target all 4 interactive cards uniformly */
#landingFeaturedDualSection > div > button,
#landingFeaturedDualSection > div > div > a,
#landingFeaturedDualSection > div > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 0.95rem !important;
  padding: 1.25rem 1.3rem !important;
  border-radius: 1.45rem !important;
  background: linear-gradient(165deg, rgba(244, 233, 216, 0.98) 0%, rgba(228, 211, 187, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  box-shadow:
    0 16px 34px -12px rgba(34, 22, 10, 0.22),
    0 4px 10px -3px rgba(34, 22, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
  position: relative !important;
  min-height: 148px !important;
}

/* Delicate inner hairline manuscript border on each action card */
#landingFeaturedDualSection > div > button::before,
#landingFeaturedDualSection > div > div > a::before,
#landingFeaturedDualSection > div > a::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 1.1rem;
  border: 1px solid rgba(156, 120, 78, 0.18);
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.28s ease;
}

#landingFeaturedDualSection > div > button:hover,
#landingFeaturedDualSection > div > div > a:hover,
#landingFeaturedDualSection > div > a:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(180, 83, 9, 0.55) !important;
  box-shadow:
    0 24px 44px -12px rgba(34, 22, 10, 0.28),
    0 8px 18px -4px rgba(180, 83, 9, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

#landingFeaturedDualSection > div > button:hover::before,
#landingFeaturedDualSection > div > div > a:hover::before,
#landingFeaturedDualSection > div > a:hover::before {
  border-color: rgba(217, 119, 6, 0.34);
}

/* Card top content wrapper: Icon + Title + Optional Subtitle get full width */
#landingFeaturedDualSection > div > button > div.min-w-0,
#landingFeaturedDualSection > div > div > a > div.min-w-0,
#landingFeaturedDualSection > div > a > div.min-w-0 {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Jewel-crafted Golden Icon Badge inside cards */
#landingFeaturedDualSection > div > button > div.min-w-0 > div:first-child,
#landingFeaturedDualSection > div > div > a > div.min-w-0 > div:first-child,
#landingFeaturedDualSection > div > a > div.min-w-0 > div:first-child {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.95rem !important;
  border: 1px solid rgba(254, 243, 199, 0.6) !important;
  box-shadow:
    0 8px 16px -4px rgba(180, 83, 9, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

/* Crisp single-line Titles & Full Readable Subtitle without ugly ellipsis */
#landingFeaturedDualSection h3 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  color: #361c0c !important;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
}

#landingFeaturedDualSection p {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif !important;
  color: #54371f !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  margin-top: 0.15rem !important;
}

/* Bottom Action Strip inside each card — Sleek Editorial Footer Bar */
#landingFeaturedDualSection > div > button > div.shrink-0,
#landingFeaturedDualSection > div > div > a > div.shrink-0,
#landingFeaturedDualSection > div > a > div.shrink-0 {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(156, 120, 78, 0.22) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.72rem 0.1rem 0 0.1rem !important;
  margin-top: auto !important;
  gap: 0.5rem !important;
}

#landingFeaturedDualSection > div > button > div.shrink-0 > span,
#landingFeaturedDualSection > div > div > a > div.shrink-0 > span,
#landingFeaturedDualSection > div > a > div.shrink-0 > span {
  color: #78350f !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

#landingFeaturedDualSection > div > button:hover > div.shrink-0 > span,
#landingFeaturedDualSection > div > div > a:hover > div.shrink-0 > span,
#landingFeaturedDualSection > div > a:hover > div.shrink-0 > span {
  color: #361c0c !important;
}

#landingFeaturedDualSection > div > button > div.shrink-0 > i,
#landingFeaturedDualSection > div > div > a > div.shrink-0 > i,
#landingFeaturedDualSection > div > a > div.shrink-0 > i {
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.14) 100%) !important;
  border: 1px solid rgba(180, 83, 9, 0.34) !important;
  color: #78350f !important;
  font-size: 0.68rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#landingFeaturedDualSection > div > button:hover > div.shrink-0 > i,
#landingFeaturedDualSection > div > div > a:hover > div.shrink-0 > i,
#landingFeaturedDualSection > div > a:hover > div.shrink-0 > i {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%) !important;
  border-color: rgba(180, 83, 9, 0.55) !important;
  color: #2b1406 !important;
  transform: translateX(-3px) !important;
  box-shadow: 0 4px 10px -2px rgba(180, 83, 9, 0.35) !important;
}

/* Mobile adjustment: keep super crisp & comfortable spacing */
@media (max-width: 639px) {
  #landingFeaturedDualSection > div > button,
  #landingFeaturedDualSection > div > div > a,
  #landingFeaturedDualSection > div > a {
    min-height: 124px !important;
    padding: 1.05rem 1.15rem !important;
    gap: 0.75rem !important;
  }
}

/* 5. ANNOUNCEMENTS SECTION — HARMONIZED WARM PARCHMENT & BRONZE */
#announcementsSection .landing-section-header {
  border-bottom: 1px solid rgba(40, 22, 10, 0.16) !important;
  padding-bottom: 0.95rem !important;
}

/* Replace stray blue megaphone icon badge with Warm Parchment Emblem */
#announcementsSection .landing-section-icon-badge.landing-badge-sapphire {
  width: 2.65rem !important;
  height: 2.65rem !important;
  border-radius: 0.9rem !important;
  background: linear-gradient(145deg, rgba(244, 233, 216, 0.98) 0%, rgba(228, 211, 188, 0.96) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.42) !important;
  color: #b45309 !important;
  box-shadow:
    0 6px 14px -4px rgba(34, 22, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#announcementsSection #postsHeaderTitle {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.45rem !important;
  color: #241307 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

#announcementsSection #postsHeaderSubtitle {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif !important;
  color: #2d1b0e !important;
  opacity: 0.88 !important;
  font-weight: 500 !important;
}

/* Replace stray teal counter pill and pure white arrows with Warm Parchment controls */
#announcementsSection #annCounter.landing-counter-pill {
  background: linear-gradient(145deg, rgba(244, 233, 216, 0.98), rgba(228, 211, 188, 0.96)) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  color: #361c0c !important;
  box-shadow:
    0 4px 10px -3px rgba(34, 22, 10, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  padding: 0.32rem 0.85rem !important;
  font-weight: 800 !important;
}

#announcementsSection .landing-carousel-arrow {
  width: 2.2rem !important;
  height: 2.2rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(145deg, rgba(244, 233, 216, 0.98), rgba(228, 211, 188, 0.96)) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  color: #361c0c !important;
  box-shadow:
    0 4px 10px -3px rgba(34, 22, 10, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transition: all 0.2s ease !important;
}

#announcementsSection .landing-carousel-arrow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border-color: rgba(180, 83, 9, 0.5) !important;
  color: #2b1406 !important;
  transform: translateY(-1px) !important;
}

/* Manuscript Editorial Announcement Card */
#announcementsSection #announcementActiveCard.landing-ann-card {
  background: linear-gradient(166deg, rgba(244, 233, 216, 0.99) 0%, rgba(229, 212, 188, 0.97) 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  border-right: 4px solid #d97706 !important;
  border-radius: 1.5rem !important;
  box-shadow:
    0 20px 46px -14px rgba(34, 22, 10, 0.22),
    0 6px 14px -4px rgba(34, 22, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  position: relative !important;
}

#announcementsSection #announcementActiveCard.landing-ann-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 1.15rem;
  border: 1px solid rgba(156, 120, 78, 0.18);
  pointer-events: none;
  z-index: 1;
}

#announcementsSection #annCardContentWrapper {
  position: relative !important;
  z-index: 2 !important;
}

#announcementsSection #annActiveTitle {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem) !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

#announcementsSection #annActiveContent {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
}

/* Warm Amber Progress Bar & Dots (eliminating cyan/blue) */
#announcementsSection .ann-progress-track {
  background: rgba(156, 120, 78, 0.14) !important;
  height: 3px !important;
}

#announcementsSection #annProgressBar {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 60%, #b45309 100%) !important;
}

#announcementsSection #annDotsContainer .ann-dot {
  background: rgba(156, 120, 78, 0.30) !important;
}

#announcementsSection #annDotsContainer .ann-dot.active {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%) !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.38) !important;
}

#announcementsSection #annActiveDate {
  color: #785336 !important;
  font-weight: 600 !important;
}

#announcementsSection .landing-ann-author {
  color: #78350f !important;
}

#announcementsSection #announcementActiveCard .border-t {
  border-top-color: rgba(156, 120, 78, 0.22) !important;
}

/* 6. FOOTER POLISH */
#landingPage footer.landing-footer {
  background: rgba(238, 224, 204, 0.96) !important;
  border-top: 1px solid rgba(156, 120, 78, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 251, 244, 0.6) !important;
  padding-top: 1.45rem !important;
  padding-bottom: 1.45rem !important;
}

/* Strictly hide top header search button on landing page & enforce .hidden override */
.hidden,
[hidden],
#btnAdminAddAnn.hidden,
#emptyPostSlot.hidden,
#annAdminCardActions.hidden,
#landingHeader #globalSearchTriggerBtn,
#landingHeader .pgs-trigger-btn {
  display: none !important;
}

#announcementsSection #btnAdminAddAnn:not(.hidden) {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%) !important;
  color: #261204 !important;
  border: 1px solid rgba(180, 83, 9, 0.48) !important;
  box-shadow: 0 6px 16px -4px rgba(180, 83, 9, 0.35) !important;
}


/* ============================================================================
 * 7. DARK MODE (QURAN.COM NOCTURNAL EMERALD-OBSIDIAN & WARM GOLD THEME)
 * Activated when html has class 'dark' or body has 'dark-theme' / 'dark-mode'
 * ============================================================================ */
html.dark #landingPage,
body.dark-theme #landingPage,
body.dark-mode #landingPage {
  background-color: #0e1713 !important;
  background-image:
    radial-gradient(ellipse 85% 55% at 50% 18%, rgba(16, 185, 129, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(4, 15, 10, 0.7) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  color: #fff8eb !important;
}

html.dark #landingPage .landing-grid-pattern,
body.dark-theme #landingPage .landing-grid-pattern,
body.dark-mode #landingPage .landing-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%20fill%3D%22none%22%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.75%22%20opacity%3D%220.102%22%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2214%22%20stroke-dasharray%3D%222%202%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%227.5%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%222%22%20fill%3D%22%23fbbf24%22%2F%3E%20%3Cpath%20d%3D%22M90%2068v-5M90%20117v-5M68%2090h-5M117%2090h-5M74.4%2074.4l-3.5-3.5M109.1%20109.1l-3.5-3.5M105.6%2074.4l3.5-3.5M70.9%20109.1l3.5-3.5M82.5%2070l-1.5-4.5M99%20114.5l-1.5-4.5M110%2082.5l4.5-1.5M65.5%2099l4.5-1.5%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.8%22%20opacity%3D%220.119%22%3E%20%3Cpath%20d%3D%22M40%2024a12%2012%200%201%200%2011%2016.5A9.5%209.5%200%201%201%2040%2024Z%22%20fill%3D%22%23fbbf24%22%20fill-opacity%3D%220.05%22%2F%3E%20%3Cpath%20d%3D%22M52%2024l1.2%203.2%203.2%201.2-3.2%201.2-1.2%203.2-1.2-3.2-3.2-1.2%203.2-1.2Z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.75%22%20opacity%3D%220.102%22%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%226.5%22%20fill%3D%22%23fbbf24%22%20fill-opacity%3D%220.14%22%2F%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%223%22%20fill%3D%22%23fbbf24%22%20fill-opacity%3D%220.35%22%2F%3E%20%3Ccircle%20cx%3D%22139%22%20cy%3D%22139%22%20r%3D%2210%22%20stroke-dasharray%3D%221.8%202.2%22%2F%3E%20%3Cpath%20d%3D%22M139%20124v-4M139%20158v-4M124%20139h-4M158%20139h-4M128.4%20128.4l-2.8-2.8M152.4%20152.4l-2.8-2.8M149.6%20128.4l2.8-2.8M125.6%20152.4l2.8-2.8%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.7%22%20opacity%3D%220.102%22%3E%20%3Cpath%20d%3D%22M142%2030l2%206%206%202-6%202-2%206-2-6-6-2%206-2Z%22%2F%3E%20%3Ccircle%20cx%3D%22142%22%20cy%3D%2238%22%20r%3D%2213%22%20stroke-dasharray%3D%221.5%203.5%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.75%22%20opacity%3D%220.119%22%3E%20%3Cpath%20d%3D%22M44%20134a10%2010%200%201%201-9.5%2013.5%208%208%200%201%200%209.5-13.5Z%22%2F%3E%20%3Cpath%20d%3D%22M29%20144l1%202.6%202.6%201-2.6%201-1%202.6-1-2.6-2.6-1%202.6-1Z%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%220.55%22%20opacity%3D%220.068%22%3E%20%3Cpath%20d%3D%22M90%200v14M90%20166v14M0%2090h14M166%2090h14%22%20stroke-dasharray%3D%222%203%22%2F%3E%20%3Cpath%20d%3D%22M0%200l16%2016M180%200l-16%2016M0%20180l16-16M180%20180l-16-16%22%20stroke-dasharray%3D%221.5%203%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2220%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%22160%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%2220%22%20cy%3D%2290%22%20r%3D%221.5%22%2F%3E%20%3Ccircle%20cx%3D%22160%22%20cy%3D%2290%22%20r%3D%221.5%22%2F%3E%20%3Cpath%20d%3D%22M22%2058l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M158%2064l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M64%20162l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3Cpath%20d%3D%22M118%2018l.9%202.1%202.1.9-2.1.9-.9%202.1-.9-2.1-2.1-.9%202.1-.9Z%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E") !important;
  background-size: 180px 180px !important;
  background-repeat: repeat !important;
  mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.9) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.9) 20%, transparent 80%);
}

/* TOP NAVBAR DARK */
html.dark #landingHeader.landing-navbar-premium,
body.dark-theme #landingHeader.landing-navbar-premium,
body.dark-mode #landingHeader.landing-navbar-premium {
  background: rgba(14, 23, 18, 0.94) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px -10px rgba(0, 0, 0, 0.65) !important;
}

html.dark #landingHeader .landing-emblem-box,
body.dark-theme #landingHeader .landing-emblem-box,
body.dark-mode #landingHeader .landing-emblem-box {
  background: linear-gradient(145deg, #1c2e24 0%, #101c15 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

html.dark #landingHeader .logo-text-animated,
html.dark #landingHeader .landing-brand-word,
body.dark-theme #landingHeader .logo-text-animated,
body.dark-theme #landingHeader .landing-brand-word,
body.dark-mode #landingHeader .logo-text-animated,
body.dark-mode #landingHeader .landing-brand-word {
  color: #fff8eb !important;
  -webkit-text-fill-color: #fff8eb !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(245, 158, 11, 0.4),
    0 0 20px rgba(16, 185, 129, 0.25) !important;
}

html.dark #landingHeader .landing-nav-icon-btn,
body.dark-theme #landingHeader .landing-nav-icon-btn,
body.dark-mode #landingHeader .landing-nav-icon-btn {
  background: rgba(22, 36, 28, 0.92) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  color: #fef3c7 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark #landingHeader .landing-nav-icon-btn:hover,
body.dark-theme #landingHeader .landing-nav-icon-btn:hover,
body.dark-mode #landingHeader .landing-nav-icon-btn:hover {
  background: rgba(30, 48, 38, 0.98) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #ffffff !important;
}

html.dark #dialectDropdownMenu,
body.dark-theme #dialectDropdownMenu,
body.dark-mode #dialectDropdownMenu {
  background: rgba(18, 29, 23, 0.98) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8) !important;
  color: #fef3c7 !important;
}

html.dark #dialectDropdownMenu .dialect-option,
body.dark-theme #dialectDropdownMenu .dialect-option,
body.dark-mode #dialectDropdownMenu .dialect-option {
  color: #fef3c7 !important;
}

html.dark #dialectDropdownMenu .dialect-option:hover,
body.dark-theme #dialectDropdownMenu .dialect-option:hover,
body.dark-mode #dialectDropdownMenu .dialect-option:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #ffffff !important;
}

/* HERO TITLE & SUBTITLE DARK */
html.dark #landingPage #landingQuranHero #heroTitle.quran-hero-main-title,
body.dark-theme #landingPage #landingQuranHero #heroTitle.quran-hero-main-title,
body.dark-mode #landingPage #landingQuranHero #heroTitle.quran-hero-main-title {
  color: #fff8eb !important;
  -webkit-text-fill-color: #fff8eb !important;
  text-shadow:
    0 2px 0 #050d08,
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(245, 158, 11, 0.35) !important;
}

html.dark #landingPage #landingQuranHero #heroSubtitle.quran-hero-subtitle,
body.dark-theme #landingPage #landingQuranHero #heroSubtitle.quran-hero-subtitle,
body.dark-mode #landingPage #landingQuranHero #heroSubtitle.quran-hero-subtitle {
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
  text-shadow:
    0 1.5px 6px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* HERO SEARCH BAR DARK */
html.dark #landingPage .quran-hero-search-bar,
body.dark-theme #landingPage .quran-hero-search-bar,
body.dark-mode #landingPage .quran-hero-search-bar {
  background: linear-gradient(166deg, rgba(22, 36, 28, 0.98) 0%, rgba(15, 25, 20, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.42) !important;
  box-shadow:
    0 20px 45px -10px rgba(0, 0, 0, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #fff8eb !important;
}

html.dark #landingPage .quran-hero-search-bar:hover,
html.dark #landingPage .quran-hero-search-bar:focus-within,
body.dark-theme #landingPage .quran-hero-search-bar:hover,
body.dark-theme #landingPage .quran-hero-search-bar:focus-within,
body.dark-mode #landingPage .quran-hero-search-bar:hover,
body.dark-mode #landingPage .quran-hero-search-bar:focus-within {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow:
    0 22px 48px -12px rgba(0, 0, 0, 0.75),
    0 0 0 3px rgba(245, 158, 11, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html.dark #landingPage .quran-hero-search-icon,
body.dark-theme #landingPage .quran-hero-search-icon,
body.dark-mode #landingPage .quran-hero-search-icon {
  color: #f59e0b !important;
}

html.dark #landingPage #heroInlineSearchInput.quran-hero-search-input,
body.dark-theme #landingPage #heroInlineSearchInput.quran-hero-search-input,
body.dark-mode #landingPage #heroInlineSearchInput.quran-hero-search-input {
  color: #fff8eb !important;
  -webkit-text-fill-color: #fff8eb !important;
}

html.dark #landingPage #heroInlineSearchInput.quran-hero-search-input::placeholder,
body.dark-theme #landingPage #heroInlineSearchInput.quran-hero-search-input::placeholder,
body.dark-mode #landingPage #heroInlineSearchInput.quran-hero-search-input::placeholder {
  color: #a7bfae !important;
  -webkit-text-fill-color: #a7bfae !important;
}

html.dark #landingPage #heroInlineSearchResults.quran-hero-search-dropdown,
body.dark-theme #landingPage #heroInlineSearchResults.quran-hero-search-dropdown,
body.dark-mode #landingPage #heroInlineSearchResults.quran-hero-search-dropdown {
  background: linear-gradient(166deg, rgba(20, 32, 25, 0.99) 0%, rgba(13, 22, 17, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow:
    0 24px 50px -10px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #fef3c7 !important;
}

html.dark #landingPage #heroInlineSearchResults .search-result-item:hover,
body.dark-theme #landingPage #heroInlineSearchResults .search-result-item:hover,
body.dark-mode #landingPage #heroInlineSearchResults .search-result-item:hover {
  background: rgba(245, 158, 11, 0.12) !important;
}

/* QUICK ACTION PILL BUTTONS DARK */
html.dark #landingPage .quran-hero-pill-outline,
body.dark-theme #landingPage .quran-hero-pill-outline,
body.dark-mode #landingPage .quran-hero-pill-outline {
  background: rgba(20, 34, 26, 0.88) !important;
  color: #fef3c7 !important;
  border: 1.5px solid rgba(245, 158, 11, 0.38) !important;
  box-shadow:
    0 8px 20px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark #landingPage .quran-hero-pill-outline:hover,
body.dark-theme #landingPage .quran-hero-pill-outline:hover,
body.dark-mode #landingPage .quran-hero-pill-outline:hover {
  background: rgba(26, 44, 34, 0.98) !important;
  border-color: rgba(245, 158, 11, 0.65) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px) !important;
}

/* THE 4 FEATURED ACTION CARDS DARK */
html.dark #landingFeaturedDualSection > div > button,
html.dark #landingFeaturedDualSection > div > div > a,
html.dark #landingFeaturedDualSection > div > a,
body.dark-theme #landingFeaturedDualSection > div > button,
body.dark-theme #landingFeaturedDualSection > div > div > a,
body.dark-theme #landingFeaturedDualSection > div > a,
body.dark-mode #landingFeaturedDualSection > div > button,
body.dark-mode #landingFeaturedDualSection > div > div > a,
body.dark-mode #landingFeaturedDualSection > div > a {
  background: linear-gradient(165deg, rgba(20, 33, 26, 0.98) 0%, rgba(14, 23, 18, 0.97) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  box-shadow:
    0 18px 38px -12px rgba(0, 0, 0, 0.65),
    0 4px 10px -3px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html.dark #landingFeaturedDualSection > div > button::before,
html.dark #landingFeaturedDualSection > div > div > a::before,
html.dark #landingFeaturedDualSection > div > a::before,
body.dark-theme #landingFeaturedDualSection > div > button::before,
body.dark-theme #landingFeaturedDualSection > div > div > a::before,
body.dark-theme #landingFeaturedDualSection > div > a::before,
body.dark-mode #landingFeaturedDualSection > div > button::before,
body.dark-mode #landingFeaturedDualSection > div > div > a::before,
body.dark-mode #landingFeaturedDualSection > div > a::before {
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
}

html.dark #landingFeaturedDualSection > div > button:hover,
html.dark #landingFeaturedDualSection > div > div > a:hover,
html.dark #landingFeaturedDualSection > div > a:hover,
body.dark-theme #landingFeaturedDualSection > div > button:hover,
body.dark-theme #landingFeaturedDualSection > div > div > a:hover,
body.dark-theme #landingFeaturedDualSection > div > a:hover,
body.dark-mode #landingFeaturedDualSection > div > button:hover,
body.dark-mode #landingFeaturedDualSection > div > div > a:hover,
body.dark-mode #landingFeaturedDualSection > div > a:hover {
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow:
    0 24px 44px -12px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html.dark #landingFeaturedDualSection h3,
body.dark-theme #landingFeaturedDualSection h3,
body.dark-mode #landingFeaturedDualSection h3 {
  color: #fff8eb !important;
}

html.dark #landingFeaturedDualSection p,
body.dark-theme #landingFeaturedDualSection p,
body.dark-mode #landingFeaturedDualSection p {
  color: #cbd5e1 !important;
}

/* ANNOUNCEMENTS CARD DARK */
html.dark #announcementsSection #announcementActiveCard.landing-ann-card,
body.dark-theme #announcementsSection #announcementActiveCard.landing-ann-card,
body.dark-mode #announcementsSection #announcementActiveCard.landing-ann-card {
  background: linear-gradient(166deg, rgba(20, 34, 26, 0.99) 0%, rgba(13, 23, 17, 0.98) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
  border-right: 4px solid #f59e0b !important;
  box-shadow:
    0 20px 46px -14px rgba(0, 0, 0, 0.75),
    0 6px 14px -4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark #announcementsSection #announcementActiveCard.landing-ann-card::before,
body.dark-theme #announcementsSection #announcementActiveCard.landing-ann-card::before,
body.dark-mode #announcementsSection #announcementActiveCard.landing-ann-card::before {
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
}

html.dark #announcementsSection #annActiveTitle,
body.dark-theme #announcementsSection #annActiveTitle,
body.dark-mode #announcementsSection #annActiveTitle {
  color: #fff8eb !important;
}

html.dark #announcementsSection #annActiveContent,
body.dark-theme #announcementsSection #annActiveContent,
body.dark-mode #announcementsSection #annActiveContent {
  color: #e2e8f0 !important;
}

html.dark #announcementsSection #annActiveDate,
body.dark-theme #announcementsSection #annActiveDate,
body.dark-mode #announcementsSection #annActiveDate {
  color: #fcd34d !important;
}

html.dark #announcementsSection .landing-section-header,
body.dark-theme #announcementsSection .landing-section-header,
body.dark-mode #announcementsSection .landing-section-header {
  border-bottom-color: rgba(245, 158, 11, 0.22) !important;
}

html.dark #announcementsSection .landing-section-icon-badge,
body.dark-theme #announcementsSection .landing-section-icon-badge,
body.dark-mode #announcementsSection .landing-section-icon-badge {
  background: linear-gradient(145deg, rgba(24, 39, 30, 0.96) 0%, rgba(15, 25, 20, 0.96) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
  color: #fbbf24 !important;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.65) !important;
}

html.dark #announcementsSection #postsHeaderTitle,
body.dark-theme #announcementsSection #postsHeaderTitle,
body.dark-mode #announcementsSection #postsHeaderTitle {
  color: #fff8eb !important;
  -webkit-text-fill-color: #fff8eb !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

html.dark #announcementsSection #postsHeaderSubtitle,
body.dark-theme #announcementsSection #postsHeaderSubtitle,
body.dark-mode #announcementsSection #postsHeaderSubtitle {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.dark #announcementsSection #annCounter.landing-counter-pill,
html.dark #announcementsSection .landing-carousel-arrow,
body.dark-theme #announcementsSection #annCounter.landing-counter-pill,
body.dark-theme #announcementsSection .landing-carousel-arrow,
body.dark-mode #announcementsSection #annCounter.landing-counter-pill,
body.dark-mode #announcementsSection .landing-carousel-arrow {
  background: rgba(22, 36, 28, 0.95) !important;
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
  color: #fef3c7 !important;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.55) !important;
}

html.dark #announcementsSection .landing-carousel-arrow:hover,
body.dark-theme #announcementsSection .landing-carousel-arrow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #261204 !important;
}

html.dark #landingPage .glass-card,
html.dark #landingPage .landing-pillar-card,
html.dark #landingPage .fb-post-card,
body.dark-theme #landingPage .glass-card,
body.dark-theme #landingPage .landing-pillar-card,
body.dark-theme #landingPage .fb-post-card {
  background: linear-gradient(166deg, rgba(20, 34, 26, 0.98) 0%, rgba(13, 22, 17, 0.98) 100%) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
  color: #e2e8f0 !important;
}

html.dark #landingPage .glass-card h3,
html.dark #landingPage .landing-pillar-card h4,
html.dark #landingPage .fb-post-card h3 {
  color: #fff8eb !important;
}

html.dark #landingPage .glass-card p,
html.dark #landingPage .landing-pillar-card p,
html.dark #landingPage .fb-post-card p {
  color: #cbd5e1 !important;
}

html.dark #announcementsSection .landing-ann-author,
body.dark-theme #announcementsSection .landing-ann-author,
body.dark-mode #announcementsSection .landing-ann-author {
  color: #fbbf24 !important;
}

html.dark #announcementsSection #announcementActiveCard .border-t,
body.dark-theme #announcementsSection #announcementActiveCard .border-t,
body.dark-mode #announcementsSection #announcementActiveCard .border-t {
  border-top-color: rgba(245, 158, 11, 0.20) !important;
}

/* DREAMS GATEWAY SECTION DARK */
html.dark #dreamsGatewaySection .landing-dreams-banner,
html.dark #dreamsGatewaySection .glass-card,
body.dark-theme #dreamsGatewaySection .landing-dreams-banner,
body.dark-theme #dreamsGatewaySection .glass-card,
body.dark-mode #dreamsGatewaySection .landing-dreams-banner,
body.dark-mode #dreamsGatewaySection .glass-card {
  background: linear-gradient(165deg, rgba(20, 33, 26, 0.98) 0%, rgba(14, 23, 18, 0.97) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  box-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html.dark #dreamsGatewaySection #dreamGatewayTitle,
body.dark-theme #dreamsGatewaySection #dreamGatewayTitle,
body.dark-mode #dreamsGatewaySection #dreamGatewayTitle {
  color: #fff8eb !important;
}

html.dark #dreamsGatewaySection #dreamGatewayDesc,
body.dark-theme #dreamsGatewaySection #dreamGatewayDesc,
body.dark-mode #dreamsGatewaySection #dreamGatewayDesc {
  color: #cbd5e1 !important;
}

/* FOOTER DARK */
html.dark #landingPage footer.landing-footer,
body.dark-theme #landingPage footer.landing-footer,
body.dark-mode #landingPage footer.landing-footer {
  background: rgba(13, 22, 17, 0.96) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

html.dark #landingPage footer.landing-footer span,
html.dark #landingPage footer.landing-footer a,
html.dark #landingPage footer.landing-footer p,
body.dark-theme #landingPage footer.landing-footer span,
body.dark-theme #landingPage footer.landing-footer a,
body.dark-theme #landingPage footer.landing-footer p,
body.dark-mode #landingPage footer.landing-footer span,
body.dark-mode #landingPage footer.landing-footer a,
body.dark-mode #landingPage footer.landing-footer p {
  color: #cbd5e1 !important;
}

/* SMOOTH TRANSITION */
#landingPage,
#landingHeader,
.quran-hero-search-bar,
.landing-ann-card,
.landing-footer,
.landing-nav-icon-btn,
.quran-hero-pill-outline {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease !important;
}


/* ============================================================================
 * 8. TOP NAVBAR ICON ALIGNMENT & UNIFORM DARK/LIGHT STYLING FIX
 * Ensures Login pill, Theme toggle, and Dialect globe sit on one exact line
 * with identical height and matching Dark Mode colors.
 * ============================================================================ */
#landingHeader #dialectDropdownContainer {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#landingHeader #btnLoginPublic,
#landingHeader #btnLandingThemeToggle,
#landingHeader #btnDialectDropdown {
  height: 2.35rem !important;
  min-height: 2.35rem !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

#landingHeader #btnLandingThemeToggle,
#landingHeader #btnDialectDropdown {
  min-width: 2.35rem !important;
  padding: 0 0.75rem !important;
}

@media (max-width: 767px) {
  #landingHeader #btnLandingThemeToggle,
  #landingHeader #btnDialectDropdown {
    width: 2.35rem !important;
    min-width: 2.35rem !important;
    padding: 0 !important;
  }
}

/* Light mode unified look for both icon buttons */
html:not(.dark) #landingHeader #btnLandingThemeToggle.landing-nav-icon-btn,
html:not(.dark) #landingHeader #btnDialectDropdown.landing-nav-icon-btn {
  background: rgba(235, 219, 198, 0.92) !important;
  border: 1px solid rgba(156, 120, 78, 0.38) !important;
  color: #361c0c !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 8px -2px rgba(42, 24, 10, 0.14) !important;
}

/* Dark mode high-specificity styling for BOTH #btnDialectDropdown & #btnLandingThemeToggle */
html.dark #landingHeader #btnDialectDropdown.landing-nav-icon-btn,
html.dark #landingHeader #btnDialectDropdown,
html.dark #landingHeader #btnLandingThemeToggle.landing-nav-icon-btn,
html.dark #landingHeader #btnLandingThemeToggle,
body.dark-theme #landingHeader #btnDialectDropdown.landing-nav-icon-btn,
body.dark-theme #landingHeader #btnDialectDropdown,
body.dark-theme #landingHeader #btnLandingThemeToggle.landing-nav-icon-btn,
body.dark-theme #landingHeader #btnLandingThemeToggle,
body.dark-mode #landingHeader #btnDialectDropdown.landing-nav-icon-btn,
body.dark-mode #landingHeader #btnDialectDropdown,
body.dark-mode #landingHeader #btnLandingThemeToggle.landing-nav-icon-btn,
body.dark-mode #landingHeader #btnLandingThemeToggle {
  background: rgba(22, 36, 28, 0.94) !important;
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
  color: #fef3c7 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.42) !important;
}

html.dark #landingHeader #btnDialectDropdown:hover,
html.dark #landingHeader #btnLandingThemeToggle:hover,
body.dark-theme #landingHeader #btnDialectDropdown:hover,
body.dark-theme #landingHeader #btnLandingThemeToggle:hover,
body.dark-mode #landingHeader #btnDialectDropdown:hover,
body.dark-mode #landingHeader #btnLandingThemeToggle:hover {
  background: rgba(30, 48, 38, 0.98) !important;
  border-color: rgba(245, 158, 11, 0.68) !important;
  color: #ffffff !important;
}

html.dark #landingHeader #btnDialectDropdown i.fa-globe,
body.dark-theme #landingHeader #btnDialectDropdown i.fa-globe,
body.dark-mode #landingHeader #btnDialectDropdown i.fa-globe {
  color: #fbbf24 !important;
}

html.dark #landingHeader #btnDialectDropdown i.fa-chevron-down,
body.dark-theme #landingHeader #btnDialectDropdown i.fa-chevron-down,
body.dark-mode #landingHeader #btnDialectDropdown i.fa-chevron-down {
  color: #fde68a !important;
}


/* 9. ENSURE TRANSPARENT <main> & FULL NOCTURNAL CANVAS IN DARK MODE */
html.dark,
html.dark body,
html.dark body.in-landing,
body.dark-theme,
body.dark-theme.in-landing,
body.dark-mode,
body.dark-mode.in-landing {
  color-scheme: dark !important;
  background-color: #0e1713 !important;
  background: #0e1713 !important;
}

html.dark #landingPage main,
body.dark-theme #landingPage main,
body.dark-mode #landingPage main,
html.dark #landingPage #landingQuranHero,
body.dark-theme #landingPage #landingQuranHero,
body.dark-mode #landingPage #landingQuranHero {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
