/*
Theme Name: CleaningHome1
Theme URI: https://cleaninghome1.com
Author: CleaningHome1 Engineering
Author URI: https://cleaninghome1.com
Description: A pristine, typography-focused WordPress blog theme engineered for cleaninghome1.com. Built for supreme readability, light & dark mode, accessible slide-out side navigation, search discovery, 4-column widgetized footer, and zero-dependency lightning-fast performance.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
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: cleaninghome1
Tags: blog, clean, two-columns, custom-menu, dark-mode, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES & DESIGN TOKENS (LIGHT & DARK THEMES)
   ========================================================================== */
:root {
  --color-canvas: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-surface-subtle: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;
  
  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-faint: #94a3b8;
  
  --color-brand: #0d9488; /* Pure botanical teal */
  --color-brand-hover: #0f766e;
  --color-brand-light: #ccfbf1;
  --color-brand-subtle: rgba(13, 148, 136, 0.08);
  
  --font-family-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: 'Fraunces', Georgia, Cambria, "Times New Roman", Times, serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --container-max: 1200px;
  --container-prose: 72ch;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition-smooth: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"],
body.dark-mode {
  --color-canvas: #0b1120;
  --color-surface: #131d31;
  --color-surface-hover: #1e293b;
  --color-surface-subtle: #0f172a;
  --color-border: #1e293b;
  --color-border-subtle: #273549;
  
  --color-text-main: #f8fafc;
  --color-text-body: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-faint: #64748b;
  
  --color-brand: #2dd4bf;
  --color-brand-hover: #5eead4;
  --color-brand-light: rgba(45, 212, 191, 0.15);
  --color-brand-subtle: rgba(45, 212, 191, 0.12);
}

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

html {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-canvas);
  color: var(--color-text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

a:hover {
  color: var(--color-brand);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
}

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

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

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

input, button, textarea, select {
  font: inherit;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--color-brand);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   3. SITE LAYOUT & CONTAINERS
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   4. SITE HEADER (STICKY 3-ZONE CONTRACT)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

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

/* Zone 1: Drawer Toggle & Brand */
.brand-zone {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.drawer-trigger-btn:hover {
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.site-title-wordmark {
  font-family: var(--font-family-body);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-brand);
  display: flex;
  align-items: center;
}

.site-title-wordmark:hover {
  color: var(--color-brand-hover);
}

/* Zone 2: Primary Nav Links */
.primary-navigation {
  display: none;
}

@media (min-width: 900px) {
  .primary-navigation {
    display: block;
  }
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-list li a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text-body);
  padding: 0.4rem 0;
  position: relative;
}

.nav-links-list li a:hover {
  color: var(--color-brand);
}

.nav-links-list li.current-menu-item a,
.nav-links-list li a.active {
  color: var(--color-brand);
  font-weight: 600;
}

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

.search-modal-trigger,
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.search-modal-trigger:hover,
.theme-toggle-btn:hover {
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* ==========================================================================
   5. SLIDE-OUT SIDE NAVIGATION DRAWER (FOR CATEGORIZATION & MOBILE)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: 85vw;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.drawer-panel.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
}

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-main);
}

.drawer-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.drawer-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.drawer-nav {
  margin-bottom: 2rem;
}

.drawer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-body);
  transition: all var(--transition-smooth);
}

.drawer-nav ul li a:hover {
  background: var(--color-surface-hover);
  color: var(--color-brand);
  transform: translateX(4px);
}

.drawer-nav ul li.current-cat a {
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  font-weight: 600;
}

.drawer-footer-note {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   6. SEARCH MODAL DIALOG
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.search-modal-dialog {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -20px);
  width: 90%;
  max-width: 640px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal-dialog.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.search-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.search-modal-close-btn {
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
}

.search-modal-close-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-main);
}

.search-modal-body {
  padding: 1.5rem;
}

/* ==========================================================================
   7. SEARCH FORM STYLES
   ========================================================================== */
.search-form {
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0.5rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.search-input-wrap:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

.search-icon {
  margin-left: 0.75rem;
  margin-right: 0.5rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-field {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  font-size: 1rem;
  color: var(--color-text-main);
  outline: none;
}

.search-submit {
  background-color: var(--color-brand);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-smooth);
  flex-shrink: 0;
}

.search-submit:hover {
  background-color: var(--color-brand-hover);
}

.search-quick-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.quick-tags-label {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.search-quick-tags a {
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--color-text-body);
}

.search-quick-tags a:hover {
  background-color: var(--color-brand-subtle);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* ==========================================================================
   8. EDITORIAL BLOG FEED, HERO CARD & SIDEBAR (ZERO-PILL DISCIPLINE)
   ========================================================================== */
/* Featured Hero Article */
.featured-hero-section {
  margin-bottom: 3.5rem;
}

.featured-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth);
}

