/* ==========================================================================
   Islamic Blog & Articles Page Stylesheet
   Al-Fath Platform - Thought & Spiritual Inspiration
   ========================================================================== */

/* Page Global Theme & Color Scheme - Light Luxury Islamic Ivory & Gold */
body.page-blog {
  background-color: #fcfbf8;
  color: #1a202c;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ==========================================================================
   Hero Section - Majestic Islamic Gold & Dark Amber Bronze with Ambient FX
   ========================================================================== */
.blog-hero-section,
.quran-hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: radial-gradient(circle at 50% 25%, #3d2910 0%, #261907 60%, #130c03 100%) !important;
  border-bottom: 2px solid rgba(205, 159, 92, 0.45);
  box-shadow: 0 12px 36px rgba(25, 16, 5, 0.4);
  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: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(205, 159, 92, 0.4) 0%, rgba(205, 159, 92, 0) 70%);
  top: -90px;
  right: 14%;
  animation: orbFloatGold 13s ease-in-out infinite alternate;
}

.quran-fx-orb.orb-amber,
.quran-fx-orb.orb-emerald {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 185, 75, 0.28) 0%, rgba(41, 26, 7, 0) 70%);
  bottom: -110px;
  left: 8%;
  animation: orbFloatAmber 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.95) 1.2px, transparent 1.2px),
                    radial-gradient(rgba(255, 230, 180, 0.6) 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 orbFloatAmber {
  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.75);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(205, 159, 92, 0.32);
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  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.6);
  font-weight: 700;
}

.breadcrumb-current {
  color: #ffd79a;
  font-weight: 800;
}

/* Shimmering Title & Description */
.quran-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.35;
}

.quran-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ffd79a 45%, #CD9F5C 80%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 8s ease-in-out infinite;
  display: inline-block;
}

.quran-hero-desc {
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Perfect Horizontal Decorative Ornament (Clean and un-tilted) */
.islamic-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 18px;
}

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

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

.ornament-diamond {
  width: 10px;
  height: 10px;
  background: #CD9F5C;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(205, 159, 92, 0.8);
  flex-shrink: 0;
}

/* ==========================================================================
   Main Blog Catalog Section - Light Aesthetic with Golden Touches
   ========================================================================== */
#blogCatalogSection {
  background: radial-gradient(circle at 10% 20%, rgba(205, 159, 92, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(205, 159, 92, 0.04) 0%, transparent 45%),
              #fcfbf8 !important;
  padding: 44px 0 80px;
  position: relative;
  min-height: 700px;
}

/* Subtle Golden Micro-Pattern */
#blogCatalogSection::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(205, 159, 92, 0.16) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

#blogCatalogSection .container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Top Controls Bar: Live Search & Sort Filter Dropdown
   ========================================================================== */
.blog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 18px;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  box-shadow: 0 8px 24px rgba(205, 159, 92, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Search Box */
.blog-search-box {
  position: relative;
  flex: 1 1 360px;
  min-width: 260px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

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

.blog-search-box input {
  width: 100%;
  height: 100%;
  padding: 0 48px 0 44px;
  border-radius: 14px;
  background: #fdfcf9;
  border: 1.5px solid rgba(205, 159, 92, 0.32);
  color: #023638;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.blog-search-box input::placeholder {
  color: rgba(2, 54, 56, 0.45);
}

.blog-search-box input:focus {
  border-color: #CD9F5C;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(205, 159, 92, 0.18), 0 6px 18px rgba(205, 159, 92, 0.1);
}

.btn-clear-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(205, 159, 92, 0.18);
  border: none;
  color: #9c6c28;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Sort Dropdown */
.blog-sort-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8c6020;
  font-weight: 800;
  font-size: 0.9rem;
}

.sort-select-wrapper {
  position: relative;
  min-width: 175px;
}

.blog-sort-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 11px 40px 11px 20px;
  background: #fdfcf9;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 12px;
  color: #023638;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
}

