/* ==========================================================================
   TopQnA Digital Library - Main Stylesheet
   Pure CSS3 - Mobile First - No Framework Dependencies
   Colors: Green #0F5B45 | Gold #C8962E | Cream #FBF7EC
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --primary: #0F5B45;
  --primary-hover: #147257;
  --primary-dark: #0A3C2E;
  --primary-light: #E7F2EE;
  
  --accent: #C8962E;
  --accent-hover: #DCAB43;
  --accent-dark: #986E18;
  --accent-light: #FAF4E5;

  /* Neutrals (Light Mode) */
  --bg-body: #FBF7EC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F5EFE1;
  --bg-muted: #EFE8D6;

  --text-main: #1A2621;
  --text-muted: #576760;
  --text-light: #8E9E97;
  --text-white: #FFFFFF;

  --border-color: #E6DDC8;
  --border-subtle: #F0EAD9;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 91, 69, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 91, 69, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 91, 69, 0.12);
  --shadow-gold: 0 8px 20px rgba(200, 150, 46, 0.25);

  /* Dimensions & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --max-width: 1240px;
  --header-height: 72px;

  /* Typography */
  --font-en: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', serif;
  --font-family: var(--font-en);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Morph Glass Effect Tokens (Light Mode) */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-surface-alt: rgba(245, 239, 225, 0.65);
  --glass-header-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-subtle: rgba(200, 150, 46, 0.2);
  --glass-border-hover: rgba(200, 150, 46, 0.5);
  --glass-blur: blur(14px);
  --glass-blur-lg: blur(24px);
  --glass-shadow: 0 10px 30px rgba(15, 91, 69, 0.07), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  --glass-shadow-hover: 0 18px 42px rgba(15, 91, 69, 0.14), inset 0 1px 2px rgba(255, 255, 255, 1);
  --glass-gold-shadow: 0 12px 32px rgba(200, 150, 46, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --primary: #158364;
  --primary-hover: #1EB086;
  --primary-dark: #093427;
  --primary-light: #16362C;

  --accent: #E0AC38;
  --accent-hover: #F2C259;
  --accent-light: #2D2613;

  --bg-body: #0A1411;
  --bg-surface: #11201B;
  --bg-surface-alt: #162923;
  --bg-muted: #1B332B;

  --text-main: #F2F7F4;
  --text-muted: #A3B5AE;
  --text-light: #6E857C;

  --border-color: #1F3B32;
  --border-subtle: #172F27;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 24px rgba(224, 172, 56, 0.15);

  /* Morph Glass Effect Tokens (Dark Mode) */
  --glass-bg: rgba(17, 32, 27, 0.72);
  --glass-bg-hover: rgba(22, 43, 36, 0.88);
  --glass-surface-alt: rgba(22, 41, 35, 0.65);
  --glass-header-bg: rgba(10, 20, 17, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-subtle: rgba(224, 172, 56, 0.22);
  --glass-border-hover: rgba(224, 172, 56, 0.55);
  --glass-blur: blur(16px);
  --glass-blur-lg: blur(26px);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.07);
  --glass-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(224, 172, 56, 0.2);
  --glass-gold-shadow: 0 12px 32px rgba(224, 172, 56, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Reset & Base Elements
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(at 10% 15%, rgba(15, 91, 69, 0.06) 0px, transparent 55%),
    radial-gradient(at 90% 20%, rgba(200, 150, 46, 0.08) 0px, transparent 55%),
    radial-gradient(at 40% 75%, rgba(15, 91, 69, 0.04) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(at 10% 15%, rgba(21, 131, 100, 0.12) 0px, transparent 55%),
    radial-gradient(at 90% 20%, rgba(224, 172, 56, 0.09) 0px, transparent 55%),
    radial-gradient(at 40% 75%, rgba(21, 131, 100, 0.08) 0px, transparent 55%);
  background-attachment: fixed;
}

/* Urdu Language Specific Overrides */
[dir="rtl"], [lang="ur"] {
  font-family: var(--font-ur);
  line-height: 2.2;
  letter-spacing: 0;
}

[dir="rtl"] .ur-title,
.item-urdu-title,
.cat-urdu,
.reader-story-urdu,
.single-item-urdu-title {
  font-family: var(--font-ur);
  line-height: 2.1;
  padding: 0.2rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.main-content {
  flex: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(15, 91, 69, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

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

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav Menu */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  background: transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: transparent !important;
  background-color: transparent !important;
}

.nav-link.nav-gold-link {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.nav-gold-link:hover {
  color: var(--accent-hover);
  background: transparent !important;
  background-color: transparent !important;
}

/* Nav Item Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle .chevron-icon {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
  stroke-width: 2.5;
  opacity: 0.75;
}

.nav-item-dropdown:hover .nav-dropdown-toggle .chevron-icon,
.nav-item-dropdown:focus-within .nav-dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Menu (Matches User's Reference with Morph Glass & Dividers) */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background-color: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0.25rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1050;
}

[data-theme="dark"] .nav-dropdown-menu {
  background-color: var(--glass-header-bg);
  border-color: var(--glass-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .nav-dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.8rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
  white-space: nowrap;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

[dir="rtl"] .nav-dropdown-item:hover {
  padding-left: 1.25rem;
  padding-right: 1.5rem;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-btn {
  background: var(--glass-surface-alt);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 91, 69, 0.12);
}

/* Category filter tabs: text labels, so they must size to their content
   (the base .action-btn is a fixed 40x40 icon button) */
.cat-tab-btn {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cat-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 91, 69, 0.18);
}

.action-btn .badge-pill {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  pointer-events: none;
}

.lang-btn {
  font-size: 0.85rem;
  font-weight: 700;
  width: auto;
  padding: 0 0.75rem;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hamburger-btn {
  display: flex;
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

/* ==========================================================================
   Mobile Navigation Drawer & Overlay
   ========================================================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -320px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  right: 0;
}

[dir="rtl"] .mobile-drawer.active {
  left: 0;
  right: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

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

.drawer-nav .nav-link {
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

/* Mobile Drawer Submenu */
.drawer-submenu {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--accent);
}

[dir="rtl"] .drawer-submenu {
  padding-left: 0;
  padding-right: 0.75rem;
  border-left: none;
  border-right: 2px solid var(--accent);
}

.drawer-sub-link {
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: var(--transition);
}

.drawer-sub-link:last-child {
  border-bottom: none;
}

.drawer-sub-link:hover {
  color: var(--primary);
  padding-left: 1rem;
}

/* ==========================================================================
   Ambient Morph Glass Glow Orbs
   ========================================================================== */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.glass-orb-primary {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 91, 69, 0.8) 0%, rgba(15, 91, 69, 0) 70%);
}

.glass-orb-gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(200, 150, 46, 0.65) 0%, rgba(200, 150, 46, 0) 70%);
}

.glass-orb-cyan {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 112, 134, 0.65) 0%, rgba(22, 112, 134, 0) 70%);
}

