/* ========================================
   DealWild.com v2 — "Warm Bazaar" Redesign
   Confident editorial aesthetic with punchy energy
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

/* === Design Tokens === */
:root {
  /* Palette */
  --surface: #1B1918;
  --surface-light: #2A2725;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-light: #FFF7ED;
  --accent-glow: rgba(249, 115, 22, 0.18);
  --sky: #0EA5E9;
  --sky-light: #F0F9FF;
  --emerald: #10B981;
  --rose: #F43F5E;
  --violet: #8B5CF6;
  --amber: #F59E0B;

  /* Text */
  --text: #1B1918;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;
  --text-inverse: rgba(255, 255, 255, 0.85);

  /* Backgrounds */
  --bg: #FAF8F3;
  --bg-card: #FFFFFF;
  --bg-muted: #F3EFE7;
  --bg-elevated: #FFFFFF;

  /* Borders */
  --border: #E7E5E0;
  --border-light: #F0EDE6;

  /* Spacing & Layout */
  --max-width: 1200px;
  --header-height: 88px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 25, 24, 0.04);
  --shadow: 0 2px 8px rgba(27, 25, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 25, 24, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 25, 24, 0.1);
  --shadow-glow: 0 0 24px var(--accent-glow);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  color: var(--surface);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

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

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* Article pages: main content + sidebar two-column grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* === Scroll Reveal Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow); }
  50% { box-shadow: 0 0 32px var(--accent-glow), 0 0 48px rgba(249, 115, 22, 0.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.revealed > * { opacity: 0; transform: translateY(16px); }
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HEADER
   ============================================= */
.site-header,
.sticky-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.site-header.scrolled,
.sticky-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent);
}

.header-inner,
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.035em;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}
.logo::before { display: none; }

.logo-icon {
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Wordmark */
.logo span {
  background: linear-gradient(135deg, #FF8C21 0%, var(--accent) 40%, #DC4F06 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover { color: var(--surface); }
.logo:hover span {
  background: linear-gradient(135deg, #FFa040 0%, #FF7B00 40%, #E85D04 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 2px;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.main-nav a:hover {
  color: var(--surface);
  background: var(--bg-muted);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 20px;
}

.main-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Header Search */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  transition: all var(--duration) var(--ease);
}

.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-card);
}

.header-search input {
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 8px 8px 4px;
  font-size: 0.88rem;
  font-family: 'Figtree', sans-serif;
  width: 180px;
  outline: none;
}

.header-search input::placeholder { color: var(--text-muted); }

.header-search button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--duration) var(--ease);
}
.header-search button:hover { color: var(--accent); }

/* Mobile Menu Toggle */
.menu-toggle,
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--surface);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 8px;
  transition: all var(--duration) var(--ease);
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.menu-toggle:hover,
.mobile-menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hamburger lines for article pages */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px auto;
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, var(--surface) 0%, #2A2725 35%, #352F2D 100%);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative floating shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

/* Grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s var(--ease) both;
}

.hero h1 em,
.hero h1 span.highlight {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  margin-bottom: 36px;
  position: relative;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

/* Hero Search */
.hero-search {
  max-width: 620px;
  margin: 0 auto 32px;
  position: relative;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-search input {
  width: 100%;
  padding: 18px 64px 18px 28px;
  font-size: 1.05rem;
  font-family: 'Figtree', sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  outline: none;
  transition: all var(--duration) var(--ease);
}

.hero-search input::placeholder { color: rgba(255, 255, 255, 0.4); }

.hero-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg);
  animation: glowPulse 2s ease-in-out infinite;
}

.hero-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.hero-search button:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.06);
}

/* Hero Category Pills */
.hero-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  animation: fadeInUp 0.8s var(--ease) 0.35s both;
}

.hero-categories a {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all var(--duration) var(--ease);
}

.hero-categories a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.section-header a {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-header a:hover {
  gap: 8px;
}

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Featured grid: 3-col with first card spanning 2 cols */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.featured-grid .card-hero {
  grid-column: span 2;
}
.featured-grid .card-hero .card-image {
  height: 280px;
}
.featured-grid .card-hero .card-body h3 {
  font-size: 1.25rem;
}

/* Recent / Just Published list */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.recent-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.recent-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.recent-item img {
  width: 110px;
  height: 76px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  flex-shrink: 0;
}
.recent-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.recent-item-body .category-badge {
  position: static;
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  margin-bottom: 2px;
  align-self: flex-start;
}
.recent-item-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recent-item-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.recent-item-body h3 a:hover { color: var(--accent); }
.recent-item-body .card-meta {
  font-size: 0.75rem;
  margin-top: 2px;
}

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.card:hover::before { opacity: 1; }

.card-image {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--surface);
  transition: color var(--duration) var(--ease);
}
.card-body h3 a:hover { color: var(--accent); }

.card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.6;
}

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

/* =============================================
   CATEGORY CARDS (Homepage)
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.category-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card:hover::before { opacity: 1; }

.category-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  position: relative;
}

.category-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 700;
  position: relative;
}

.category-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  position: relative;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--surface);
}

.sidebar-widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  display: block;
}
.sidebar-widget ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* =============================================
   AD ZONES — invisible containers for ad code
   ============================================= */
