/* ==========================================================================
   ScrollTheFeed — Core Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --primary:        #0f1117;
  --primary-light:  #1c1f2e;
  --accent:         #c8212a;
  --accent-hover:   #a81820;
  --accent-warm:    #e67e22;

  --text-primary:   #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted:     #888;
  --text-light:     #aaa;

  --bg:             #ffffff;
  --bg-secondary:   #f7f8fa;
  --bg-dark:        #0f1117;

  --border:         #e6e6e6;
  --border-light:   #f0f0f0;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;

  --max-width:  1200px;
  --content-width: 780px;
  --transition: .22s cubic-bezier(.4, 0, .2, 1);

  /* Category colours */
  --cat-travel:     #2980b9;
  --cat-lifestyle:  #27ae60;
  --cat-tech:       #8e44ad;
  --cat-food:       #e67e22;
  --cat-health:     #e74c3c;
  --cat-finance:    #16a085;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --------------------------------------------------------------------------
   3. Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.22;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   4. Utility Classes
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.category-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
  background: var(--cat-travel);
}

.category-tag.travel    { background: var(--cat-travel); }
.category-tag.lifestyle { background: var(--cat-lifestyle); }
.category-tag.tech      { background: var(--cat-tech); }
.category-tag.food      { background: var(--cat-food); }
.category-tag.health    { background: var(--cat-health); }
.category-tag.finance   { background: var(--cat-finance); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,33,42,.30);
}

.btn-outline {
  border: 1.5px solid currentColor;
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover {
  background: #f0f0f0;
}

/* Fade-in scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .13s; }
.stagger > *:nth-child(3) { transition-delay: .21s; }
.stagger > *:nth-child(4) { transition-delay: .29s; }
.stagger > *:nth-child(5) { transition-delay: .37s; }
.stagger > *:nth-child(6) { transition-delay: .45s; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.site-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.10);
}

/* Category dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: .88rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-dropdown-menu a .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.nav-search-btn {
  color: rgba(255,255,255,.75);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
}
.nav-search-btn:hover { color: #fff; background: rgba(255,255,255,.10); }

.nav-search-btn svg { width: 18px; height: 18px; }

.nav-signin {
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-signin:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--primary-light);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.mobile-nav a:hover { color: #fff; padding-left: 8px; }
.mobile-nav a:last-child { border-bottom: none; }

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 600px;
  margin: 0 24px;
  transform: translateY(-16px);
  transition: transform .25s ease;
}
.search-overlay.open .search-box { transform: translateY(0); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font-sans);
}
.search-input-wrap input::placeholder { color: var(--text-light); }
.search-close {
  font-size: .8rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.search-results {
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-item .result-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.search-result-item .result-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: var(--primary);
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.hero-content {
  padding: 60px 56px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-excerpt {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.hero-meta .divider { opacity: .3; }

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-image:hover img { transform: scale(1.04); }

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary) 0%, transparent 30%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Post Cards
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }

.post-card-image .category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.post-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.17rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--accent); }

.post-card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

.post-card-meta .read-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Featured / horizontal card */
.post-card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card-horizontal .post-card-image {
  aspect-ratio: unset;
  height: 100%;
  min-height: 200px;
}
.post-card-horizontal .post-card-body {
  padding: 28px 30px;
}
.post-card-horizontal .post-card-title {
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   8. Grid Layouts
   -------------------------------------------------------------------------- */
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.posts-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   9. Homepage Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 72px 0;
}

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

.section-header h2 {
  font-size: 1.55rem;
}

.section-header a {
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.section-header a:hover { color: var(--accent-hover); }

/* Trending strip */
.trending-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: flex;
  align-items: stretch;
}

.trending-inner {
  display: flex;
  align-items: stretch;
  overflow-x: hidden;
  gap: 0;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.trending-inner::-webkit-scrollbar { display: none; }

.trending-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
  cursor: pointer;
}
.trending-item:hover { background: #eef0f3; }

.trending-num {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--border);
  line-height: 1;
}

.trending-text {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 200px;
  white-space: normal;
  line-height: 1.3;
}

.trending-label {
  padding: 18px 28px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

/* Feature/promo banner */
.promo-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 200px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200,33,42,.18) 0%, transparent 70%);
  pointer-events: none;
}

.promo-banner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
}

.promo-banner p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid var(--border-light);
}

.sidebar-widget-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.sidebar-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:hover .sidebar-post-title { color: var(--accent); }

