/* ─────────────────────────────────────────────
   Hayya Al Alfalah theme
   Brand colors are mapped into Bootstrap's CSS
   variables so standard Bootstrap utilities
   (btn-success, bg-success-subtle, text-warning,
   card, badge…) render in the site theme.
   ───────────────────────────────────────────── */

:root,
[data-bs-theme="light"] {
  /* Brand palette */
  --green-900: #0d4e38;
  /* --green-900: #0a3d2e; */
  --green-800: #0f5c40;
  --green-700: #147a52;
  --green-600: #1a9463;
  --green-100: #e8f6ef;
  --green-50: #f4fbf7;
  --gold-500: #d4a72c;
  --gold-400: #e8c04a;
  --font-arabic: 'Amiri', serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Amiri', serif;

  /* Bootstrap theme overrides */
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bs-body-color: #0f1f18;
  --bs-body-color-rgb: 15, 31, 24;
  --bs-secondary-color: #5a6b62;
  --bs-tertiary-color: #8a9a92;
  --bs-tertiary-bg: #f7f9f8;
  --bs-border-color: #e4ebe7;
  --bs-link-color: var(--green-700);
  --bs-link-color-rgb: 20, 122, 82;
  --bs-link-hover-color: var(--green-900);
  --bs-link-hover-color-rgb: 10, 61, 46;
  --bs-success: var(--green-800);
  --bs-success-rgb: 15, 92, 64;
  --bs-success-bg-subtle: var(--green-50);
  --bs-success-border-subtle: #d7ebe0;
  --bs-success-text-emphasis: var(--green-800);
  --bs-warning: var(--gold-500);
  --bs-warning-rgb: 212, 167, 44;
}

body {
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

.btn-success {
  --bs-btn-bg: var(--green-800);
  --bs-btn-border-color: var(--green-800);
  --bs-btn-hover-bg: var(--green-900);
  --bs-btn-hover-border-color: var(--green-900);
  --bs-btn-active-bg: var(--green-900);
  --bs-btn-active-border-color: var(--green-900);
  --bs-btn-disabled-bg: var(--green-800);
  --bs-btn-disabled-border-color: var(--green-800);
}

.btn-outline-success {
  --bs-btn-color: var(--green-800);
  --bs-btn-border-color: #cfe0d8;
  --bs-btn-hover-color: var(--green-800);
  --bs-btn-hover-bg: var(--green-50);
  --bs-btn-hover-border-color: var(--green-600);
  --bs-btn-active-color: var(--green-900);
  --bs-btn-active-bg: var(--green-100);
  --bs-btn-active-border-color: var(--green-600);
}

.hayya-arabic { font-family: var(--font-arabic); }
.hayya-urdu { font-family: var(--font-urdu); }
.hayya-bismillah { font-family: var(--font-arabic); color: var(--green-700); }

/* ── Announcement marquee ── */
.hayya-announcement {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0;
  overflow: hidden;
}

.hayya-announcement-track {
  display: flex;
  width: max-content;
  animation: hayya-marquee 35s linear infinite;
}

.hayya-announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 4rem;
  white-space: nowrap;
}

.hayya-announcement-item a { color: var(--gold-400); text-decoration: none; }
.hayya-announcement-logo { height: 22px; border-radius: 4px; }

@keyframes hayya-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Top bar + Hijri date ── */
.hayya-top-bar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hayya-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hayya-top-bar-tagline { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }

.hayya-hijri-date {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
  max-width: 100%;
}

.hayya-hijri-date i {
  color: var(--gold-400);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.hayya-hijri-date-lines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hayya-hijri-date-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.hayya-hijri-date-ar {
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  color: var(--gold-400);
  font-weight: 600;
  line-height: 1.5;
}

.hayya-hijri-date-en {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.hayya-hijri-date-greg {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  white-space: nowrap;
}

.hayya-hijri-date-sep {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.hayya-team-role {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  word-break: break-word;
}

.hayya-panel-header .btn {
  flex-shrink: 0;
}

/* ── Site header ── */
.hayya-site-header {
  position: relative;
  z-index: 1040;
}

.hayya-navbar-spacer {
  height: var(--hayya-navbar-height, 72px);
  pointer-events: none;
}

/* ── Navbar ── */
.hayya-navbar {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  padding-block: 0.65rem;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.hayya-navbar.hayya-navbar-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--bs-border-color);
  box-shadow: 0 8px 30px rgba(15, 31, 24, 0.06);
}

.hayya-logo { height: 46px; width: auto; }

.hayya-navbar .nav-link {
  color: var(--bs-body-color) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.hayya-navbar .nav-link:hover,
.hayya-navbar .nav-link:focus {
  color: var(--green-700) !important;
  background: var(--green-50);
}

.hayya-navbar .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.hayya-dropdown {
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 31, 24, 0.12);
  padding: 0.45rem;
  margin-top: 0.35rem;
}

.hayya-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
}

.hayya-dropdown .dropdown-item:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.navbar-toggler { border-color: var(--bs-border-color) !important; }
.navbar-toggler:focus { box-shadow: none; }

.hayya-nav-drawer {
  width: min(86vw, 340px);
  background: #fff;
  border-left: 1px solid var(--bs-border-color);
  z-index: 1060;
}

.hayya-nav-drawer .offcanvas-header {
  padding: 1rem 1.25rem;
  background: #fff;
}

.hayya-nav-drawer .offcanvas-body {
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-y: auto;
  background: #fff;
}

.hayya-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hayya-drawer-link {
  display: block;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}

.hayya-drawer-link:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.hayya-drawer-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-700);
  margin-top: 0.85rem;
  padding: 0 0.9rem;
}

