/* ==========================================================================
   Programs & Islamic Lectures Page Stylesheet
   Al-Fath Platform - Visual Islamic Media & Playlists Hub
   Matching Quran Directory Page Luxury Design & Ambient Animations
   ========================================================================== */

/* Programs Hero Section - Majestic Deep Emerald Teal & Islamic Gold */
.programs-hero-section,
.quran-hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: radial-gradient(circle at 50% 25%, #05494d 0%, #023638 60%, #01191a 100%) !important;
  border-bottom: 2px solid rgba(205, 159, 92, 0.35);
  box-shadow: 0 12px 36px rgba(1, 25, 26, 0.45);
  text-align: center;
}

/* Ambient Background Animations (Floating Orbs, Sparks & Geometric Pattern) */
.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(16, 185, 129, 0.28) 0%, rgba(2, 54, 56, 0) 70%);
  bottom: -110px;
  left: 8%;
  animation: orbFloatEmerald 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 orbFloatEmerald {
  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%; }
}

/* Breadcrumb with Glassmorphism */
.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;
}

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

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

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

.quran-hero-desc {
  font-size: 1.05rem;
  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);
}

/* ==========================================================================
   Programs Catalog Section - Modern Luxury Islamic Design
   ========================================================================== */
body.page-programs {
  background-color: #fcfbf8;
  color: #1a202c;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

#programsCatalogSection {
  background: radial-gradient(circle at 10% 20%, rgba(205, 159, 92, 0.035) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(2, 54, 56, 0.03) 0%, transparent 40%),
              #fcfbf8 !important;
  padding: 44px 0 80px;
  position: relative;
}

/* ==========================================================================
   Toolbar: Search, Custom Searchable Host Filter & Total Count
   ========================================================================== */
.programs-toolbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

/* Multi-Field Search Input Box */
.programs-search-box {
  position: relative;
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 540px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  box-shadow: 0 3px 12px rgba(2, 54, 56, 0.03);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.programs-search-box:focus-within {
  border-color: #CD9F5C;
  box-shadow: 0 0 0 3.5px rgba(205, 159, 92, 0.16), 0 4px 18px rgba(2, 54, 56, 0.06);
}

.programs-search-box .search-icon {
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.programs-search-box:focus-within .search-icon {
  stroke: #CD9F5C;
  transform: scale(1.08);
}

.programs-search-box input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #023638;
}

.programs-search-box input::placeholder {
  color: #8c9ba5;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.programs-search-box:focus-within input::placeholder {
  color: #a0aec0;
}

.btn-clear-search {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2f7;
  border: none;
  color: #718096;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
  flex-shrink: 0;
}

.btn-clear-search:hover {
  background: #e2e8f0;
  color: #e53e3e;
}

/* Custom Searchable Host Filter Dropdown */
.host-dropdown-wrapper {
  position: relative;
  flex: 0 0 auto;
}

.host-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.12);
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #023638;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(2, 54, 56, 0.03);
}

.host-dropdown-trigger:hover,
.host-dropdown-wrapper.open .host-dropdown-trigger {
  border-color: #CD9F5C;
  background: #faf8f5;
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.12);
}

.host-trigger-icon {
  color: #CD9F5C;
  display: flex;
  align-items: center;
}

.host-trigger-label {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-chevron {
  color: #8c9ba5;
  transition: transform 0.25s ease;
  margin-right: 2px;
}

.host-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #CD9F5C;
}

/* Dropdown Menu */
.host-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 290px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.4);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(2, 54, 56, 0.14);
  z-index: 99;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.host-dropdown-wrapper.open .host-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Search Box Inside Host Dropdown */
.dropdown-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 8px;
}

.dropdown-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #023638;
}

.dropdown-search-box input::placeholder {
  color: #a0aec0;
}

/* Host Option Items List */
.host-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}

.host-dropdown-list::-webkit-scrollbar {
  width: 5px;
}
.host-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(205, 159, 92, 0.4);
  border-radius: 4px;
}

