/*
Theme Name: Digital Report
Theme URI: https://digitalreport.com.tr
Author: Linkmedya
Author URI: https://linkmedya.com
Description: Modern, SEO-optimized Turkish technology news theme. Features dark mode, lazy loading, JSON-LD schema, responsive images, and performance optimization. Built for digitalreport.com.tr.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor
Tags: news, magazine, blog, dark-mode, responsive-layout, custom-colors, custom-menu, featured-images, translation-ready, rtl-language-support

Digital Report Theme - Flavor
Copyright 2024-2026 Linkmedya
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Brand Colors */
  --flavor-primary: #7c3aed;
  --flavor-primary-light: #8b5cf6;
  --flavor-primary-dark: #6d28d9;

  /* Accent (CTA buttons, links) */
  --flavor-accent: #7c3aed;
  --flavor-accent-hover: #6d28d9;

  /* Additional Colors */
  --flavor-heading: #171717;
  --flavor-alt: #2563eb;

  /* Typography */
  --flavor-body-size: 16px;
  --flavor-body-line: 1.6;
  --flavor-heading-weight: 700;
  --flavor-heading-spacing: -0.02em;
  --flavor-content-size: 18px;
  --flavor-content-line: 1.8;

  /* Grays */
  --flavor-gray-950: #0c0a09;
  --flavor-gray-900: #171717;
  --flavor-gray-800: #262626;
  --flavor-gray-700: #404040;
  --flavor-gray-600: #525252;
  --flavor-gray-500: #737373;
  --flavor-gray-400: #a3a3a3;
  --flavor-gray-300: #d4d4d4;
  --flavor-gray-200: #e5e5e5;
  --flavor-gray-100: #f5f5f5;
  --flavor-gray-50: #fafafa;

  /* Category Colors */
  --flavor-cat-teknoloji: #3b82f6;
  --flavor-cat-yapay-zeka: #8b5cf6;
  --flavor-cat-guvenlik: #ef4444;
  --flavor-cat-kripto: #eab308;
  --flavor-cat-oyun: #22c55e;
  --flavor-cat-rehber: #06b6d4;
  --flavor-cat-fintek: #ec4899;
  --flavor-cat-girisim: #f97316;
  --flavor-cat-bulten: #64748b;

  /* Layout */
  --flavor-container: 1200px;
  --flavor-sidebar: 340px;
  --flavor-header-height: 52px;
  --flavor-radius: 14px;
  --flavor-radius-sm: 8px;

  /* Typography */
  --flavor-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --flavor-line-height: 1.6;

  /* Transitions */
  --flavor-transition: 0.2s ease;
  --flavor-transition-slow: 0.3s ease;
}

/* Light Theme (default) */
[data-theme="light"] {
  --flavor-bg: var(--flavor-gray-50);
  --flavor-bg-card: #fff;
  --flavor-text: var(--flavor-gray-900);
  --flavor-text-secondary: var(--flavor-gray-600);
  --flavor-text-muted: var(--flavor-gray-500);
  --flavor-border: var(--flavor-gray-200);
  --flavor-heading: var(--flavor-gray-900);
  --flavor-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --flavor-shadow-hover: 0 12px 28px rgba(124,58,237,0.15), 0 4px 12px rgba(0,0,0,0.08);
}

/* Dark Theme */
[data-theme="dark"] {
  --flavor-bg: var(--flavor-gray-950);
  --flavor-bg-card: var(--flavor-gray-900);
  --flavor-text: var(--flavor-gray-100);
  --flavor-text-secondary: var(--flavor-gray-300);
  --flavor-text-muted: var(--flavor-gray-400);
  --flavor-border: var(--flavor-gray-800);
  --flavor-heading: var(--flavor-gray-100);
  --flavor-shadow: 0 2px 8px rgba(255,255,255,0.04), 0 1px 2px rgba(255,255,255,0.02);
  --flavor-shadow-hover: 0 12px 28px rgba(124,58,237,0.25), 0 4px 12px rgba(255,255,255,0.06);
}

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

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

body {
  font-family: var(--flavor-font);
  font-size: 1rem;
  line-height: var(--flavor-line-height);
  color: var(--flavor-text);
  background: var(--flavor-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--flavor-transition);
}

a:hover {
  color: var(--flavor-primary);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--flavor-heading-weight);
  line-height: 1.25;
  letter-spacing: var(--flavor-heading-spacing);
  color: var(--flavor-heading);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

.flavor-container--narrow {
  max-width: 900px;
}

.flavor-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .flavor-grid--sidebar,
  .flavor-grid--sidebar-right {
    grid-template-columns: 1fr var(--flavor-sidebar);
  }
  .flavor-grid--sidebar-left {
    grid-template-columns: var(--flavor-sidebar) 1fr;
  }
  .flavor-grid--sidebar-both {
    grid-template-columns: var(--flavor-sidebar) 1fr var(--flavor-sidebar);
  }
}

.flavor-sidebar--left {
  order: -1;
}

/* Hero Below Template */
.hero-image-full {
  width: 100%;
  margin: 0 0 1.5rem;
}
.hero-image-full img {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
}

.flavor-main {
  min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--flavor-gray-900);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  height: var(--flavor-header-height);
  max-width: 1440px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  height: 100%;
  flex-shrink: 0;
}

