/* ==========================================================================
   Woodraze Theme Main Stylesheet
   Design Direction: Minimal, Premium Editorial Magazine (Design 3 + Design 1 & 2 elements)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Editorial Theme */
  --woodraze-bg-body: #fcfcfd;
  --woodraze-bg-surface: #ffffff;
  --woodraze-bg-subtle: #f8fafc;
  --woodraze-bg-dark: #0f172a;
  
  --woodraze-color-primary: #0f172a;
  --woodraze-color-heading: #0f172a;
  --woodraze-color-body: #334155;
  --woodraze-color-muted: #64748b;
  --woodraze-color-border: #e2e8f0;
  --woodraze-color-accent: #2563eb;
  --woodraze-color-accent-hover: #1d4ed8;

  /* Typography */
  --woodraze-font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --woodraze-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Elevation */
  --woodraze-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --woodraze-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --woodraze-shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --woodraze-shadow-hover: 0 16px 32px -6px rgba(15, 23, 42, 0.12);

  /* Layout Spacing */
  --woodraze-container-max: 1280px;
  --woodraze-header-height: 80px;
  --woodraze-radius-sm: 4px;
  --woodraze-radius-md: 8px;
  --woodraze-radius-lg: 14px;
  --woodraze-radius-full: 9999px;

  /* Transition Duration */
  --woodraze-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --woodraze-transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --woodraze-transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Data Attribute Support */
[data-theme="dark"] {
  --woodraze-bg-body: #0b0f19;
  --woodraze-bg-surface: #111827;
  --woodraze-bg-subtle: #1f2937;
  --woodraze-bg-dark: #030712;

  --woodraze-color-primary: #f8fafc;
  --woodraze-color-heading: #f8fafc;
  --woodraze-color-body: #cbd5e1;
  --woodraze-color-muted: #94a3b8;
  --woodraze-color-border: #1e293b;
  --woodraze-color-accent: #3b82f6;
  --woodraze-color-accent-hover: #60a5fa;

  --woodraze-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --woodraze-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--woodraze-font-sans);
  background-color: var(--woodraze-bg-body);
  color: var(--woodraze-color-body);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--woodraze-transition-base), color var(--woodraze-transition-base);
}

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

a {
  color: var(--woodraze-color-heading);
  text-decoration: none;
  transition: color var(--woodraze-transition-fast);
}

a:hover, a:focus-visible {
  color: var(--woodraze-color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--woodraze-font-serif);
  color: var(--woodraze-color-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.35rem); }
h3 { font-size: clamp(1.3rem, 1.8vw + 0.8rem, 1.65rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1.25rem;
}

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

ul, ol {
  list-style: none;
}

/* Accessibility focus ring */
:focus-visible {
  outline: 2px solid var(--woodraze-color-accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--woodraze-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Header & Top Bar Navigation
   -------------------------------------------------------------------------- */

/* Top Announcement / Ticker Bar */
.top-bar {
  background-color: var(--woodraze-bg-dark);
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.top-bar-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar-date svg {
  flex-shrink: 0;
}

.top-bar-date .date-text {
  white-space: nowrap;
}

.top-bar-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.ticker-label {
  background: var(--woodraze-color-accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--woodraze-radius-sm);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-link {
  color: #e2e8f0;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.ticker-link:hover {
  color: #ffffff;
}

/* Main Header */
.site-header {
  position: relative;
  background-color: var(--woodraze-bg-surface);
  border-bottom: 1px solid var(--woodraze-color-border);
  z-index: 100;
  transition: all var(--woodraze-transition-base);
}

.has-sticky-header .site-header {
  position: sticky;
  top: 0;
}

.site-header.is-scrolled {
  box-shadow: var(--woodraze-shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--woodraze-header-height);
  gap: 2rem;
}

/* Logo & Site Branding */
.site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-family: var(--woodraze-font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.site-title a {
  color: var(--woodraze-color-heading);
}

.site-description {
  font-size: 0.75rem;
  color: var(--woodraze-color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.custom-logo-link img {
  max-height: 50px;
  width: auto;
}

/* Primary Navigation Menu */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: nowrap;
}

.nav-menu > li {
  position: relative;
  flex-shrink: 0;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--woodraze-color-heading);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--woodraze-color-accent);
  transition: width var(--woodraze-transition-fast);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background-color: var(--woodraze-bg-surface);
  border: 1px solid var(--woodraze-color-border);
  box-shadow: var(--woodraze-shadow-lg);
  border-radius: var(--woodraze-radius-md);
  min-width: 230px;
  max-height: clamp(280px, 60vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--woodraze-transition-fast);
  z-index: 110;
}

/* Custom Sleek Scrollbar for Header Dropdown Menu */
.nav-menu .sub-menu::-webkit-scrollbar {
  width: 5px;
}

.nav-menu .sub-menu::-webkit-scrollbar-track {
  background: transparent;
}

.nav-menu .sub-menu::-webkit-scrollbar-thumb {
  background-color: var(--woodraze-color-border);
  border-radius: 10px;
}

.nav-menu .sub-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--woodraze-color-accent);
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu .sub-menu a::after {
  display: none;
}

.nav-menu .sub-menu a:hover {
  background-color: var(--woodraze-bg-subtle);
  color: var(--woodraze-color-accent);
}

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

.icon-button {
  background: transparent;
  border: none;
  color: var(--woodraze-color-heading);
  width: 40px;
  height: 40px;
  border-radius: var(--woodraze-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--woodraze-transition-fast), color var(--woodraze-transition-fast);
}

.icon-button:hover {
  background-color: var(--woodraze-bg-subtle);
  color: var(--woodraze-color-accent);
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Hero Section (Design 3 Minimal Editorial + Design 1 Impact)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--woodraze-color-border);
}

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

/* Featured Hero Main Card */
.hero-main-card {
  display: flex;
  flex-direction: column;
  background-color: var(--woodraze-bg-surface);
  border-radius: var(--woodraze-radius-lg);
  overflow: hidden;
  box-shadow: var(--woodraze-shadow-sm);
  border: 1px solid var(--woodraze-color-border);
  transition: transform var(--woodraze-transition-smooth), box-shadow var(--woodraze-transition-smooth);
}

.hero-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--woodraze-shadow-hover);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--woodraze-bg-subtle);
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-card:hover .post-card-img {
  transform: scale(1.04);
}

.hero-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  line-height: 1.2;
}