.hayya-drawer-sublink {
  display: block;
  padding: 0.55rem 0.9rem 0.55rem 1.15rem;
  font-size: 0.88rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.hayya-drawer-sublink:hover {
  background: var(--green-50);
  color: var(--green-800);
}

@media (max-width: 991px) {
  .offcanvas-backdrop {
    z-index: 1055;
  }
}

/* ── Shared helpers ── */
.hayya-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
}

.hayya-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Card hover lift + image zoom */
.hayya-lift { transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }

.hayya-lift:hover {
  box-shadow: 0 8px 24px rgba(15, 31, 24, 0.08);
  transform: translateY(-3px);
  border-color: rgba(26, 148, 99, 0.3);
}

.hayya-zoom { transition: transform 0.4s ease; }
.hayya-lift:hover .hayya-zoom { transform: scale(1.04); }

.hayya-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.hayya-lift:hover .hayya-card-overlay { opacity: 1; }

/* ── Hero ── */
.hayya-hero {
  position: relative;
  padding-top: 3.5rem;
  background: linear-gradient(180deg, var(--green-50) 0%, #fff 55%);
  overflow: hidden;
}

.hayya-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(26, 148, 99, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(212, 167, 44, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hayya-hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.35rem, 4vw, 2rem);
  color: var(--green-700);
}

.hayya-hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

/* Hero bento grid */
.hayya-hero-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.7rem;
  height: clamp(360px, 42vw, 440px);
  max-width: 540px;
  margin-inline: auto;
}

.hayya-hero-bento-main {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(15, 31, 24, 0.12);
}

.hayya-hero-bento-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hayya-hero-bento-main:hover img { transform: scale(1.04); }

.hayya-hero-bento-main-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 61, 46, 0.15) 0%, rgba(10, 61, 46, 0.35) 45%, rgba(10, 61, 46, 0.82) 100%);
}

.hayya-hero-bento-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 3px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hayya-hero-bento-main:hover .hayya-hero-bento-play {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.22);
}

.hayya-hero-bento-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-900);
  min-height: 0;
}

.hayya-hero-bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hayya-hero-bento-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 61, 46, 0.88) 100%);
}

/* Stat counters */
[data-count][data-suffix]::after {
  content: attr(data-suffix);
  font-size: 1rem;
  color: var(--green-600);
}

/* Our Story section */
.hayya-story-panel {
  background: linear-gradient(135deg, #fff 0%, var(--green-50) 100%);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 24px 60px rgba(15, 31, 24, 0.07);
}

.hayya-story-steps {
  --step-line: var(--bs-border-color);
}

.hayya-story-steps::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--step-line);
  z-index: 0;
}

.hayya-story-step-dot {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green-600);
}

.hayya-story-quote {
  border-left: 4px solid var(--green-600);
}

.hayya-intro-panel {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 24px 60px rgba(15, 31, 24, 0.07);
}

.hayya-intro-panel .ratio video {
  width: 100%;
  height: 100%;
}

/* ── Inner-page sections ── */
.hayya-section { padding: 5rem 0; }
.hayya-section-alt { background: var(--bs-tertiary-bg); }
.hayya-section-green { background: var(--green-50); }
.hayya-page-content { padding: 3.5rem 0 4.5rem; }

.hayya-page-hero, .hayya-page-header {
  background: var(--green-900);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
}

.hayya-page-hero:has(.hayya-page-hero-actions) {
  padding: 2.75rem 0 2.25rem;
}