.logo-area a {
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 32px;
  max-width: 200px;
  object-fit: contain;
}

/* Only invert fallback SVG logo, not custom logos */
.logo-area > a:not(.custom-logo-link) img {
  filter: brightness(0) invert(1);
}

/* Custom logo from customizer */
.logo-area .custom-logo-link {
  display: flex;
  align-items: center;
}

.logo-area .custom-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 200px;
}

/* Desktop logo plate */
@media (min-width: 1280px) {
  .header-wrapper {
    padding-left: 240px;
    position: relative;
  }

  .logo-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 240px;
    height: calc(var(--flavor-header-height) + 44px);
    padding: 8px 1.5rem 0;
    background: var(--flavor-primary);
    border-radius: 0 0 16px 16px;
    z-index: 150;
    align-items: flex-start;
    justify-content: center;
  }

  .logo-area img {
    height: 70px;
  }

  .logo-area .custom-logo {
    max-height: 80px;
    height: auto;
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
  padding: 0 1.25rem;
  max-width: var(--flavor-container);
}

/* Main Navigation */
.main-nav {
  display: none;
  gap: 0.25rem;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--flavor-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all var(--flavor-transition);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--flavor-primary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown > .nav-link::after {
  content: '\25BE';
  margin-left: 3px;
  font-size: 0.55rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  padding: 0.5rem;
  background: var(--flavor-gray-800);
  border-radius: var(--flavor-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--flavor-transition);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--flavor-gray-300);
  border-radius: 4px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background: var(--flavor-gray-700);
  color: #fff;
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flavor-gray-400);
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.icon-btn:hover {
  background: var(--flavor-gray-800);
  color: #fff;
}

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

.btn-subscribe {
  display: none;
  padding: 0.5rem 1rem;
  background: var(--flavor-primary-light);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: background var(--flavor-transition);
}

.btn-subscribe:hover {
  background: var(--flavor-primary);
  color: #fff;
}

@media (min-width: 640px) {
  .btn-subscribe {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  color: #fff;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  background: var(--flavor-gray-800);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .flavor-container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--flavor-gray-300);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--flavor-gray-700);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--flavor-bg);
  padding: 1.5rem 0 2.5rem;
}

/* Base Hero Card */
.hero-card {
  position: relative;
  border-radius: var(--flavor-radius);
  overflow: hidden;
  background: var(--flavor-gray-800);
}

.hero-card a.card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-card a.card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}

.hero-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 3;
}

.hero-card h1, .hero-card h2, .hero-card h3 {
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-card h1 a, .hero-card h2 a, .hero-card h3 a {
  color: #fff;
}

.hero-card .cat-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.hero-meta .author {
  font-weight: 600;
}

/* ==========================================================================
   Hero Split Layout (1 main + 4 side)
   ========================================================================== */
.hero-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 220px 220px;
  }
}

.hero-main {
  min-height: 280px;
}

@media (min-width: 768px) {
  .hero-main {
    grid-column: span 2;
    min-height: 350px;
  }
}

@media (min-width: 1024px) {
  .hero-main {
    grid-column: 1;
    grid-row: span 2;
    min-height: auto;
  }

  .hero-main .content {
    padding: 1.75rem;
  }
}

.hero-main h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-main h2 {
    font-size: 1.75rem;
  }
}

.hero-side {
  min-height: 180px;
}

.hero-side h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   Hero Full Width Layout (Static)
   ========================================================================== */
.hero-full-static {
  min-height: 50vh;
  max-height: 70vh;
}

@media (min-width: 768px) {
  .hero-full-static {
    min-height: 60vh;
  }
}

.hero-full-static .hero-overlay,
.hero-slider .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-full-static .hero-overlay {
    padding: 3rem;
  }
}

.hero-full-static .hero-overlay h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-full-static .hero-overlay h1 {
    font-size: 2.5rem;
  }
}

.hero-full-static .excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 600px;
}

/* Centered text variants */
.text-center {
  text-align: center;
}

.hero-centered .hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 0;
  background: rgba(0,0,0,0.5);
}

.hero-centered .content {
  max-width: 700px;
}

.hero-centered .excerpt {
  margin-left: auto;
  margin-right: auto;
}

.justify-center {
  justify-content: center;
}

/* ==========================================================================
   Hero Slider Layout
   ========================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--flavor-radius);
}

.hero-slide {
  position: relative;
  display: none;
}

.hero-slide.active,
.hero-slide:first-child {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-slide img {
    height: 480px;
  }
}

.hero-slide .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-slide .hero-overlay {
    padding: 2rem;
  }
}

.hero-slide .hero-overlay h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-slide .hero-overlay h2 {
    font-size: 1.75rem;
  }
}

.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-prev, .slider-next {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #171717;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.2s;
}

.slider-prev:hover, .slider-next:hover {
  background: var(--flavor-primary);
  color: #fff;
}

/* ==========================================================================
   Hero Grid Equal Layout
   ========================================================================== */
