/*
Theme Name: Timely India
Theme URI: https://timelyindia.com
Author: Timely India
Author URI: https://timelyindia.com
Description: India's Trusted Education News Platform — covers exams, results, admit cards, admissions, scholarships, government jobs, current affairs, and student guides.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timely-india
Tags: news, education, blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — exact values from the React design
   ============================================================ */
:root {
  --primary:            hsl(24, 100%, 50%);   /* #FF6600 saffron */
  --primary-light:      hsl(24, 100%, 97%);
  --secondary:          hsl(222, 47%, 11%);   /* #0A2647 navy */
  --background:         hsl(0, 0%, 98%);      /* #FAFAFA */
  --foreground:         hsl(222, 47%, 11%);
  --card-bg:            hsl(0, 0%, 100%);
  --border:             hsl(220, 13%, 91%);   /* #E5E7EC */
  --muted:              hsl(220, 14%, 96%);   /* #F3F4F7 */
  --muted-fg:           hsl(220, 9%, 46%);    /* #6C737F */
  --secondary-fg:       hsl(0, 0%, 100%);
  --radius:             0.5rem;
  --font-sans:          'Inter', sans-serif;
  --font-serif:         Georgia, 'Times New Roman', serif;
  --container-width:    1280px;
  --container-padding:  1rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

#main-content { flex: 1; display: flex; flex-direction: column; }

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.breaking-ticker .ticker-label {
  background: rgba(0,0,0,0.25);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 0.5rem;
}

.ticker-track-wrap {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  padding-left: 1rem;
}

.ticker-track a { color: #fff; opacity: 0.9; font-weight: 600; }
.ticker-track a:hover { opacity: 1; }
.ticker-divider { opacity: 0.5; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo .logo-timely { color: var(--primary); }
.site-logo .logo-india  { color: var(--secondary); }

/* Desktop Navigation */
.primary-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.primary-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  white-space: nowrap;
  padding-bottom: 2px;
  transition: color 0.15s;
}
.primary-nav a:hover { color: var(--primary); }
.primary-nav a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.nav-stories {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-date {
  display: none;
  font-size: 0.75rem;
  color: var(--muted-fg);
  font-weight: 500;
  margin-right: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--muted); color: var(--primary); }

/* Hamburger */
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background 0.15s;
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--muted); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  z-index: 200;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  display: none;
}
.mobile-overlay.open { display: block; }

.mobile-nav { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); font-weight: 700; }
.mobile-nav .stories-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* Category Quick Links Bar */
.category-bar {
  background: var(--muted);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--secondary);
  color: var(--secondary-fg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo .logo-timely { color: var(--primary); }
.footer-logo .logo-india  { color: #fff; }

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.footer-cats a, .footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  transition: color 0.15s;
}
.footer-cats a:hover, .footer-links a:hover { color: #fff; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero-section {
  background: var(--secondary);
  color: var(--secondary-fg);
  padding: 3.5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,102,0,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,102,0,0.3);
  margin-bottom: 1.25rem;
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.stat-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat-box .stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.stat-box .stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.125rem;
  font-weight: 500;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-primary:hover { background: hsl(24, 100%, 42%); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading .accent-bar {
  display: inline-block;
  width: 8px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.section-heading a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================================
   ARTICLE CARD — COMPACT (archive + latest news lists)
   ============================================================ */
.article-card-compact {
  display: flex;
  gap: 0.75rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 0.75rem;
  transition: box-shadow 0.2s;
}
.article-card-compact:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.article-card-compact .card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 64px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--muted);
}

.article-card-compact .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card-compact:hover .card-thumb img { transform: scale(1.05); }

.article-card-compact .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0.25rem;
}

.article-card-compact .card-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.article-card-compact:hover .card-title { color: var(--primary); }

.article-card-compact .card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted-fg);
  margin-top: auto;
}

/* ARTICLE CARD — FULL SIZE (optional, used on homepage featured) */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.article-card .card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .card-image img { transform: scale(1.05); }

.article-card .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .card-title { color: var(--primary); }

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-secondary { background: var(--muted); color: var(--foreground); }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ============================================================
   SINGLE POST (article) LAYOUT
   ============================================================ */
.single-layout {
  padding: 2rem 0 4rem;
}

.single-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.single-article { width: 100%; }