/* ==========================================================================
   Hero Section with Islamic Pattern
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0F5B45 0%, #093B2C 100%);
  color: #FFFFFF;
  padding: 4rem 0 4rem;
  overflow: hidden;
  text-align: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern.svg');
  background-repeat: repeat;
  background-size: 90px;
  opacity: 0.14;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 150, 46, 0.25) 0%, rgba(15, 91, 69, 0) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(200, 150, 46, 0.2);
  border: 1px solid var(--accent);
  color: #F8DF9D;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.1rem;
  }
}

.hero-title span {
  color: #F8DF9D;
  background: linear-gradient(120deg, #F9E7B3, #C8962E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: #E2ECE8;
  max-width: 650px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Hero Big Search Bar */
.search-container {
  position: relative;
  width: min(100%, 660px);
  margin: 0 auto;
}

.hero-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.5rem 0.4rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

@media (max-width: 576px) {
  .hero-search-box {
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    gap: 0.4rem;
  }
  .hero-search-box input {
    min-width: 0;
    font-size: 0.92rem;
  }
  .hero-search-box button {
    padding: 0.65rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

[dir="rtl"] .hero-search-box {
  padding: 0.4rem 1.5rem 0.4rem 0.5rem;
}

.hero-search-box:focus-within {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(200, 150, 46, 0.7);
  box-shadow: 0 20px 48px rgba(200, 150, 46, 0.35), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.hero-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #1A2621;
  font-size: 1.05rem;
  outline: none;
  padding: 0.5rem 0;
}

.hero-search-box input::placeholder {
  color: #8E9E97;
}

.hero-search-box button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(200, 150, 46, 0.4);
  transition: var(--transition);
}

.hero-search-box button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(200, 150, 46, 0.55);
}

/* Quick Search Tags below Hero */
.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #D3E4DE;
}

.quick-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FBF7EC;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.quick-tag:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 150, 46, 0.45);
}

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  z-index: 1040;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