.hero-grid-equal {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .hero-grid-equal {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid-equal {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-grid-equal .hero-card {
  min-height: 200px;
}

@media (min-width: 768px) {
  .hero-grid-equal .hero-card {
    min-height: 240px;
  }
}

.hero-grid-equal h3 {
  font-size: 0.9rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-grid-equal h3 {
    font-size: 1rem;
  }
}

.hero-grid-equal .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-grid-equal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.hero-grid-equal h3 a {
  color: #fff;
}

.hero-grid-equal .hero-meta {
  font-size: 0.7rem;
}

/* ==========================================================================
   Category Badge
   ========================================================================== */
.cat-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 0.625rem;
  color: #fff !important;
  white-space: nowrap;
  line-height: 1.4;
  min-width: max-content;
  text-decoration: none;
}

.cat-default { background: var(--flavor-primary); }
.cat-teknoloji { background: var(--flavor-cat-teknoloji); }
.cat-yapay-zeka { background: var(--flavor-cat-yapay-zeka); }
.cat-guvenlik { background: var(--flavor-cat-guvenlik); }
.cat-kripto { background: var(--flavor-cat-kripto); color: #000; }
.cat-oyun { background: var(--flavor-cat-oyun); }
.cat-rehber { background: var(--flavor-cat-rehber); }
.cat-fintek { background: var(--flavor-cat-fintek); }
.cat-girisim { background: var(--flavor-cat-girisim); }
.cat-bulten { background: var(--flavor-cat-bulten); }

/* ==========================================================================
   Article Cards
   ========================================================================== */
.article-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.article-card {
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  overflow: hidden;
  box-shadow: var(--flavor-shadow);
  transition: all var(--flavor-transition-slow);
}

/* Card Hover Effects - Based on customizer setting */
.article-card.hover-none:hover {
  box-shadow: var(--flavor-shadow);
  transform: none;
}
.article-card.hover-lift:hover {
  box-shadow: var(--flavor-shadow-hover);
  transform: translateY(-6px);
}
.article-card.hover-shadow:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transform: none;
}
[data-theme="dark"] .article-card.hover-shadow:hover {
  box-shadow: 0 12px 40px rgba(255,255,255,0.08);
}
.article-card.hover-border:hover {
  box-shadow: var(--flavor-shadow);
  transform: none;
  border-color: var(--flavor-primary);
}
.article-card.hover-glow:hover {
  box-shadow: 0 0 20px rgba(124,58,237,0.4), 0 0 40px rgba(124,58,237,0.2);
  transform: none;
}
.article-card.hover-scale:hover {
  box-shadow: var(--flavor-shadow-hover);
  transform: scale(1.03);
}
.article-card.hover-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.article-card.hover-tilt:hover {
  box-shadow: var(--flavor-shadow-hover);
  transform: rotateX(2deg) rotateY(-2deg) translateY(-4px);
}
.article-card.hover-slide:hover {
  box-shadow: var(--flavor-shadow);
  transform: translateX(8px);
}
.article-card.hover-gradient:hover {
  box-shadow: var(--flavor-shadow);
  transform: none;
}
.article-card.hover-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--flavor-primary), transparent, var(--flavor-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.article-card.hover-gradient:hover::before {
  opacity: 1;
}

.article-card .thumb {
  aspect-ratio: 7/5;
  overflow: hidden;
  position: relative;
}

.article-card .thumb > a {
  display: block;
  height: 100%;
}

.article-card .thumb .cat-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  margin: 0;
  pointer-events: auto;
  display: inline-block;
  height: auto;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

/* Image Hover Effects - Based on customizer setting */
.article-card.img-hover-none:hover .thumb img {
  transform: none;
}
.article-card.img-hover-zoom:hover .thumb img {
  transform: scale(1.08);
}
.article-card.img-hover-shine .thumb::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.article-card.img-hover-shine:hover .thumb::after {
  left: 100%;
}
.article-card.img-hover-grayscale .thumb img {
  filter: grayscale(100%);
  transition: filter 0.4s, transform 0.4s;
}
.article-card.img-hover-grayscale:hover .thumb img {
  filter: grayscale(0%);
}

.article-card .body {
  padding: 1.125rem;
}

.article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.article-card h3 a:hover {
  color: var(--flavor-primary);
}

.article-card .excerpt {
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
  line-height: 1.5;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--flavor-text-muted);
}

.article-meta .author {
  font-weight: 600;
  color: var(--flavor-text-secondary);
}

.article-meta .sep {
  opacity: 0.4;
}

/* List Layout */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card-list {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  box-shadow: var(--flavor-shadow);
  transition: all var(--flavor-transition-slow);
}

.article-card-list:hover {
  box-shadow: var(--flavor-shadow-hover);
}

.article-card-list .thumb {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 7/5;
  border-radius: var(--flavor-radius-sm);
  overflow: hidden;
}

.article-card-list .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card-list:hover .thumb img {
  transform: scale(1.05);
}

.article-card-list .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-list h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-card-list .excerpt {
  font-size: 0.9rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

@media (max-width: 640px) {
  .article-card-list {
    flex-direction: column;
  }

  .article-card-list .thumb {
    width: 100%;
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-primary);
}

.view-all {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--flavor-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-all:hover {
  color: var(--flavor-primary);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: calc(var(--flavor-header-height) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--flavor-header-height) - 3rem);
    overflow-y: auto;
  }
}

.widget {
  background: var(--flavor-bg-card);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--flavor-shadow);
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-primary);
  margin-bottom: 1rem;
}