.hayya-page-hero h1, .hayya-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.hayya-page-hero-sub, .hayya-page-header .subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.65rem 0 0;
  font-size: 1rem;
}

.hayya-page-hero-actions {
  margin-top: 0.25rem;
}

.hayya-page-hero-actions .badge {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.hayya-hero-stat-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hayya-page-hero-actions .btn {
  white-space: nowrap;
}

.hayya-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0 0 1rem; }
.hayya-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.hayya-breadcrumb .breadcrumb-item.active { color: var(--gold-400); }
.hayya-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.35); }

/* ── Sahaba series panel ── */
.hayya-sahaba-panel {
  border: 1px solid var(--bs-border-color);
}

.hayya-sahaba-media {
  min-height: 300px;
  background:
    linear-gradient(rgba(10, 61, 46, 0.55), rgba(10, 61, 46, 0.75)),
    url('/images/header/sahaba.jpg') center/cover no-repeat;
}

.hayya-sahaba-play {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px;
  aspect-ratio: 1;
  padding: 0 0 0 4px;
  line-height: 1;
  flex-shrink: 0;
  font-size: 1.75rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.2s;
}

.hayya-sahaba-play:hover { transform: scale(1.06); }

/* ── Featured lectures panel ── */
.hayya-lectures-panel {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 24px 60px rgba(15, 31, 24, 0.06);
}

.hayya-lecture-carousel .carousel-control-prev,
.hayya-lecture-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(15, 31, 24, 0.06);
}

.hayya-lecture-carousel .carousel-control-prev-icon,
.hayya-lecture-carousel .carousel-control-next-icon {
  filter: invert(0.3);
  width: 1rem;
}

.hayya-lecture-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-600);
  opacity: 0.35;
}

.hayya-lecture-carousel .carousel-indicators .active {
  opacity: 1;
}

.hayya-service-card:hover .bi-arrow-right {
  transform: translateX(3px);
  transition: transform 0.2s;
}

.hayya-lift:hover .bi-arrow-right {
  transform: translateX(3px);
  transition: transform 0.2s;
}

.hayya-content-panel {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 24px 60px rgba(15, 31, 24, 0.06);
}

.hayya-cta-panel {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 192, 74, 0.15) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 61, 46, 0.25);
}

/* ── Misc content blocks (inner pages) ── */
.hayya-message {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  line-height: 1.85;
  color: var(--bs-secondary-color);
}

.hayya-message-collapse { display: none; }
.hayya-message-collapse.show { display: inline; }

.hayya-team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hayya-team-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}

.hayya-team-card {
  transition: box-shadow 0.2s, transform 0.2s;
}

.hayya-team-card:hover {
  box-shadow: 0 12px 32px rgba(15, 31, 24, 0.08) !important;
  transform: translateY(-2px);
}

.hayya-team-bio {
  line-height: 1.75;
}

.hayya-team-bio-more {
  display: none;
}

.hayya-team-bio-more.show {
  display: block;
}

.hayya-team-lead .hayya-team-bio {
  font-size: 1rem;
}

.hayya-audio-series-card .hayya-audio-series-icon {
  min-height: 100%;
  font-size: 2rem;
}

.hayya-audio-series-card .ratio {
  min-height: 100%;
}

.hayya-session-cover {
  max-height: 280px;
  width: auto;
}

.hayya-dour-banner {
  max-height: 360px;
  width: auto;
}

.hayya-card-image-circle {
  width: min(72%, 168px);
  margin: 1.35rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--green-50);
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.1);
}

.hayya-content-card--circle .badge {
  margin-left: auto;
  margin-right: auto;
}

.hayya-content-card--circle h3 {
  font-size: 0.95rem;
}

.hayya-audio-item {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 1.25rem;
}

.hayya-audio-player {
  position: relative;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: 0 10px 30px rgba(15, 31, 24, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.hayya-audio-player::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
  border-radius: 18px 0 0 18px;
  transition: background 0.2s;
}

.hayya-audio-player.is-playing {
  border-color: rgba(15, 92, 64, 0.28);
  box-shadow: 0 14px 36px rgba(15, 92, 64, 0.1);
}

.hayya-audio-player.is-playing::before {
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
}

.hayya-audio-player audio {
  display: none;
}

.hayya-audio-player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hayya-audio-player-heading {
  min-width: 0;
}

.hayya-audio-player-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--bs-body-color);
  overflow-wrap: anywhere;
}

.hayya-audio-player-title.hayya-script-rtl {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.15;
  font-size: 1.08rem;
  padding-bottom: 0.2rem;
}

.hayya-audio-player-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--bs-secondary-color);
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 31, 24, 0.08);
  direction: ltr;
  text-align: left;
}

