/* ==========================================================================
   CozyCraftDaily.com — Master Design System
   A premium, warm, editorial hygge DIY & Home Decor web application
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ============================================
   1. CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* HSL & HEX Curated Warm Palette */
  --color-cream: #FDF8F4;
  --color-linen: #F5EDE3;
  --color-terracotta: #C67B5C;
  --color-terracotta-dark: #A8624A;
  --color-terracotta-light: rgba(198, 123, 92, 0.15);
  --color-espresso: #3D2B1F;
  --color-espresso-light: #5A4435;
  --color-dusty-rose: #D4A0A0;
  --color-dusty-rose-light: rgba(212, 160, 160, 0.2);
  --color-sage: #A8B5A2;
  --color-sage-dark: #7A8E73;
  --color-sage-light: rgba(168, 181, 162, 0.2);
  --color-gold: #C9A96E;
  --color-gold-light: rgba(201, 169, 110, 0.2);
  --color-white: #FFFFFF;
  --color-overlay: rgba(61, 43, 31, 0.55);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevations / Box Shadows */
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.05);
  --shadow-md: 0 6px 20px rgba(61, 43, 31, 0.08);
  --shadow-lg: 0 12px 36px rgba(61, 43, 31, 0.12);
  --shadow-xl: 0 20px 50px rgba(61, 43, 31, 0.16);
  --shadow-glow: 0 8px 25px rgba(198, 123, 92, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 76px;
  --container-max: 1240px;
  --content-max: 760px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-espresso);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: var(--color-espresso);
}

input[type="text"], input[type="email"], input[type="search"], textarea, select {
  color: #2c221e !important;
  background-color: #ffffff;
}

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

a:hover {
  color: var(--color-terracotta-dark);
}

ul, ol {
  list-style: none;
}

/* ============================================
   3. Editorial Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-espresso);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h4 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

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

strong {
  font-weight: 600;
}

blockquote, .pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.6;
  color: var(--color-espresso-light);
  border-left: 4px solid var(--color-terracotta);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--color-linen);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   4. Reading Progress Bar
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10001;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-dusty-rose), var(--color-gold));
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(198, 123, 92, 0.5);
}

/* ============================================
   5. Sticky Glassmorphism Header & Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 248, 244, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(61, 43, 31, 0.08);
  transition: var(--transition);
  min-height: var(--header-height);
  height: auto;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  min-height: 64px;
  box-shadow: var(--shadow-md);
  background: rgba(253, 248, 244, 0.96);
}

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

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.02);
  color: var(--color-terracotta);
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(198, 123, 92, 0.3));
  display: flex;
  align-items: center;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-terracotta);
}

.logo-text {
  letter-spacing: -0.02em;
}

.logo .highlight {
  color: var(--color-terracotta);
  font-style: italic;
}

/* Primary Navigation (.main-nav & .primary-nav) */
.main-nav, .primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link, .primary-nav a {
  position: relative;
  color: var(--color-espresso);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: var(--space-xs) 0;
  transition: var(--transition);
}

.nav-link::after, .primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after,
.primary-nav a:hover::after, .primary-nav a.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active,
.primary-nav a:hover, .primary-nav a.active {
  color: var(--color-terracotta);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.search-toggle {
  background: var(--color-linen);
  border: 1px solid rgba(61, 43, 31, 0.08);
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--radius-full);
  color: var(--color-espresso);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.search-toggle:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

/* Mobile Toggle (.mobile-menu-toggle & .hamburger) */
.mobile-menu-toggle, .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1001;
  width: 44px;
  height: 44px;
}

.hamburger-bar, .hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-espresso);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1),
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: var(--color-terracotta);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2),
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3),
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: var(--color-terracotta);
}

/* Mobile Navigation Overlay */
.mobile-menu-overlay, .mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(253, 248, 244, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

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

.mobile-menu-content {
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.mobile-menu-close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-xl);
  z-index: 1001;
  background: var(--color-linen);
  border: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-espresso);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-list a, .mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-espresso);
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.mobile-nav-list a:hover, .mobile-nav-list a.active,
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-terracotta);
  transform: scale(1.05);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(61, 43, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

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

.search-overlay-inner {
  width: 90%;
  max-width: 650px;
  position: relative;
  background: var(--color-cream);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-linen);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-espresso);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.search-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-linen);
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  background: var(--color-white);
  transition: var(--transition);
  color: var(--color-espresso);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(198, 123, 92, 0.2);
}

/* ============================================
   Search Results & Premium Modal UI
   ============================================ */