/* Magazine Widget */
.magazine-widget {
  background: linear-gradient(135deg, var(--flavor-primary-light), #c026d3);
  color: #fff;
  text-align: center;
}

.magazine-widget .widget-title {
  color: rgba(255,255,255,0.8);
}

.magazine-covers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.magazine-cover {
  width: 70px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform var(--flavor-transition-slow);
}

.magazine-cover:nth-child(2) {
  width: 90px;
  transform: scale(1.1);
}

.magazine-cover:hover {
  transform: scale(1.05) rotate(-3deg);
}

.magazine-cover:nth-child(2):hover {
  transform: scale(1.15) rotate(3deg);
}

.magazine-info {
  font-size: 0.85rem;
  margin-bottom: 0.875rem;
  opacity: 0.9;
}

.magazine-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: #fff;
  color: var(--flavor-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: transform var(--flavor-transition);
}

.magazine-btn:hover {
  transform: scale(1.05);
  color: var(--flavor-primary);
}

/* Popular Widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.popular-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.popular-item .num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--flavor-gray-200);
  line-height: 1;
  width: 30px;
  flex-shrink: 0;
}

[data-theme="dark"] .popular-item .num {
  color: var(--flavor-gray-800);
}

.popular-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.popular-item h4 a:hover {
  color: var(--flavor-primary);
}

.popular-item .meta {
  font-size: 0.65rem;
  color: var(--flavor-text-muted);
  margin-top: 0.2rem;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 0.85rem;
  color: var(--flavor-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.newsletter-form input {
  padding: 0.75rem 0.875rem;
  background: var(--flavor-bg);
  border: 2px solid var(--flavor-border);
  border-radius: 10px;
  color: var(--flavor-text);
  font-size: 0.85rem;
  transition: border-color var(--flavor-transition);
}

.newsletter-form input:focus {
  border-color: var(--flavor-primary);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--flavor-text-muted);
}

.newsletter-form button {
  padding: 0.75rem;
  background: var(--flavor-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  transition: background var(--flavor-transition);
}

.newsletter-form button:hover {
  background: var(--flavor-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--flavor-gray-900);
  color: var(--flavor-gray-400);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand .footer-logo {
  height: 28px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--flavor-gray-800);
  border-radius: 10px;
  color: var(--flavor-gray-400);
  transition: all var(--flavor-transition);
}

.social-links a:hover {
  background: var(--flavor-primary);
  color: #fff;
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--flavor-gray-200);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--flavor-gray-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--flavor-primary-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.btn-primary {
  background: var(--flavor-accent);
  color: #fff;
}

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

.btn-outline {
  border: 2px solid var(--flavor-border);
  color: var(--flavor-text);
}

.btn-outline:hover {
  border-color: var(--flavor-primary);
  color: var(--flavor-primary);
}

.load-more,
.view-all-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.all-loaded {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--flavor-text-muted);
  font-size: 0.875rem;
}

.load-more-btn {
  padding: 0.875rem 2rem;
  background: var(--flavor-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: all var(--flavor-transition-slow);
}

.load-more-btn:hover {
  background: var(--flavor-accent-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--flavor-bg-card);
  border: 1px solid var(--flavor-border);
  border-radius: var(--flavor-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--flavor-transition);
}

.pagination a:hover {
  border-color: var(--flavor-primary);
  color: var(--flavor-primary);
}

.pagination .current {
  background: var(--flavor-primary);
  border-color: var(--flavor-primary);
  color: #fff;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

/* ==========================================================================
   Lazy Load Placeholder
   ========================================================================== */
.lazyload,
.lazyloading {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazyloaded {
  opacity: 1;
}

img[data-src] {
  background: var(--flavor-gray-200);
}

[data-theme="dark"] img[data-src] {
  background: var(--flavor-gray-800);
}

/* Aspect ratio containers for CLS prevention */
.aspect-7-5 { aspect-ratio: 7/5; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-1-1 { aspect-ratio: 1/1; }

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-overlay.active {
  display: flex;
}

.search-overlay .search-inner {
  width: 100%;
  max-width: 600px;
}

.search-overlay .search-form {
  display: flex;
  background: var(--flavor-gray-800);
  border-radius: var(--flavor-radius);
  overflow: hidden;
}

.search-overlay .search-field {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.125rem;
}

.search-overlay .search-field::placeholder {
  color: var(--flavor-gray-500);
}

.search-overlay .search-field:focus {
  outline: none;
}

.search-overlay .search-submit {
  padding: 1.25rem 1.5rem;
  background: var(--flavor-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--flavor-transition);
}

.search-overlay .search-submit:hover {
  background: var(--flavor-primary-dark);
}

.search-overlay .search-submit svg {
  width: 24px;
  height: 24px;
}

.close-search {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flavor-gray-400);
  background: var(--flavor-gray-800);
  border-radius: 50%;
  transition: all var(--flavor-transition);
}

.close-search:hover {
  background: var(--flavor-gray-700);
  color: #fff;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
}

/* Account for logo plate on desktop - all page types */
@media (min-width: 1280px) {
  .entry-header .breadcrumb,
  .page-header .breadcrumb,
  .archive-header .breadcrumb,
  .category-header .breadcrumb,
  .tag-header .breadcrumb,
  .author-header .breadcrumb,
  .search-header .breadcrumb {
    margin-left: 0;
  }
}

.breadcrumb a {
  color: var(--flavor-text-muted);
}

.breadcrumb a:hover {
  color: var(--flavor-primary);
}

.breadcrumb .sep {
  color: var(--flavor-gray-400);
}

.breadcrumb .current {
  color: var(--flavor-text-secondary);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post .entry-header {
  padding: 2rem 0 1rem;
  margin-bottom: 0;
}

/* Account for logo plate overlap on desktop */
@media (min-width: 1280px) {
  .single-post .entry-header {
    padding-top: 3rem;
  }
  .single-post .entry-header > .flavor-container {
    padding-left: 220px;
  }
}

@media (min-width: 1440px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 140px;
  }
}

@media (min-width: 1600px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 60px;
  }
}

@media (min-width: 1680px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 1.25rem;
  }
}