.hero-title a {
  color: var(--woodraze-color-heading);
}

.hero-title a:hover {
  color: var(--woodraze-color-accent);
}

.hero-excerpt {
  color: var(--woodraze-color-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Category Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--woodraze-bg-subtle);
  color: var(--woodraze-color-accent);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--woodraze-radius-full);
  width: fit-content;
  transition: all var(--woodraze-transition-fast);
}

.category-badge:hover {
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
}

/* Post Metadata Row */
.post-meta-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--woodraze-color-muted);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.author-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--woodraze-color-border);
}

.author-name-link {
  color: var(--woodraze-color-heading);
  font-weight: 600;
}

.author-name-link:hover {
  color: var(--woodraze-color-accent);
}

.meta-icon {
  stroke: var(--woodraze-color-muted);
}

/* Hero Side Column (Secondary Stories) */
.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-column-title {
  font-family: var(--woodraze-font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--woodraze-color-muted);
  border-bottom: 2px solid var(--woodraze-color-heading);
  padding-bottom: 0.5rem;
}

.hero-side-card {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--woodraze-color-border);
}

.hero-side-card:last-child {
  border-bottom: none;
}

.hero-side-thumb {
  width: 110px;
  height: 85px;
  flex-shrink: 0;
  border-radius: var(--woodraze-radius-md);
  overflow: hidden;
  background-color: var(--woodraze-bg-subtle);
}

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

.hero-side-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-side-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Fallback SVG Placeholder */
.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1rem;
}

.placeholder-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.placeholder-icon {
  font-family: var(--woodraze-font-serif);
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   5. Content Sections & Post Grids
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--woodraze-color-border);
  padding-bottom: 0.75rem;
}

.section-title {
  position: relative;
  font-size: 1.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--woodraze-color-accent);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--woodraze-color-accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-link:hover {
  text-decoration: underline;
}

/* Post Cards Grid System */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.split-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--woodraze-bg-surface);
  border-radius: var(--woodraze-radius-md);
  border: 1px solid var(--woodraze-color-border);
  overflow: hidden;
  transition: transform var(--woodraze-transition-smooth), box-shadow var(--woodraze-transition-smooth);
}

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

.post-card-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--woodraze-bg-subtle);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.post-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
}

.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--woodraze-color-muted);
  line-height: 1.55;
}

/* Dynamic Category Blocks */
.category-block-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background-color: var(--woodraze-bg-subtle);
  border-radius: var(--woodraze-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--woodraze-color-border);
  margin-bottom: 2rem;
}

/* High Contrast Editorial Callout Banner (Design 1 inspired) */
.editorial-banner {
  background-color: var(--woodraze-bg-dark);
  color: #ffffff;
  border-radius: var(--woodraze-radius-lg);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.editorial-banner h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.editorial-banner p {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--woodraze-radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--woodraze-transition-fast), transform var(--woodraze-transition-fast);
}

