/*
Theme Name: Coo Coo Babys
Theme URI: https://coocoobabys.com
Author: Advertpreneur
Author URI: https://advertpreneur.com
Description: A high-performance, SEO-ready, and user-centric editorial platform for the modern Pakistani motherhood journey.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, editorial, motherhood, parenting, pakistan
Text Domain: coo-coo-babys
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mocha:        #5C3D2E;
  --mocha-dark:   #3e2a1f;
  --mocha-light:  #7a5444;
  --rose:         #B87060;
  --rose-light:   #d4917f;
  --cream:        #FAF8F3;
  --blush:        #F5E6DF;
  --blush-dark:   #ebd4ca;
  --text-primary: #2c1e17;
  --text-body:    #4a3528;
  --text-muted:   #8a6f62;
  --border:       #e8ddd8;

  --font-headline:   'Playfair Display', Georgia, serif;
  --font-ui:         'Outfit', system-ui, sans-serif;
  --font-expression: 'Cormorant Garamond', Georgia, serif;

  --max-w: 1440px;
  --content-w: 760px;
  --gap: clamp(1rem, 3vw, 2rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(92,61,46,.08);
  --shadow-hover: 0 12px 40px rgba(92,61,46,.16);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   SKIP LINK (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1.2rem;
  background: var(--mocha);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .875rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--mocha), var(--rose));
  z-index: 9999;
  transition: width .1s linear;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-branding { display: flex; align-items: center; }

.header-logo,
.custom-logo-link img,
.site-logo img {
  height: 30px !important;
  width: auto !important;
  display: block !important;
}

.custom-logo-link {
  display: block;
}

.site-tagline {
  display: none; /* Moved to screen-reader-text */
}

.main-nav { display: flex; align-items: center; }
.main-menu { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.main-menu li { list-style: none; margin: 0; padding: 0; }
.main-menu li::before { display: none !important; }

.js .main-nav a {
  opacity: 0;
}
.main-nav a {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: .4rem .8rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--rose);
  transform: translateX(-50%);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 80%; }

.main-nav a:focus-visible {
  outline: 4px solid var(--rose);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin-left: auto !important;
}

.main-nav {
  margin-left: 2rem;
}

.header-search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mocha);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.header-search-btn:hover {
  background: var(--mocha);
  color: var(--cream);
  border-color: var(--mocha);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 243, 0.98);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--mocha);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.search-close:hover { color: var(--rose); }

.search-overlay-content {
  width: 100%;
  max-width: 650px;
  text-align: center;
}

.search-prompt {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Search Form within Overlay */
.search-overlay .search-form {
  position: relative;
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .35rem;
  box-shadow: 0 10px 40px rgba(92,61,46,0.12);
  align-items: center;
}

.search-overlay .search-field {
  flex: 1;
  background: transparent;
  border: none;
  padding: .8rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--mocha);
  outline: none;
  width: 100%;
}

.search-overlay .search-submit {
  background: var(--mocha);
  color: var(--cream);
  border-radius: 100px;
  padding: .75rem 2rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.search-overlay .search-submit:hover {
  background: var(--rose);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--mocha);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO / MASTHEAD
   ============================================================ */
.site-masthead {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--gap);
  text-align: center;
}

.js .masthead-eyebrow {
  opacity: 0;
  transform: translateY(20px);
}
.masthead-eyebrow {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: clamp(.85rem, 1.2vw, 1rem);
  color: var(--rose);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.js .masthead-title {
  opacity: 0;
  transform: translateY(30px);
}
.masthead-title {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--mocha);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.masthead-title em {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.js .masthead-intro {
  opacity: 0;
  transform: translateY(20px);
}
.masthead-intro {
  font-family: var(--font-ui);
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.js .masthead-divider {
  opacity: 0;
}
.masthead-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.masthead-divider::before,
.masthead-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}
.masthead-divider span {
  font-size: .6rem;
  color: var(--rose);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ============================================================
   DYNAMIC HERO GRID (Feature Slider + Sticky Column)
   ============================================================ */
.hero-feature-grid {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
}
.hero-grid-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  min-height: 520px;
}

/* Slider Column */
.hero-slider-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mocha);
  box-shadow: var(--shadow-card);
  height: 100%;
}
.hero-slider {
  display: grid;
  grid-template-areas: "slide-area";
  height: 100%;
  width: 100%;
}
.hero-slide {
  grid-area: slide-area;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #FFFFFF !important; /* Force white for readability on image */
  text-decoration: none !important;
}
.slide-image {
  width: 100%;
  height: 100%;
}
.slide-image img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}
.hero-slide.active .slide-image img {
  transform: scale(1.1);
}