.search-results {
  margin-top: var(--space-lg);
  max-height: 55vh;
  overflow-y: auto;
  text-align: left;
  padding-right: var(--space-xs);
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
  width: 6px;
}
.search-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
}
.search-results::-webkit-scrollbar-thumb {
  background: var(--color-terracotta);
  border-radius: var(--radius-full);
}

/* Empty State / Popular Tags */
.search-empty-state {
  padding: var(--space-lg) 0;
  text-align: center;
}
.search-hint-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.search-popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.search-tag-btn {
  background: var(--color-white);
  border: 1px solid var(--color-linen);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-espresso);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.search-tag-btn:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* No Results State */
.search-no-results {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  color: var(--color-warm-gray);
}
.no-results-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}
.no-results-text {
  font-size: 1.1rem;
  color: var(--color-espresso);
  margin-bottom: var(--space-xs);
}
.no-results-sub {
  font-size: 0.9rem;
}

/* Results Header */
.search-results-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-linen);
}

/* Result Cards List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.8rem;
  background: var(--color-white);
  border: 1px solid var(--color-linen);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-result-card:hover {
  border-color: var(--color-terracotta);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  background: #fffdfa;
}

.search-result-img-wrapper {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-linen);
}

.search-result-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.search-result-card:hover .search-result-img-wrapper img {
  transform: scale(1.08);
}

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

.search-result-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.search-result-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-arrow {
  font-size: 1.2rem;
  color: var(--color-terracotta);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
  padding-right: 0.5rem;
}

.search-result-card:hover .search-result-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .search-result-desc {
    display: none;
  }
  .search-result-img-wrapper {
    width: 55px;
    height: 55px;
  }
}

/* ============================================
   6. Breadcrumbs
   ============================================ */
.breadcrumb-nav, .breadcrumb-container {
  padding: 1.25rem 0 0.5rem;
}

.breadcrumb, .breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-espresso-light);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li, .breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after,
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(61, 43, 31, 0.35);
  line-height: 1;
}

.breadcrumb a, .breadcrumb-list a {
  color: var(--color-espresso-light);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover, .breadcrumb-list a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"], .breadcrumb .current,
.breadcrumb-list [aria-current="page"], .breadcrumb-list .current {
  color: var(--color-terracotta);
  font-weight: 600;
}

/* ============================================
   7. Hero Section & Page Banners
   ============================================ */
.hero-section, .hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-espresso);
}

.hero-overlay, .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-section::after, .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 43, 31, 0.7) 0%,
    rgba(198, 123, 92, 0.45) 50%,
    rgba(61, 43, 31, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--color-white);
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-lg);
  color: var(--color-cream);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-heading, .hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.hero-subtext, .hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Page Banner (For Categories & About) */
.page-banner {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: linear-gradient(135deg, rgba(198,123,92,0.12) 0%, rgba(212,160,160,0.18) 100%);
  border-bottom: 1px solid rgba(198, 123, 92, 0.15);
  position: relative;
  overflow: hidden;
}

.banner-content {
  max-width: 780px;
  margin: 0 auto;
}

.banner-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  background: var(--color-white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.banner-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-espresso);
}

.banner-desc {
  font-size: 1.15rem;
  color: var(--color-espresso-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   8. Blog Cards & Grids
   ============================================ */
.featured-section, .categories-section, .latest-section, .related-posts-section, .section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-espresso);
}

.header-left {
  text-align: left;
}

/* Grid Containers */
.featured-grid, .card-grid, .blog-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  align-items: stretch;
}

@media (min-width: 992px) {
  .latest-section .blog-masonry-grid > article:nth-child(1) {
    grid-column: span 2;
  }
  .latest-section .blog-masonry-grid > article:nth-child(1) .card-image-wrapper {
    aspect-ratio: 16 / 9;
  }
}

/* Card Styling */
.blog-card, .featured-card, .card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 43, 31, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover, .featured-card:hover, .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 123, 92, 0.2);
}

.card-image-wrapper, .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-linen);
}

.card-image-wrapper img, .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-image-wrapper img,
.featured-card:hover .card-image-wrapper img,
.card:hover .card-image img {
  transform: scale(1.06);
}

/* Category Badges / Pills */
.category-badge, .badge, .card-badge {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: var(--transition);
  text-decoration: none;
  margin: 0.25rem 0.35rem 0.25rem 0;
  vertical-align: middle;
}

.card-image-wrapper .category-badge,
.card-image-wrapper .badge,
.card-image .badge,
.card-image .category-badge,
.featured-card .category-badge,
.blog-card .category-badge,
.post-featured-image .category-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  margin: 0;
}

.badge-rose {
  background: rgba(212, 160, 160, 0.9);
  color: #3D2B1F;
}