[dir="rtl"] .search-suggestions-dropdown {
  text-align: right;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: var(--transition);
  text-decoration: none;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
  background-color: var(--primary-light);
  color: var(--primary);
}

.suggestion-thumb {
  width: 38px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.suggestion-all {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: var(--bg-surface-alt);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ==========================================================================
   3 Primary Category Cards Section (No Overlapping)
   ========================================================================== */
.categories-banner-section {
  margin-top: 3rem;
  position: relative;
  margin-bottom: 3.5rem;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-carousel-section {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.category-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-carousel-header .section-title {
  margin: 0;
}

.category-carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.category-carousel-control {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-carousel-control:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.category-carousel-viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.category-carousel-viewport:active {
  cursor: grabbing;
}

.category-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.category-carousel-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.35rem 0 0.85rem;
  width: max-content;
  will-change: scroll-position;
}

.category-carousel-tile {
  display: flex;
  flex: 0 0 clamp(190px, 23vw, 260px);
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-carousel-tile:hover,
.category-carousel-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .category-carousel-viewport {
    scroll-behavior: auto;
  }

  .category-carousel-tile,
  .category-carousel-control {
    transition: none;
  }
}

.cat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--glass-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  color: var(--text-main);
}

.cat-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.cat-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: var(--transition);
}

.cat-card.islamic-books .cat-icon-wrap { background: var(--primary-light); color: var(--primary); }
.cat-card.islamic-solutions .cat-icon-wrap { background: #E0F6F5; color: #107B8A; }
.cat-card.islamic-history .cat-icon-wrap { background: #F8EDE1; color: #9C5B23; }
.cat-card.islamic-stories .cat-icon-wrap { background: #E0F2F6; color: #167086; }
.cat-card.urdu-books .cat-icon-wrap { background: var(--accent-light); color: var(--accent); }

.cat-card:hover .cat-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.cat-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.cat-urdu {
  font-family: var(--font-ur);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cat-badge {
  display: inline-block;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
.section-wrap {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title-wrap {
  position: relative;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.view-all-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.view-all-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* ==========================================================================
   Book & Item Cards Grid
   ========================================================================== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.85rem;
  }
}

.item-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
}

.item-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

.item-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.45;
  background-color: var(--glass-surface-alt);
  overflow: hidden;
  cursor: pointer;
}

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

.item-card:hover .item-cover-img {
  transform: scale(1.05);
}

/* Bookmark Icon on Card (Morph Glass) */
.btn-bookmark-card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

[data-theme="dark"] .btn-bookmark-card {
  background: rgba(20, 40, 32, 0.78);
  border-color: rgba(255, 255, 255, 0.15);
  color: #E2ECE8;
}

[dir="rtl"] .btn-bookmark-card {
  right: auto;
  left: 10px;
}

.btn-bookmark-card:hover, .btn-bookmark-card.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(200, 150, 46, 0.4);
}

.item-badge-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(15, 91, 69, 0.9);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

[dir="rtl"] .item-badge-pill {
  left: auto;
  right: 10px;
}

.badge-featured {
  background: rgba(200, 150, 46, 0.95);
  color: #FFFFFF;
}

.item-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.item-title a {
  color: inherit;
}

.item-title a:hover {
  color: var(--primary);
}

.item-urdu-title {
  font-family: var(--font-ur);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-urdu-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.item-urdu-title a:hover {
  color: var(--primary);
}

.item-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.item-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-outline-accent {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* ==========================================================================
   Category Listing Page & Filters
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  padding: 2.5rem 0 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header-banner .hero-pattern {
  opacity: 0.1;
}

.page-header-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header-desc {
  font-size: 1.05rem;
  color: #DDEBE6;
  max-width: 600px;
}

.filter-bar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .filter-bar-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.custom-select {
  background-color: var(--glass-surface-alt);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 91, 69, 0.15);
}
  border-color: var(--primary);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.page-item:hover, .page-item.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 91, 69, 0.25);
}

.page-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Single Item Details Page
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.item-details-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .item-details-layout {
    grid-template-columns: 340px 1fr;
    gap: 3.5rem;
  }
}

.item-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cover-presentation {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-alt);
}

.cover-presentation img {
  width: 100%;
  aspect-ratio: 1 / 1.45;
  object-fit: cover;
}

.item-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 91, 69, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-action:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 91, 69, 0.45);
}

.btn-gold-action {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold-action:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 150, 46, 0.4);
}