/* Overlay gradient for text readability */
.slide-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 2;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 4vw, 4rem) 2.5rem;
  z-index: 3;
}
.slide-badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.slide-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  max-width: 800px;
}
.slide-meta {
  font-family: var(--font-ui);
  font-size: .85rem;
  opacity: 0.8;
  letter-spacing: .02em;
}

/* Sticky Column */
.hero-sticky-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sticky-card {
  flex: 1;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all var(--transition);
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(92, 61, 46, 0.04);
}
.sticky-card:hover {
  border-color: var(--rose-light);
  transform: translateX(6px);
  background: var(--blush);
  box-shadow: 0 10px 30px rgba(92, 61, 46, 0.08);
}
.sticky-card-cat {
  display: block;
  font-family: var(--font-ui);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .5rem;
}
.sticky-card-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.4;
  margin-bottom: .75rem;
}
.sticky-card-action {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  color: var(--mocha);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: opacity var(--transition);
}
.sticky-card:hover .sticky-card-action { opacity: 1; }

/* Progress Dots for Slider */
.slider-dots {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active {
  background: var(--rose);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .hero-grid-inner { grid-template-columns: 1fr; }
  .hero-slider-container { min-height: 400px; }
  .slider-dots { flex-direction: row; right: auto; left: 2.5rem; bottom: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-slider-container { min-height: 320px; }
  .slide-content { padding: 2rem 1.5rem; }
  .slide-title { font-size: 1.5rem; }
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mocha);
  border: 1.5px solid var(--mocha);
  padding: .7rem 1.6rem;
  border-radius: 100px;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-read:hover {
  background: var(--mocha);
  color: var(--cream);
}
.btn-read svg { transition: transform var(--transition); }
.btn-read:hover svg { transform: translateX(4px); }

/* ============================================================
   POST STRIP (Quick Reads)
   ============================================================ */
.post-strip-section {
  background: var(--blush);
  padding: clamp(2rem, 4vw, 4rem) var(--gap);
}
.post-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--mocha);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-title em {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}
.view-all {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--transition);
}
.view-all:hover { gap: .7rem; }

.post-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.article-card:focus-within {
  outline: 4px solid var(--rose);
  outline-offset: 3px;
}

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blush);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article-card:hover .card-thumb img { transform: scale(1.08); }

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.card-category {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
}

.card-title {
  font-family: var(--font-headline);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.3;
  letter-spacing: -.01em;
  flex: 1;
}
.card-title a:hover { color: var(--rose); }
.card-title a:focus-visible {
  outline: 2px solid var(--rose);
  border-radius: 2px;
}

.card-reading-time {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ============================================================
   CATEGORY BROWSER
   ============================================================ */
.category-browser {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gap);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mocha);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(92, 61, 46, 0.03);
}

.tag-cloud-item:hover {
  border-color: var(--rose-light);
  color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.08);
}

.tag-cloud-item .tag-count {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Subtle size variations for cloud feel */
.tag-cloud-item.size-large { font-size: 1.05rem; padding: 0.75rem 1.6rem; }
.tag-cloud-item.size-medium { font-size: 0.95rem; }
.tag-cloud-item.size-small { font-size: 0.8rem; }

.category-chip-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
  color: var(--mocha);
}
/* Lucide svg sizing */
.category-chip-icon svg,
.category-chip-icon .lucide {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.25px;
  transition: stroke 0.3s ease;
}
.category-chip:hover .category-chip-icon {
  transform: scale(1.15) rotate(3deg);
  color: var(--rose);
}