.blog-sort-select:hover,
.blog-sort-select:focus {
  border-color: #CD9F5C;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.18);
}

.blog-sort-select option {
  background: #ffffff;
  color: #023638;
  padding: 10px;
}

.select-chevron {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ==========================================================================
   Main 2-Column Responsive Layout (Catalog Area + Sidebar)
   ========================================================================== */
.blog-main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.blog-content-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ==========================================================================
   Articles Grid & Redesigned Light Luxury Cards with Gold Accents
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

.article-card {
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.28);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(205, 159, 92, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.article-card:hover {
  transform: translateY(-7px);
  border-color: #CD9F5C;
  box-shadow: 0 16px 36px rgba(205, 159, 92, 0.22), 0 4px 12px rgba(2, 54, 56, 0.06);
}

/* Card Thumbnail */
.article-thumb {
  height: 205px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-card:hover .article-thumb img {
  transform: scale(1.08);
}

.thumb-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.card-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8c6020;
  border: 1px solid rgba(205, 159, 92, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Card Body Content */
.article-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Date replacing read time with golden touch */
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c6020;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Title */
.article-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #023638;
  line-height: 1.55;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.article-card:hover .article-title,
.article-card:hover .article-title a {
  color: #CD9F5C;
}

/* Excerpt */
.article-excerpt {
  font-size: 0.9rem;
  color: #557072;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer with Author and Button */
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(205, 159, 92, 0.18);
  padding-top: 16px;
  margin-top: auto;
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #023638;
  font-size: 0.84rem;
  font-weight: 700;
}

.btn-read-article {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(205, 159, 92, 0.1);
  border: 1.5px solid rgba(205, 159, 92, 0.4);
  color: #8c6020;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-read-article:hover {
  background: linear-gradient(135deg, #CD9F5C, #b68541);
  color: #ffffff;
  border-color: #CD9F5C;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.35);
}

.btn-read-article .read-arrow {
  transition: transform 0.25s ease;
}

.btn-read-article:hover .read-arrow {
  transform: translateX(-4px);
}

/* ==========================================================================
   Sidebar Styles: Categories & 4 Latest Articles
   ========================================================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(205, 159, 92, 0.08);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(205, 159, 92, 0.2);
  margin-bottom: 18px;
}

.sidebar-header-spark {
  color: #CD9F5C;
  font-size: 1.15rem;
}

.sidebar-title {
  color: #023638;
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}

/* Categories Filter Panel (Above Articles Cards) */
.blog-categories-panel {
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.categories-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(205, 159, 92, 0.2);
}

.categories-panel-title {
  color: #023638;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

/* Categories List as Single Horizontal Row */
.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.sidebar-cat-item {
  width: 100%;
  min-width: 0;
}

.sidebar-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fdfcf9;
  border: 1.5px solid rgba(205, 159, 92, 0.25);
  color: #023638;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(2, 54, 56, 0.03);
  box-sizing: border-box;
  white-space: nowrap;
}

.cat-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-bullet {
  color: rgba(205, 159, 92, 0.65);
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

.sidebar-cat-btn:hover {
  background: rgba(205, 159, 92, 0.12);
  border-color: #CD9F5C;
  color: #8c6020;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.18);
}

.sidebar-cat-btn:hover .cat-bullet {
  color: #CD9F5C;
}

.sidebar-cat-btn.active {
  background: linear-gradient(135deg, #CD9F5C 0%, #b68541 100%);
  border-color: #CD9F5C;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(205, 159, 92, 0.35);
}

.sidebar-cat-btn.active .cat-bullet {
  color: #ffffff;
}

.cat-count-badge {
  background: rgba(205, 159, 92, 0.14);
  border: 1px solid rgba(205, 159, 92, 0.35);
  color: #8c6020;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-cat-btn.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* Latest 4 Articles Stack */
.sidebar-latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.latest-article-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fdfcf9;
  border: 1px solid rgba(205, 159, 92, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.latest-article-item:hover {
  background: rgba(205, 159, 92, 0.08);
  border-color: #CD9F5C;
  transform: translateX(-4px);
  box-shadow: 0 6px 18px rgba(205, 159, 92, 0.14);
}

.latest-thumb-wrap {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(205, 159, 92, 0.35);
}

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

.latest-article-item:hover .latest-thumb-wrap img {
  transform: scale(1.1);
}

.latest-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.latest-category {
  font-size: 0.72rem;
  color: #CD9F5C;
  font-weight: 800;
}

.latest-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #023638;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.latest-article-item:hover .latest-title {
  color: #CD9F5C;
}

.latest-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #718096;
}

/* ==========================================================================
   Pagination Controls (Matching Quran & Programs Smart Ellipsis Pattern)
   ========================================================================== */
.blog-pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pagination-list .page-num-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  color: #8c6020;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(205, 159, 92, 0.08);
}

.pagination-list .page-num-btn:hover {
  background: rgba(205, 159, 92, 0.15);
  border-color: #CD9F5C;
  color: #CD9F5C;
  transform: translateY(-2px);
}

.pagination-list .page-num-btn.active {
  background: linear-gradient(135deg, #CD9F5C 0%, #b68541 100%);
  color: #ffffff;
  border-color: #CD9F5C;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(205, 159, 92, 0.35);
  cursor: default;
}

.pagination-list .page-nav-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  color: #8c6020;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(205, 159, 92, 0.08);
}

.pagination-list .page-nav-btn:hover:not(:disabled) {
  background: rgba(205, 159, 92, 0.15);
  border-color: #CD9F5C;
  color: #CD9F5C;
  transform: translateY(-2px);
}

.pagination-list .page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(205, 159, 92, 0.15);
}

.pagination-list .pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 44px;
  color: #CD9F5C;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.empty-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(205, 159, 92, 0.12);
  border: 1px solid rgba(205, 159, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

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

.empty-desc {
  color: #557072;
  font-size: 0.92rem;
  max-width: 440px;
  margin: 0 auto 22px;
}

.btn-reset-filters {
  background: linear-gradient(135deg, #CD9F5C, #b68541);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.35);
}

.btn-reset-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.5);
}

/* ==========================================================================
   Dedicated Reading Modal
   ========================================================================== */
.quran-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 54, 56, 0.75);
  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: 22px;
  border: 1.5px solid #CD9F5C;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 25px rgba(205, 159, 92, 0.18);
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #1a202c;
}

.quran-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(205, 159, 92, 0.25);
}

.btn-close-modal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(205, 159, 92, 0.35);
  background: #f7fafc;
  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;
}

/* ==========================================================================
   Responsive Rules for Blog & Categories Panel
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-main-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .blog-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
  }

  .blog-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;
    box-sizing: border-box !important;
  }

  .blog-sort-box {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select-wrapper {
    flex: 1;
  }

  .blog-categories-panel {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .categories-panel-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .categories-panel-title {
    font-size: 1rem;
  }

  .sidebar-categories-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }

  .sidebar-categories-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar-cat-item {
    flex: 0 0 auto;
    width: auto;
  }

  .sidebar-cat-btn {
    padding: 8px 14px;
    font-size: 0.86rem;
    border-radius: 12px;
    gap: 8px;
    white-space: nowrap;
  }

  .cat-count-badge {
    font-size: 0.74rem;
    padding: 2px 7px;
    min-width: 22px;
  }
}

@media (max-width: 480px) {
  .blog-search-box {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
  }

  .blog-search-box input {
    font-size: 0.86rem !important;
    padding: 0 44px 0 38px !important;
  }

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

  .blog-categories-panel {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .sidebar-categories-list {
    gap: 6px;
  }

  .sidebar-cat-btn {
    padding: 7px 11px;
    font-size: 0.82rem;
    border-radius: 10px;
    gap: 6px;
  }

  .cat-count-badge {
    font-size: 0.7rem;
    padding: 1px 6px;
    min-width: 18px;
  }
}