.badge-sage {
  background: rgba(168, 181, 162, 0.9);
  color: #2D3A28;
}

.badge-terracotta {
  background: rgba(198, 123, 92, 0.9);
  color: var(--color-white);
}

.badge-gold {
  background: rgba(201, 169, 110, 0.9);
  color: #3D2B1F;
}

.category-badge:hover, .badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Card Body Content */
.card-content, .card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-espresso-light);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.meta-separator {
  color: var(--color-dusty-rose);
  font-weight: 700;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.35;
}

.card-title a {
  color: var(--color-espresso);
  transition: var(--transition-fast);
}

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

.card-excerpt {
  font-size: 0.95rem;
  color: var(--color-espresso-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.read-more, .card-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-terracotta);
  letter-spacing: 0.02em;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.read-more:hover, .card-read-more:hover {
  color: var(--color-terracotta-dark);
  transform: translateX(4px);
}

/* ============================================
   9. Categories Section (Home Grid)
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.category-box {
  background: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(61, 43, 31, 0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.category-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--color-terracotta);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.cat-icon svg {
  width: 38px;
  height: 38px;
  stroke: var(--color-terracotta);
}

.category-box:hover .cat-icon {
  transform: scale(1.15) rotate(5deg);
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: var(--space-xs);
}

.cat-count {
  font-size: 0.85rem;
  color: var(--color-terracotta);
  font-weight: 600;
}

/* ============================================
   10. Newsletter Section
   ============================================ */
.newsletter-section, .newsletter-cta {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-dusty-rose) 100%);
  padding: var(--space-4xl) var(--space-xl);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: var(--space-3xl) auto;
  max-width: var(--container-max);
  box-shadow: var(--shadow-lg);
}

.newsletter-section::before, .newsletter-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}

.newsletter-title, .newsletter-cta h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

.newsletter-desc, .newsletter-cta p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: var(--space-sm);
}

.input-group input[type="email"], .newsletter-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  background: #ffffff !important;
  color: #2c221e !important;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.input-group input[type="email"]::placeholder, .newsletter-form input[type="email"]::placeholder {
  color: #6b5e55 !important;
  opacity: 1;
}

.input-group input[type="email"]:focus, .newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background: #ffffff !important;
  color: #2c221e !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.form-disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: var(--space-xs);
}

.newsletter-success {
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-terracotta);
  padding: var(--space-md);
  border-radius: var(--radius-full);
  margin-top: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.newsletter-success.show {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

/* ============================================
   11. Blog Post Article Styling
   ============================================ */
.blog-post-container, .article-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-4xl);
}

.post-header, .article-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.post-title, .article-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: var(--space-md) 0 var(--space-lg);
  line-height: 1.2;
}

.post-meta, .article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-espresso-light);
  opacity: 0.85;
}

.author strong {
  color: var(--color-espresso);
}

.post-featured-image, .article-featured-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-md);
}

.post-featured-image img, .article-featured-image img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Editorial Body Content */
.post-content, .article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--color-espresso);
}

.post-content .lead, .article-body .lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-terracotta-dark);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.post-content h2, .article-body h2 {
  font-size: 1.85rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-espresso);
  position: relative;
  padding-bottom: 0.5rem;
}

.post-content h2::after, .article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-terracotta);
  border-radius: 2px;
}