.btn-secondary-action {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-action:hover {
  background: var(--bg-surface-alt);
  border-color: var(--accent);
}

/* Item Main Content Column */
.item-details-main {
  display: flex;
  flex-direction: column;
}

.item-category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.single-item-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.single-item-urdu-title {
  font-family: var(--font-ur);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.item-author-banner {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.item-author-banner strong {
  color: var(--text-main);
}

.item-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2rem;
  box-shadow: var(--glass-shadow);
}

@media (min-width: 600px) {
  .item-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meta-box {
  display: flex;
  flex-direction: column;
}

.meta-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.meta-box-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-description-block {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  box-shadow: var(--glass-shadow);
}

.item-description-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

/* Social Share Bar */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter  { background-color: #111111; }
.share-btn.copy     { background-color: var(--primary); }

/* ==========================================================================
   Reader Mode (Distraction-Free)
   ========================================================================== */
.reader-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reader Themes */
.reader-wrapper.theme-light {
  background-color: #FBF7EC;
  color: #1A2621;
}

.reader-wrapper.theme-sepia {
  background-color: #F4ECD8;
  color: #433422;
}

.reader-wrapper.theme-sepia .reader-toolbar {
  background-color: #E8DECA;
  border-color: #D3C5AB;
}

.reader-wrapper.theme-dark {
  background-color: #121A17;
  color: #E2ECE8;
}

.reader-wrapper.theme-dark .reader-toolbar {
  background-color: #1A2622;
  border-color: #263832;
}

.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.reader-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: inherit;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.tool-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.reader-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
}

.reader-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
}

.reader-story-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.reader-story-urdu {
  font-family: var(--font-ur);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.reader-content {
  font-size: 1.15rem;
  line-height: 2;
}

/* Font Size Classes for Reader */
.reader-content.font-sm { font-size: 1rem; line-height: 1.8; }
.reader-content.font-md { font-size: 1.18rem; line-height: 2; }
.reader-content.font-lg { font-size: 1.35rem; line-height: 2.2; }
.reader-content.font-xl { font-size: 1.55rem; line-height: 2.4; }

.reader-content p {
  margin-bottom: 1.8rem;
}

.reader-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.8rem 0;
  background: rgba(200, 150, 46, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

[dir="rtl"] .reader-content blockquote {
  border-left: none;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* PDF Embed in Reader Mode */
.pdf-viewer-frame {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #2F3542;
}

/* ==========================================================================
   Embedded Inline PDF Viewer & Mobile Responsive Layouts
   ========================================================================== */
.embedded-pdf-section {
  margin-top: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.embedded-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.embedded-pdf-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.embedded-pdf-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.embedded-pdf-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.embedded-pdf-viewport {
  width: 100%;
  height: 780px;
  background: #1E1E1E;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.embedded-pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.embedded-pdf-mobile-fallback {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
}

.reader-container-pdf {
  max-width: 1100px;
  width: 100%;
}

.btn-primary-action.btn-sm,
.btn-gold-action.btn-sm,
.btn-secondary-action.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  gap: 0.4rem;
}

.reader-tool-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ==========================================================================
   Comprehensive Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 899px) {
  .item-details-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .item-details-sidebar {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .cover-presentation {
    max-width: 250px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  }

  .item-action-buttons {
    width: 100%;
  }

  .single-item-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .single-item-urdu-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .item-author-banner {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .item-category-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .item-meta-grid {
    padding: 1rem;
    gap: 0.75rem;
  }

  .item-description-block {
    padding: 1.5rem 1.25rem;
  }

  .embedded-pdf-viewport {
    height: 70vh;
    min-height: 480px;
  }
}

@media (max-width: 768px) {
  .reader-toolbar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .reader-tools {
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
  }

  .tool-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

  .reader-container {
    padding: 1rem 0.5rem 3rem;
  }

  .reader-story-title {
    font-size: 1.5rem;
  }

  .reader-story-urdu {
    font-size: 1.35rem;
  }

  .pdf-viewer-frame {
    height: 75vh;
    min-height: 460px;
  }

  .embedded-pdf-section {
    padding: 1rem 0.75rem;
  }

  .embedded-pdf-mobile-fallback {
    display: block;
  }

  .category-carousel-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none;
  }

  .category-carousel-tile {
    flex: 0 0 clamp(160px, 46vw, 210px);
    min-height: 90px;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .item-details-sidebar {
    max-width: 240px;
  }

  .cover-presentation {
    max-width: 200px;
  }

  .single-item-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .single-item-urdu-title {
    font-size: 1.3rem;
    line-height: 1.7;
  }

  .item-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .meta-box-label {
    font-size: 0.68rem;
  }

  .meta-box-val {
    font-size: 0.88rem;
  }

  .items-grid {
    gap: 0.75rem;
  }

  .item-body {
    padding: 0.75rem 0.55rem;
  }

  .item-title {
    font-size: 0.88rem;
    min-height: 2.3rem;
  }

  .item-urdu-title {
    font-size: 0.82rem;
  }

  .item-author {
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
  }

  .item-meta-bar {
    font-size: 0.72rem;
    padding-top: 0.5rem;
  }

  .item-card-actions {
    gap: 0.35rem;
    margin-top: 0.65rem;
  }

  .btn-card-action {
    font-size: 0.72rem;
    padding: 0.4rem 0.25rem;
  }

  .embedded-pdf-viewport {
    height: 60vh;
    min-height: 400px;
  }

  .share-bar {
    justify-content: center;
  }
}

/* ==========================================================================
   Static Pages (About, Contact, Disclaimer)
   ========================================================================== */
.static-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 3rem;
}

.static-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.8rem 0 0.8rem;
}

.static-card h2:first-of-type {
  margin-top: 0;
}

.static-card p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--text-main);
}

.static-card ul, .static-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.static-card li {
  margin-bottom: 0.5rem;
}

/* Contact Form Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(15, 91, 69, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #D1FAE5;
  border: 1px solid #10B981;
  color: #065F46;
}

.alert-danger {
  background-color: #FEE2E2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* ==========================================================================
   Bookmarks Drawer Modal
   ========================================================================== */
.bookmarks-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  z-index: 1070;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .bookmarks-drawer {
  right: auto;
  left: -380px;
  border-left: none;
  border-right: 1px solid var(--glass-border);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookmarks-drawer.active {
  right: 0;
}

[dir="rtl"] .bookmarks-drawer.active {
  left: 0;
  right: auto;
}

.bookmarks-list {
  flex: 1;
  overflow-y: auto;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.bookmark-item img {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.bookmark-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-remove-bookmark {
  color: #EF4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-remove-bookmark:hover {
  background: #FEE2E2;
}

/* ==========================================================================
   Back to Top & Toast Notifications
   ========================================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 990;
}

[dir="rtl"] .btn-back-to-top {
  right: auto;
  left: 24px;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1A2621;
  color: #FFFFFF;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 4px solid var(--accent);
  animation: slideUpFade 0.3s ease;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #08281E;
  color: #CFE0D9;
  border-top: 4px solid var(--accent);
  padding: 4.5rem 0 2rem;
  margin-top: 4rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #A3BFB5;
  margin: 1.25rem 0;
  max-width: 380px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8DF9D;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

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

.footer-links a {
  color: #B4CCC3;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #F8DF9D;
  padding-left: 4px;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8CA99E;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   Modular Post Content & Block Rendering (Headings, FAQs, PDF, Media)
   ========================================================================== */
.post-content-rendered {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.post-content-rendered h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.35;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.post-content-rendered h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-content-rendered p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.post-content-rendered p.rtl-text,
.post-content-rendered .rtl-content {
  font-family: var(--font-ur);
  direction: rtl;
  text-align: right;
  font-size: 1.2rem;
  line-height: 2.2;
}

.post-block-figure {
  margin: 2rem 0;
  text-align: center;
}

.post-block-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.post-block-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-block-link-wrap {
  margin: 1.75rem 0;
  display: flex;
}

.post-action-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 91, 69, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-action-btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 91, 69, 0.35);
}

.post-action-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #1A2621 !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(200, 150, 46, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-action-btn-gold:hover {
  background: #B38324;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Post PDF Attachment Card */
.post-pdf-box {
  background: #FFFDF9;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .post-pdf-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.post-pdf-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-pdf-icon {
  width: 50px;
  height: 50px;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.post-pdf-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.post-pdf-meta span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-pdf-dl-btn {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.post-pdf-dl-btn:hover {
  background: var(--primary-dark);
}

/* Post FAQs Accordion */
.post-faqs-container {
  margin: 2.5rem 0;
  background: #FAF7EE;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.post-faqs-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topqna-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topqna-faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topqna-faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 91, 69, 0.08);
}

.topqna-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 1rem;
}

.topqna-faq-question::-webkit-details-marker {
  display: none;
}

.topqna-faq-item[open] .topqna-faq-question {
  color: var(--primary);
  background: rgba(15, 91, 69, 0.03);
}

.topqna-faq-chevron {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topqna-faq-item[open] .topqna-faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.topqna-faq-answer {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  border-top: 1px solid #F1F5F9;
}

.post-content-rendered ul,
.post-content-rendered ol {
  margin: 1.25rem 0 1.5rem 1.75rem;
  line-height: 1.9;
}

.post-content-rendered li {
  margin-bottom: 0.5rem;
}
.blog-index-hero {
  padding: 5rem 0 4.5rem;
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse at top, rgba(29,116,87,.75), transparent 65%), #0c4938;
}
.blog-index-hero .section-eyebrow { color: #f2d991; letter-spacing: .16em; font-size: .76rem; font-weight: 700; }
.blog-index-hero h1 { margin: .8rem 0 .65rem; font-size: clamp(2rem,5vw,3.3rem); }
.blog-index-hero p { margin: 0; color: #e0ebe7; font-size: 1.05rem; }
.blog-index-content { min-height: 45vh; padding-top: 3rem; padding-bottom: 5rem; }
.blog-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.blog-card { overflow: hidden; background: var(--surface,#fff); border: 1px solid var(--border-subtle,#e6e8e6); border-radius: 16px; box-shadow: 0 10px 30px rgba(14,45,35,.08); }
.blog-card-image { display: block; height: 220px; background: #f4f1e8; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem 1.35rem 1.4rem; }
.blog-card-meta { color: var(--text-muted,#64736d); font-size: .83rem; }
.blog-card-meta span { margin: 0 .3rem; color: var(--accent,#c8962e); }
.blog-card h2 { margin: .65rem 0; font-size: 1.3rem; line-height: 1.4; }
.blog-card h2 a { color: var(--text-main,#1a2621); text-decoration: none; }
.blog-card h2 a:hover,.blog-read-link:hover { color: var(--primary,#0f5b45); }
.blog-card-body p { color: var(--text-muted,#64736d); line-height: 1.7; margin: 0 0 1rem; }
.blog-read-link { color: var(--primary,#0f5b45); font-weight: 700; text-decoration: none; }
.blog-empty-state { padding: 5rem 1rem; text-align: center; }
.blog-article-wrap { max-width: 920px; padding-top: 1.5rem; padding-bottom: 4rem; }
.blog-article { margin: 2rem auto 0; max-width: 800px; }
.blog-article-header { text-align: center; margin-bottom: 2rem; }
.blog-article-header h1 { margin: .8rem 0; font-size: clamp(2rem,5vw,3.25rem); line-height: 1.2; color: var(--text-main,#1a2621); }
.blog-article-excerpt { max-width: 700px; margin: 0 auto; font-size: 1.12rem; line-height: 1.7; color: var(--text-muted,#64736d); }
.blog-article-cover { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 18px; margin: 0 auto 2.5rem; }
.blog-article-content { color: var(--text-main,#28342e); font-size: 1.08rem; line-height: 1.9; overflow-wrap: anywhere; }
.blog-article-content h2 { margin: 2.2rem 0 .8rem; font-size: 1.75rem; line-height: 1.35; }
.blog-article-content h3 { margin: 1.8rem 0 .6rem; font-size: 1.35rem; }
.blog-article-content p { margin: 0 0 1.25rem; }
.blog-article-content blockquote { margin: 1.5rem 0; padding: 1rem 1.35rem; border-left: 4px solid var(--accent,#c8962e); background: rgba(200,150,46,.08); border-radius: 0 10px 10px 0; }
.blog-article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-article-content .blog-pdf-block { margin: 1.5rem 0 2rem; }
.blog-article-content .blog-pdf-block iframe { display: block; width: 100%; height: min(75vh, 850px); min-height: 420px; border: 1px solid var(--border,#e5e7eb); border-radius: 10px; background: #f8fafc; }
.blog-article-content .blog-pdf-block p { margin: .75rem 0 0; }
.blog-article-content a { color: var(--primary,#0f5b45); text-decoration: underline; }
.blog-back-link { max-width: 800px; margin: 2.5rem auto 0; }
.blog-back-link a { color: var(--primary,#0f5b45); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .blog-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .blog-index-hero { padding: 3.5rem 0; } .blog-card-grid { grid-template-columns: 1fr; } .blog-card-image { height: 200px; } .blog-article-wrap { padding-top: .75rem; } .blog-article-content { font-size: 1rem; } .blog-article-content .blog-pdf-block iframe { min-height: 320px; } }