.hayya-audio-player-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hayya-audio-player-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 2px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(15, 92, 64, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hayya-audio-player-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 92, 64, 0.28);
}

.hayya-audio-player-btn .bi-pause-fill {
  padding-left: 0;
}

.hayya-audio-player-track {
  flex: 1;
  min-width: 0;
}

.hayya-audio-player-progress-wrap {
  position: relative;
  padding: 0.65rem 0;
  cursor: pointer;
  touch-action: none;
}

.hayya-audio-player-progress {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.hayya-audio-player-progress::-webkit-slider-runnable-track {
  height: 8px;
  margin: 10px 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--green-700) var(--hayya-player-progress, 0%),
    #e7efea var(--hayya-player-progress, 0%)
  );
}

.hayya-audio-player-progress::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #e7efea;
}

.hayya-audio-player-progress::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--green-700);
}

.hayya-audio-player-progress::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-800);
  box-shadow: 0 2px 8px rgba(15, 31, 24, 0.18);
}

.hayya-audio-player-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-800);
  box-shadow: 0 2px 8px rgba(15, 31, 24, 0.18);
}

.hayya-audio-player-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

.hayya-audio-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bs-border-color);
}

.hayya-audio-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hayya-audio-player-chip:hover {
  background: #fff;
  border-color: rgba(15, 92, 64, 0.25);
  color: var(--green-900);
}

.hayya-audio-player-chip.is-copied {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.hayya-audio-player-chip.is-active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.hayya-audio-player-speed-value {
  font-variant-numeric: tabular-nums;
  min-width: 1.85rem;
  text-align: center;
}

.hayya-audio-player-chip i {
  font-size: 0.9rem;
}

/* ── Q&A card variant ── */
.hayya-audio-player--qa {
  padding: 0;
  border-radius: 20px;
  border-color: rgba(15, 92, 64, 0.12);
  box-shadow: 0 12px 40px rgba(15, 31, 24, 0.06);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-audio-player--qa:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 31, 24, 0.09);
}

.hayya-audio-player--qa::before {
  display: none;
}

.hayya-audio-player--qa.is-playing {
  border-color: rgba(15, 92, 64, 0.35);
  box-shadow: 0 16px 48px rgba(15, 92, 64, 0.12);
}

.hayya-audio-player-qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  border-radius: 20px 20px 0 0;
}

.hayya-audio-player-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hayya-audio-player-date .bi {
  font-size: 0.82rem;
  opacity: 0.85;
}

.hayya-audio-player-qa-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 192, 74, 0.22);
  color: #f8e9a8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hayya-audio-player-qa-label .bi {
  font-size: 0.85rem;
}

.hayya-audio-player-qa-body {
  padding: 1.35rem 1.5rem 1.1rem;
  background: linear-gradient(180deg, #f9fcf9 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 31, 24, 0.06);
  min-height: 5.5rem;
}

.hayya-audio-player--qa .hayya-audio-player-title.hayya-script-rtl {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 2.35;
  color: var(--green-900);
  text-align: right;
}

.hayya-audio-player--qa .hayya-audio-player-main {
  margin: 0;
  padding: 1.1rem 1.25rem 0.85rem;
}

.hayya-audio-player--qa .hayya-audio-player-actions {
  margin: 0;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(15, 31, 24, 0.07);
  background: #fafcfa;
  border-radius: 0 0 20px 20px;
  gap: 0.5rem;
}

.hayya-audio-player--qa .hayya-audio-player-chip {
  flex: 1;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border-color: rgba(15, 92, 64, 0.14);
  font-size: 0.75rem;
}

.hayya-audio-player--qa .hayya-audio-player-chip:hover {
  background: var(--green-50);
  border-color: rgba(15, 92, 64, 0.28);
}

.hayya-audio-player--qa .hayya-audio-player-chip.is-active,
.hayya-audio-player--qa .hayya-audio-player-chip.is-copied {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.hayya-audio-player--qa .hayya-audio-player-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.hayya-audio-player--qa .hayya-audio-player-progress::-webkit-slider-runnable-track {
  height: 6px;
  margin: 11px 0;
}

.hayya-audio-player--qa .hayya-audio-player-progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-width: 2px;
}

.hayya-pagination nav {
  width: 100%;
}

.hayya-pagination .pagination {
  margin-bottom: 0;
  gap: 0.25rem;
}

.hayya-pagination .page-link {
  border-radius: 10px !important;
  border-color: rgba(15, 92, 64, 0.15);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hayya-pagination .page-link:hover,
.hayya-pagination .page-link:focus {
  background: var(--green-50);
  border-color: rgba(15, 92, 64, 0.28);
  color: var(--green-900);
  box-shadow: none;
}

.hayya-pagination .page-item.active .page-link {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.hayya-pagination .page-item.disabled .page-link {
  background: #f8faf9;
  color: rgba(15, 31, 24, 0.35);
}

.hayya-pagination .small.text-muted {
  color: var(--bs-secondary-color) !important;
  margin-bottom: 0;
}

/* ── Ask a question panel ── */
.hayya-ask-panel {
  border: 1px solid rgba(15, 92, 64, 0.12);
  box-shadow: 0 24px 60px rgba(15, 31, 24, 0.08);
}

.hayya-ask-panel-intro {
  padding: 2rem 2rem 2.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 192, 74, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 100%);
}

.hayya-ask-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.hayya-ask-points li:last-child {
  margin-bottom: 0;
}

.hayya-ask-points .bi {
  color: var(--gold-400, #e8c04a);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.hayya-ask-panel-form {
  padding: 2rem 2rem 2.25rem;
  background: #fff;
}

.hayya-ask-form .form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-900);
}

.hayya-ask-form .form-control {
  border-radius: 12px;
  border-color: rgba(15, 92, 64, 0.16);
  padding: 0.7rem 0.9rem;
}

.hayya-ask-form .form-control:focus {
  border-color: rgba(15, 92, 64, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(26, 148, 99, 0.12);
}

.hayya-ask-textarea {
  resize: vertical;
  min-height: 140px;
}

.hayya-ask-textarea.hayya-script-rtl,
.hayya-ask-form textarea:lang(ur),
.hayya-ask-form textarea[dir="rtl"] {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2;
}

.hayya-ask-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 1.6rem;
  border: 2px solid rgba(15, 92, 64, 0.15);
}

.hayya-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 12px 36px rgba(15, 31, 24, 0.12);
}

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