.post-content h3, .article-body h3 {
  font-size: 1.4rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.post-content p, .article-body p {
  margin-bottom: var(--space-lg);
}

.post-content ul, .article-body ul {
  margin: var(--space-lg) 0 var(--space-xl);
  padding-left: var(--space-md);
}

.post-content ul li, .article-body ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-content ul li::before, .article-body ul li::before {
  content: '◆';
  color: var(--color-terracotta);
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 0.65rem;
}

.post-content ol, .article-body ol {
  margin: var(--space-lg) 0 var(--space-xl);
  padding-left: var(--space-xl);
  list-style: decimal;
}

.post-content ol li, .article-body ol li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.post-content ol li::marker, .article-body ol li::marker {
  color: var(--color-terracotta);
  font-weight: 700;
}

.post-content a, .article-body a {
  color: var(--color-terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(198, 123, 92, 0.4);
  text-underline-offset: 4px;
  transition: var(--transition-fast);
}

.post-content a:hover, .article-body a:hover {
  text-decoration-color: var(--color-terracotta);
  background: rgba(198, 123, 92, 0.1);
  border-radius: 4px;
}

/* Tags & Share Footer */
.post-footer-tags, .article-tags {
  margin: var(--space-3xl) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-linen);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.tags, .share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.share-buttons a {
  padding: 0.4rem 0.9rem;
  background: var(--color-linen);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-espresso);
  transition: var(--transition);
  text-decoration: none;
}

.share-buttons a:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================
   12. Footer
   ============================================ */
.site-footer {
  background: var(--color-linen);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
  border-top: 1px solid rgba(61, 43, 31, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  max-width: var(--container-max);
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl);
}

.brand-col .logo {
  margin-bottom: var(--space-md);
}

.footer-bio, .footer-brand p {
  font-size: 0.95rem;
  color: var(--color-espresso-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.social-links, .social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icon, .social-icons a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-espresso);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon svg, .social-icons a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.social-icon:hover, .social-icons a:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: var(--space-lg);
}

.footer-nav li, .footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-nav a, .footer-links a {
  font-size: 0.95rem;
  color: var(--color-espresso-light);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-nav a:hover, .footer-links a:hover {
  color: var(--color-terracotta);
  padding-left: 6px;
}

.newsletter-col .footer-text {
  font-size: 0.9rem;
  color: var(--color-espresso-light);
  margin-bottom: var(--space-md);
}

.mini-newsletter-form, .footer-newsletter-form {
  display: flex;
  gap: var(--space-xs);
}

.mini-newsletter-form input, .footer-newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(61, 43, 31, 0.2);
  border-radius: var(--radius-full);
  background: #ffffff !important;
  color: #2c221e !important;
  font-size: 0.88rem;
}

.mini-newsletter-form input::placeholder, .footer-newsletter-form input::placeholder {
  color: #6b5e55 !important;
  opacity: 1;
}

.mini-newsletter-form input:focus, .footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background: #ffffff !important;
  color: #2c221e !important;
  box-shadow: 0 0 0 3px rgba(198, 123, 92, 0.15);
}

.mini-newsletter-form button, .footer-newsletter-form button {
  padding: 0.6rem 1.2rem;
  background: var(--color-terracotta);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.mini-newsletter-form button:hover, .footer-newsletter-form button:hover {
  background: var(--color-terracotta-dark);
}

/* ============================================
   VIP CRAFTERS SIDEBAR CARD (100% FIXED & PREMIUM)
   ============================================ */
.sidebar-card.newsletter-sidebar,
.vip-crafters-card {
  background: linear-gradient(145deg, #241f1e 0%, #3a322f 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 2.2rem 1.8rem !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18) !important;
  position: relative !important;
  overflow: hidden !important;
}
.sidebar-card.newsletter-sidebar::before,
.vip-crafters-card::before {
  content: '' !important;
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 140px !important;
  height: 140px !important;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.28) 0%, rgba(217, 119, 87, 0) 70%) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}