.sidebar-post-img {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.sidebar-post-title {
  font-family: var(--font-serif);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  transition: color var(--transition);
}

.sidebar-post-meta {
  font-size: .72rem;
  color: var(--text-light);
  margin-top: 5px;
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-categories a:last-child { border-bottom: none; }
.sidebar-categories a:hover { color: var(--accent); padding-left: 6px; }
.sidebar-categories a .count {
  font-size: .75rem;
  color: var(--text-light);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   11. Article / Blog Post
   -------------------------------------------------------------------------- */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header .category-tag {
  margin-bottom: 18px;
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.article-header .lead {
  font-size: 1.175rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}

.author-info .author-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.author-info .author-role {
  font-size: .76rem;
  color: var(--text-muted);
}

.article-date-read {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-date-read .sep { opacity: .35; }

.article-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 52px;
  background: var(--bg-secondary);
}

/* Article typography */
.article-body {
  font-family: var(--font-sans);
  max-width: var(--content-width);
}

.article-body p {
  font-size: 1.075rem;
  line-height: 1.82;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  margin-top: 2.2rem;
  margin-bottom: .75rem;
  color: var(--text-primary);
}

.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  color: var(--text-primary);
}

.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  list-style: initial;
}
.article-body ol { list-style: decimal; }

.article-body li {
  font-size: 1.075rem;
  line-height: 1.78;
  color: #3a3a3a;
  margin-bottom: .45rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200,33,42,.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}
.article-body a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.article-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.article-body .callout {
  background: #fff8f8;
  border: 1px solid rgba(200,33,42,.15);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 2rem 0;
}
.article-body .callout p {
  margin: 0;
  font-size: 1rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .92rem;
}
.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.6;
}
.article-body tr:nth-child(even) td { background: var(--bg-secondary); }

.article-body img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  width: 100%;
}

/* Article tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-tags .label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-right: 4px;
}
.article-tag {
  padding: 5px 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.article-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Author box */
.author-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 3rem;
  border: 1px solid var(--border-light);
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.author-box-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-box-role {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.author-box p {
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Newsletter
   -------------------------------------------------------------------------- */
.newsletter-section {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,33,42,.12) 0%, transparent 70%);
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(41,128,185,.1) 0%, transparent 70%);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-inner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.newsletter-inner p {
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--text-primary);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  font-family: var(--font-sans);
  letter-spacing: .03em;
}
.newsletter-form button:hover { background: var(--accent-hover); }

.newsletter-note {
  margin-top: 14px;
  font-size: .76rem;
  color: rgba(255,255,255,.35);
}