.ad-zone {
  min-height: 0;
  margin-bottom: 24px;
  text-align: center;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

/* Article page ad variants */
.ad-leaderboard { margin: 0 auto 32px; max-width: var(--max-width); padding: 0 24px; }
.ad-in-content { margin: 28px 0; }
.ad-sidebar { margin-bottom: 24px; }
.ad-label { display: none; }
.ad-placeholder { display: none; }

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  color: var(--text-inverse);
  padding: 18px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.7); max-width: 700px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btn-group { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  transition: background var(--duration) var(--ease);
}
.cookie-accept:hover { background: var(--accent-hover); }
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  transition: all var(--duration) var(--ease);
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 16px; gap: 14px; }
}

/* =============================================
   NEWSLETTER SIGNUP
   ============================================= */
.newsletter-signup {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-signup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(249,115,22,0.12), transparent 60%);
  pointer-events: none;
}
.newsletter-signup h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
  position: relative;
}
.newsletter-signup p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  margin-bottom: 20px;
  position: relative;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.92rem;
  font-family: 'Figtree', sans-serif;
  outline: none;
  transition: all var(--duration) var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(249,115,22,0.3); }
.newsletter-msg { color: var(--emerald); font-size: 0.88rem; margin-top: 10px; display: none; position: relative; }
.newsletter-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  text-decoration: none;
}
.newsletter-cta-btn:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,0.3); transform: translateY(-2px); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-signup { padding: 28px 20px; }
}

/* =============================================
   SOCIAL SHARING BUTTONS
   ============================================= */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.social-share-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn.twitter:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.share-btn.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.pinterest:hover { background: #E60023; color: #fff; border-color: #E60023; }
.share-btn.email:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-btn.copy-link:hover { background: var(--surface); color: #fff; border-color: var(--surface); }
.share-btn svg { width: 16px; height: 16px; }

/* =============================================
   AUTHOR BIO (article pages)
   ============================================= */
.author-bio {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.author-info h4 {
  margin-bottom: 2px;
  font-size: 1rem;
  color: var(--surface);
}
.author-info h4 a { color: var(--surface); }
.author-info h4 a:hover { color: var(--accent); }
.author-info .author-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
  display: block;
}
.author-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   AUTHORS PAGE
   ============================================= */
.authors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 36px 0;
}
.author-card {
  display: flex;
  gap: 32px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}
.author-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.author-card-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: border-color var(--duration) var(--ease);
}
.author-card:hover .author-card-photo { border-color: var(--accent); }
.author-card-body { flex: 1; }
.author-card-body h2 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.author-card-body h2::after { display: none; }
.author-card-role {
  display: block;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.author-card-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.author-card-articles h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--surface);
}
.author-card-articles h3::after { display: none; }
.author-card-articles ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-card-articles ul li a {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.author-card-articles ul li a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .author-card-photo { width: 72px; height: 72px; }
  .author-card-articles ul { justify-content: center; }
}

/* =============================================
   FOOTER SOCIAL LINKS
   ============================================= */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social a svg { width: 16px; height: 16px; }

/* =============================================
   CONTACT SUCCESS MESSAGE
   ============================================= */
.contact-success {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1.5px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  display: none;
}
.contact-success h3 { color: var(--emerald); margin-bottom: 8px; }
.contact-success p { color: var(--text-secondary); margin: 0; }

/* =============================================
   ARTICLE CONTENT
   ============================================= */
