/* ── Mobile (≤ 680px) ── */
/* Base Archive Layout */
.page-wrap { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 40px; margin-top: 16px; }

/* Sidebar: Stack below content */
aside { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.sidebar-sticky { position: static; }

/* Filter Bar: Cleaner UI */
.filter-bar { padding: 12px 16px; gap: 12px; justify-content: space-between; background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 24px; }
.filter-chips { display: none; /* Hide quick filters on mobile to save space */ }
.filter-sep { display: none; }
.sort-select { flex: 1; min-height: 44px; display: flex; align-items: center; border-radius: 6px; padding: 0 10px; }
.sort-select select { font-size: 14px; padding: 8px; width: 100%; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.view-toggle { margin-left: auto; display: flex; gap: 4px; }
.view-toggle button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--border); background: var(--white); }
.view-toggle button.active { background: var(--saffron-light); color: var(--saffron-dark); border-color: var(--saffron); }

/* Category Hero: App-like Header */
.cat-hero { border-radius: 12px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cat-hero-inner { padding: 32px 20px; gap: 16px; flex-direction: column; text-align: center; }
.cat-hero-icon { font-size: 48px; margin-bottom: 8px; }
.cat-hero-title { font-size: 28px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.cat-hero-desc { font-size: 14px; margin: 0 auto; opacity: 0.9; line-height: 1.5; }
.cat-hero-stats { justify-content: center; gap: 20px; margin-top: 16px; background: rgba(255,255,255,0.15); padding: 12px 20px; border-radius: 8px; backdrop-filter: blur(4px); }
.cat-stat { display: flex; flex-direction: column; align-items: center; }
.cat-stat-num { font-size: 20px; font-weight: 700; }
.cat-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; margin-top: 2px; }

/* Subcat Scroll: Tappable App-like Navigation */
.subcategories { margin-bottom: 24px; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
.subcat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.subcat-tabs::-webkit-scrollbar { display: none; }
.subcat-tab { padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1.5px solid var(--border); border-radius: 50px; background: var(--white); color: var(--text-dark); min-height: 40px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.subcat-tab.active, .subcat-tab:active { background: var(--saffron); border-color: var(--saffron); color: #fff; }

/* Featured Post */
.featured-post { grid-template-columns: 1fr; margin-bottom: 24px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); overflow: hidden; }
.fp-thumb { aspect-ratio: 16 / 9; height: auto; min-height: auto; position: relative; }
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.fp-body { padding: 24px 20px; }
.fp-title { font-size: 22px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.fp-excerpt { font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; margin-bottom: 16px; color: var(--text-soft); }

/* Post Grid: Single column for mobile to ensure premium readability and tap targets */
.posts-grid[class*="cols-"], .posts-grid { grid-template-columns: 1fr !important; gap: 20px; }
.pc-thumb { aspect-ratio: 16 / 9; height: auto; font-size: 40px; position: relative; overflow: hidden; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.pc-cat { font-size: 11px; padding: 4px 10px; top: 12px; left: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.pc-body { padding: 20px; }
.pc-title { font-size: 18px; line-height: 1.4; margin-bottom: 12px; }
.pc-excerpt { font-size: 14px; margin-bottom: 16px; }
.pc-footer { font-size: 13px; padding-top: 16px; border-top: 1px solid var(--border); }
.pc-read { font-size: 13px; font-weight: 700; }

/* List View (If toggled) */
.list-card { flex-direction: row; align-items: stretch; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.04); }
.lc-thumb { width: 140px; aspect-ratio: 16 / 9; height: auto; flex-shrink: 0; position: relative; overflow: hidden; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.lc-body { padding: 16px; justify-content: center; display: flex; flex-direction: column; flex: 1; }
.lc-title { font-size: 16px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-excerpt { display: none; /* Hide excerpt in mobile list view for cleaner look */ }
.lc-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-soft); }

/* Pagination: Big Tappable Buttons */
.pagination { flex-wrap: wrap; gap: 8px; margin-top: 32px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 15px; font-weight: 600; background: var(--white); border: 1px solid var(--border); color: var(--text-dark); transition: all 0.2s; }
.pagination .page-numbers.current { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.pagination .page-numbers.next, .pagination .page-numbers.prev { padding: 0 16px; flex: 1; max-width: 120px; }
.pagination .page-numbers:active { background: var(--saffron-light); color: var(--saffron-dark); }

/* Results Info */
.results-info { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding: 12px 16px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); }
.results-title { font-size: 18px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; }
.results-count { font-size: 13px; color: var(--text-soft); }

/* Very Small Devices */
@media (max-width: 380px) {
  .cat-hero-title { font-size: 24px; }
  .list-card { flex-direction: column; }
  .lc-thumb { width: 100%; }
  .lc-title { font-size: 18px; }
  .lc-excerpt { display: -webkit-box; font-size: 14px; margin-top: 8px; }
}
