/* Dedicated Quran Page Stylesheet */
/* ==========================================================================
   Dedicated Quran Page Styles (quran.html)
   ========================================================================== */
.quran-hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: radial-gradient(circle at 50% 25%, #081135 0%, #03081e 65%, #020514 100%) !important;
  border-bottom: 2px solid rgba(205, 159, 92, 0.35);
  box-shadow: 0 12px 36px rgba(2, 5, 20, 0.45);
  text-align: center;
}

/* Ambient Background Animations */
.quran-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.quran-hero-container {
  position: relative;
  z-index: 2;
}

.quran-fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}

.quran-fx-orb.orb-gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(205, 159, 92, 0.32) 0%, rgba(205, 159, 92, 0) 70%);
  top: -90px;
  right: 14%;
  animation: orbFloatGold 13s ease-in-out infinite alternate;
}

.quran-fx-orb.orb-emerald {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(30, 80, 175, 0.36) 0%, rgba(10, 30, 80, 0) 70%);
  bottom: -110px;
  left: 8%;
  animation: orbFloatSapphire 17s ease-in-out infinite alternate;
}

.quran-fx-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: radial-gradient(rgba(205, 159, 92, 0.9) 1.2px, transparent 1.2px),
                    radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  animation: patternBreathe 12s ease-in-out infinite alternate;
}

.quran-floating-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.quran-spark {
  position: absolute;
  color: #ffd79a;
  font-size: 15px;
  opacity: 0.35;
  text-shadow: 0 0 10px rgba(205, 159, 92, 0.7);
  user-select: none;
  animation: sparkDrift 7s ease-in-out infinite;
}

.quran-spark.s1 { top: 20%; right: 14%; font-size: 18px; animation-delay: 0s; color: #ffd79a; }
.quran-spark.s2 { top: 58%; right: 7%; font-size: 24px; animation-delay: 2.2s; color: #CD9F5C; opacity: 0.3; }
.quran-spark.s3 { top: 16%; left: 12%; font-size: 16px; animation-delay: 4.2s; color: #fff3db; }
.quran-spark.s4 { top: 64%; left: 8%; font-size: 22px; animation-delay: 1.6s; color: #CD9F5C; opacity: 0.35; }
.quran-spark.s5 { top: 76%; right: 28%; font-size: 14px; animation-delay: 3s; color: #ffe6b5; }

@keyframes orbFloatGold {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 25px) scale(1.12); }
  100% { transform: translate(-25px, 45px) scale(0.94); }
}

@keyframes orbFloatSapphire {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, -25px) scale(1.1); }
  100% { transform: translate(35px, -40px) scale(0.92); }
}

@keyframes patternBreathe {
  0% { opacity: 0.04; transform: scale(1); }
  100% { opacity: 0.08; transform: scale(1.02); }
}

@keyframes sparkDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  50% { transform: translateY(-16px) rotate(18deg); opacity: 0.75; }
}

@keyframes titleShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(205, 159, 92, 0.28);
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.page-breadcrumb a:hover {
  color: #ffd79a;
}

.breadcrumb-sep {
  color: rgba(205, 159, 92, 0.7);
}

.breadcrumb-current {
  color: #CD9F5C;
  font-weight: 700;
}

.quran-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.quran-title-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #fff1d6 20%, #e6be7e 45%, #CD9F5C 60%, #fff2db 85%, #ffffff 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(205, 159, 92, 0.3));
  animation: titleShimmer 8s ease-in-out infinite;
}

.quran-hero-section .islamic-ornament::before,
.quran-hero-section .islamic-ornament::after {
  content: '';
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #CD9F5C);
}

.quran-hero-section .islamic-ornament::after {
  background: linear-gradient(90deg, #CD9F5C, transparent);
}

.quran-hero-section .ornament-diamond {
  background: #CD9F5C;
  box-shadow: 0 0 12px rgba(205, 159, 92, 0.8);
}

.quran-hero-desc {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(243, 244, 246, 0.92);
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Sheikhs & Reciters Showcase Section - Modern Islamic Luxury Design
   ========================================================================== */
#recitersDirectorySection {
  background-color: var(--bg-main, #fcfbf7) !important;
  padding: 50px 0 80px;
  position: relative;
}

/* Reciters Controls Toolbar (Search & Counter) */
.reciters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.reciters-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.reciters-search-box .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.reciters-search-box input {
  width: 100%;
  padding: 13px 48px 13px 42px;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.12);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: #023638;
  outline: none;
  box-shadow: 0 4px 14px rgba(2, 54, 56, 0.04);
  transition: all 0.25s ease;
}

.reciters-search-box input:focus {
  border-color: #CD9F5C;
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.18), 0 0 0 3px rgba(205, 159, 92, 0.12);
}