.article-header {
  background: var(--bg-muted);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.article-header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.article-header h1 {
  margin-bottom: 14px;
  font-size: 2.2rem;
  max-width: 720px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.article-meta span { display: flex; align-items: center; gap: 4px; }

/* Breadcrumb — root page pattern */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 16px 0 0;
  padding: 16px 0;
  font-weight: 500;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* Breadcrumb — article page pattern */
nav.breadcrumb {
  background: var(--bg-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}
.breadcrumb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.breadcrumb ol li + li::before {
  content: '\203A';
  margin-right: 8px;
  color: var(--text-muted);
}
.breadcrumb ol li a { color: var(--text-secondary); }
.breadcrumb ol li a:hover { color: var(--accent); }

/* Article Featured Image */
.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

/* Article Body */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  margin: 36px 0 16px;
  font-size: 1.55rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.article-content h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.article-content p { margin-bottom: 18px; }

.article-content ul, .article-content ol {
  margin: 18px 0;
  padding-left: 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content blockquote,
.article-content .key-tip {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  background: var(--surface);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-content tr:nth-child(even) { background: var(--bg-muted); }
.article-content tr:hover { background: var(--accent-light); }

/* Key Takeaway Box */
.key-takeaway {
  background: linear-gradient(135deg, var(--accent-light), #FFF);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}

.key-takeaway::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.key-takeaway h3,
.key-takeaway h4 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* =============================================
   SEARCH RESULTS PAGE
   ============================================= */
.search-page { padding: 48px 0; }

.search-box {
  max-width: 720px;
  margin: 0 auto 36px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 18px 120px 18px 28px;
  font-size: 1.05rem;
  font-family: 'Figtree', sans-serif;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
}

.search-box button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.search-results-count {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.search-result-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
}

.search-result-item:hover { padding-left: 12px; }

.search-result-item h3 { margin-bottom: 6px; }
.search-result-item h3 a { color: var(--surface); }
.search-result-item h3 a:hover { color: var(--accent); }

.search-result-item .url {
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.search-result-item p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.65;
}

/* =============================================
   CATEGORY HUB PAGES
   ============================================= */
.category-hero {
  background:
    linear-gradient(to bottom, rgba(27,25,24,0.55) 0%, rgba(27,25,24,0.7) 100%);
  background-size: cover;
  background-position: center;
  padding: 56px 0;
  text-align: center;
  position: relative;
}

.category-hero h1 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 2.2rem;
  font-weight: 800;
}

.category-hero p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 1.05rem;
}

/* =============================================
   PAGE HEADER (non-hero pages)
   ============================================= */
.page-header {
  background: var(--bg-muted);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 6px;
  font-size: 2rem;
  font-weight: 800;
}

.page-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--surface);
  color: var(--text-inverse);
  padding: 56px 0 0;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Grain overlay on footer */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
}

/* Decorative accent line at top of footer */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-col { position: relative; }

.footer-col h3,
.footer-col h4 {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* Footer Search */
.footer-search {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

.footer-search input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.88rem;
  font-family: 'Figtree', sans-serif;
  outline: none;
  transition: all var(--duration) var(--ease);
}

.footer-search input::placeholder { color: rgba(255, 255, 255, 0.3); }
.footer-search input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.footer-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  transition: all var(--duration) var(--ease);
}

.footer-search button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--surface);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Figtree', sans-serif;
  outline: none;
  background: var(--bg-card);
  transition: all var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content { max-width: 800px; }
.legal-content h2 { margin: 32px 0 14px; font-size: 1.35rem; }
.legal-content h3 { margin: 24px 0 10px; }
.legal-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }
.legal-content ul { list-style: disc; padding-left: 24px; margin: 14px 0; }
.legal-content li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-secondary); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

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

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

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* =============================================
   TCPA OPT-IN / NEWSLETTER PAGE
   ============================================= */
.optin-page {
  max-width: 680px;
}

.optin-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.optin-header {
  text-align: center;
  margin-bottom: 32px;
}

.optin-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.optin-header h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.optin-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.optin-form .optin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.optin-field {
  margin-bottom: 20px;
}

.optin-field label {
  display: block;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--surface);
}

.optin-field label .required {
  color: var(--rose);
}

.optin-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Figtree', sans-serif;
  outline: none;
  background: var(--bg-card);
  transition: all var(--duration) var(--ease);
}

.optin-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.optin-field input::placeholder {
  color: var(--text-muted);
}

/* Consent checkboxes */
.optin-consent {
  margin-bottom: 18px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.6;
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-label .checkmark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.consent-label .checkmark::after {
  content: '';
  display: none;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 3px;
  left: 6px;
}

.consent-label input[type="checkbox"]:checked ~ .checkmark {
  background: var(--emerald);
  border-color: var(--emerald);
}

.consent-label input[type="checkbox"]:checked ~ .checkmark::after {
  display: block;
}

.consent-label input[type="checkbox"]:focus-visible ~ .checkmark {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.consent-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.consent-text .required {
  color: var(--rose);
  font-weight: 600;
}

.consent-text a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.3);
  text-underline-offset: 2px;
}

.consent-text a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Submit button */
.optin-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
  margin-top: 8px;
}

.optin-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

/* Success / error messages */
.optin-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 16px;
}

.optin-success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
}

.optin-error {
  background: rgba(244, 63, 94, 0.06);
  color: var(--rose);
  border: 1.5px solid rgba(244, 63, 94, 0.18);
}

/* Benefits section */
.optin-benefits {
  margin-top: 48px;
}

.optin-benefits h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

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

.benefit-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.benefit-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .optin-card { padding: 28px 20px; }
  .optin-form .optin-row { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 76px; }

  .header-inner,
  .header-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 8px 16px 16px;
    z-index: 999;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  .main-nav a::after { display: none; }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
  }

  .logo { font-size: 1.55rem; gap: 8px; }
  .logo-icon { width: 56px !important; height: 56px !important; }

  .menu-toggle,
  .mobile-menu-toggle { display: flex; }

  .header-search { display: none; }

  /* Hero */
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-search input { padding: 14px 52px 14px 20px; font-size: 0.95rem; }
  .hero-search button { width: 40px; height: 40px; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .card-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card-hero { grid-column: span 1; }
  .featured-grid .card-hero .card-image { height: 200px; }
  .recent-list { grid-template-columns: 1fr; }
  .recent-item { grid-template-columns: 90px 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.92rem; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { padding: 18px 12px; }
  .card-body { padding: 16px; }
  .card-image { height: 160px; }
}