.hayya-video-lecture-card {
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 31, 24, 0.04);
}

.hayya-video-lecture-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hayya-mcq-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 31, 24, 0.08);
}

.hayya-mcq-panel-toggle {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(15, 92, 64, 0.14);
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-900);
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hayya-mcq-panel-toggle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.hayya-mcq-panel-toggle:hover {
  background: #fff;
  border-color: rgba(15, 92, 64, 0.24);
  box-shadow: 0 8px 24px rgba(15, 31, 24, 0.06);
}

.hayya-mcq-panel.is-open .hayya-mcq-panel-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.hayya-mcq-panel-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.hayya-mcq-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.18);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hayya-mcq-panel-toggle-hint {
  display: block;
  width: 100%;
  font-size: 0.76rem;
  color: var(--bs-secondary-color);
  line-height: 1.35;
}

.hayya-mcq-panel-chevron,
.hayya-mcq-accordion-chevron {
  transition: transform 0.2s;
  color: var(--green-700);
}

.hayya-mcq-panel.is-open .hayya-mcq-panel-chevron,
.hayya-mcq-accordion.is-open .hayya-mcq-accordion-chevron {
  transform: rotate(180deg);
}

.hayya-mcq-panel-body {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(15, 92, 64, 0.14);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #fff;
}

.hayya-mcq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hayya-mcq-accordion {
  border: 1px solid rgba(15, 31, 24, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fafcfa;
}

.hayya-mcq-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--green-900);
}

.hayya-mcq-accordion-toggle:hover {
  background: rgba(15, 92, 64, 0.04);
}

.hayya-mcq-accordion-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hayya-mcq-accordion-body {
  padding: 0 1rem 1rem;
}

.hayya-mcq-question-text {
  font-weight: 600;
  line-height: 2;
  margin-bottom: 0.85rem;
}

.hayya-mcq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hayya-mcq-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hayya-mcq-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 31, 24, 0.08);
  font-size: 0.92rem;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.hayya-mcq-option:hover:not(:disabled) {
  border-color: rgba(15, 92, 64, 0.22);
  background: var(--green-50);
}

.hayya-mcq-option.is-selected {
  border-color: rgba(15, 92, 64, 0.35);
  background: #eef7f1;
  box-shadow: inset 0 0 0 1px rgba(15, 92, 64, 0.12);
}

.hayya-mcq-option.is-correct {
  border-color: rgba(15, 92, 64, 0.35);
  background: #eef7f1;
  color: var(--green-900);
  font-weight: 600;
}

.hayya-mcq-option.is-wrong {
  border-color: rgba(220, 53, 69, 0.35);
  background: #fff5f5;
  color: #842029;
}