.single-post .entry-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .single-post .entry-title {
    font-size: 2.5rem;
  }
}

.single-post .entry-subtitle {
  font-size: 1.125rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.single-post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Add separators between meta items */
.single-post .entry-meta .sep {
  color: var(--flavor-text-muted);
}

.single-post .article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Meta row with text controls on right */
.single-post .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.single-post .entry-thumbnail {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.single-post .entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--flavor-radius);
}

.single-post .entry-thumbnail figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--flavor-text-muted);
  text-align: center;
}

/* Full-width featured image */
.single-post .entry-thumbnail--full {
  margin: 0 0 2rem;
}

.single-post .entry-thumbnail--full img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 0;
}

.single-post .entry-thumbnail--full figcaption {
  padding: 0.75rem 0;
}

/* ==========================================================================
   Hero Template
   ========================================================================== */
.hero-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  width: 100%;
  padding: 3rem 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.hero-overlay .breadcrumb,
.hero-overlay .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.hero-overlay .category-badge {
  background: var(--flavor-primary);
  color: #fff;
}

.hero-overlay .entry-title {
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero-overlay .entry-title {
    font-size: 3rem;
  }
}

.hero-overlay .entry-subtitle {
  color: rgba(255,255,255,0.85);
}

.hero-overlay .entry-meta,
.hero-overlay .entry-meta a {
  color: rgba(255,255,255,0.8);
}

.hero-overlay .entry-meta a:hover {
  color: #fff;
}

/* ==========================================================================
   Text Size Controls (Toolbar Style)
   ========================================================================== */
.text-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.text-controls .controls-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-right: 0.25rem;
}

.text-size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--flavor-gray-600);
  border: none;
  border-radius: var(--flavor-radius-sm);
  cursor: pointer;
  transition: all var(--flavor-transition);
}

.text-size-btn:hover {
  background: var(--flavor-primary);
  transform: translateY(-2px);
}

.text-size-btn[data-action="decrease"] {
  font-size: 0.7rem;
}

.text-size-btn[data-action="increase"] {
  font-size: 1rem;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--flavor-border);
  border-bottom: 1px solid var(--flavor-border);
}

.share-buttons .share-label {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--flavor-radius-sm);
  color: #fff;
  transition: all var(--flavor-transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

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

.share-btn.share-twitter { background: #1da1f2; }
.share-btn.share-facebook { background: #1877f2; }
.share-btn.share-linkedin { background: #0a66c2; }
.share-btn.share-whatsapp { background: #25d366; }
.share-btn.share-telegram { background: #0088cc; }
.share-btn.share-copy {
  background: var(--flavor-gray-600);
  border: none;
  cursor: pointer;
}

.share-btn.share-twitter:hover { background: #0d8ddb; }
.share-btn.share-facebook:hover { background: #0d65d9; }
.share-btn.share-linkedin:hover { background: #084d93; }
.share-btn.share-whatsapp:hover { background: #1fb855; }
.share-btn.share-telegram:hover { background: #0077b3; }
.share-btn.share-copy:hover { background: var(--flavor-gray-700); }

/* Share bar after image */
.share-bar-top {
  padding: 1rem 0;
}

.share-bar-top .share-buttons {
  margin: 0;
  padding: 0;
  border: none;
}

/* Contained template spacing - push content down */
.single-post--contained-above .flavor-main,
.single-post--contained-below .flavor-main {
  padding-top: 2rem;
}

/* Sticky sidebar (share + text controls) */
.sticky-sidebar {
  display: none;
  position: absolute;
  left: calc(50% - 620px);
  top: var(--sticky-start, 180px);
  z-index: 50;
  flex-direction: column;
  gap: 0.75rem;
  transition: top 0.3s ease;
}

.sticky-sidebar.is-fixed {
  position: fixed;
  top: 180px;
}

@media (min-width: 1440px) {
  .sticky-sidebar {
    display: flex;
  }
}

@media (min-width: 1600px) {
  .sticky-sidebar {
    left: calc(50% - 660px);
  }
}

@media (min-width: 1800px) {
  .sticky-sidebar {
    left: calc(50% - 700px);
  }
}

.sticky-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  text-align: center;
  margin-bottom: 0.125rem;
}

.share-sticky {
  /* now inside sticky-sidebar */
}

/* Text controls in sticky sidebar */
.text-controls-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  box-shadow: var(--flavor-shadow);
}

.text-controls-sticky .text-size-btn {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--flavor-border);
  border-radius: 4px;
  background: var(--flavor-bg);
  color: var(--flavor-text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--flavor-transition);
}

.text-controls-sticky .text-size-btn:hover {
  background: var(--flavor-primary);
  color: #fff;
  border-color: var(--flavor-primary);
}

.share-sticky-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  box-shadow: var(--flavor-shadow);
}

.share-sticky-inner .share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-bottom: 0.25rem;
}

.share-sticky .share-btn {
  width: 40px;
  height: 40px;
}

.share-sticky button.share-btn {
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Entry Tags
   ========================================================================== */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.entry-tags .tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--flavor-text-muted);
}

.entry-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--flavor-text-secondary);
  background: var(--flavor-bg);
  border-radius: 50px;
  transition: all var(--flavor-transition);
}

.entry-tags a:hover {
  background: var(--flavor-primary);
  color: #fff;
}

/* ==========================================================================
   Author Box
   ========================================================================== */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius);
}

.author-box .author-avatar {
  flex-shrink: 0;
}

.author-box .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box .author-info {
  flex: 1;
}

.author-box .author-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-box .author-title {
  font-size: 0.8rem;
  color: var(--flavor-primary);
  margin-bottom: 0.75rem;
}

.author-box .author-bio {
  font-size: 0.9rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-box .author-social {
  display: flex;
  gap: 0.5rem;
}

.author-box .author-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius-sm);
  color: var(--flavor-text-muted);
  transition: all var(--flavor-transition);
}