.btn-primary:hover {
  background-color: var(--woodraze-color-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Single Post Page Layout (single.php)
   -------------------------------------------------------------------------- */
.single-post-header {
  padding: 3rem 0 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.single-post-title {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.15;
  font-family: var(--woodraze-font-serif);
}

.single-featured-image {
  margin: 2rem 0 3.5rem;
  border-radius: var(--woodraze-radius-lg);
  overflow: hidden;
  box-shadow: var(--woodraze-shadow-md);
}

.single-featured-image img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
}

.single-post-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
}

.single-post-container.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 840px;
  margin: 0 auto;
}

/* Main Article Content Formatting */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--woodraze-color-body);
}

.article-content > p:first-of-type::first-letter {
  font-family: var(--woodraze-font-serif);
  font-size: 3.8rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  color: var(--woodraze-color-heading);
  font-weight: 800;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  border-left: 4px solid var(--woodraze-color-accent);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background-color: var(--woodraze-bg-subtle);
  border-radius: 0 var(--woodraze-radius-md) var(--woodraze-radius-md) 0;
  font-family: var(--woodraze-font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--woodraze-color-heading);
}

.article-content img {
  border-radius: var(--woodraze-radius-md);
  margin: 2rem 0;
}

.article-content figcaption {
  font-size: 0.875rem;
  color: var(--woodraze-color-muted);
  text-align: center;
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}

/* Social Share Bar */
.social-share-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--woodraze-color-border);
  border-bottom: 1px solid var(--woodraze-color-border);
}

.share-label {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--woodraze-color-heading);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--woodraze-bg-subtle);
  color: var(--woodraze-color-heading);
  transition: all var(--woodraze-transition-fast);
}

.share-btn:hover {
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--woodraze-bg-subtle);
  border-radius: var(--woodraze-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid var(--woodraze-color-border);
}

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

.author-bio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.author-bio-info p {
  font-size: 0.9375rem;
  color: var(--woodraze-color-muted);
}

/* Post Navigation (Prev/Next) */
.post-navigation-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.nav-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background-color: var(--woodraze-bg-surface);
  border: 1px solid var(--woodraze-color-border);
  border-radius: var(--woodraze-radius-md);
  transition: all var(--woodraze-transition-fast);
}

.nav-post-card:hover {
  border-color: var(--woodraze-color-accent);
  box-shadow: var(--woodraze-shadow-sm);
}

.nav-post-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--woodraze-color-muted);
}

.nav-post-title {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Comments Area */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--woodraze-color-border);
}

.comments-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.comment-body {
  background-color: var(--woodraze-bg-subtle);
  border-radius: var(--woodraze-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--woodraze-color-border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.comment-author .fn {
  font-weight: 700;
  font-style: normal;
  color: var(--woodraze-color-heading);
}

.comment-metadata {
  font-size: 0.8125rem;
  color: var(--woodraze-color-muted);
}

/* Comment Form Styling */
.comment-respond {
  background-color: var(--woodraze-bg-surface);
  border: 1px solid var(--woodraze-color-border);
  border-radius: var(--woodraze-radius-lg);
  padding: 2rem;
  box-shadow: var(--woodraze-shadow-sm);
}

.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.comment-form-comment,
.form-submit,
.comment-notes,
.logged-in-as {
  grid-column: 1 / -1;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--woodraze-color-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  background-color: var(--woodraze-bg-body);
  border: 1px solid var(--woodraze-color-border);
  border-radius: var(--woodraze-radius-md);
  color: var(--woodraze-color-heading);
  transition: border-color var(--woodraze-transition-fast);
}

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

.submit-btn,
.comment-form input[type="submit"] {
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--woodraze-radius-md);
  cursor: pointer;
  transition: background-color var(--woodraze-transition-fast);
}

.submit-btn:hover,
.comment-form input[type="submit"]:hover {
  background-color: var(--woodraze-color-accent-hover);
}

/* --------------------------------------------------------------------------
   7. Archives, Search & Page Templates
   -------------------------------------------------------------------------- */
.archive-header, .page-header {
  background-color: var(--woodraze-bg-subtle);
  border-bottom: 1px solid var(--woodraze-color-border);
  padding: 3.5rem 0;
  text-align: center;
}

.archive-title, .page-title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 0.5rem;
}

.archive-description {
  font-size: 1.1rem;
  color: var(--woodraze-color-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Search Form */
.search-form-wrapper {
  position: relative;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.search-form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  padding-right: 3.5rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--woodraze-color-border);
  border-radius: var(--woodraze-radius-full);
  background-color: var(--woodraze-bg-surface);
  color: var(--woodraze-color-heading);
}

.search-form-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--woodraze-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 404 Error Page */
.error-404-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.error-404-number {
  font-family: var(--woodraze-font-serif);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--woodraze-color-accent);
  letter-spacing: -0.05em;
}