.category-chip-name {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-top: 0.5rem;
}
.category-chip-count {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-style: italic;
  opacity: 0.8;
}

/* ============================================================
   TAILORED WISDOM (Personalization Block)
   ============================================================ */
.tailored-wisdom {
  background: var(--mocha);
  padding: clamp(2.5rem, 5vw, 5rem) var(--gap);
}
.tailored-wisdom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.tailored-wisdom .section-title { color: var(--cream); }
.tailored-wisdom .section-title em { color: var(--rose-light); }
.tailored-wisdom .view-all { color: var(--rose-light); }

.wisdom-subtitle {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-light);
  margin-bottom: .5rem;
}

.wisdom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.wisdom-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.wisdom-card:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--rose);
  transform: translateY(-3px);
}

.wisdom-card-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
}
.wisdom-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wisdom-card-cat {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: .4rem;
}
.wisdom-card-title {
  font-family: var(--font-headline);
  font-size: .95rem;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.wisdom-card-title a:hover { color: var(--rose-light); }
.wisdom-card-time {
  font-size: .7rem;
  color: rgba(250,248,243,.5);
  margin-top: .5rem;
}

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.single-post-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gap) 0;
}

.post-header {
  max-width: var(--content-w);
  margin: 0 auto 2rem;
  text-align: center;
}

.post-category-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--rose);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.post-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}
.post-meta-bar span { display: flex; align-items: center; gap: .3rem; }

.post-featured-img {
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--blush);
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PAGE LAYOUT & CONTAINER
   ============================================================ */
.page-masthead {
  padding: clamp(5rem, 8vw, 8rem) var(--gap) clamp(5rem, 8vw, 8rem);
  text-align: center;
  background-color: var(--mocha);
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
}

.page-masthead::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--rose) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
  pointer-events: none;
}

.page-masthead .masthead-eyebrow {
  color: var(--rose-light);
  font-size: .8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.page-masthead .masthead-title {
  color: var(--cream);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-masthead .masthead-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.page-masthead .masthead-divider::before,
.page-masthead .masthead-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.page-masthead .masthead-divider span {
  color: var(--rose-light);
  font-size: .6rem;
  letter-spacing: .2em;
}

.page-content-wrapper {
  max-width: 1000px;
  margin: -4rem auto 4rem;
  padding: 0 var(--gap);
  position: relative;
  z-index: 2;
}

.page-content-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
  box-shadow: 0 20px 50px rgba(92, 61, 46, 0.06);
}

.page-featured-img {
  max-width: 1000px;
  margin: -4rem auto 2rem;
  padding: 0 var(--gap);
  position: relative;
  z-index: 2;
}

.page-featured-img img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(92, 61, 46, 0.08);
  width: 100%;
}

/* Post Content Layout with Sidebar */
.post-content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 4rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.post-content-main {}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-sidebar {
  position: sticky;
  top: 88px;
}

.toc-widget {
  background: var(--blush);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.toc-title {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.toc-list { display: flex; flex-direction: column; gap: .5rem; }
.toc-list li {}
.toc-list a {
  font-size: .82rem;
  color: var(--text-muted);
  display: block;
  padding: .2rem 0;
  border-left: 2px solid transparent;
  padding-left: .75rem;
  transition: all var(--transition);
  line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--mocha);
  border-color: var(--rose);
}
.toc-list .toc-h3 { padding-left: 1.5rem; font-size: .78rem; }

/* ============================================================
   ARTICLE BODY TYPOGRAPHY
   ============================================================ */
.entry-content {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}
.entry-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--rose);
  letter-spacing: -.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.entry-content h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--rose);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a {
  color: var(--rose);
  border-bottom: 1px solid var(--rose-light);
  transition: color var(--transition), border-color var(--transition);
}
.entry-content a:hover { color: var(--mocha); border-color: var(--mocha); }
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--rose);
  background: var(--blush);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--mocha);
  line-height: 1.6;
}
.entry-content ul, .entry-content ol {
  margin: 1.5rem 0 2rem 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li::marker,
.entry-content ol li::marker {
  color: var(--rose);
  font-weight: 700;
}
.entry-content li {
  margin-bottom: .75rem;
  padding-left: .5rem;
}

/* Premium Tables */
.entry-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(92,61,46,.03);
}
.entry-content th {
  background: var(--mocha);
  color: #fff;
  padding: 1.2rem 1rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
}
.entry-content td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text-body);
  background: #fff;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--cream); }