.hayya-mcq-option:disabled {
  cursor: default;
  opacity: 1;
}

.hayya-mcq-option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hayya-mcq-option.is-selected .hayya-mcq-option-label,
.hayya-mcq-option.is-correct .hayya-mcq-option-label {
  background: var(--green-800);
  color: #fff;
}

.hayya-mcq-option.is-wrong .hayya-mcq-option-label {
  background: #dc3545;
  color: #fff;
}

.hayya-mcq-option-text {
  flex: 1;
  line-height: 1.55;
}

.hayya-mcq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hayya-mcq-feedback {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.hayya-mcq-feedback.is-success {
  background: #eef7f1;
  color: var(--green-900);
  border: 1px solid rgba(15, 92, 64, 0.18);
}

.hayya-mcq-feedback.is-warning {
  background: #fff8e8;
  color: #7a5b00;
  border: 1px solid rgba(212, 167, 44, 0.35);
}

.hayya-mcq-open-ended {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(15, 92, 64, 0.2);
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}

.hayya-gallery img {
  border-radius: 16px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--bs-border-color);
}

.hayya-gallery-figure img {
  transition: transform 0.35s ease, box-shadow 0.25s ease;
}

.hayya-gallery-figure:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(15, 31, 24, 0.1);
}

.hayya-video-episode-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  border-radius: 20px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 31, 24, 0.04);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-video-episode-card:hover {
  border-color: rgba(15, 92, 64, 0.22);
  box-shadow: 0 14px 36px rgba(15, 31, 24, 0.08);
  transform: translateY(-2px);
}

.hayya-video-episode-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  min-height: 3rem;
}

.hayya-video-episode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hayya-video-episode-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--green-900);
}

.hayya-welfare-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.05);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-welfare-card:hover {
  border-color: rgba(15, 92, 64, 0.22);
  box-shadow: 0 14px 36px rgba(15, 31, 24, 0.09);
  transform: translateY(-2px);
}

.hayya-welfare-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 92, 64, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hayya-welfare-media {
  background: var(--green-50);
}

.hayya-welfare-title {
  margin: 0;
  padding: 0.85rem 0.95rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--green-900);
}

.hayya-welfare-video {
  margin: 0.85rem 0.95rem 0.95rem;
  border-radius: 14px;
}

.hayya-welfare-highlight {
  background: linear-gradient(180deg, #f9fcf9 0%, #fff 100%);
  border: 1px solid rgba(15, 92, 64, 0.12);
}

.hayya-welfare-intro {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hayya-welfare-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 0% 100%, rgba(232, 192, 74, 0.1) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
}

.hayya-welfare-mosaic {
  background: rgba(0, 0, 0, 0.2);
  min-height: 100%;
}

.hayya-welfare-mosaic-item {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.hayya-welfare-mosaic-item img {
  width: 100%;
  height: 100%;
}

.hayya-welfare-spotlight-media {
  min-height: 260px;
  background: var(--green-50);
}

@media (min-width: 992px) {
  .hayya-welfare-spotlight-media {
    min-height: 100%;
  }
}

.hayya-welfare-project-card {
  box-shadow: 0 10px 28px rgba(15, 31, 24, 0.05);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-welfare-project-card:hover {
  border-color: rgba(15, 92, 64, 0.22) !important;
  box-shadow: 0 16px 40px rgba(15, 31, 24, 0.1);
  transform: translateY(-3px);
}

.hayya-welfare-project-media {
  overflow: hidden;
  background: var(--green-50);
}

.hayya-welfare-project-media img {
  transition: transform 0.4s ease;
}

.hayya-welfare-project-card:hover .hayya-welfare-project-media img {
  transform: scale(1.04);
}

.hayya-welfare-project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.75rem;
}

.hayya-welfare-project-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 92, 64, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  width: auto;
  height: auto;
}

.hayya-welfare-group-card {
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 31, 24, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hayya-welfare-group-card:hover {
  border-color: rgba(15, 92, 64, 0.22);
  box-shadow: 0 12px 30px rgba(15, 31, 24, 0.08);
  transform: translateY(-2px);
}

/* ── Hadith of the day ── */
.hayya-hadith-panel {
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  box-shadow: 0 20px 50px rgba(15, 31, 24, 0.07);
}

.hayya-hadith-panel-aside {
  background:
    radial-gradient(ellipse 80% 70% at 0% 100%, rgba(232, 192, 74, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 100%);
}

.hayya-hadith-panel-body {
  background: linear-gradient(180deg, #fff 0%, var(--green-50) 100%);
}

.hayya-hadith-arabic {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 2;
  color: var(--green-900);
  border-right: 3px solid var(--gold-400);
  padding-right: 1rem;
  margin: 0;
}

.hayya-hadith-english {
  color: var(--bs-secondary-color);
  line-height: 1.85;
  font-size: 0.98rem;
}

.hayya-hadith-grade-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Blog articles ── */
.hayya-blog-cover {
  background: #0f1f18;
  padding: 1.5rem;
  text-align: center;
}

.hayya-blog-cover-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
}

.hayya-blog-section-image {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: contain;
  background: var(--green-50);
}

.hayya-blog-figure {
  margin: 0;
}

.hayya-blog-body {
  line-height: 1.9;
  font-size: 1.02rem;
}

.hayya-blog-body p {
  margin-bottom: 1rem;
}

.hayya-legal-body {
  line-height: 1.85;
  font-size: 0.98rem;
}

.hayya-legal-body h2,
.hayya-legal-body h3 {
  color: var(--green-900);
}

.hayya-legal-body p,
.hayya-legal-body ul {
  margin-bottom: 1rem;
}

.hayya-legal-body ul {
  padding-left: 1.25rem;
}

.hayya-legal-body li + li {
  margin-top: 0.35rem;
}

.hayya-footer-legal .hayya-footer-link {
  font-size: 0.88rem;
}

/* ── Poetry ── */
.hayya-poetry-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  box-shadow: 0 8px 24px rgba(15, 31, 24, 0.05);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-poetry-image-card:hover {
  border-color: rgba(15, 92, 64, 0.22);
  box-shadow: 0 14px 36px rgba(15, 31, 24, 0.09);
  transform: translateY(-2px);
}

.hayya-poetry-image-trigger {
  background: transparent;
  cursor: zoom-in;
}

.hayya-poetry-image-badge,
.hayya-poetry-video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 31, 24, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hayya-poetry-video-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 92, 64, 0.1);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 31, 24, 0.04);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hayya-poetry-video-card:hover {
  border-color: rgba(15, 92, 64, 0.22);
  box-shadow: 0 14px 36px rgba(15, 31, 24, 0.09);
  transform: translateY(-2px);
}

.hayya-poetry-video-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  min-height: 2.5rem;
}