.author-box .author-social a:hover {
  background: var(--flavor-primary);
  color: #fff;
}

.author-box .author-social svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--flavor-border);
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
}

.post-navigation .nav-link {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.post-navigation .nav-link:hover {
  background: var(--flavor-primary);
  color: #fff;
}

.post-navigation .nav-link:hover .nav-label {
  color: rgba(255,255,255,0.7);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--flavor-border);
}

.related-posts .section-title {
  margin-bottom: 1.5rem;
}

.related-grid {
  --related-cols: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(var(--related-cols), 1fr);
  }
}

.related-card {
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius-sm);
  overflow: hidden;
  transition: all var(--flavor-transition);
}

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

.related-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.related-card:hover .thumb img {
  transform: scale(1.05);
}

.related-card .info {
  padding: 1rem;
}

.related-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-card .meta {
  font-size: 0.7rem;
  color: var(--flavor-text-muted);
}

/* Related Posts List Layout */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.related-item:hover {
  transform: translateX(4px);
  box-shadow: var(--flavor-shadow-hover);
}

.related-item .thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: var(--flavor-radius-sm);
  overflow: hidden;
}

.related-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.related-item .meta {
  font-size: 0.7rem;
  color: var(--flavor-text-muted);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--flavor-border);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--flavor-border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: 1rem;
}

.comment-author-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.comment-author-name a {
  color: var(--flavor-text);
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--flavor-text-muted);
  margin-bottom: 0.75rem;
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.comment-text p {
  margin-bottom: 0.75rem;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--flavor-primary);
}

.comment .children {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--flavor-border);
}

/* Comment form */
.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius);
}

.comment-reply-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--flavor-text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--flavor-bg-card);
  border: 2px solid var(--flavor-border);
  border-radius: var(--flavor-radius-sm);
  color: var(--flavor-text);
  font-size: 0.95rem;
  transition: border-color var(--flavor-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--flavor-primary);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: 1rem;
}

.comment-form .submit {
  padding: 0.875rem 2rem;
  background: var(--flavor-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--flavor-radius-sm);
  cursor: pointer;
  transition: background var(--flavor-transition);
}

.comment-form .submit:hover {
  background: var(--flavor-primary-dark);
}

.comment-notes,
.logged-in-as {
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--flavor-border);
}

/* Account for logo plate overlap on desktop */
@media (min-width: 1280px) {
  .page-header,
  .archive-header,
  .category-header,
  .tag-header,
  .search-header {
    padding-top: 3rem;
  }

  /* Clear logo plate horizontally - plate is 240px wide */
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 220px; /* Push content past the 240px logo plate */
  }
}

/* At 1440px+, plate overlaps less */
@media (min-width: 1440px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 140px;
  }
}

/* At 1600px+, minimal overlap */
@media (min-width: 1600px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 60px;
  }
}

/* At 1680px+, logo plate doesn't overlap container */
@media (min-width: 1680px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 1.25rem;
  }
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-description,
.archive-description {
  font-size: 1rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
}

/* Category/Tag/Author pages */
.category-section,
.latest-posts {
  margin-bottom: 3rem;
}

/* Archive Headers */
.category-header,
.tag-header,
.author-header,
.search-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--flavor-border);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--flavor-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--flavor-text-secondary);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 101; /* Just above header (z-index: 100) */
  pointer-events: none;
}

.reading-progress-top {
  top: 0; /* At the very top of viewport */
}

.reading-progress-bottom {
  bottom: 0;
}

.reading-progress-bar {
  width: 0;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Cookie Notice
   ========================================================================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--flavor-gray-900);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-notice-inner {
  max-width: var(--flavor-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-message {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-message a {
  color: var(--flavor-primary-light);
  text-decoration: underline;
}

.cookie-accept {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-notice-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-accept {
    width: 100%;
  }
}

/* ==========================================================================
   Live Search
   ========================================================================== */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--flavor-bg);
  border: 1px solid var(--flavor-gray-200);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
}

.live-search-loading,
.live-search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--flavor-text-light);
  font-size: 0.875rem;
}