.entry-content tr:hover td { background: var(--blush); }

/* FAQ Accordion */
.article-faq {
  margin: 3rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  background: #fff;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mocha);
  text-align: left;
  transition: all var(--transition);
}
.faq-trigger:hover { background: var(--cream); color: var(--rose); }
.faq-trigger::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--rose);
  transition: transform var(--transition);
}
.faq-item.active .faq-trigger::after { content: '−'; }
.faq-content {
  max-height: 0;
  overflow: hidden;
  background: var(--cream);
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 2rem;
}
.faq-item.active .faq-content {
  max-height: 500px;
  padding: 1rem 2rem 2rem;
}
.faq-content p { font-size: .95rem; margin: 0; }

/* RankMath & Native Gutenberg Support */
.rank-math-faq-item,
.wp-block-details {
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.rank-math-question,
summary {
  list-style: none;
  padding: 1.5rem 2rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mocha);
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.rank-math-question:hover,
summary:hover { color: var(--rose); background: var(--cream); }

.rank-math-question::after,
summary::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--rose);
}
.rank-math-faq-item.active .rank-math-question::after,
details[open] summary::after { content: '−'; }

.rank-math-answer,
.wp-block-details[open] > *:not(summary) {
  padding: 0 2rem 2rem;
  background: var(--cream);
  font-size: .95rem;
  color: var(--text-body);
}
.rank-math-answer { display: none; }
.rank-math-faq-item.active .rank-math-answer { display: block; }
.entry-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .5rem;
  font-style: italic;
}
.entry-content strong { color: var(--mocha); font-weight: 700; }

/* ============================================================
   SHARING (Mama Share)
   ============================================================ */