.reciters-search-box .btn-clear-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(2, 54, 56, 0.08);
  color: #023638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reciters-search-box .btn-clear-search:hover {
  background: #CD9F5C;
  color: #ffffff;
}

.reciters-count-info {
  display: flex;
  align-items: center;
}

.reciters-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.4);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #023638;
  box-shadow: 0 4px 12px rgba(2, 54, 56, 0.04);
}

/* Elegant Visual Separator between Toolbar & Cards */
.reciters-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 12px 0 34px;
}

.reciters-separator .sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 159, 92, 0.4), transparent);
}

.reciters-separator .sep-icon {
  font-size: 0.85rem;
  color: #CD9F5C;
  letter-spacing: 5px;
  opacity: 0.85;
}

/* Reciters Grid (3 Columns on Desktop) */
.quran-reciters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1100px) {
  .quran-reciters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 680px) {
  .quran-reciters-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .reciters-search-box {
    max-width: 100%;
  }
}

/* Reciter Card Entrance Animation & Styling */
@keyframes reciterCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reciter-premium-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.09);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(2, 54, 56, 0.05);
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  animation: reciterCardEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

/* Card Top Shimmer Edge */
.card-shimmer-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #023638 0%, #CD9F5C 50%, #023638 100%);
  opacity: 0.25;
  transition: all 0.4s ease;
}

.reciter-premium-card:hover {
  transform: translateY(-10px);
  border-color: rgba(205, 159, 92, 0.65);
  box-shadow: 0 22px 48px -10px rgba(2, 54, 56, 0.14), 0 0 28px rgba(205, 159, 92, 0.2);
}

.reciter-premium-card:hover .card-shimmer-edge {
  opacity: 1;
  height: 5px;
  background: linear-gradient(90deg, #CD9F5C 0%, #ffe0a3 50%, #CD9F5C 100%);
}

/* Header Bar: Number badge & Videos Pill */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(2, 54, 56, 0.08);
}

.card-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.15) 0%, rgba(205, 159, 92, 0.05) 100%);
  border: 1px solid rgba(205, 159, 92, 0.4);
  border-radius: 10px;
  padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(205, 159, 92, 0.08);
  transition: all 0.3s ease;
}

.reciter-premium-card:hover .card-number-badge {
  background: #023638;
  border-color: #CD9F5C;
}

.card-number-badge .num-hash {
  font-size: 0.82rem;
  font-weight: 800;
  color: #CD9F5C;
}

.card-number-badge .num-digits {
  font-size: 0.92rem;
  font-weight: 900;
  color: #023638;
  transition: color 0.3s ease;
}

.reciter-premium-card:hover .card-number-badge .num-digits {
  color: #ffffff;
}

.card-media-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 54, 56, 0.04);
  border: 1px solid rgba(2, 54, 56, 0.09);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.77rem;
  font-weight: 700;
  color: #023638;
  transition: all 0.3s ease;
}

.reciter-premium-card:hover .card-media-pill {
  background: rgba(205, 159, 92, 0.12);
  border-color: rgba(205, 159, 92, 0.35);
  color: #8c6426;
}

.media-pulse-dot {
  width: 7px;
  height: 7px;
  background: #e53e3e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(229, 62, 62, 0.7);
  animation: pulseBeacon 2s infinite;
}

.media-yt-icon {
  color: #e53e3e;
  transition: transform 0.25s ease;
}

.reciter-premium-card:hover .media-yt-icon {
  transform: scale(1.15);
}

/* Portrait Showcase with Rotating Islamic Halo Ring */
.card-portrait-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 18px;
}

.portrait-halo-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1.5px dashed rgba(205, 159, 92, 0.3);
  transition: all 0.5s ease;
}

.reciter-premium-card:hover .portrait-halo-ring {
  border-color: #CD9F5C;
  border-width: 2px;
  animation: rotateAura 12s linear infinite;
  box-shadow: 0 0 20px rgba(205, 159, 92, 0.35);
}

@keyframes rotateAura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.portrait-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #023638 0%, #CD9F5C 100%);
  box-shadow: 0 8px 22px rgba(2, 54, 56, 0.12);
  overflow: visible;
  transition: transform 0.35s ease;
}