.subscriber-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.sub-avatars {
  display: flex;
}
.sub-avatars span {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-right: -8px;
}
.sub-avatars span:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.sub-avatars span:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.sub-count-text {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-left: 16px;
}
.sub-count-text strong {
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0a0a0f;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .site-logo {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 22px;
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
  font-size: .82rem;
  font-weight: 700;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
  font-family: var(--font-sans);
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  transition: var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* --------------------------------------------------------------------------
   14. About Page
   -------------------------------------------------------------------------- */
.about-hero {
  background: var(--primary);
  padding: 80px 0 72px;
  text-align: center;
}
.about-hero h1 { color: #fff; margin-bottom: 16px; }
.about-hero p {
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .section-label { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 1.25rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 64px;
}
.stat-item {
  background: #fff;
  padding: 32px;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  background: var(--border);
}
.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.team-bio {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. Category Page
   -------------------------------------------------------------------------- */
.category-hero {
  background: var(--primary);
  padding: 56px 0;
}
.category-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.category-hero h1 { color: #fff; }
.category-hero .count-badge {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .84rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  background: #fff;
}
.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-dots {
  color: var(--text-muted);
  font-size: .88rem;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   17. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: .78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* --------------------------------------------------------------------------
   18. Related Posts
   -------------------------------------------------------------------------- */
.related-posts {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.related-posts h2 {
  font-size: 1.4rem;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   19. Toasts / Notifications
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  transform: translateY(16px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-left: 4px solid #27ae60; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .posts-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sidebar { position: static; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 52px 0 40px; }
  .hero-image { height: 320px; }
  .hero-image::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .nav-signin { display: none; }
  .menu-toggle { display: flex; }

  .posts-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .posts-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-card-horizontal {
    grid-template-columns: 1fr;
  }
  .post-card-horizontal .post-card-image {
    aspect-ratio: 16/9;
    height: auto;
  }

  .section { padding: 48px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .newsletter-form button { border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-align: center; }

  .promo-banner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 24px;
  }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }

  .article-hero-image { aspect-ratio: 16/9; }
  .author-box { flex-direction: column; }

  .category-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 36px 0 32px; }
  .stat-item { padding: 22px 18px; }
  .stat-item .stat-number { font-size: 1.8rem; }
}

/* ==========================================================================
   VISUAL ENHANCEMENTS — Animations, Highlights, Rich Effects
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shimmer / Highlight Keyframes
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,33,42,.18); }
  50%       { box-shadow: 0 0 0 10px rgba(200,33,42,0); }
}
@keyframes float-up {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes badge-pop {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes tick-up {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Enhanced Post Cards
   -------------------------------------------------------------------------- */
.post-card {
  position: relative;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: linear-gradient(135deg, rgba(200,33,42,.06) 0%, transparent 60%);
  transition: opacity .3s ease;
  pointer-events: none;
}
.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
  border-color: rgba(200,33,42,.15);
}
.post-card:hover::after { opacity: 1; }

/* Highlight stripe on card top */
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}
.post-card:hover::before { transform: scaleX(1); }

/* Image zoom is smoother */
.post-card-image img {
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.post-card:hover .post-card-image img { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   Category Tag — Gradient Variants
   -------------------------------------------------------------------------- */
.category-tag {
  background-size: 200% 200%;
  animation: none;
  position: relative;
  overflow: hidden;
}
.category-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.category-tag:hover::after { transform: translateX(100%); }

.category-tag.travel    { background: linear-gradient(135deg, #2980b9, #1a5276); }
.category-tag.lifestyle { background: linear-gradient(135deg, #27ae60, #1e8449); }
.category-tag.tech      { background: linear-gradient(135deg, #8e44ad, #6c3483); }
.category-tag.health    { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.category-tag.finance   { background: linear-gradient(135deg, #16a085, #117a65); }
.category-tag.food      { background: linear-gradient(135deg, #e67e22, #ca6f1e); }

/* --------------------------------------------------------------------------
   Browse by Category — Homepage Grid
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 20px 30px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.12);
  opacity: 0;
  transition: opacity .22s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.cat-card:hover::before { opacity: 1; }

.cat-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-card-icon svg { width: 26px; height: 26px; }

.cat-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.cat-card-count {
  font-size: .78rem;
  font-weight: 500;
  opacity: .82;
}

.cat-card--travel {
  background:
    linear-gradient(160deg, rgba(41,128,185,.80) 0%, rgba(26,82,118,.90) 100%),
    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=600&q=70&auto=format&fit=crop') center/cover no-repeat;
}
.cat-card--lifestyle {
  background:
    linear-gradient(160deg, rgba(39,174,96,.80) 0%, rgba(26,122,67,.90) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=600&q=70&auto=format&fit=crop') center/cover no-repeat;
}
.cat-card--finance {
  background:
    linear-gradient(160deg, rgba(22,160,133,.80) 0%, rgba(13,107,89,.90) 100%),
    url('https://images.unsplash.com/photo-1554224154-26032ffc0d07?w=600&q=70&auto=format&fit=crop') center/cover no-repeat;
}
.cat-card--health {
  background:
    linear-gradient(160deg, rgba(231,76,60,.80) 0%, rgba(169,50,38,.90) 100%),
    url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=600&q=70&auto=format&fit=crop') center/cover no-repeat;
}
.cat-card--tech {
  background:
    linear-gradient(160deg, rgba(142,68,173,.80) 0%, rgba(108,52,131,.90) 100%),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=600&q=70&auto=format&fit=crop') center/cover no-repeat;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Trending Strip — Enhanced
   -------------------------------------------------------------------------- */
.trending-strip {
  background: linear-gradient(90deg, #f7f8fa 0%, #fff 50%, #f7f8fa 100%);
  border-top: 2px solid rgba(200,33,42,.12);
  border-bottom: 1px solid var(--border);
}
.trending-label {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-right: none;
  letter-spacing: .14em;
  flex-shrink: 0;
}
.trending-item {
  transition: background .2s ease, color .2s ease;
}
.trending-item:hover {
  background: rgba(200,33,42,.05);
}
.trending-item:hover .trending-num {
  color: var(--accent);
}
.trending-item:hover .trending-text {
  color: var(--text-primary);
}
.trending-num {
  transition: color .2s ease;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Hero — Animated gradient overlay
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0f1117 0%, #1c1f2e 60%, #16213e 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,33,42,.12) 0%, transparent 70%);
  animation: float-up 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(142,68,173,.10) 0%, transparent 70%);
  animation: float-up 8s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* Hero eyebrow — animated underline */
.hero-eyebrow {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-eyebrow::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  -webkit-text-fill-color: initial;
}

/* Read Article button — pulse */
.hero .btn-primary {
  animation: pulse-glow 3s ease-in-out infinite;
  background: linear-gradient(135deg, var(--accent), #e63946);
}

/* --------------------------------------------------------------------------
   Section Labels — Enhanced
   -------------------------------------------------------------------------- */
.section-label::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  height: 3px;
  border-radius: 2px;
  width: 32px;
  transition: width .3s ease;
}
.section-header:hover .section-label::before { width: 48px; }

/* --------------------------------------------------------------------------
   Sidebar Widget — Accent border on hover
   -------------------------------------------------------------------------- */
.sidebar-widget {
  transition: border-color .25s ease, box-shadow .25s ease;
}
.sidebar-widget:hover {
  border-color: rgba(200,33,42,.2);
  box-shadow: 0 4px 20px rgba(200,33,42,.06);
}
.sidebar-widget h4 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.sidebar-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}
.sidebar-post-list li a {
  display: block;
  padding: 9px 0;
  font-size: .875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: color .2s ease, padding-left .2s ease;
  line-height: 1.4;
}
.sidebar-post-list li:last-child a { border-bottom: none; }
.sidebar-post-list li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* --------------------------------------------------------------------------
   Toast — Enhanced
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all .35s cubic-bezier(.22,1,.36,1);
  z-index: 9999;
  border-left: 3px solid var(--accent);
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: #27ae60; }
.toast.error   { border-left-color: var(--accent); }

/* --------------------------------------------------------------------------
   Count Badge (category hero)
   -------------------------------------------------------------------------- */
.count-badge {
  animation: badge-pop .5s cubic-bezier(.22,1,.36,1) both;
}

/* --------------------------------------------------------------------------
   Filter Buttons (Category page)
   -------------------------------------------------------------------------- */
.filter-btn {
  position: relative;
  overflow: hidden;
  transition: all .22s ease;
}
.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity .22s ease;
  z-index: -1;
}
.filter-btn.active::before { opacity: 1; }
.filter-btn.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(200,33,42,.28);
}
.filter-btn:not(.active):hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Scroll-reveal — Smoother with stagger delay calc
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.stagger > * {
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}

/* --------------------------------------------------------------------------
   Reading Progress Bar
   -------------------------------------------------------------------------- */
.reading-progress {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), #8e44ad);
  height: 3px;
  transition: width .08s linear;
}

/* --------------------------------------------------------------------------
   Article Body — Enhanced typography
   -------------------------------------------------------------------------- */
.article-body h2 {
  position: relative;
  padding-left: 18px;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}
.article-body blockquote {
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-warm)) 1;
  background: linear-gradient(90deg, rgba(200,33,42,.04), transparent);
}
.article-body table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* --------------------------------------------------------------------------
   Navbar — Logo animated on hover
   -------------------------------------------------------------------------- */
.site-logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter .2s ease;
}
.site-logo:hover span { filter: brightness(1.2); }

/* --------------------------------------------------------------------------
   Back-to-top floating button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,33,42,.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
  z-index: 500;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,33,42,.45);
}

/* --------------------------------------------------------------------------
   Newsletter Section — Enhanced
   -------------------------------------------------------------------------- */
.newsletter-section {
  background: linear-gradient(135deg, #0f1117 0%, #1c1f2e 50%, #16213e 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,33,42,.15) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-form input:focus {
  outline: 2px solid rgba(200,33,42,.4);
  outline-offset: 2px;
}
.newsletter-form button {
  background: linear-gradient(135deg, var(--accent), #e63946);
  transition: all .25s ease;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,33,42,.4);
}

/* --------------------------------------------------------------------------
   Category Hero
   -------------------------------------------------------------------------- */
.category-hero {
  background: linear-gradient(135deg, #0f1117 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}
.category-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(142,68,173,.18) 0%, transparent 70%);
  pointer-events: none;
}