.mama-share {
  margin: 3rem 0;
  padding: 1.75rem;
  background: var(--blush);
  border-radius: var(--radius-md);
  text-align: center;
}
.share-label {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.share-buttons {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: .65rem 1.25rem;
  border: 1.5px solid var(--mocha);
  border-radius: 100px;
  color: var(--mocha);
  transition: all var(--transition);
}
.share-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.twitter:hover  { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }

/* ============================================================
   NEWSLETTER SLIDE-IN
   ============================================================ */
#newsletter-popup {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 340px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(92,61,46,.2);
  z-index: 5000;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#newsletter-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.popup-close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.popup-close:hover { background: var(--blush); color: var(--mocha); }

.popup-icon { font-size: 2rem; margin-bottom: .75rem; }
.popup-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--mocha);
  font-weight: 700;
  margin-bottom: .5rem;
}
.popup-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.popup-form { display: flex; flex-direction: column; gap: .75rem; }
.popup-form input[type="email"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition);
}
.popup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--rose);
}
.popup-form button {
  width: 100%;
  padding: .8rem;
  background: var(--mocha);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.popup-form button:hover { background: var(--mocha-dark); }
.popup-privacy { font-size: .68rem; color: var(--text-muted); text-align: center; }

/* ============================================================
   RETURN TO TOP
   ============================================================ */
#return-to-top {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 44px; height: 44px;
  background: var(--mocha);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(92,61,46,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 4000;
}
#return-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#return-to-top:hover { background: var(--rose); transform: translateY(-3px); }

/* ============================================================
   LINK HOVER PREVIEW
   ============================================================ */
.link-preview-card {
  position: fixed;
  width: 280px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-hover);
  pointer-events: none;
  z-index: 8000;
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s ease;
  display: flex;
  gap: .75rem;
}
.link-preview-card.visible { opacity: 1; transform: translateY(0); }
.preview-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-title {
  font-family: var(--font-headline);
  font-size: .82rem;
  color: var(--mocha);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .3rem;
}
.preview-snippet {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-page-header {
  max-width: var(--content-w);
  margin: 4rem auto 2rem;
  padding: 0 var(--gap);
}
.search-query-label {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.search-query-term {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--mocha);
  font-weight: 700;
}
.search-results-count {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
}
.search-results-grid {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap);
}
.error-inner { max-width: 560px; }
.error-number {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  color: var(--blush-dark);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: .5rem;
}
.error-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--mocha);
  margin-bottom: 1rem;
}
.error-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.error-topics { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.error-topic-chip {
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--mocha);
  transition: all var(--transition);
}
.error-topic-chip:hover { border-color: var(--rose); color: var(--rose); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--mocha-dark);
  color: rgba(250,248,243,.75);
  padding: clamp(3rem, 6vw, 5rem) var(--gap) 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-logo {
  margin-bottom: 1.25rem;
}
.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}
.footer-brand-tagline {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose-light);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.footer-brand-desc {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .82rem;
  color: rgba(250,248,243,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--rose-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
#comments {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--mocha);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

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

.comment-list .comment {
  margin-bottom: 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.comment-list .children {
  margin-top: 1.5rem;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 2px solid var(--blush);
}

.comment-body {
  position: relative;
}

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

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

.comment-author .fn {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--mocha);
  font-size: 1.05rem;
  font-style: normal;
}

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

.comment-meta a {
  color: inherit;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

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

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  border: 1.5px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  transition: all var(--transition);
  display: inline-block;
}

.comment-reply-link:hover {
  background: var(--mocha);
  color: var(--cream);
  border-color: var(--mocha);
}

/* Form Styles */
.comment-respond {
  background: var(--blush);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-top: 3rem;
}

.comment-notes,
.logged-in-as {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-form p {
  margin: 0;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--rose);
}

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

.comment-form-cookies-consent {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.comment-form-cookies-consent input {
  margin: 0;
  width: auto !important;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

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

.form-submit .submit {
  background: var(--mocha);
  color: var(--cream);
  border: 1.5px solid var(--mocha);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit .submit:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

/* ============================================================
   CUSTOM FORMS (Contact, Advertise, Write For Us)
   ============================================================ */
.ccb-custom-form {
  background: var(--cream);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(92, 61, 46, 0.04);
}

.ccb-custom-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: 2rem;
  position: relative;
}

.ccb-custom-form label input,
.ccb-custom-form label textarea {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.ccb-custom-form label input:focus,
.ccb-custom-form label textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(224, 158, 142, 0.15);
}

.ccb-custom-form label input[type="file"] {
  border: 2px dashed var(--border);
  background: var(--cream-alt);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.ccb-custom-form label input[type="file"]:hover {
  border-color: var(--rose-light);
  background: #ffffff;
}

.ccb-form-submit {
  background: var(--mocha);
  color: var(--cream);
  border: 1.5px solid var(--mocha);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.ccb-form-submit:hover:not(:disabled) {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.ccb-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ccb-form-response {
  margin-top: 1.5rem;
  font-weight: 600;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.ccb-form-response:not(:empty) {
  display: block;
}
.ccb-form-response.success {
  background: rgba(142, 224, 158, 0.15);
  color: #2e7d32;
  border: 1px solid rgba(142, 224, 158, 0.3);
}
.ccb-form-response.error {
  background: rgba(224, 142, 142, 0.15);
  color: #c62828;
  border: 1px solid rgba(224, 142, 142, 0.3);
}

/* ============================================================
   REVEAL ANIMATIONS (.reveal class via GSAP)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(30px); }

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

@media (max-width: 768px) {
  .post-strip-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--cream);
    justify-content: center;
    align-items: center;
    z-index: 999;
    gap: 1.5rem;
  }
  .main-nav.open a { font-size: 1.2rem; opacity: 1; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  #newsletter-popup { width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .wisdom-card { flex-direction: column; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .mama-share, #newsletter-popup,
  #return-to-top, .toc-sidebar, #reading-progress { display: none !important; }
  .post-content-wrap { display: block; }
  .entry-content { font-size: 12pt; }
}
/* ============================================================
   NEWSLETTER BALLOON (BOTTOM-RIGHT)
   ============================================================ */
.newsletter-balloon {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 320px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 45px rgba(92,61,46,0.15);
  z-index: 10000;
  display: none;
  transform: translateX(120%);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.newsletter-balloon.active {
  display: block;
  transform: translateX(0);
}

.nb-inner { position: relative; text-align: center; }
.nb-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--mocha);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-icon { font-size: 2rem; margin-bottom: 10px; }
.nb-title { font-size: 1.1rem; font-family: var(--serif); color: var(--mocha); margin-bottom: 8px; }
.nb-text { font-size: 0.85rem; color: var(--mocha); opacity: 0.8; margin-bottom: 15px; line-height: 1.4; }

.nb-form input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.nb-form button {
  width: 100%;
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nb-form button:hover { background: var(--mocha); }

/* PRIVACY BAR MINIMALIST */
.privacy-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(250,248,243,0.95);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 6px 0;
  z-index: 9998;
  display: none;
}

.privacy-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.7rem;
  color: var(--mocha);
  opacity: 0.6;
}

.privacy-close-btn {
  background: var(--mocha);
  color: #fff;
  border: none;
  padding: 2px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.65rem;
}

@media (max-width: 768px) {
  .newsletter-balloon {
    left: 20px;
    right: 20px;
    bottom: 80px;
    width: auto;
  }
}

/* ============================================================
   CATEGORY SHOWCASE
   ============================================================ */
.category-showcase {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
}
.showcase-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.cat-spotlight-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.spotlight-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.spotlight-icon {
  width: 32px;
  height: 32px;
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotlight-icon svg,
.spotlight-icon .lucide {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5px;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.spotlight-grid-reverse {
  grid-template-columns: 1fr 1.5fr;
}
.spotlight-grid-reverse .spotlight-featured-card {
  order: 2;
}
.spotlight-grid-reverse .spotlight-side-list {
  order: 1;
}
.spotlight-featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.spotlight-featured-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-light);
  box-shadow: var(--shadow-hover);
}
.featured-card-link {
  display: block;
}
.featured-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blush);
}
.featured-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.spotlight-featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}
.featured-card-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.featured-card-title {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--mocha);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 700;
}
.featured-card-excerpt {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.featured-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Side List Items */
.spotlight-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.spotlight-side-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.spotlight-side-item:hover {
  background: #fff;
  border-color: var(--rose-light);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(92, 61, 46, 0.04);
}
.side-item-link {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  align-items: center;
}
.side-item-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blush);
}
.side-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.side-item-content {
  flex: 1;
}
.side-item-title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: var(--mocha);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  font-weight: 700;
}
.side-item-time {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .side-item-link { gap: 1rem; padding: 0.75rem; }
  .side-item-thumb { width: 60px; height: 60px; }
  .side-item-title { font-size: 0.95rem; }
  .showcase-inner { gap: 3rem; }
}

/* ============================================================
   WISDOM WEAVER & HEADING LINKS
   ============================================================ */
/* Internal links in Headings inherit the heading color + underline (Restricted to single post content) */
.entry-content h1 a, .entry-content h2 a, .entry-content h3 a, 
.entry-content h4 a, .entry-content h5 a, .entry-content h6 a {
  color: inherit !important;
  text-decoration: underline !important;
}

/* Base style for Wisdom Weaver links in body copy */
.wisdom-weaver-link {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.wisdom-weaver-link:hover {
  color: var(--mocha);
  text-decoration-style: solid;
}