.newsletter-sidebar .sidebar-card-title,
.vip-crafters-card .sidebar-card-title {
  color: #ffffff !important;
  border-bottom: 2px solid #d97757 !important;
  padding-bottom: 0.8rem !important;
  margin-bottom: 1.2rem !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  letter-spacing: 0.3px !important;
}
.newsletter-sidebar .sidebar-card-title svg,
.vip-crafters-card .sidebar-card-title svg {
  color: #d97757 !important;
  flex-shrink: 0 !important;
}
.newsletter-sidebar p,
.vip-crafters-card .vip-desc {
  font-size: 0.94rem !important;
  color: #e3dfe8 !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
  opacity: 0.95 !important;
}
.newsletter-sidebar form,
.vip-crafters-card form,
.sidebar-vip-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  width: 100% !important;
  margin: 0 !important;
}
.vip-input-wrapper {
  width: 100% !important;
  display: block !important;
}
.newsletter-sidebar input[type="email"],
.vip-crafters-card input[type="email"],
.sidebar-vip-form input[type="email"] {
  width: 100% !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.newsletter-sidebar input[type="email"]::placeholder,
.vip-crafters-card input[type="email"]::placeholder,
.sidebar-vip-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
}
.newsletter-sidebar input[type="email"]:focus,
.vip-crafters-card input[type="email"]:focus,
.sidebar-vip-form input[type="email"]:focus {
  border-color: #d97757 !important;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.35) !important;
}
.newsletter-sidebar button,
.vip-crafters-card button,
.sidebar-vip-form button,
.vip-submit-btn {
  width: 100% !important;
  padding: 0.88rem 1.2rem !important;
  border-radius: 12px !important;
  background: #d97757 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.4px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.newsletter-sidebar button:hover,
.vip-crafters-card button:hover,
.sidebar-vip-form button:hover,
.vip-submit-btn:hover {
  background: #e08868 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.5) !important;
}
.newsletter-sidebar button:active,
.vip-crafters-card button:active,
.sidebar-vip-form button:active,
.vip-submit-btn:active {
  transform: translateY(0) !important;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl) 0;
  border-top: 1px solid rgba(61, 43, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-espresso-light);
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.bottom-links .sep {
  opacity: 0.4;
}

/* ============================================
   13. Buttons & Interactive Elements
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(198, 123, 92, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.btn-secondary:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-terracotta);
  border-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--color-linen);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   14. Forms & Contact Page
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-espresso);
}

.form-input, .form-textarea, select.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--color-linen);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 1rem;
  transition: var(--transition);
  color: var(--color-espresso);
}

.form-input:focus, .form-textarea:focus, select.form-input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(198, 123, 92, 0.15);
}

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

/* ============================================
   15. Utilities & Micro-Animations
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

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

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-terracotta);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(198, 123, 92, 0.4);
}

/* Pinterest Pin-It Button Overlay */
.pin-it-overlay, .pin-wrapper {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.post-featured-image:hover .pin-it-overlay,
.card-image-wrapper:hover .pin-it-overlay,
.pin-wrapper:hover .pin-button {
  opacity: 1;
  visibility: visible;
}

.pin-it-overlay button {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pin-it-overlay button:hover {
  transform: scale(1.08);
}

/* ============================================
   16. Responsive Breakpoints
   ============================================ */

/* Tablet & Smaller (Max 991px) */
@media (max-width: 991.98px) {
  .featured-grid, .card-grid, .blog-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

/* Mobile Devices (Max 767px) */
@media (max-width: 767.98px) {
  :root {
    --header-height: 68px;
  }

  .main-nav, .primary-nav {
    display: none;
  }

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

  .featured-grid, .card-grid, .blog-masonry-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .hero-section, .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--space-3xl) var(--space-md);
  }

  .input-group, .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .post-footer-tags, .article-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   17. Print Styles
   ============================================ */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header, .site-footer, .back-to-top,
  .mobile-menu-toggle, .hamburger, .mobile-menu-overlay,
  .search-overlay, .newsletter-section, .reading-progress,
  .pin-it-overlay {
    display: none !important;
  }

  body { font-size: 12pt; line-height: 1.6; }
  .container { max-width: 100%; padding: 0; }
}

/* Categories Page Cards */
.category-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  text-decoration: none;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: white;
  transition: padding-bottom 0.4s ease;
}
.category-card:hover .category-overlay {
  padding-bottom: 3rem;
}

/* ============================================
   24. Premium About Page Styles
   ============================================ */
.about-hero-section {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--color-bg);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}
.about-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-family: var(--font-heading);
  color: var(--color-espresso);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}
.about-hero-text .lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-espresso-light);
  margin-bottom: var(--space-lg);
}
.about-hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-terracotta);
}
.about-hero-badge h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-espresso);
}
.about-hero-badge p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-warm-gray);
}

/* Stat Counter Section */
.about-stats-strip {
  background: var(--color-espresso);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  margin: var(--space-2xl) 0;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 0.3rem;
  display: block;
}
.stat-label {
  font-size: 0.95rem;
  color: #dcd3cb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Philosophy Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.philosophy-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-terracotta);
}
.philosophy-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}
.philosophy-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--color-espresso);
}
.philosophy-card p {
  color: var(--color-warm-gray);
  line-height: 1.6;
  margin: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.team-member-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.team-photo-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-linen);
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-member-card:hover .team-photo-wrap img {
  transform: scale(1.06);
}
.team-info {
  padding: 1.5rem;
}
.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--color-espresso);
}
.team-role {
  font-size: 0.85rem;
  color: var(--color-terracotta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  display: block;
}
.team-bio {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   25. Premium Contact Page Styles
   ============================================ */
.contact-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
  align-items: start;
}
.contact-info-col {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
}
.contact-info-col h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-espresso);
  border-bottom: 2px solid var(--color-linen);
  padding-bottom: var(--space-sm);
}
.touchpoint-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.touchpoint-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.touchpoint-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.touchpoint-text h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  color: var(--color-espresso);
}
.touchpoint-text p, .touchpoint-text a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  text-decoration: none;
}
.touchpoint-text a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

/* Media Kit Promo Box */
.media-kit-box {
  background: linear-gradient(135deg, var(--color-linen) 0%, #f4eae1 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-terracotta);
  margin-top: 2rem;
}
.media-kit-box h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: var(--color-espresso);
}
.media-kit-box p {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  line-height: 1.5;
}