.single-sidebar { width: 100%; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted-fg); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { font-size: 0.625rem; opacity: 0.5; }
.breadcrumb .current { color: var(--foreground); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* Post Title */
.entry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Author / Meta Bar */
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.author-name { font-size: 0.875rem; font-weight: 600; }
.author-name a { color: var(--primary); }
.author-name a:hover { text-decoration: underline; }
.post-date-time { font-size: 0.75rem; color: var(--muted-fg); }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: 0.5rem; }

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  color: var(--foreground);
}
.share-btn:hover { background: var(--primary); color: #fff; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn svg { width: 16px; height: 16px; }

/* Key Takeaways */
.key-takeaways {
  background: rgba(255, 102, 0, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.key-takeaways .kt-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.key-takeaways ol { display: flex; flex-direction: column; gap: 0.625rem; }
.key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(10, 38, 71, 0.85);
  line-height: 1.4;
}
.key-takeaways li .kt-num {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Featured Image */
.featured-image-wrap {
  margin-bottom: 2rem;
}
.featured-image-wrap .fi-inner {
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--muted);
}
.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-image-wrap figcaption {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-align: center;
}

/* Table of Contents */
.toc-box {
  background: rgba(220, 222, 230, 0.4);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}
.toc-box .toc-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.toc-box ol { display: flex; flex-direction: column; gap: 0.5rem; }
.toc-box li a {
  font-size: 0.875rem;
  color: var(--secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: color 0.15s;
}
.toc-box li a:hover { color: var(--primary); }
.toc-box li a .toc-num { color: rgba(255,102,0,0.7); font-weight: 700; flex-shrink: 0; }

/* Entry Content / Prose */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--foreground);
  margin-bottom: 3rem;
}
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 2rem 0 0.75rem;
}
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1.5rem 0 0.5rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0.75rem 0 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { line-height: 1.6; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.entry-content th { background: var(--secondary); color: #fff; padding: 0.625rem 0.75rem; text-align: left; font-weight: 600; }
.entry-content td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); }
.entry-content tr:hover td { background: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: var(--muted);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--muted-fg);
  margin: 1.25rem 0;
}
.entry-content strong { color: var(--secondary); }
.entry-content code {
  background: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.post-tags .tags-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-fg);
  margin-right: 0.5rem;
}
.tag-link {
  display: inline-block;
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}
.tag-link:hover { background: var(--primary); color: #fff; }

/* FAQ Accordion */
.article-faq { margin-bottom: 3rem; }
.article-faq h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
}
.article-faq h2 svg { color: var(--primary); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  list-style: none;
  transition: background 0.15s;
}
.faq-item summary:hover { background: rgba(220,222,230,0.5); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.2s;
  font-size: 1rem;
}
.faq-item[open] summary .faq-icon { transform: rotate(90deg); }
.faq-item .faq-answer {
  padding: 0.75rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  background: rgba(220,222,230,0.2);
}

/* Author Bio Box */
.author-bio {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,102,0,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-bio-name { font-weight: 700; font-size: 1rem; color: var(--secondary); margin-bottom: 0.25rem; }
.author-bio-role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.author-bio-desc { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.55; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-related-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-related-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-related-item a { display: block; }
.sidebar-related-item h4 {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.375rem;
  transition: color 0.15s;
}
.sidebar-related-item a:hover h4 { color: var(--primary); }
.sidebar-related-item .item-date { font-size: 0.75rem; color: var(--muted-fg); }

.ad-slot {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.ad-slot .ad-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.ad-slot .ad-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-hero {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.archive-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.archive-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 1rem;
}
.archive-hero .post-count {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.archive-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0;
}

.archive-main { width: 100%; }
.archive-sidebar { width: 100%; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--foreground);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-hero {
  background: var(--secondary);
  color: #fff;
  padding: 3rem 0;
}
.author-hero-inner { display: flex; align-items: center; gap: 2rem; }
.author-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,102,0,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
}
.author-hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-hero h1 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: #fff; }
.author-hero .author-role { color: var(--primary); font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.author-hero .author-desc { color: rgba(255,255,255,0.8); font-size: 0.9rem; max-width: 560px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
  background: var(--secondary);
  padding: 3rem 0;
  color: #fff;
}
.search-hero h1 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.search-form { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden; max-width: 540px; }
.search-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: var(--font-sans);
}
.search-form button {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: background 0.15s;
  flex-shrink: 0;
}
.search-form button:hover { background: hsl(24, 100%, 42%); }

.no-results {
  text-align: center;
  padding: 5rem 1rem;
}
.no-results h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.no-results p { color: var(--muted-fg); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 6rem 1rem;
}
.error-404 .error-code {
  font-size: 6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404 h1 { font-family: var(--font-serif); font-size: 1.75rem; color: var(--secondary); margin-bottom: 0.75rem; }
.error-404 p { color: var(--muted-fg); margin-bottom: 2rem; }

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-hero {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

.page-content-wrap {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--background); color: var(--foreground);
  transform: translateY(-100%);
  transition: transform 0.1s;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* sm: 640px */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .article-card-compact .card-thumb { width: 96px; height: 72px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .author-hero-inner { gap: 2rem; }
}

/* md: 768px */
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; text-align: left; }
  .header-date { display: block; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  :root { --container-padding: 1.5rem; }
  .primary-nav { display: flex; }
  .hamburger-btn { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .single-content-wrap { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .single-article { flex: 2; min-width: 0; }
  .single-sidebar { flex: 1; min-width: 0; position: sticky; top: 80px; }
  .archive-layout { flex-direction: row; align-items: flex-start; }
  .archive-main { flex: 3; min-width: 0; }
  .archive-sidebar { flex: 1; min-width: 0; position: sticky; top: 80px; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  :root { --container-padding: 2rem; }
}
