/*
Theme Name:  RV Flush Guide
Theme URI:   https://rvflushguide.com
Author:      RV Flush Guide
Description: Fast, SEO-optimized theme for RV Flush Guide — built for affiliate content, AdSense, and topical authority.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: rvflushguide
Tags:        blog, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --forest:       #1a3a2a;
  --sage:         #4a7c59;
  --sage-light:   #6fa87a;
  --amber:        #d4862a;
  --amber-light:  #f0a94e;
  --cream:        #f5f0e8;
  --tan:          #e8dfc8;
  --dark:         #1c1c1a;
  --mid:          #5a5a54;
  --light:        #f9f6f0;
  --white:        #ffffff;

  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 8px 24px rgba(26,58,42,.10);
  --shadow-lg:    0 16px 40px rgba(26,58,42,.14);

  --container:    1200px;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-label:   'Bebas Neue', Impact, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--forest); }

ul, ol { padding-left: 1.5em; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 24px); }
h4 { font-size: 18px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

.site-main { padding: 48px 0; }

/* Two-column layout */
.content-area { flex: 1; min-width: 0; }
.widget-area  { width: 320px; flex-shrink: 0; }

.has-sidebar {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.site-topbar {
  background: var(--forest);
  color: var(--tan);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  padding: 7px 24px;
}
.site-topbar strong { color: var(--amber-light); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(26,58,42,.08);
}

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

/* Logo */
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding a { display: flex; align-items: center; gap: 12px; color: inherit; }

.logo-icon {
  width: 44px; height: 44px;
  background: var(--forest);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text-wrap { line-height: 1; }
.site-title {
  font-family: var(--font-label);
  font-size: 26px;
  letter-spacing: .05em;
  color: var(--forest);
  display: block;
  font-weight: 400;
}
.site-description {
  font-size: 11px;
  color: var(--mid);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Main Nav */
.main-navigation { display: flex; align-items: center; gap: 4px; }

.main-navigation ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 2px; align-items: center;
}

.main-navigation ul li a {
  display: block;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s;
  letter-spacing: .02em;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: var(--forest);
  color: var(--white);
}

/* Search toggle */
.header-search-toggle {
  background: var(--cream);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  margin-left: 8px;
  transition: background .18s;
  flex-shrink: 0;
}
.header-search-toggle:hover { background: var(--tan); }

/* Search box */
.header-search-box {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--tan);
  border-bottom: 3px solid var(--forest);
  padding: 16px 24px;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.header-search-box.open { display: block; }
.header-search-box form { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.header-search-box input {
  flex: 1; padding: 10px 16px; border: 2px solid var(--tan);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px;
}
.header-search-box input:focus { outline: none; border-color: var(--sage); }
.header-search-box button {
  background: var(--forest); color: var(--white);
  border: none; padding: 10px 20px;
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--forest); border-radius: 2px;
  transition: .3s;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-nav-drawer.is-open { display: flex; }
.mobile-nav-drawer a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  width: 280px;
  text-align: center;
  transition: color .18s;
}
.mobile-nav-drawer a:hover { color: var(--amber-light); }
.drawer-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: white;
  font-size: 32px; cursor: pointer; padding: 8px; line-height: 1;
}

/* =========================================================
   HERO (Homepage)
   ========================================================= */
.site-hero {
  background: var(--forest);
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}

.site-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(74,124,89,.35) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,134,42,.2);
  border: 1px solid rgba(212,134,42,.4);
  color: var(--amber-light);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-heading em { color: var(--amber-light); font-style: normal; }

.hero-desc {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; letter-spacing: .02em; cursor: pointer; transition: .2s; border: none; text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--white); box-shadow: 0 4px 16px rgba(212,134,42,.4); }
.btn-primary:hover { background: var(--amber-light); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-green { background: var(--forest); color: var(--white); }
.btn-green:hover { background: var(--sage); color: var(--white); }

.hero-stats { display: flex; gap: 28px; }
.stat-num { font-family: var(--font-label); font-size: 32px; color: var(--amber-light); line-height: 1; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

/* Hero featured card */
.hero-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  transform: rotate(1.5deg);
  transition: transform .3s;
}
.hero-card:hover { transform: rotate(0deg) scale(1.01); }

.hero-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, #2d5a3d, #4a7c59, #6fa87a);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative;
}
.hero-card-thumb .featured-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--amber); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}