/* Premium Form Card */
.contact-form-col {
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-md);
  position: relative;
}
.contact-form-header {
  margin-bottom: 2rem;
}
.contact-form-header h2 {
  font-size: 1.8rem;
  color: var(--color-espresso);
  margin: 0 0 0.5rem 0;
}
.contact-form-header p {
  color: var(--color-warm-gray);
  margin: 0;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group {
  margin-bottom: 1.3rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-espresso);
  background: #faf7f5;
  border: 1.5px solid #e8ded4;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(198, 123, 92, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--color-warm-gray);
  margin-top: 0.4rem;
}

/* FAQ Accordion */
.contact-faq-section {
  margin: var(--space-3xl) 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.faq-item {
  background: var(--color-white);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
}
.faq-item h4 {
  font-size: 1.1rem;
  color: var(--color-espresso);
  margin: 0 0 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-item p {
  margin: 0;
  color: var(--color-warm-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   26. Premium Privacy Policy & Legal Styles
   ============================================ */
.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0 var(--space-3xl);
  align-items: start;
}
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--color-white);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
}
.legal-sidebar h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-terracotta);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-linen);
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-toc-list a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-espresso);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.legal-toc-list a:hover {
  background: var(--color-linen);
  color: var(--color-terracotta);
  transform: translateX(4px);
}
.legal-content-body {
  background: var(--color-white);
  padding: 3rem 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--color-espresso);
}
.legal-content-body h2 {
  font-size: 1.6rem;
  color: var(--color-espresso);
  margin: 2.5rem 0 1rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-linen);
}
.legal-content-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content-body p, .legal-content-body li {
  color: var(--color-warm-gray);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.legal-content-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-callout {
  background: #faf7f5;
  border-left: 4px solid var(--color-terracotta);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}
.legal-callout h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: var(--color-espresso);
}
.legal-callout p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .about-hero-grid,
  .contact-portal-grid,
  .legal-layout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .legal-sidebar {
    position: static;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .legal-content-body,
  .contact-form-col {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   22. Reading Progress Bar & TOC Scrollspy
   ============================================ */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta) 0%, #d4a373 50%, #C9A96E 100%);
  z-index: 10000;
  width: 0%;
  transition: width 0.08s linear;
  box-shadow: 0 1px 4px rgba(198, 123, 92, 0.4);
}

.sidebar-sticky-box ul a.active-toc,
.legal-toc-list a.active-toc {
  color: var(--color-terracotta) !important;
  font-weight: 700 !important;
  padding-left: 0.5rem;
  border-left: 3px solid var(--color-terracotta);
  transition: all 0.25s ease;
}

/* ============================================
   23. Hover Pin It Button & Lightbox Gallery
   ============================================ */
.img-hover-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-pin-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #E60023;
  color: #white !important;
  color: white;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: none;
  text-decoration: none;
}

.img-hover-wrap:hover .img-pin-btn {
  opacity: 1;
  transform: translateY(0);
}

.img-pin-btn:hover {
  background: #bd001c;
  transform: scale(1.05) !important;
}

#ccd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 18, 0.94);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 2rem;
}

#ccd-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#ccd-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ccd-lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ============================================
   24. Interactive DIY Checklist & Shopping Toolbar
   ============================================ */
.diy-checklist-toolbar {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1.5rem 0;
  flex-wrap: wrap;
  padding: 0.8rem 1.2rem;
  background: #faf7f5;
  border: 1px solid #e8ded4;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: space-between;
}

.diy-checklist-title {
  font-weight: 700;
  color: var(--color-espresso);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.diy-checklist-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-checklist {
  background: white;
  border: 1px solid var(--color-terracotta);
  color: var(--color-terracotta);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-checklist:hover {
  background: var(--color-terracotta);
  color: white;
}

.interactive-checklist {
  list-style: none !important;
  padding-left: 0 !important;
}

.interactive-checklist li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.8rem !important;
  margin-bottom: 0.6rem !important;
  background: #fff;
  border: 1px solid #f0e9e2;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.interactive-checklist li:hover {
  border-color: #d4c5b9;
  background: #fdfbf9;
}

.interactive-checklist input[type="checkbox"] {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--color-terracotta);
  cursor: pointer;
}

.interactive-checklist li.checked-item {
  text-decoration: line-through;
  color: #999;
  background: #f8f6f4;
  border-color: #eae3de;
}

