/* ==========================================================================
   Islamic Website Design System - আল-হেদাহায়াত
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --color-primary-dark: #072a24;
  --color-primary-hover: #0b3b32;
  --color-primary-light: #124b40;
  --color-gold: #c9933e;
  --color-gold-light: #dfa954;
  --color-gold-hover: #b38031;
  --color-gold-soft: rgba(201, 147, 62, 0.15);
  
  /* Backgrounds & Neutrals */
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f4f1ea;
  --bg-surface-subtle: #f0ede4;
  
  /* Text & Borders */
  --text-main: #1e293b;
  --text-muted: #5f6c68;
  --text-light: #94a3b8;
  --border-light: #ebe7dc;
  --border-subtle: #f1eee6;
  
  /* Accents */
  --badge-quran: #0a4a3e;
  --badge-hadith: #0a4a3e;
  --badge-masala: #0a4a3e;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(7, 42, 36, 0.08);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-bengali: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-page: #0b1513;
  --bg-surface: #10211d;
  --bg-surface-soft: #142a25;
  --bg-surface-subtle: #19352e;
  --text-main: #f1f5f9;
  --text-muted: #a3b8b1;
  --text-light: #6e857d;
  --border-light: #1d3931;
  --border-subtle: #18312a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-bengali);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e4c3f 0%, #06231c 100%);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 20px;
  box-shadow: 0 0 14px rgba(201, 147, 62, 0.3);
  transition: var(--transition-smooth);
}

.brand-logo:hover .brand-icon {
  border-color: var(--color-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #a0c4b8;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2ede8;
  padding: 6px 6px;
  position: relative;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  border-bottom-color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.mobile-toggle {
  display: none;
  font-size: 1.25rem;
}

/* ==========================================================================
   Hero Section with Hanging Lanterns & Mihrab Illustration
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #fdfbf7 0%, var(--bg-page) 100%);
  padding: 48px 0 56px;
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, #091915 0%, var(--bg-page) 100%);
}

/* Hanging Lanterns */
.lantern-hanging {
  position: absolute;
  top: 0;
  z-index: 5;
  pointer-events: none;
  animation: lanternSwing 6s ease-in-out infinite alternate;
  transform-origin: top center;
}

.lantern-left {
  left: 28px;
}

.lantern-right {
  right: 28px;
  animation-delay: -3s;
}

.lantern-chain {
  width: 2px;
  height: 65px;
  background: linear-gradient(to bottom, #99702a, #d4a359);
  margin: 0 auto;
}

.lantern-body {
  width: 38px;
  height: 66px;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(201, 147, 62, 0.45));
}

@keyframes lanternSwing {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
}

.hero-content {
  padding-right: 12px;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title .title-primary {
  display: block;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .hero-title .title-primary {
  color: #e6f3ee;
}

.hero-title .title-gold {
  display: block;
  color: var(--color-gold);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 580px;
}

/* Hero Search Box */
.hero-search-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  max-width: 540px;
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}

.hero-search-wrapper:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 8px 28px rgba(201, 147, 62, 0.18);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 0.98rem;
  color: var(--text-main);
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-light);
}

.hero-search-btn {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-search-btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(7, 42, 36, 0.25);
}

/* Popular Keywords */
.hero-popular-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 4px;
}

.popular-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.popular-pill:hover {
  background-color: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
}

/* Hero Mihrab Arched Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mihrab-arch-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 190px 190px 18px 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(7, 42, 36, 0.15), 0 0 0 1px var(--border-light);
  border: 4px solid var(--color-gold-soft);
  position: relative;
  background-color: #0b1f1a;
  transition: var(--transition-smooth);
}

.mihrab-arch-frame:hover {
  box-shadow: 0 20px 48px rgba(201, 147, 62, 0.25), 0 0 0 2px var(--color-gold);
}

.mihrab-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Quick Category Cards (6 Cards Row)
   ========================================================================== */
.quick-categories-section {
  padding: 0 0 44px;
  margin-top: -10px;
  position: relative;
  z-index: 20;
}

.quick-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--color-gold);
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .category-icon-wrap {
  color: #72cbb0;
}

.category-card:hover .category-icon-wrap {
  color: var(--color-gold);
}

.category-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Main Content Layout (2 Columns: Articles & Sidebar)
   ========================================================================== */
.main-content-section {
  padding: 0 0 64px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-star {
  color: var(--color-gold);
  font-size: 1.15rem;
}

.view-all-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.view-all-link:hover {
  color: var(--color-gold);
}

/* Featured Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.article-card:hover {
  border-color: var(--color-gold);
}

.article-thumb-wrap {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  background-color: #122c24;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--badge-quran);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.article-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.article-card:hover .article-title {
  color: var(--color-gold);
}

.article-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Various Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.topic-card:hover {
  border-color: var(--color-gold);
}

.topic-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

[data-theme="dark"] .topic-icon-wrap {
  color: #72cbb0;
}

.topic-card:hover .topic-icon-wrap {
  color: var(--color-gold);
}

.topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.topic-pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 12px;
  border-radius: 16px;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

/* Ayah of the Day Widget */
.widget-ayah {
  text-align: center;
  position: relative;
}

.widget-title-centered {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.8;
  margin-bottom: 14px;
  direction: rtl;
}

[data-theme="dark"] .ayah-arabic {
  color: #6edec0;
}

.ayah-bengali {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 18px;
}

.ayah-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ayah-ref {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ayah-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ayah-arrow-btn:hover {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
}

/* Hadith of the Day Widget (Dark Emerald Card) */
.widget-hadith {
  background: linear-gradient(145deg, #072a24 0%, #0a382f 100%);
  color: #ffffff;
  text-align: center;
  border-color: rgba(201, 147, 62, 0.25);
  box-shadow: 0 8px 24px rgba(7, 42, 36, 0.2);
}

.widget-hadith .widget-title-centered {
  color: var(--color-gold);
}

.hadith-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 14px;
  direction: rtl;
}

.hadith-bengali {
  font-size: 0.92rem;
  color: #d1e3dd;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hadith-ref {
  font-size: 0.8rem;
  color: #8bb7a9;
}

/* Popular Tags Widget */
.widget-title-left {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tag-badge:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Newsletter Widget */
.newsletter-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-surface-soft);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--color-gold);
  background: var(--bg-surface);
}