.hero-card-body { padding: 20px 24px 24px; }
.card-category {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px;
}
.hero-card-body h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.hero-card-body p { font-size: 13.5px; color: var(--mid); line-height: 1.55; margin-bottom: 14px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mid); }
.card-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--mid); display: inline-block; }

/* =========================================================
   CATEGORY STRIP
   ========================================================= */
.category-strip {
  background: var(--tan);
  border-bottom: 2px solid rgba(26,58,42,.1);
  padding: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-strip::-webkit-scrollbar { display: none; }

.cat-strip-inner {
  display: flex; align-items: center; gap: 8px;
  min-width: max-content;
}
.cat-strip-label {
  font-size: 11px; font-weight: 700; color: var(--mid);
  letter-spacing: .1em; text-transform: uppercase;
  margin-right: 4px; white-space: nowrap;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--dark);
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 30px;
  border: 2px solid transparent;
  transition: .18s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  text-decoration: none;
}
.cat-pill:hover,
.cat-pill.current { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.section-title-wrap {}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--dark); line-height: 1.1;
}
.section-title span { color: var(--amber); }
.section-subtitle { font-size: 14px; color: var(--mid); margin-top: 6px; }
.view-all-link {
  font-size: 13px; font-weight: 600; color: var(--sage);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 2px; white-space: nowrap;
  transition: .18s;
}
.view-all-link:hover { color: var(--forest); border-color: var(--forest); }

/* =========================================================
   POST CARDS GRID
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(26,58,42,.08);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,58,42,.18);
}

.post-card-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--forest);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-thumb .no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}

.post-card-cat-label {
  position: absolute; top: 12px; left: 12px;
  background: var(--forest); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}

.post-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.35; color: var(--dark);
  margin-bottom: 8px;
}
.post-card-body h3 a { color: var(--dark); }
.post-card-body h3 a:hover { color: var(--forest); }
.post-card-body p { font-size: 13.5px; color: var(--mid); line-height: 1.55; margin-bottom: 14px; flex: 1; }

.post-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.post-date { font-size: 11.5px; color: var(--mid); }
.read-more-link {
  font-size: 12px; font-weight: 600; color: var(--sage);
  display: flex; align-items: center; gap: 4px; transition: .18s;
}
.read-more-link:hover { color: var(--forest); gap: 8px; }

/* =========================================================
   FEATURED BANNER
   ========================================================= */