/* ============================================
   25. @media print - Magazine Pocket Guide Layout
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .sidebar-column,
  .back-to-top,
  #reading-progress-bar,
  .diy-checklist-toolbar,
  .workshop-mode-launch-btn,
  .cure-timer-btn,
  .community-build-portal,
  .hidden-pinterest-pins,
  .related-projects-section,
  .post-footer-cta,
  .search-overlay,
  .mobile-menu-overlay,
  .img-pin-btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: #111 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .container,
  .post-layout-grid,
  .post-main-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .post-hero-image {
    max-height: 280px !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
    border-radius: 0 !important;
  }

  .post-hero-image img {
    max-height: 280px !important;
    object-fit: cover !important;
  }

  h1 { font-size: 20pt !important; margin-bottom: 0.5rem !important; }
  h2 { font-size: 15pt !important; margin-top: 1.5rem !important; border-bottom: 1px solid #ccc; padding-bottom: 0.3rem; }
  h3 { font-size: 12pt !important; margin-top: 1rem !important; }

  .post-content img {
    max-height: 220px !important;
    width: auto !important;
    page-break-inside: avoid;
  }

  .interactive-checklist li {
    padding-left: 1.5rem !important;
    border: none !important;
    margin-bottom: 0.3rem !important;
  }

  .interactive-checklist input[type="checkbox"] {
    display: none !important;
  }

  .interactive-checklist li::before {
    content: "☐ ";
    position: absolute;
    left: 0;
    color: #333;
  }
}

/* ============================================
   26. Guided Workshop Focus Mode
   ============================================ */
.workshop-mode-launch-btn {
  background: linear-gradient(135deg, var(--color-espresso) 0%, #3a2b24 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  margin: 1rem 0 1.5rem 0;
  transition: all 0.3s ease;
}

.workshop-mode-launch-btn:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#workshop-mode-modal {
  position: fixed;
  inset: 0;
  background: #181210;
  color: #f5ede3;
  z-index: 100000;
  display: none;
  flex-direction: column;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow-y: auto;
}

#workshop-mode-modal.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.workshop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: #241b18;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.workshop-header-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: white;
  margin: 0;
}

.workshop-step-counter {
  font-size: 0.95rem;
  color: var(--color-terracotta);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.workshop-close-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.workshop-close-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.workshop-slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.workshop-slide-img {
  max-height: 420px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  object-fit: contain;
}

.workshop-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.workshop-slide-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #dcd3cb;
  line-height: 1.7;
  max-width: 750px;
}

.workshop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: #241b18;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-workshop-nav {
  background: var(--color-terracotta);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-workshop-nav:hover:not(:disabled) {
  background: #d97757;
  transform: translateY(-2px);
}

.btn-workshop-nav:disabled {
  background: #443530;
  color: #77655f;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   27. Interactive Cure & Wait Time Tracker
   ============================================ */
.cure-timer-btn {
  background: #faf7f5;
  border: 1.5px solid var(--color-terracotta);
  color: var(--color-espresso);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.cure-timer-btn:hover {
  background: var(--color-terracotta);
  color: white;
  box-shadow: var(--shadow-md);
}

.cure-timer-btn.running {
  background: #fff8eb;
  border-color: #f59e0b;
  color: #b45309;
  animation: timerPulse 2s infinite;
}

@keyframes timerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.cure-timer-btn.done {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

/* ============================================
   28. 3-Question DIY Project Finder
   ============================================ */
.project-finder-section {
  background: linear-gradient(135deg, #faf5f0 0%, #f3ece4 100%);
  border: 1px solid #e6ded6;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 3rem auto;
  max-width: 880px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.project-finder-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-espresso);
  margin: 0.5rem 0 0.8rem 0;
}

.finder-step-container {
  margin: 2.5rem 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finder-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: 100%;
}

.finder-opt-btn {
  background: white;
  border: 2px solid #e2d7cc;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-espresso);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.finder-opt-btn:hover, .finder-opt-btn.selected {
  border-color: var(--color-terracotta);
  background: #fffaf6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-terracotta);
}

.finder-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

/* ============================================
   29. Community Build Portal & Polaroid Preview
   ============================================ */
.community-build-portal {
  background: #faf7f5;
  border: 1.5px dashed var(--color-terracotta);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 3.5rem 0 2rem 0;
  text-align: center;
}

.community-build-portal h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-espresso);
  margin-bottom: 0.5rem;
}

.polaroid-preview-area {
  margin-top: 1.8rem;
  display: none;
}

.polaroid-preview-area.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.polaroid-card {
  background: white;
  padding: 14px 14px 45px 14px;
  box-shadow: 0 15px 35px rgba(44, 34, 30, 0.18);
  border-radius: 4px;
  transform: rotate(-2deg);
  max-width: 320px;
  margin: 0 auto 1.5rem auto;
  transition: transform 0.3s ease;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}

.polaroid-caption {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-espresso);
  margin-top: 14px;
  font-weight: 600;
}