.host-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d3748;
}

.host-option-item:hover {
  background: #f4eee2;
  color: #023638;
}

.host-option-item.selected {
  background: #023638;
  color: #ffffff;
}

.host-opt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #CD9F5C;
  flex-shrink: 0;
}

.host-opt-avatar.all-avatar {
  background: rgba(205, 159, 92, 0.2);
  color: #CD9F5C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.host-opt-name {
  flex-grow: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-opt-count {
  font-size: 0.74rem;
  background: rgba(2, 54, 56, 0.08);
  color: #023638;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.host-option-item.selected .host-opt-count {
  background: rgba(205, 159, 92, 0.35);
  color: #ffd79a;
}

.host-option-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: #a0aec0;
}

/* Total Count Chip */
.programs-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(2, 54, 56, 0.03);
  margin-right: auto;
}

.programs-count-chip .count-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #CD9F5C;
}

.programs-count-chip .count-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #023638;
}

/* Elegant Separator */
.reciters-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 34px;
  opacity: 0.85;
}

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

.reciters-separator .sep-icon {
  color: #CD9F5C;
  font-size: 0.9rem;
  letter-spacing: 4px;
}

/* ==========================================================================
   Programs Grid Layout & Distinctive Playlist Cards
   ========================================================================== */
.programs-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

/* Playlist Card Shell with Stacked Layers */
.playlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Physical Stack Layer Accents */
.playlist-stack-layer {
  position: absolute;
  height: 10px;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-stack-layer.layer-back {
  top: -10px;
  left: 14px;
  right: 14px;
  background: #e4dfd3;
  border: 1px solid rgba(205, 159, 92, 0.25);
  opacity: 0.7;
}

.playlist-stack-layer.layer-middle {
  top: -5px;
  left: 7px;
  right: 7px;
  background: #ede8dc;
  border: 1px solid rgba(205, 159, 92, 0.3);
  opacity: 0.85;
}

.playlist-card:hover .playlist-stack-layer.layer-back {
  top: -13px;
  opacity: 0.9;
  background: #dfd8cb;
}

.playlist-card:hover .playlist-stack-layer.layer-middle {
  top: -7px;
  opacity: 1;
}

.playlist-card-inner {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(2, 54, 56, 0.05);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-card:hover .playlist-card-inner {
  transform: translateY(-5px);
  border-color: rgba(205, 159, 92, 0.45);
  box-shadow: 0 16px 36px rgba(2, 54, 56, 0.11), 0 0 0 1px rgba(205, 159, 92, 0.25);
}

/* Playlist Cover / Thumbnail */
.playlist-cover-wrapper {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #022324;
  cursor: pointer;
}

.playlist-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.playlist-card:hover .playlist-cover-img {
  transform: scale(1.06);
}

.cover-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 54, 56, 0.5) 0%, rgba(2, 54, 56, 0.1) 40%, rgba(2, 54, 56, 0.75) 100%);
  pointer-events: none;
}

/* Top Cover Badges */
.cover-badges-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.playlist-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(2, 54, 56, 0.9);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(205, 159, 92, 0.4);
}

.playlist-type-badge .badge-num {
  color: #CD9F5C;
  font-weight: 900;
}

.playlist-episodes-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #023638;
  padding: 4px 11px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Center Play Disc */
.playlist-play-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.play-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(205, 159, 92, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s ease;
}

.play-disc svg {
  margin-right: -2px;
}

.playlist-card:hover .play-disc {
  transform: scale(1.15);
  background: #ffffff;
}

/* Footer Cover Row */
.cover-footer-row {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
}

.playlist-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(2, 54, 56, 0.82);
  color: #ffd79a;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(205, 159, 92, 0.3);
}

/* Playlist Card Body */
.playlist-content-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Host Info Row with Circular Avatar */
.playlist-host-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.host-avatar-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #CD9F5C;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(205, 159, 92, 0.2);
}