@media (min-width: 640px) {
  .featured-hero-card {
    padding: 2rem;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .featured-hero-card {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    gap: 2.5rem;
    padding: 2.25rem;
    align-items: stretch;
  }
}

.featured-hero-card:hover {
  box-shadow: var(--shadow-md);
}

.featured-hero-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-hover);
}

.featured-hero-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

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

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

.featured-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-hover);
  color: var(--color-brand);
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
}

.featured-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.featured-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.featured-hero-meta .meta-cat a,
.featured-hero-meta .meta-cat {
  color: var(--color-brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-hero-meta .meta-badge {
  color: #d97706;
  font-weight: 600;
}

.featured-hero-meta .meta-dot {
  opacity: 0.4;
}

.featured-hero-meta .meta-time {
  color: var(--color-text-muted);
}

.featured-hero-title {
  font-family: var(--font-family-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-top: 0;
  margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
  .featured-hero-title {
    font-size: 2.15rem;
  }
}

.featured-hero-title a {
  color: inherit;
  transition: color var(--transition-smooth);
}

.featured-hero-title a:hover {
  color: var(--color-brand);
}

.featured-hero-excerpt {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: auto;
}

.featured-hero-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background-color: var(--color-surface-hover);
  flex-shrink: 0;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-meta-info .author-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.2;
}

.author-meta-info .publish-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  margin-top: 0.2rem;
}

.btn-read-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.15rem;
  background-color: var(--color-brand);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-smooth), transform var(--transition-smooth);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-read-guide:hover {
  background-color: var(--color-brand-hover);
  color: #ffffff !important;
}

/* Homepage Main 2-Column Asymmetric Layout */
.homepage-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .homepage-main-grid {
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    gap: 3rem;
  }
}

.homepage-posts-column {
  min-width: 0;
}

.blog-sidebar-column {
  min-width: 0;
}

/* Section Header for Latest Cleaning Guides */
.posts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.posts-section-title {
  font-family: var(--font-family-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
}

.posts-section-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: monospace;
}

/* 2-Column Grid for Latest Guides */
.latest-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* Post Cards */
.post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-card-thumb-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-surface-hover);
  position: relative;
}

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

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

.post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-hover);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.post-card-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.post-card-content {
  margin-bottom: 0.75rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.post-card-meta .meta-cat a,
.post-card-meta .meta-cat {
  color: var(--color-brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.post-card-meta .meta-dot {
  opacity: 0.4;
}

.post-card-meta .meta-time {
  color: var(--color-text-muted);
}

.post-card-title {
  font-family: var(--font-family-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-main);
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: inherit;
  transition: color var(--transition-smooth);
}

.post-card-title a:hover {
  color: var(--color-brand);
}

.post-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.post-card-read-link {
  color: var(--color-brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-smooth);
}

.post-card-read-link:hover {
  text-decoration: underline;
}

/* Sidebar Widgets & WordPress Core Widgets */
.main-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-blog-sidebar .widget,
.main-blog-sidebar .sidebar-widget-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-smooth);
}

.main-blog-sidebar .widget .widget-title,
.main-blog-sidebar .widget-title,
.sidebar-widget-card h3 {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.main-blog-sidebar .widget ul,
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-blog-sidebar .widget ul li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
  color: var(--color-text-body);
}

.main-blog-sidebar .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.main-blog-sidebar .widget ul li a {
  color: var(--color-text-main);
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.main-blog-sidebar .widget ul li a:hover {
  color: var(--color-brand);
}

/* WordPress Core Search Widget in Sidebar */
.main-blog-sidebar .widget_search .screen-reader-text,
.widget_search .screen-reader-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.main-blog-sidebar .widget_search form,
.widget_search form,
.main-blog-sidebar .search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.main-blog-sidebar .widget_search input[type="search"],
.widget_search input[type="search"],
.main-blog-sidebar .search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-smooth);
}

.main-blog-sidebar .widget_search input[type="search"]:focus,
.widget_search input[type="search"]:focus,
.main-blog-sidebar .search-field:focus {
  border-color: var(--color-brand);
}

.main-blog-sidebar .widget_search button,
.main-blog-sidebar .widget_search input[type="submit"],
.widget_search button,
.widget_search input[type="submit"],
.main-blog-sidebar .search-submit {
  padding: 0.65rem 1.15rem;
  background-color: var(--color-brand);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-smooth);
}