/* ============================================
   18. Glassmorphism & Depth Enhancements
   ============================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.depth-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.depth-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* ============================================
   19. Reading Studio Mode (Okuma Odası)
   ============================================ */
.reading-studio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-linen, #f5ede3);
  color: var(--color-espresso, #241b18);
  border: 1px solid rgba(198, 123, 92, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}
.reading-studio-toggle-btn:hover {
  background: var(--color-terracotta, #c67b5c);
  color: white;
  border-color: var(--color-terracotta, #c67b5c);
}

.reading-studio-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 300px;
  background: #241b18;
  color: #f5ede3;
  padding: 1.5rem;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 99999;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.reading-studio-panel.active {
  display: flex !important;
}
.rs-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rs-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c67b5c;
}
.rs-btn-row {
  display: flex;
  gap: 0.5rem;
}
.rs-btn {
  flex: 1;
  padding: 0.4rem;
  background: #362924;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
}
.rs-btn.active, .rs-btn:hover {
  background: #c67b5c;
  color: white;
  border-color: #c67b5c;
}

/* Typography override classes */
body.font-override-serif .post-content, body.font-override-serif .main-article-column p, body.font-override-serif .step-body p {
  font-family: var(--font-heading, "Playfair Display", serif) !important;
  font-size: 1.15rem !important;
}
body.font-override-sans .post-content, body.font-override-sans .main-article-column p, body.font-override-sans .step-body p {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif) !important;
}
body.spacing-16 .post-content, body.spacing-16 .main-article-column p { line-height: 1.6 !important; }
body.spacing-18 .post-content, body.spacing-18 .main-article-column p { line-height: 1.8 !important; }
body.spacing-20 .post-content, body.spacing-20 .main-article-column p { line-height: 2.1 !important; }
body.size-sm .post-content, body.size-sm .main-article-column p { font-size: 0.95rem !important; }
body.size-md .post-content, body.size-md .main-article-column p { font-size: 1.08rem !important; }
body.size-lg .post-content, body.size-lg .main-article-column p { font-size: 1.25rem !important; }

/* ============================================
   20. Smart DIY Project Finder Quiz
   ============================================ */
.diy-quiz-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--color-espresso, #241b18);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(36, 27, 24, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.diy-quiz-trigger-btn:hover {
  background: var(--color-terracotta, #c67b5c);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(198, 123, 92, 0.3);
}
.diy-quiz-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.diy-quiz-modal.active {
  display: flex !important;
}
.diy-quiz-box {
  background: var(--color-cream, #fdf8f4);
  color: var(--color-espresso, #241b18);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.quiz-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}
.quiz-close-btn:hover { color: #000; }
.quiz-step-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-espresso);
}
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-option-btn {
  padding: 1rem;
  background: white;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md, 8px);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  color: var(--color-espresso);
}
.quiz-option-btn:hover, .quiz-option-btn.selected {
  border-color: var(--color-terracotta, #c67b5c);
  background: rgba(198, 123, 92, 0.08);
  color: var(--color-terracotta, #c67b5c);
}
.quiz-results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============================================
   21. Resume Progress Toast Notification
   ============================================ */
.resume-progress-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--color-espresso, #241b18);
  color: #fdf8f4;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 99999;
  border-left: 4px solid var(--color-terracotta, #c67b5c);
  max-width: 400px;
}
.resume-progress-toast.active {
  display: flex !important;
  animation: slideInUp 0.4s ease forwards;
}
.resume-text {
  font-size: 0.9rem;
  line-height: 1.3;
}
.resume-btn {
  background: var(--color-terracotta, #c67b5c);
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.resume-btn:hover { background: #b56a4c; }
.resume-close {
  background: none;
  border: none;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

/* ============================================
   22. Printable Masterclass Guide (@media print)
   ============================================ */
.btn-print-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: white;
  color: var(--color-espresso, #241b18);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}
.btn-print-guide:hover {
  background: var(--color-espresso, #241b18);
  color: white;
}

@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
  }
  .site-header, .site-footer, .sidebar, .related-projects-section, .post-footer-cta, .workshop-mode-launch-btn, .reading-studio-toggle-btn, .reading-studio-panel, .resume-progress-toast, .search-overlay, .mobile-menu-overlay, .back-to-top, .diy-quiz-trigger-btn, .btn-print-guide, #workshop-mode-modal, .ugc-polaroid-wall, .editorial-toolbar {
    display: none !important;
  }
  .main-content, .container, .main-article-column {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .step-card {
    page-break-inside: avoid !important;
    border: 1px solid #ccc !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
  }
  .step-header {
    background: #f0f0f0 !important;
    color: #000 !important;
    padding: 10px !important;
  }
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
    color: #555;
  }
}