.reciter-premium-card:hover .portrait-wrapper {
  transform: scale(1.05);
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

/* Play button overlay on portrait hover */
.portrait-play-hover {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: rgba(2, 54, 56, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.reciter-premium-card:hover .portrait-play-hover {
  opacity: 1;
}

.hover-play-btn {
  width: 38px;
  height: 38px;
  background: #CD9F5C;
  color: #023638;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reciter-premium-card:hover .hover-play-btn {
  transform: scale(1);
}

.portrait-verified-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  transition: transform 0.25s ease;
}

.reciter-premium-card:hover .portrait-verified-tag {
  transform: scale(1.15);
}

/* Card Content Body */
.card-content-body {
  text-align: center;
  margin-bottom: 20px;
  flex-grow: 1;
}

.sheikh-title-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 6px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.sheikh-title-name a {
  color: inherit;
  text-decoration: none;
}

.portrait-play-hover {
  text-decoration: none;
}

.reciter-premium-card:hover .sheikh-title-name {
  color: #8c6426;
}

.sheikh-narration-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #023638;
  background: rgba(205, 159, 92, 0.1);
  border: 1px solid rgba(205, 159, 92, 0.3);
  border-radius: 12px;
  padding: 3px 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.sheikh-narration-badge .gold-crescent {
  color: #CD9F5C;
  font-size: 0.72rem;
}

.reciter-premium-card:hover .sheikh-narration-badge {
  background: rgba(205, 159, 92, 0.2);
  border-color: #CD9F5C;
}

.sheikh-brief-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

/* Card Actions Dock: Single Premium Full-Width Video Gateway Button */
.card-actions-dock {
  margin-top: auto;
  width: 100%;
}

.btn-watch-sheikh-videos {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(135deg, #023638 0%, #03484b 100%);
  color: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(2, 54, 56, 0.16);
  position: relative;
  overflow: hidden;
}

.btn-watch-sheikh-videos::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: all 0.75s ease;
}

.reciter-premium-card:hover .btn-watch-sheikh-videos::before {
  left: 140%;
}

.reciter-premium-card:hover .btn-watch-sheikh-videos {
  background: linear-gradient(135deg, #CD9F5C 0%, #b8863f 100%);
  color: #023638;
  border-color: #CD9F5C;
  box-shadow: 0 10px 26px rgba(205, 159, 92, 0.45);
  transform: translateY(-2px);
}

.btn-watch-sheikh-videos .btn-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ff4d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.reciter-premium-card:hover .btn-watch-sheikh-videos .btn-icon-wrapper {
  background: #023638;
  color: #ffffff;
  transform: scale(1.08);
}

.btn-watch-sheikh-videos .btn-main-label {
  flex-grow: 1;
  text-align: center;
  padding: 0 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-watch-sheikh-videos .btn-arrow-icon {
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
  flex-shrink: 0;
}

.reciter-premium-card:hover .btn-watch-sheikh-videos .btn-arrow-icon {
  color: #023638;
  transform: translateX(-5px);
}

.btn-watch-sheikh-videos:active {
  transform: scale(0.98);
}

/* Pagination Controls */
/* Smart Ellipsis Pagination Controls */
.reciters-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 45px;
}

.pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.09);
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(2, 54, 56, 0.04);
}

.page-num-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #023638;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.page-num-btn:hover {
  background: #f7f4ec;
  border-color: rgba(205, 159, 92, 0.35);
  color: #CD9F5C;
}

.page-num-btn.active {
  background: #023638;
  color: #ffffff;
  border-color: #CD9F5C;
  box-shadow: 0 4px 12px rgba(2, 54, 56, 0.25);
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  background: #f8fafc;
  color: #023638;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.page-nav-btn:hover:not(:disabled) {
  background: #023638;
  color: #ffffff;
  border-color: #CD9F5C;
}

.page-nav-btn:disabled,
.page-nav-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
  pointer-events: none;
}

.pagination-ellipsis {
  width: 32px;
  text-align: center;
  color: #a0aec0;
  font-weight: 900;
  font-size: 1.1rem;
  user-select: none;
}

/* Empty State */
.empty-reciters-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: #ffffff;
  border: 1.5px dashed rgba(205, 159, 92, 0.45);
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(2, 54, 56, 0.03);
}

.empty-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(205, 159, 92, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.empty-reciters-state h3 {
  color: #023638;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.empty-reciters-state p {
  color: #718096;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.btn-reset-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #023638;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 54, 56, 0.15);
}

.btn-reset-search:hover {
  background: #CD9F5C;
  color: #023638;
  transform: translateY(-2px);
}