.newsletter-btn {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #d1e3dd;
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-about .brand-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #9cb9b0;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.92rem;
  color: #9cb9b0;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--color-gold);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #9cb9b0;
}

.contact-item i {
  color: var(--color-gold);
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #87a79e;
}

.share-action {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-action:hover {
  color: #ffffff;
}

.developer-link {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.developer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Toast Notification & Modals
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border-left: 4px solid var(--color-gold);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .quick-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 72px);
    background-color: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    transition: 0.3s ease;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.95rem;
  }
  
  .hero-description {
    margin: 0 auto 24px;
  }
  
  .hero-search-wrapper {
    margin: 0 auto 20px;
  }
  
  .hero-popular-tags {
    justify-content: center;
  }
  
  .mihrab-arch-frame {
    max-width: 300px;
  }
  
  .lantern-left {
    left: 10px;
  }
  
  .lantern-right {
    right: 10px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .quick-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   All Articles Page (সকল আর্টিকেল) Specific Styles
   ========================================================================== */

.page-banner-quran {
  background: linear-gradient(135deg, #051e18 0%, #082d24 60%, #0e4437 100%);
  color: #ffffff;
  padding: 40px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 147, 62, 0.2);
}

.page-banner-quran::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 147, 62, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-title .gold-star {
  color: var(--color-gold);
  font-size: 1.8rem;
}

.banner-subtitle {
  font-size: 1.05rem;
  color: #b2ceca;
  line-height: 1.6;
  max-width: 520px;
}

.banner-visual {
  display: flex;
  justify-content: flex-end;
}

.banner-visual-inner {
  max-width: 380px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 147, 62, 0.3);
}

.banner-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Filter Controls Bar */
.articles-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-pill-btn {
  border: none;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
}

.filter-pill-btn.active,
.filter-pill-btn:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

[data-theme="dark"] .filter-pill-btn.active {
  background-color: var(--color-gold);
  color: #000000;
}

.filter-options-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  outline: none;
  cursor: pointer;
}

.view-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-toggle-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
}

[data-theme="dark"] .view-toggle-btn.active {
  background-color: var(--color-gold);
  color: #000000;
  border-color: var(--color-gold);
}

/* Horizontal Articles List View */
.horizontal-articles-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.horizontal-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 20px;
  transition: var(--transition-smooth);
  position: relative;
}

.horizontal-article-card:hover {
  border-color: var(--color-gold);
}

.horizontal-card-thumb {
  width: 200px;
  height: 135px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0b1f1a;
}

.horizontal-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizontal-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.category-badge-pill {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.bookmark-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  padding: 2px;
}

.bookmark-btn:hover {
  color: var(--color-gold);
}

.horizontal-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.horizontal-article-card:hover .horizontal-card-title {
  color: var(--color-gold);
}

.horizontal-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.horizontal-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Grid View Mode support */
.horizontal-articles-list.grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.horizontal-articles-list.grid-view .horizontal-article-card {
  flex-direction: column;
}

.horizontal-articles-list.grid-view .horizontal-card-thumb {
  width: 100%;
  height: 160px;
}

/* Pagination Bar */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-num-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-num-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.page-num-btn.active {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
}

[data-theme="dark"] .page-num-btn.active {
  background-color: var(--color-gold);
  color: #000000;
  border-color: var(--color-gold);
}

.page-ellipsis {
  color: var(--text-light);
  padding: 0 4px;
}

/* Sidebar: বিষয়ভিত্তিক ক্যাটাগরি Widget */
.categories-list-widget {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.cat-item-link:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.cat-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-name-wrap .gold-star {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.cat-count-badge {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Sidebar: জনপ্রিয় আর্টিকেল Widget */
.popular-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.popular-article-item:hover {
  border-color: var(--color-gold);
}

.popular-item-thumb {
  width: 58px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0e2a22;
}

.popular-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-item-content {
  flex: 1;
}

.popular-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.popular-article-item:hover .popular-item-title {
  color: var(--color-gold);
}

.popular-item-views {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* Responsive adjustments for All Articles Page */
@media (max-width: 900px) {
  .banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  
  .banner-title {
    justify-content: center;
    font-size: 2rem;
  }
  
  .banner-subtitle {
    margin: 0 auto;
  }
  
  .banner-visual {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .horizontal-article-card {
    flex-direction: column;
  }
  
  .horizontal-card-thumb {
    width: 100%;
    height: 160px;
  }
  
  .articles-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-options-right {
    width: 100%;
    justify-content: space-between;
  }
}