.main-blog-sidebar .widget_search button:hover,
.main-blog-sidebar .widget_search input[type="submit"]:hover,
.widget_search button:hover,
.widget_search input[type="submit"]:hover,
.main-blog-sidebar .search-submit:hover {
  background-color: var(--color-brand-hover);
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-brand);
  display: inline-block;
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   9. SINGLE ARTICLE VIEW & PROSE TYPOGRAPHY
   ========================================================================== */
.single-article-header {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.prose-reading {
  max-width: var(--container-prose);
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-text-body);
}

.prose-reading h2 {
  font-size: 1.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-reading h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-reading p {
  margin-bottom: 1.5rem;
}

.prose-reading ul,
.prose-reading ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.prose-reading li {
  margin-bottom: 0.5rem;
}

.prose-reading blockquote {
  border-left: 4px solid var(--color-brand);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose-reading img {
  border-radius: var(--radius-lg);
  margin: 2rem auto;
}

/* Author Spotlight Box */
.author-profile-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

/* Comments Area */
.comments-area {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

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

.comment-body {
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   10. SITE FOOTER & 4-COLUMN WIDGET AREA
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-widget .widget-title,
.footer-col .widget-title {
  font-family: var(--font-family-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-links-list li a {
  color: var(--color-text-muted);
}

.footer-links-list li a:hover {
  color: var(--color-brand);
}

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

.newsletter-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-hover);
  color: var(--color-text-main);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-brand);
}

.newsletter-submit-btn {
  background-color: var(--color-brand);
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-smooth);
}

.newsletter-submit-btn:hover {
  background-color: var(--color-brand-hover);
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-utility-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   11. PAGINATION & NAVIGATION
   ========================================================================== */
.posts-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.posts-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-body);
}

.posts-pagination .page-numbers.current {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
}

.posts-pagination .page-numbers:hover:not(.current) {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* ==========================================================================
   12. COMPLETE UTILITY CLASSES (NATIVE VANILLA CSS REPLACEMENTS)
   ========================================================================== */
/* Display & Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-start { align-items: flex-start; }
  .sm\:text-left { text-align: left; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-start { align-items: flex-start; }
  .md\:text-left { text-align: left; }
  .md\:text-right { text-align: right; }
  .md\:p-12 { padding: 3rem; }
  .md\:w-36 { width: 9rem; }
  .md\:h-36 { height: 9rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:justify-start { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* Padding & Spacing Utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

@media (min-width: 640px) {
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
}

@media (min-width: 768px) {
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-8 { padding: 2rem; }
}

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.gap-10 { gap: 2.5rem; }

.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }

/* Dimensions & Overflow */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

/* Borders & Radius */
.border { border: 1px solid var(--color-border); }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.border-y { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.border-slate-100 { border-color: var(--color-border-subtle); }
.border-slate-200 { border-color: var(--color-border); }
.border-slate-800 { border-color: var(--color-border); }
.border-teal-500\/20 { border-color: rgba(13, 148, 136, 0.2); }

.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.shadow-sm { box-shadow: var(--shadow-sm); }

/* Typography Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.font-serif { font-family: var(--font-family-serif); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Colors */
.text-brand { color: var(--color-brand); }
.hover\:text-brand:hover { color: var(--color-brand); }
.text-slate-900 { color: var(--color-text-main); }
.text-slate-700 { color: var(--color-text-body); }
.text-slate-600 { color: var(--color-text-muted); }
.text-slate-500 { color: var(--color-text-muted); }
.text-slate-400 { color: var(--color-text-faint); }
.text-slate-300 { color: var(--color-text-muted); }
.text-slate-100 { color: var(--color-text-main); }
.text-white { color: #ffffff; }
.text-amber-600 { color: #d97706; }
.text-teal-600 { color: var(--color-brand); }

.bg-white { background-color: var(--color-surface); }
.bg-slate-50 { background-color: var(--color-surface); }
.bg-slate-100 { background-color: var(--color-surface-hover); }
.bg-slate-800 { background-color: var(--color-surface-hover); }
.bg-slate-900 { background-color: var(--color-surface); }
.bg-teal-50 { background-color: var(--color-surface-hover); }
.bg-teal-600 { background-color: var(--color-brand); }
.hover\:bg-teal-700:hover { background-color: var(--color-brand-hover); }

/* Text Clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover\:underline:hover { text-decoration: underline; }
.transition-colors { transition: color var(--transition-smooth), background-color var(--transition-smooth); }
.transition-transform { transition: transform var(--transition-smooth); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