.host-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-text-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.host-name-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-genre-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c6426;
}

/* Title & Excerpt */
.playlist-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 10px;
  line-height: 1.42;
  cursor: pointer;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card:hover .playlist-title {
  color: #b8863f;
}

.playlist-excerpt {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5a6a70;
  margin: 0 0 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.playlist-cover-wrapper {
  display: block;
  text-decoration: none;
}

/* Action Button */
.playlist-actions-bar {
  border-top: 1px dashed rgba(2, 54, 56, 0.1);
  padding-top: 16px;
  margin-top: auto;
}

.btn-watch-playlist {
  width: 100%;
  background: #023638;
  color: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.12);
  text-decoration: none;
}

.btn-watch-playlist .btn-icon {
  color: #CD9F5C;
  display: flex;
  align-items: center;
}

.btn-watch-playlist .arrow-sym {
  transition: transform 0.25s ease;
}

.playlist-card:hover .btn-watch-playlist {
  background: #044b4e;
  border-color: #CD9F5C;
  color: #ffd79a;
  box-shadow: 0 6px 18px rgba(2, 54, 56, 0.2);
}

.playlist-card:hover .btn-watch-playlist .arrow-sym {
  transform: translateX(-4px);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.programs-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px dashed rgba(205, 159, 92, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fdfaf3;
  border: 1.5px solid #CD9F5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 8px;
}

.empty-desc {
  font-size: 0.92rem;
  color: #718096;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.btn-reset-filters {
  background: #023638;
  color: #ffffff;
  border: 1px solid #CD9F5C;
  border-radius: 12px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background: #CD9F5C;
  color: #023638;
}

/* ==========================================================================
   Smart Ellipsis Pagination
   ========================================================================== */
.programs-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.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 {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

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

/* ==========================================================================
   Video Watch Modal Dialog
   ========================================================================== */
.quran-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 54, 56, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quran-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quran-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #CD9F5C;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.quran-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(2, 54, 56, 0.1);
}

.quran-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #023638;
  margin: 0;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(2, 54, 56, 0.2);
  background: #f8f9fa;
  color: #023638;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #e53e3e;
  color: #ffffff;
  border-color: #e53e3e;
}

/* ==========================================================================
   Full Responsive Design (Mobile, Tablet, Laptop, Large Screen)
   ========================================================================== */

/* Laptops and Small Desktops */
@media (max-width: 1200px) {
  .programs-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

/* Tablets (iPad, Galaxy Tab, Surface) */
@media (max-width: 992px) {
  .programs-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .programs-hero-section {
    padding: 44px 0 34px;
  }

  .quran-hero-title {
    font-size: 2.1rem;
  }

  .host-dropdown-menu {
    min-width: 270px;
  }
}

/* Mobile Landscape & Medium Phones */
@media (max-width: 768px) {
  .programs-toolbar-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .programs-search-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  .host-dropdown-wrapper {
    width: 100%;
  }

  .host-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .host-dropdown-menu {
    width: 100%;
    right: 0;
    left: 0;
  }

  .programs-count-chip {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .programs-catalog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quran-hero-title {
    font-size: 1.8rem;
  }

  .quran-hero-desc {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Smart Phones (iPhone SE, Galaxy A series, etc.) */
@media (max-width: 480px) {
  .programs-hero-section {
    padding: 34px 0 26px;
  }

  .programs-search-box {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
  }

  .programs-search-box input {
    font-size: 0.86rem !important;
  }

  .programs-search-box input::placeholder {
    font-size: 0.82rem !important;
  }

  .quran-hero-title {
    font-size: 1.55rem;
  }

  .page-breadcrumb {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .playlist-content-body {
    padding: 16px;
  }

  .playlist-title {
    font-size: 1.08rem;
  }

  .page-num-btn {
    width: 36px;
    height: 36px;
    font-size: 0.84rem;
  }

  .page-nav-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
}