.featured-banner {
  background: linear-gradient(120deg, var(--forest) 0%, #2d5a3d 100%);
  border-radius: 16px;
  padding: 48px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
  margin-bottom: 24px;
}
.featured-banner::after {
  content: '🚽';
  position: absolute; right: 200px; top: 50%; transform: translateY(-50%);
  font-size: 100px; opacity: .06; pointer-events: none;
}
.featured-banner-badge {
  display: inline-block;
  background: rgba(212,134,42,.25); border: 2px solid var(--amber);
  color: var(--amber-light); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.featured-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px); color: var(--white); margin-bottom: 10px;
}
.featured-banner p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.65; margin-bottom: 20px; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-hero {
  background: var(--forest);
  padding: 48px 0 40px;
  color: var(--white);
}
.post-hero-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 12px;
}
.post-hero h1 {
  color: var(--white);
  font-size: clamp(26px, 4.5vw, 44px);
  max-width: 760px;
  margin-bottom: 16px;
}
.post-hero-meta { font-size: 13px; color: rgba(255,255,255,.6); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-hero-meta span { display: flex; align-items: center; gap: 5px; }

.post-thumbnail { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.post-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }

/* Quick Answer Box */
.quick-answer {
  background: #eef8f1;
  border-left: 5px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.quick-answer-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.quick-answer p { font-size: 15px; color: var(--dark); margin: 0; line-height: 1.6; }

/* Post content */
.entry-content { font-size: 16px; line-height: 1.75; color: #2a2a28; }
.entry-content h2 { margin: 36px 0 14px; }
.entry-content h3 { margin: 28px 0 10px; }
.entry-content p  { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--sage); text-decoration: underline; }
.entry-content a:hover { color: var(--forest); }
.entry-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14.5px; }
.entry-content th { background: var(--forest); color: var(--white); padding: 10px 14px; text-align: left; }
.entry-content td { padding: 9px 14px; border-bottom: 1px solid var(--tan); }
.entry-content tr:nth-child(even) td { background: var(--cream); }

/* EEAT Author Box */
.author-box {
  background: var(--white);
  border: 2px solid var(--tan);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
  display: flex; gap: 18px; align-items: flex-start;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: white;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 15px; margin-bottom: 4px; }
.author-badge { font-size: 11px; color: var(--sage); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.author-bio { font-size: 13.5px; color: var(--mid); line-height: 1.6; }

/* Related Posts */
.related-posts { margin-top: 48px; }
.related-posts h3 { margin-bottom: 20px; font-size: 22px; }

/* =========================================================
   SIDEBAR WIDGETS
   ========================================================= */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid rgba(26,58,42,.1);
  overflow: hidden;
  margin-bottom: 24px;
}
.widget-title-bar {
  background: var(--forest);
  color: var(--white);
  padding: 13px 20px;
  font-family: var(--font-label);
  font-size: 20px;
  letter-spacing: .05em;
}
.widget-body { padding: 16px 20px; }

/* Popular posts widget */
.popular-post-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--cream);
}
.popular-post-item:last-child { border-bottom: none; }
.pp-num {
  font-family: var(--font-label); font-size: 28px;
  color: var(--tan); line-height: 1; flex-shrink: 0;
  width: 28px; text-align: center;
}
.pp-title { font-size: 13.5px; font-weight: 500; color: var(--dark); line-height: 1.4; margin-bottom: 3px; }
.pp-title a { color: var(--dark); }
.pp-title a:hover { color: var(--forest); }
.pp-cat { font-size: 11px; color: var(--sage); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Pro tip widget */
.tip-widget {
  background: linear-gradient(135deg, #fff8ee, #fff3e0);
  border: 2px solid rgba(212,134,42,.2);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.tip-widget-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tip-widget-head strong { font-size: 13px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.tip-widget p { font-size: 13.5px; color: var(--dark); line-height: 1.6; margin: 0; }

/* Category widget */
.cat-widget-list { list-style: none; padding: 0; }
.cat-widget-list li { border-bottom: 1px solid var(--cream); }
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; color: var(--dark); font-size: 14px; font-weight: 500;
  transition: color .18s;
}
.cat-widget-list a:hover { color: var(--forest); }
.cat-count { background: var(--cream); color: var(--mid); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area { margin-top: 48px; }
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--tan); }
.comment-meta { font-size: 12px; color: var(--mid); margin-bottom: 8px; }
.comment-author { font-weight: 700; color: var(--dark); }
.comment-content { font-size: 14.5px; line-height: 1.65; }

.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--tan); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px;
  margin-bottom: 14px; transition: border .18s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--sage); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { background: var(--forest); color: white; border: none; padding: 11px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s; }
.comment-form .submit:hover { background: var(--sage); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--tan); color: var(--dark); transition: .18s;
}
.pagination a:hover { background: var(--forest); color: white; border-color: var(--forest); }
.pagination .current { background: var(--forest); color: white; border-color: var(--forest); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--dark); color: rgba(255,255,255,.58); }

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

.footer-brand {}
.footer-brand-name {
  font-family: var(--font-label);
  font-size: 28px; letter-spacing: .05em; color: var(--white);
  display: block; margin-bottom: 4px;
}
.footer-brand-tagline { font-size: 11px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; }
.footer-brand-desc { font-size: 13.5px; line-height: 1.65; margin-top: 14px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.5);
  font-size: 13.5px; margin-bottom: 10px; transition: color .18s;
}
.footer-col a:hover { color: var(--amber-light); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 18px 0;
  font-size: 12px; color: rgba(255,255,255,.3);
}
.footer-bar a { color: var(--amber-light); }

/* =========================================================
   UTILITY
   ========================================================= */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .has-sidebar { gap: 28px; }
  .widget-area { width: 280px; }
  .featured-banner { padding: 36px 36px; }
}

@media (max-width: 768px) {
  /* Header */
  .header-inner { height: 60px; }
  .main-navigation { display: none; }
  .header-search-toggle { display: none; }
  .menu-toggle { display: flex; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .site-title { font-size: 21px; }
  .site-description { display: none; }

  /* Hero */
  .site-hero { padding: 40px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { transform: none; }
  .hero-card-thumb { height: 160px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 26px; }

  /* Category strip */
  .category-strip { padding: 12px 0; }
  .cat-strip-label { display: none; }

  /* Main layout */
  .site-main { padding: 32px 0; }
  .has-sidebar { flex-direction: column; }
  .widget-area { width: 100%; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Featured banner */
  .featured-banner { grid-template-columns: 1fr; padding: 28px 24px; gap: 16px; }
  .featured-banner::after { display: none; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .post-card-thumb { height: 160px; }
  .author-box { flex-direction: column; }
}