.hayya-poetry-video-badge {
  position: static;
  flex-shrink: 0;
  background: var(--green-800);
}

.hayya-poetry-video-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.hayya-poetry-video-player {
  border-radius: 14px;
  overflow: hidden;
  background: #0f1f18;
}

.hayya-poetry-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hayya-poetry-lightbox-image {
  max-height: 82vh;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

#hayyaPoetryLightbox .modal-content {
  background: transparent;
}

#hayyaPoetryLightbox .modal-body {
  background: rgba(15, 31, 24, 0.92);
  border-radius: 20px;
  padding: 1.25rem !important;
}

/* ── Footer ── */
.hayya-footer {
  color: #fff;
  margin-top: 0;
}

.hayya-footer-top {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(232, 192, 74, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, var(--green-900) 0%, #0a3528 100%);
}

.hayya-footer-bottom {
  background: #0d4e38 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hayya-footer-logo {
  height: 52px;
  width: auto;
  opacity: 0.95;
}

.hayya-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
}

.hayya-footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s, transform 0.15s;
}

.hayya-footer-link:hover {
  color: #fff;
}

.hayya-footer-bottom-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.hayya-footer-bottom-link:hover { color: #fff; }

.hayya-footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hayya-footer-pay {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.hayya-footer-contact-item > div {
  min-width: 0;
}

.hayya-back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 31, 24, 0.08);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.hayya-back-top.show { opacity: 1; pointer-events: auto; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hayya-hero { padding-top: 2rem; }
  .hayya-hero-bento {
    max-width: 100%;
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px repeat(3, 110px);
    margin-top: 0.5rem;
  }
  .hayya-hero-bento-main { grid-column: 1 / 3; grid-row: 1; }
  .hayya-section { padding: 3rem 0; }
  .hayya-top-bar-tagline { display: none !important; }
  .hayya-story-steps::before { display: none; }
  .hayya-story-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem !important;
    padding-left: 0 !important;
  }
  .hayya-story-steps > .hayya-story-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left !important;
    max-width: 100% !important;
  }
  .hayya-story-step-dot { margin-bottom: 0 !important; flex-shrink: 0; }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hayya-top-bar {
    padding: 0.4rem 0;
    font-size: 0.72rem;
  }

  .hayya-top-bar .container {
    align-items: flex-start;
  }

  .hayya-hijri-date {
    gap: 0.4rem;
  }

  .hayya-hijri-date-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .hayya-hijri-date-sep {
    display: none;
  }

  .hayya-hijri-date-greg {
    font-size: 0.72rem;
  }

  .hayya-hadith-arabic {
    font-size: 1.05rem;
    line-height: 1.9;
    border-right: none;
    padding-right: 0;
    border-top: 2px solid var(--gold-400);
    padding-top: 0.85rem;
  }

  .display-6 {
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
  }

  .hayya-section {
    padding: 2.5rem 0;
  }

  .hayya-hero {
    padding-top: 1.5rem;
  }

  .hayya-story-panel,
  .hayya-intro-panel,
  .hayya-lectures-panel,
  .hayya-content-panel,
  .hayya-sahaba-panel,
  .hayya-cta-panel {
    border-radius: 1.25rem !important;
  }

  .hayya-story-panel,
  .hayya-intro-panel,
  .hayya-lectures-panel,
  .hayya-content-panel {
    padding: 1.25rem !important;
  }

  .hayya-intro-panel .px-4,
  .hayya-intro-panel .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hayya-panel-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  .hayya-panel-header .btn {
    width: 100%;
  }

  .hayya-sahaba-actions .btn {
    width: 100%;
  }

  .hayya-sahaba-media {
    min-height: 220px;
  }

  .hayya-cta-panel .btn {
    width: 100%;
  }

  .hayya-cta-panel h3 {
    font-size: 1.35rem;
  }

  .hayya-logo {
    height: 40px;
  }

  .hayya-navbar .btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .hayya-hero-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 220px repeat(3, 100px);
  }

  .hayya-hero-bento-main {
    grid-column: 1;
  }

  .hayya-hero-pills span,
  .hayya-hero .rounded-pill.small {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem !important;
  }

  [data-count] {
    font-size: 1.5rem !important;
  }

  .hayya-footer-brand .d-flex {
    justify-content: center;
  }

  .hayya-footer-bottom-link {
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
  }

  .hayya-audio-player-chip-text {
    display: none;
  }

  .hayya-audio-player-chip {
    padding: 0.45rem 0.55rem;
  }

  .hayya-audio-player-chip[data-player-speed] {
    padding: 0.45rem 0.65rem;
  }

  .hayya-audio-player--qa .hayya-audio-player-title.hayya-script-rtl {
    font-size: 1.05rem;
    line-height: 2.25;
  }

  .hayya-audio-player-qa-body {
    padding: 1.1rem 1.1rem 0.95rem;
    min-height: 4.5rem;
  }

  .hayya-audio-player--qa .hayya-audio-player-main,
  .hayya-audio-player--qa .hayya-audio-player-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hayya-ask-panel-intro,
  .hayya-ask-panel-form {
    padding: 1.35rem 1.25rem 1.5rem;
  }

  .hayya-video-lecture-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .hayya-video-lecture-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .hayya-video-lecture-head .badge {
    align-self: flex-start;
  }

  .hayya-mcq-panel-toggle {
    padding: 0.85rem 0.9rem;
    gap: 0.35rem;
  }

  .hayya-mcq-panel-toggle-label {
    font-size: 0.88rem;
  }

  .hayya-mcq-panel-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .hayya-mcq-accordion-toggle {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }

  .hayya-mcq-accordion-body {
    padding: 0 0.85rem 0.9rem;
  }

  .hayya-mcq-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .hayya-video-episode-card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .hayya-video-episode-head {
    min-height: 0;
  }

  .hayya-video-episode-title {
    font-size: 0.92rem;
  }

  .hayya-welfare-card {
    border-radius: 16px;
  }

  .hayya-welfare-title {
    font-size: 0.84rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hayya-page-hero-actions {
    gap: 0.5rem !important;
  }

  .hayya-page-hero-actions .btn,
  .hayya-page-hero-actions .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .hayya-welfare-intro-copy {
    text-align: center;
  }

  .hayya-welfare-intro-copy .d-flex {
    justify-content: center;
  }

  .hayya-welfare-spotlight-media {
    min-height: 200px;
    max-height: 280px;
  }

  .hayya-welfare-project-card {
    border-radius: 16px !important;
  }

  .hayya-welfare-project-placeholder {
    font-size: 2.25rem;
  }

  .hayya-blog-cover {
    padding: 1rem;
  }

  .hayya-blog-cover-image {
    max-height: 240px;
  }

  .hayya-blog-section-image {
    max-height: 280px;
    border-radius: 12px;
  }

  .hayya-blog-body {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .hayya-poetry-video-title {
    font-size: 0.88rem;
  }

  .hayya-poetry-lightbox-image {
    max-height: 70vh;
  }
}