.live-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-search-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--flavor-text);
  transition: background 0.15s;
}

.live-search-item a:hover {
  background: var(--flavor-gray-100);
}

.live-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--flavor-gray-200);
}

.live-search-no-thumb {
  display: block;
}

.live-search-content {
  flex: 1;
  min-width: 0;
}

.live-search-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-search-title mark {
  background: var(--flavor-accent);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

.live-search-date {
  font-size: 0.75rem;
  color: var(--flavor-text-light);
}

.live-search-view-all {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  background: var(--flavor-gray-100);
  color: var(--flavor-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-top: 1px solid var(--flavor-gray-200);
}

.live-search-view-all:hover {
  background: var(--flavor-gray-200);
}

/* ==========================================================================
   View Counter
   ========================================================================== */
.post-views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--flavor-text-light);
  font-size: 0.75rem;
}

.post-views svg {
  opacity: 0.7;
}

/* ==========================================================================
   Hero Section Complete Rewrite (2026-01-06)
   ========================================================================== */

/* --- Hero Overlay Styles --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
}

.hero-overlay-none {
  background: none;
}

.hero-overlay-light {
  background: rgba(0,0,0,0.25);
}

.hero-overlay-gradient {
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
}

.hero-overlay-dark {
  background: rgba(0,0,0,0.6);
}

.hero-overlay-vignette {
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* --- Hero Text Position Classes --- */
.hero-text {
  padding: 1.5rem;
  max-width: 700px;
  z-index: 4;
}

@media (min-width: 768px) {
  .hero-text {
    padding: 2rem;
  }
}

/* Align full/slider hero text with container */
.hero-fullwidth .hero-overlay {
  padding-left: max(1.5rem, calc((100vw - var(--flavor-container-width, 1200px)) / 2 + 1rem));
  padding-right: max(1.5rem, calc((100vw - var(--flavor-container-width, 1200px)) / 2 + 1rem));
}

@media (min-width: 1280px) {
  .hero-fullwidth .hero-overlay {
    padding-left: calc((100vw - var(--flavor-container-width, 1200px)) / 2);
    padding-right: calc((100vw - var(--flavor-container-width, 1200px)) / 2);
  }
}

/* Vertical positioning */
.hero-text-v-top { align-self: flex-start; }
.hero-text-v-center { align-self: center; }
.hero-text-v-bottom { align-self: flex-end; }

/* Horizontal positioning */
.hero-overlay:has(.hero-text-h-left) { justify-content: flex-start; }
.hero-overlay:has(.hero-text-h-center) { justify-content: center; }
.hero-overlay:has(.hero-text-h-right) { justify-content: flex-end; }

.hero-text-h-center { text-align: center; }
.hero-text-h-center .hero-meta { justify-content: center; }
.hero-text-h-right { text-align: right; }
.hero-text-h-right .hero-meta { justify-content: flex-end; }

/* Fallback for browsers without :has() */
.hero-full-center .hero-overlay,
.hero-slider-center .hero-overlay {
  justify-content: center;
}

/* --- Hero Text Shadow Styles --- */
.hero-shadow-none h1, .hero-shadow-none h2, .hero-shadow-none h3,
.hero-shadow-none h1 a, .hero-shadow-none h2 a, .hero-shadow-none h3 a {
  text-shadow: none;
}

.hero-shadow-light h1, .hero-shadow-light h2, .hero-shadow-light h3,
.hero-shadow-light h1 a, .hero-shadow-light h2 a, .hero-shadow-light h3 a {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-shadow-medium h1, .hero-shadow-medium h2, .hero-shadow-medium h3,
.hero-shadow-medium h1 a, .hero-shadow-medium h2 a, .hero-shadow-medium h3 a {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}

.hero-shadow-heavy h1, .hero-shadow-heavy h2, .hero-shadow-heavy h3,
.hero-shadow-heavy h1 a, .hero-shadow-heavy h2 a, .hero-shadow-heavy h3 a {
  text-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
}

/* --- Hero Text Colors (ALWAYS WHITE) --- */
.hero-text h1, .hero-text h2, .hero-text h3,
.hero-text h1 a, .hero-text h2 a, .hero-text h3 a {
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-text .hero-excerpt {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  max-width: 550px;
}

.hero-text .hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.hero-text .hero-meta .author {
  font-weight: 600;
  color: #fff;
}

.hero-text .cat-badge {
  margin-bottom: 0.75rem;
}

/* --- Sticky Hero Text (disabled - caused scroll issues) --- */
/* TODO: Implement proper parallax with JS if needed */

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  border-radius: var(--flavor-radius);
  overflow: hidden;
}

.hero-slider .slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slider .hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block !important; /* Override old display:none for flex slider */
}

.hero-slider .hero-slide img {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-slider .hero-slide img {
    height: 60vh;
  }
}

/* Slider Navigation - SIMPLIFIED */
.hero-slider .slider-nav {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
  bottom: 1.5rem;
  right: 1.5rem;
}