.error-404-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* Pagination */
.woodraze-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-item a,
.pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--woodraze-radius-md);
  border: 1px solid var(--woodraze-color-border);
  background-color: var(--woodraze-bg-surface);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--woodraze-color-heading);
}

.pagination-item.is-active span,
.pagination-item a:hover {
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  border-color: var(--woodraze-color-accent);
}

/* --------------------------------------------------------------------------
   8. Sidebar & Widgets
   -------------------------------------------------------------------------- */
.widget {
  background-color: var(--woodraze-bg-surface);
  border: 1px solid var(--woodraze-color-border);
  border-radius: var(--woodraze-radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.15rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--woodraze-color-heading);
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget li a {
  color: var(--woodraze-color-body);
  font-weight: 500;
}

.widget li a:hover {
  color: var(--woodraze-color-accent);
}

/* --------------------------------------------------------------------------
   9. Footer Styles
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--woodraze-bg-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-family: var(--woodraze-font-sans);
  font-weight: 700;
}

.footer-brand .site-title a {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9375rem;
  margin-top: 1rem;
  color: #94a3b8;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu a {
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom a {
  color: #cbd5e1;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--woodraze-color-accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--woodraze-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--woodraze-transition-base);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background-color: var(--woodraze-color-accent-hover);
}

/* --------------------------------------------------------------------------
   10. Search Modal & Mobile Nav Overlays
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--woodraze-transition-smooth);
  z-index: 999;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 90%;
  max-width: 650px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  color: #ffffff;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.search-modal-input {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  outline: none;
}

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

.search-modal-input:focus {
  border-bottom-color: var(--woodraze-color-accent);
}

/* Mobile Navigation Drawer & Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--woodraze-transition-smooth);
  z-index: 998;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--woodraze-bg-surface);
  box-shadow: var(--woodraze-shadow-lg);
  z-index: 1000;
  padding: 2.5rem 1.75rem 2rem;
  transition: right var(--woodraze-transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--woodraze-color-border);
  margin-bottom: 1.25rem;
}

.mobile-nav-header .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--woodraze-color-heading);
  line-height: 1.2;
}

.mobile-nav-close {
  flex-shrink: 0;
}

.mobile-nav-content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
}

.mobile-nav-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-nav-content::-webkit-scrollbar-thumb {
  background-color: var(--woodraze-color-border);
  border-radius: 10px;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.mobile-nav-menu a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--woodraze-color-heading);
  display: block;
  padding: 0.25rem 0;
  transition: color var(--woodraze-transition-fast);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
  color: var(--woodraze-color-accent);
}

/* --------------------------------------------------------------------------
   11. Comprehensive Responsive Design Breakpoints (Fluid Screen Scaling)
   -------------------------------------------------------------------------- */

/* Large Desktop & Ultra Wide (1400px+) */
@media (min-width: 1400px) {
  :root {
    --woodraze-container-max: 1360px;
  }
}

/* Medium Desktop & Small Laptops (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 1.75rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .posts-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet & Mobile Switch Threshold (max-width: 991px) */
@media (max-width: 991px) {
  .main-navigation {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

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

  .hero-side-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .hero-side-card {
    border-bottom: none;
    padding-bottom: 0;
    background: var(--woodraze-bg-surface);
    padding: 0.85rem;
    border-radius: var(--woodraze-radius-md);
    border: 1px solid var(--woodraze-color-border);
  }

  .posts-grid,
  .posts-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .split-category-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .single-post-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Standard Mobile & Small Tablets (max-width: 767px) */
@media (max-width: 767px) {
  .top-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }

  .top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .top-bar-right {
    display: none;
  }

  .top-bar-date {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
  }

  .top-bar-date .date-text {
    white-space: nowrap;
  }

  .top-bar-ticker {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
  }

  .ticker-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    font-size: 0.78rem;
  }

  .header-inner {
    height: 70px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-description {
    font-size: 0.65rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .hero-side-column {
    grid-template-columns: 1fr;
  }

  .posts-grid,
  .posts-grid-4 {
    grid-template-columns: 1fr;
  }

  .category-block-featured {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .editorial-banner {
    padding: 2.5rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
  }

  .editorial-banner h2 {
    font-size: 1.65rem;
  }

  .editorial-banner p {
    font-size: 1rem;
  }

  .post-navigation-links {
    grid-template-columns: 1fr;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
}

/* Small Mobile Screens (max-width: 575px) */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .post-card-content {
    padding: 1.25rem;
  }

  .post-card-title {
    font-size: 1.15rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title::after {
    bottom: -0.5rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
  }
}

/* Ultra Small Screens (max-width: 380px) */
@media (max-width: 380px) {
  .site-title {
    font-size: 1.3rem;
  }

  .hero-side-card {
    flex-direction: column;
  }

  .hero-side-thumb {
    width: 100%;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