/* Nav buttons */
.hero-slider .slider-prev,
.hero-slider .slider-next {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #171717;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-slider .slider-prev:hover,
.hero-slider .slider-next:hover {
  background: var(--flavor-primary);
  color: #fff;
  transform: scale(1.1);
}

/* Position variations via data attributes */
/* Vertical positioning */
.hero-slider .slider-nav[data-pos-v="top"] { top: 1.5rem; bottom: auto; }
.hero-slider .slider-nav[data-pos-v="center"] { top: 50%; bottom: auto; }
.hero-slider .slider-nav[data-pos-v="bottom"] { bottom: 1.5rem; top: auto; }

/* Horizontal positioning */
.hero-slider .slider-nav[data-pos-h="left"] { left: 1.5rem; right: auto; }
.hero-slider .slider-nav[data-pos-h="center"] { left: 50%; right: auto; }
.hero-slider .slider-nav[data-pos-h="right"] { right: 1.5rem; left: auto; }

/* Transform combinations for proper centering */
.hero-slider .slider-nav[data-pos-v="top"][data-pos-h="center"],
.hero-slider .slider-nav[data-pos-v="bottom"][data-pos-h="center"] { transform: translateX(-50%); }

.hero-slider .slider-nav[data-pos-v="center"][data-pos-h="left"],
.hero-slider .slider-nav[data-pos-v="center"][data-pos-h="right"] { transform: translateY(-50%); }

.hero-slider .slider-nav[data-pos-v="center"][data-pos-h="center"] { transform: translate(-50%, -50%); }

/* Orientation */
.hero-slider .slider-nav[data-orientation="vertical"] { flex-direction: column; }

/* Outside placement - higher specificity to override position variations */
.hero-slider.slider-nav-outside {
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  border-radius: 0;
}

.hero-slider.slider-nav-outside .slider-track {
  order: 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--flavor-radius);
}

.hero-slider.slider-nav-outside .slider-nav[data-placement="outside"] {
  position: relative !important;
  order: 2;
  justify-content: center;
  padding: 1rem;
  background: var(--flavor-bg);
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

.hero-slider.slider-nav-outside .slider-nav[data-placement="outside"][data-pos-h="left"] { justify-content: flex-start; }
.hero-slider.slider-nav-outside .slider-nav[data-placement="outside"][data-pos-h="center"] { justify-content: center; }
.hero-slider.slider-nav-outside .slider-nav[data-placement="outside"][data-pos-h="right"] { justify-content: flex-end; }

.hero-slider.slider-nav-outside .slider-dots {
  position: relative !important;
  order: 3;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  padding: 1rem;
  background: var(--flavor-bg);
  justify-content: center;
}

/* Slider Dots */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-slider .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-slider .slider-dot.active,
.hero-slider .slider-dot:hover {
  background: #fff;
  transform: scale(1.2);
}

/* Play/Pause Button */
.hero-slider .slider-play-pause {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s;
}

.hero-slider .slider-play-pause:hover {
  background: var(--flavor-primary);
  color: #fff;
  transform: scale(1.1);
}

.hero-slider .slider-play-pause .icon-play {
  display: none;
  margin-left: 2px;
}

.hero-slider .slider-play-pause .icon-pause {
  display: block;
}

.hero-slider .slider-play-pause[data-playing="false"] .icon-play {
  display: block;
}

.hero-slider .slider-play-pause[data-playing="false"] .icon-pause {
  display: none;
}

/* Slider text needs extra bottom padding for nav */
.hero-slider .hero-text {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero-slider .hero-text {
    padding-bottom: 5.5rem;
  }
}

/* --- Hero Grid Cards (like regular article cards) --- */
.hero-grid-header {
  margin-bottom: 1.5rem;
}

.hero-grid-cards {
  --grid-cols: 3;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hero-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid-cards {
    grid-template-columns: repeat(var(--grid-cols), 1fr);
  }
}

/* --- Split 3 (1 main + 2 side) - FIXED --- */
.hero-split-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero-split-3 {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr;
  }
}

.hero-split-3 .hero-main {
  position: relative;
  border-radius: var(--flavor-radius);
  overflow: hidden;
  min-height: 280px;
}

@media (min-width: 768px) {
  .hero-split-3 .hero-main {
    min-height: 450px;
  }
}

.hero-split-3 .hero-side-stack {
  display: grid;
  gap: 1rem;
  grid-template-rows: 1fr 1fr;
}

@media (min-width: 768px) {
  .hero-split-3 .hero-side-stack {
    height: 100%;
  }
}

.hero-split-3 .hero-side {
  position: relative;
  border-radius: var(--flavor-radius);
  overflow: hidden;
  min-height: 140px;
}

@media (min-width: 768px) {
  .hero-split-3 .hero-side {
    min-height: auto;
    height: 100%;
  }
}

.hero-split-3 .hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-split-3 .hero-card:hover img {
  transform: scale(1.05);
}

.hero-split-3 .hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-split-3 .hero-overlay {
  background: none;
}

.hero-split-3 .hero-text {
  padding: 1.25rem;
}

.hero-split-3 .hero-main h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-split-3 .hero-main h2 {
    font-size: 1.75rem;
  }
}

.hero-split-3 .hero-side h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================================================
   Customizer Section Separators
   ========================================================================== */

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .share-buttons,
  .related-posts,
  .comments,
  .pagination,
  .mobile-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .entry-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
