/* ============================================ */
/* SOULSPACE - MASTER STYLESHEET                */
/* Complete, Clean & Responsive                 */
/* ============================================ */

/* -------------------------------------------- */
/* ROOT VARIABLES & RESET                       */
/* -------------------------------------------- */

:root {
  --primary: #4a6fa5;
  --secondary: #6b8e23;
  --accent: #ff7e5f;
  --light: #f8f9fa;
  --dark: #2c3e50;
  --gray: #6c757d;
  --border: #e9ecef;
  --gold: #d4af37;
  --navy: #050a14;
  --card-bg: rgba(255, 255, 255, 0.04);
  --text-main: #ffffff;
  --text-muted: #a0a0b0;

  --navy: #344963;
  --leaf: #76a92d;
  --teal: #3c9690;
  --offwhite: #f5f5f7;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px -10px rgba(52, 73, 99, 0.12);
  --shadow-md: 0 20px 40px -12px rgba(52, 73, 99, 0.18);
  --radius-card: 28px;
  --font:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

[id] {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: white;
  font-size: 18px;

  font-family: var(--font);
  background: var(--offwhite);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* -------------------------------------------- */
/* TYPOGRAPHY                                   */
/* -------------------------------------------- */

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--dark);
}

h2 {
  font-size: 2rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ==========================================================
   SUPER SMOOTH SCROLLING (GPU ACCELERATED)
   ========================================================== */

/* 1. Enable native momentum scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* The magic iOS fix */
  scroll-padding-top: 90px; /* Prevents the sticky header from covering titles */
}

/* 2. Force the whole body to render on the GPU */
body {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  overflow-x: hidden;
}

/* 3. Tell the heavy images and cards to prepare for scrolling */
img,
.category-card,
.wellness-card,
.peace-card,
.stage-card,
.latest-story-card {
  will-change: transform;
  transform: translateZ(0);
}

/* 4. Kill the scroll jank caused by long shadows */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   SOULSPACE — HERO & CATEGORIES (CLEAN, RESPONSIVE v2)
   Theme: Navy #344963 · Leaf #76A92D · Teal #3C9690 · Off-white #F5F5F7
   ========================================================== */

.about-vibrant {
  --navy: #344963;
  --leaf: #76a92d;
  --teal: #3c9690;
  --offwhite: #f5f5f7;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px -10px rgba(52, 73, 99, 0.12);
  --shadow-md: 0 20px 40px -12px rgba(52, 73, 99, 0.18);
  --radius-card: 28px;

  background: var(--offwhite);
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.about-vibrant *,
.about-vibrant *::before,
.about-vibrant *::after {
  box-sizing: border-box;
}

.about-vibrant::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.about-vibrant .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.soulspace-logo .logo-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: gentleFloat 3s ease-in-out infinite;
}

.logo-icon img {
  width: 29px;
  margin: 0px 0;
  position: absolute;
  top: -11px;
}

.soulspace-logo .logo-text {
  background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.soulspace-logo .logo-text span {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes goldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Card hover — lift + 3D gold glow */
.category-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 10px 0 0 #16223a,
    0 18px 36px -6px rgba(22, 34, 58, 0.55),
    0 36px 72px -18px rgba(22, 34, 58, 0.45),
    0 0 0 4px rgba(245, 200, 66, 0.15),
    0 0 40px -8px rgba(245, 200, 66, 0.45) !important;
}

/* Card hover — lift the icon tile */
.category-card:hover .card-illustration {
  transform: translateY(-4px) rotate(-8deg) scale(1.12);
}

/* Card hover — shimmer intensifies on the gold border */
.category-card:hover > span:first-child {
  filter: brightness(1.25);
  animation-duration: 3s;
}

/* Card hover — button lifts + shines */
.category-card:hover .category-btn {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 8px 18px -3px rgba(245, 200, 66, 0.8) !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card > span:first-child,
  .category-card .card-illustration,
  .category-card .category-btn {
    animation: none !important;
    transition: none !important;
  }
  .category-card:hover {
    transform: none !important;
  }
}

/* Mobile: collapse to single column */
@media (max-width: 768px) {
  .category-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 1.15rem !important;
  }
  .category-card {
    padding: 1.85rem 1.5rem 1.5rem !important;
  }
  .category-card:hover {
    transform: translateY(-6px) !important;
  }
}

/* Fix Mobile Nav Header Alignment */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(52, 73, 99, 0.1);
}

/* Ensure the close button looks like a nice circle */
.mobile-nav-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 73, 99, 0.08) !important;
  color: #344963 !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(52, 73, 99, 0.15) !important;
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  /* Force mobile nav to be full width */
  .mobile-nav {
    width: 100vw !important;
    max-width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
  }

  /* Ensure the mobile logo container behaves */
  .mobile-nav-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin: 0 !important;
  }

  /* Fix the close button so it aligns perfectly */
  .mobile-nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 20px !important;
  }
}

/* ==========================================================
   HERO
   ========================================================== */

.vibrant-hero {
  margin-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 3rem;
}

.hero-text {
  max-width: 650px;
  min-width: 0;
}

.tagline-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(60, 150, 144, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--teal);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(60, 150, 144, 0.15);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--leaf);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: softPulse 2s infinite;
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--teal) 60%,
    var(--leaf) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #4a5c72;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-subtitle .highlight {
  color: var(--teal);
  font-weight: 600;
  background: rgba(60, 150, 144, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Typing animation */
#typed-wrapper {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.75rem;
  color: var(--teal);
  font-weight: 500;
  min-height: 1.6em;
  line-height: 1.4;
}

#typed-text {
  display: inline;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* CTA */
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  margin-bottom: 1.75rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px -8px rgba(52, 73, 99, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #2b3d52;
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -8px rgba(52, 73, 99, 0.4);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.25s;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #5f6f82;
  font-weight: 500;
}

.sparkle {
  font-size: 1.1rem;
}

/* Trust badges */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--teal);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(52, 73, 99, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.trust-badge:hover {
  box-shadow: 0 6px 18px rgba(52, 73, 99, 0.1);
  border-color: rgba(60, 150, 144, 0.3);
}

.trust-badge i {
  color: var(--leaf);
  font-size: 0.9rem;
}

/* ==========================================================
   HERO VISUAL — ROTATING LOGO
   ========================================================== */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 320px;
}

.logo-rotator {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 40px -10px rgba(52, 73, 99, 0.25);
  border: 5px solid #fff;
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
  background: #fff;
}

.logo-center:hover {
  transform: scale(1.04);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(60, 150, 144, 0.3);
  animation: rotateRing 35s linear infinite;
}

.ring-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px -6px rgba(52, 73, 99, 0.15);
  border: 1px solid #eef2f6;
  color: var(--teal);
  transition: all 0.25s ease;
}

.ring-icon:hover {
  color: var(--leaf);
  transform: scale(1.12);
  box-shadow: 0 10px 26px -8px rgba(118, 169, 45, 0.25);
}

.ring-icon:nth-child(1) {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.ring-icon:nth-child(2) {
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
}
.ring-icon:nth-child(3) {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.ring-icon:nth-child(4) {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-rotator::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

/* ==========================================================
   CATEGORY CARDS
   ========================================================== */

.category-cards-section {
  margin-top: 1rem;
}

.section-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(52, 73, 99, 0.06);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--navy);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(52, 73, 99, 0.06);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(60, 150, 144, 0.2);
}

.card-illustration {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.category-card:hover .card-illustration {
  transform: scale(1.05) rotate(2deg);
}

.wellness-illu {
  background: linear-gradient(135deg, var(--teal) 0%, #5bb3ad 100%);
  box-shadow: 0 8px 16px -6px rgba(60, 150, 144, 0.3);
}

.emotional-illu {
  background: linear-gradient(135deg, #a8c9e8 0%, #c0d9f0 100%);
  box-shadow: 0 8px 16px -6px rgba(52, 73, 99, 0.15);
}

.lifestages-illu {
  background: linear-gradient(135deg, var(--leaf) 0%, #8fc23e 100%);
  box-shadow: 0 8px 16px -6px rgba(118, 169, 45, 0.3);
}

.growth-illu {
  background: linear-gradient(135deg, #f0c27b 0%, #f5d89e 100%);
  box-shadow: 0 8px 16px -6px rgba(240, 194, 123, 0.3);
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #5f6f82;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
  padding: 0.3rem 0;
  margin-top: auto;
}

.category-btn:hover {
  gap: 0.7rem;
  color: var(--leaf);
}

.card-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #6f7f92;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

.card-disclaimer i {
  color: var(--teal);
  flex-shrink: 0;
}

.trust-badge-row {
  display: flex;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  font-size: 0.8rem;
  color: #5f6f82;
  text-align: center;
}

.trust-badge-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== LIFE STAGES GLIMPSE SLIDESHOW ===== */
.wellness-glimpse-slider {
  position: relative;
  width: 100%;
  max-width: 1150px;
  height: 220px;
  margin: 0 auto 2.5rem; /* Added a bit more bottom margin to separate from cards */
  overflow: hidden;
  border-radius: 0; /* Squared edges */
  border: 1px solid rgba(60, 150, 144, 0.18);
  box-shadow: 0 6px 18px -8px rgba(52, 73, 99, 0.25);
  touch-action: pan-y;
  background: #1e2d42;
}

.glimpse-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.glimpse-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  /* This makes it repeat */
  background-repeat: repeat-x; /* Repeat only left-to-right */
  background-size: auto 100%; /* Make image fill the height */
  background-position: center;
}

/* This fills the side gaps beautifully */
.glimpse-slide .bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Flips the image and blurs it heavily */
  transform: scaleX(-1);
  filter: blur(25px) brightness(0.3);
  z-index: 1;
}

/* This shows the full photo without zooming in */
.glimpse-slide .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Moves the image down to show the top part */
}

.glimpse-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(
    to top,
    rgba(30, 45, 66, 0.85),
    rgba(30, 45, 66, 0)
  );
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.glimpse-caption .glimpse-tag {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  background: #3c9690;
  padding: 3px 8px;
  white-space: nowrap;
}

.glimpse-caption .glimpse-text {
  font-weight: 500;
  opacity: 0.95;
}

/* Arrows */
.glimpse-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: rgba(30, 45, 66, 0.55);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.glimpse-arrow:hover {
  background: rgba(60, 150, 144, 0.9);
}
.glimpse-arrow.prev {
  left: 0;
}
.glimpse-arrow.next {
  right: 0;
}

/* Dots */
.glimpse-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
}
.glimpse-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.glimpse-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* Mobile */
@media (max-width: 640px) {
  .wellness-glimpse-slider {
    height: 150px;
  }
  .glimpse-caption {
    font-size: 0.7rem;
    padding: 8px 10px;
  }
  .glimpse-caption .glimpse-tag {
    font-size: 0.6rem;
  }
  .glimpse-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ==========================================================
   WELLNESS CATEGORY PANELS (dropdown-driven, 3 cards each)
   Reuses existing .stage-dropdown-wrapper + .stage-select
   ========================================================== */

.wellness-category-container {
  position: relative;
  min-height: 400px; /* Prevents layout jump when switching */
  margin-bottom: 2rem;
}

.wellness-category-panel {
  display: none;
}

.wellness-category-panel.active {
  display: block;
  animation: fadeInWellnessPanel 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Force exactly 3 columns on the grid (matches your featured layout) */
.wellness-category-panel .featured-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 0;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .wellness-category-panel .featured-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .wellness-category-panel .featured-topics-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wellness-category-panel.active {
    animation: none !important;
  }
}

/* Cleanup: hide leftover legacy classes if any remain */
.hidden-topics,
#view-more-wellness-btn,
.view-more-container,
.view-count-text {
  display: none !important;
}

/* ==========================================================
   LIFESPAN TABS NAVIGATION (FULLY RESPONSIVE)
   ========================================================== */
.stage-tabs-wrapper {
  position: sticky;
  top: 70px; /* Sits nicely under the sticky header */
  z-index: 50;
  background: #eef1f5;
  padding: 1rem 0;
  margin-bottom: 2rem;
  /* Hide scrollbar for cleaner look */
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(52, 73, 99, 0.05);
}
.stage-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.stage-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 1.5rem; /* Added side padding for mobile scroll */
  max-width: 1200px;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth iOS swiping */
}

.stage-tab {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #556274;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px -6px rgba(52, 73, 99, 0.1);
  flex-shrink: 0; /* Prevents squishing on mobile */
}

.stage-tab:hover {
  border-color: #3c9690;
  color: #3c9690;
  transform: translateY(-2px);
}

.stage-tab.active {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  border-color: #f5c842;
  color: #1e2d42;
  box-shadow: 0 6px 15px -4px rgba(245, 200, 66, 0.6);
}

/* --- The Stage Cards Container --- */
.stage-cards-container {
  position: relative;
  min-height: 400px; /* Prevents page jump when switching tabs */
}

.stage-card {
  display: none;
}

.stage-card.active {
  display: block;
  animation: fadeInStage 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Internal Card Responsiveness --- */

/* Make the featured column span full width on mobile */
.stage-column.featured {
  margin-bottom: 1.5rem;
}

/* Adjust the 3-column grid inside the cards */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* The header layout (Icon + Title + Badge) */
.stage-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS FOR STAGES
   ========================================================== */

/* TABLETS (Max 1024px) */
@media (max-width: 1024px) {
  .stage-tabs {
    padding: 0.5rem 1rem;
  }
  .stage-tab {
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
  }
  .stage-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
  }
}

/* MOBILE PHONES (Max 768px) */
@media (max-width: 768px) {
  .stage-tabs-wrapper {
    top: 65px; /* Adjust for smaller mobile header */
  }
  .stage-tab {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Stack the card header vertically */
  .stage-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    gap: 1rem;
  }

  .stage-icon {
    width: 65px !important;
    height: 65px !important;
    font-size: 2rem !important;
    margin: 0 auto;
  }

  .stage-title {
    font-size: 1.25rem !important;
  }

  .stage-years {
    display: block;
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8rem !important;
  }

  .stage-quote {
    font-size: 0.85rem !important;
    text-align: center !important;
  }

  .stage-importance {
    margin: 0 auto !important;
    white-space: normal !important;
    font-size: 0.7rem !important;
  }

  /* Stack the 3-column grid into 1 column */
  .stage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Adjust featured links for mobile */
  .stage-column.featured {
    padding: 1.25rem 1rem !important;
  }

  .featured-link a {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .link-text {
    flex-basis: 100%;
    font-size: 0.85rem !important;
  }

  .link-badge {
    font-size: 0.6rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  .stage-content {
    padding: 1.25rem 1rem !important;
  }

  .stage-footer {
    padding: 1rem;
    text-align: center;
  }
}

/* SMALL PHONES (Max 480px) */
@media (max-width: 480px) {
  .stage-title {
    font-size: 1.1rem !important;
  }

  .stage-icon {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.8rem !important;
    border-radius: 14px !important;
  }

  .stage-column.featured h4 {
    font-size: 0.75rem !important;
  }

  .stage-category {
    padding: 1rem !important;
  }

  .stage-category h5 {
    font-size: 0.8rem !important;
  }

  .stage-category a {
    font-size: 0.8rem !important;
    padding: 0.5rem !important;
  }
}

/* ==========================================================
   SHARE YOUR STORY SECTION
   ========================================================== */

.share-story-section {
  background: linear-gradient(135deg, #2a3f5a 0%, #344963 40%, #2f5e5a 100%);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  margin: 2.5rem 0 1.5rem;
  box-shadow: 0 25px 50px -15px rgba(52, 73, 99, 0.35);
  border: 1px solid rgba(118, 169, 45, 0.2);
  position: relative;
  overflow: hidden;
}

.share-story-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.25) 0%,
    transparent 65%
  );
  border-radius: 50%;
  animation: floatOrb1 8s ease-in-out infinite;
  pointer-events: none;
}

.share-story-section::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(118, 169, 45, 0.18) 0%,
    transparent 65%
  );
  border-radius: 50%;
  animation: floatOrb2 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 25px) scale(1.1);
  }
}

@keyframes floatOrb2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, -20px) scale(1.15);
  }
}

.share-story-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 2.5rem;
}

.share-story-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.share-story-content h2 span {
  background: linear-gradient(135deg, #76a92d 0%, #a8e063 50%, #3c9690 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.share-story-content p {
  font-size: 1.05rem;
  color: #d8e2ec;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 550px;
}

.share-story-content p strong {
  color: #ffffff;
  font-weight: 600;
  background: rgba(118, 169, 45, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.share-story-content .share-story-sub {
  font-size: 0.95rem;
  color: #a8c9e8;
  margin-bottom: 1.5rem;
}

.share-story-content .share-story-sub i {
  color: var(--leaf);
  margin-right: 0.35rem;
}

.share-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.share-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #76a92d 0%, #5c8a1e 100%);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 24px -8px rgba(118, 169, 45, 0.5);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.share-story-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.share-story-btn:hover::before {
  left: 100%;
}

.share-story-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 32px -8px rgba(118, 169, 45, 0.65);
  background: linear-gradient(135deg, #8fc23e 0%, #6ba525 100%);
}

.share-story-btn i {
  transition: transform 0.3s ease;
}

.share-story-btn:hover i {
  transform: rotate(-15deg) scale(1.15);
}

.share-story-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.share-story-btn.secondary:hover {
  background: rgba(60, 150, 144, 0.35);
  border-color: #3c9690;
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 24px -8px rgba(60, 150, 144, 0.4);
}

.share-story-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-icon-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.story-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  animation: iconFloat 4s ease-in-out infinite;
}

.story-icon:nth-child(1) {
  animation-delay: 0s;
}
.story-icon:nth-child(2) {
  animation-delay: 0.6s;
}
.story-icon:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.story-icon:hover {
  background: rgba(118, 169, 45, 0.25);
  border-color: rgba(118, 169, 45, 0.6);
  transform: translateY(-8px) scale(1.15) rotate(-6deg);
  color: #a8e063;
  box-shadow:
    0 20px 40px -12px rgba(118, 169, 45, 0.5),
    0 0 0 4px rgba(118, 169, 45, 0.1);
  animation-play-state: paused;
}

.story-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 2px solid rgba(118, 169, 45, 0);
  transition: all 0.4s ease;
  pointer-events: none;
}

.story-icon:hover::after {
  inset: -10px;
  border-color: rgba(118, 169, 45, 0.4);
  border-radius: 32px;
}

/* ==========================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================================== */

@media (max-width: 1024px) {
  .about-vibrant {
    padding: 2.25rem 1.5rem 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-trust-badges {
    justify-content: center;
  }

  .tagline-pulse {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
    margin-bottom: 0.75rem;
  }

  .logo-rotator {
    width: 200px;
    height: 200px;
  }

  .logo-center {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .ring-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .ring-icon:nth-child(1) {
    top: -12px;
  }
  .ring-icon:nth-child(2) {
    right: -12px;
  }
  .ring-icon:nth-child(3) {
    bottom: -12px;
  }
  .ring-icon:nth-child(4) {
    left: -12px;
  }

  .category-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .share-story-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .share-story-content p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .share-story-actions {
    justify-content: center;
  }

  .share-story-visual {
    order: -1;
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================================== */

@media (max-width: 768px) {
  .about-vibrant {
    padding: 1.75rem 1.1rem 3rem;
  }

  .vibrant-hero {
    margin-bottom: 2.5rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

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

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
  }

  #typed-wrapper {
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
  }

  .cta-btn {
    padding: 0.85rem 1.7rem;
    font-size: 0.95rem;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .logo-rotator {
    width: 170px;
    height: 170px;
  }

  .logo-center {
    width: 78px;
    height: 78px;
    border-width: 3px;
  }

  .ring-icon {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .ring-icon:nth-child(1) {
    top: -8px;
  }
  .ring-icon:nth-child(2) {
    right: -8px;
  }
  .ring-icon:nth-child(3) {
    bottom: -8px;
  }
  .ring-icon:nth-child(4) {
    left: -8px;
  }

  .category-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .category-card {
    padding: 1.6rem 1.35rem 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .trust-badge-row {
    gap: 0.75rem;
    font-size: 0.72rem;
  }

  .share-story-section {
    padding: 2rem 1.25rem;
    border-radius: 24px;
    margin: 2rem 0 1rem;
  }

  .share-story-content h2 {
    font-size: 1.6rem;
  }

  .share-story-content p {
    font-size: 0.98rem;
  }

  .share-story-content .share-story-sub {
    font-size: 0.88rem;
  }

  .share-story-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
  }

  .story-icon {
    width: 62px;
    height: 62px;
    font-size: 1.5rem;
    border-radius: 20px;
  }
}

/* ==========================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ========================================================== */

@media (max-width: 480px) {
  .about-vibrant {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .cta-btn {
    justify-content: center;
    width: 100%;
  }

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

  .hero-trust-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .trust-badge {
    justify-content: center;
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
    margin-bottom: 0.1rem;
  }

  .logo-rotator {
    width: 160px;
    height: 160px;
    margin: -3rem 0;
  }

  .logo-center {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  .ring-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .ring-icon:nth-child(1) {
    top: -6px;
  }
  .ring-icon:nth-child(2) {
    right: -6px;
  }
  .ring-icon:nth-child(3) {
    bottom: -6px;
  }
  .ring-icon:nth-child(4) {
    left: -6px;
  }

  .share-story-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .share-story-btn {
    justify-content: center;
    width: 100%;
  }

  .story-icon {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    border-radius: 18px;
  }

  .share-story-section::before,
  .share-story-section::after {
    width: 220px;
    height: 220px;
  }
}

/* ==========================================================
   RESPONSIVE — TINY (≤ 360px)
   ========================================================== */

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .tagline-pulse {
    font-size: 0.68rem;
    padding: 0.45rem 1rem;
  }

  .logo-rotator {
    width: 170px;
    height: 170px;
  }

  .logo-center {
    width: 72px;
    height: 72px;
  }

  .ring-icon {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .share-story-content h2 {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .about-vibrant .ring,
  .about-vibrant .pulse-dot,
  .about-vibrant .cursor,
  .about-vibrant .story-icon,
  .about-vibrant .share-story-section::before,
  .about-vibrant .share-story-section::after,
  .about-vibrant .share-story-content h2 span {
    animation: none !important;
  }

  .about-vibrant .category-card:hover,
  .about-vibrant .cta-btn:hover,
  .about-vibrant .logo-center:hover,
  .about-vibrant .category-card:hover .card-illustration,
  .about-vibrant .share-story-btn:hover,
  .about-vibrant .story-icon:hover {
    transform: none !important;
  }
}

/* -------------------------------------------- */
/* UTILITIES & CONTAINER                        */
/* -------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  z-index: 10001;
  font-weight: 600;
  border-radius: 0 0 5px 0;
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* -------------------------------------------- */
/* BUTTONS                                      */
/* -------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #3a5a8c;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 40px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #3a5a8c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 111, 165, 0.2);
}

/* ============================================ */
/* HEADER & NAVIGATION                          */
/* ============================================ */

header[role="banner"] {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(74, 111, 165, 0.1);
  transition: all 0.3s ease;
}

header[role="banner"].scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  flex-wrap: nowrap;
}

/* --- Logo --- */
.soulspace-logo {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.soulspace-logo:hover {
  transform: scale(1.02);
}

.soulspace-logo .logo-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: gentleFloat 3s ease-in-out infinite;
}

.logo-icon img {
  width: 29px;
  margin: 0px 0;
  position: absolute;
  top: 8px;
}

.soulspace-logo .logo-text {
  background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.soulspace-logo .logo-text span {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* --- Desktop Nav Container --- */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.nav-main-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* --- Nav Links --- */
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 65px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-link i {
  font-size: 1.1rem;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.nav-link span {
  font-size: 0.7rem;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(74, 111, 165, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link:hover i {
  transform: translateY(-2px);
}

/* --- Dropdown Toggle button (used inside nav-link) --- */
.dropdown-toggle {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem !important;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* --- Dropdown Menus --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 1000;
  list-style: none;
  border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.dropdown-menu li a i {
  width: 20px;
  color: var(--primary);
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background: rgba(74, 111, 165, 0.08);
  color: var(--primary);
  transform: translateX(5px);
}

/* --- Submenu (Life Stages) --- */
.dropdown-submenu {
  position: relative;
}

.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.85rem;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s ease;
}

.submenu-toggle:hover {
  background: rgba(74, 111, 165, 0.08);
  color: var(--primary);
}

.submenu-toggle i:first-child {
  width: 20px;
  color: var(--primary);
  font-size: 0.9rem;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.dropdown-submenu.active .submenu-arrow {
  transform: rotate(90deg);
}

.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-left: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 1001;
  list-style: none;
  border: 1px solid var(--border);
  max-height: 70vh;
  overflow-y: auto;
}

.dropdown-submenu:hover .submenu,
.dropdown-submenu.active .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submenu li a:hover {
  background: rgba(74, 111, 165, 0.08);
  color: var(--primary);
  padding-left: 25px;
}

.submenu li a i {
  width: 18px;
  text-align: center;
  color: var(--secondary);
}

.submenu::-webkit-scrollbar {
  width: 6px;
}

.submenu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Special Nav Links --- */
.nav-special-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-special {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.suggest-topic-link {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.suggest-topic-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
}

.write-for-us-link {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.write-for-us-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.newsletter-link {
  background: rgba(74, 111, 165, 0.1);
  color: var(--primary);
}

.newsletter-link:hover {
  background: rgba(74, 111, 165, 0.2);
  transform: translateY(-2px);
}

.privacy-link {
  color: #666;
  font-size: 0.8rem;
  background: transparent;
  padding: 8px 12px;
}

.privacy-link:hover {
  color: var(--primary);
}

.terms-link {
  color: #666;
  font-size: 0.8rem;
  background: transparent;
  padding: 8px 12px;
}

.terms-link:hover {
  color: var(--primary);
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
  display: none;
  background: linear-gradient(
    135deg,
    rgba(74, 111, 165, 0.1),
    rgba(107, 142, 35, 0.1)
  );
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 1002;
  flex-shrink: 0;
  line-height: 1;
}

.mobile-menu-btn:hover {
  background: rgba(74, 111, 165, 0.2);
  transform: scale(1.05);
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  overflow-y: auto;
  visibility: hidden;
  display: block;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(74, 111, 165, 0.1);
  z-index: 10;
}

.mobile-nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-nav-logo span {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-nav-close {
  background: rgba(74, 111, 165, 0.1);
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(74, 111, 165, 0.2);
  transform: rotate(90deg);
}

.mobile-nav-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark);
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
}

.mobile-nav-link i {
  font-size: 1.2rem;
  width: 28px;
  color: var(--primary);
}

.mobile-nav-link:active {
  background: rgba(74, 111, 165, 0.1);
}

.mobile-nav-link.special {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
  margin-top: 15px;
}

.mobile-nav-link.special i {
  color: white;
}

/* Mobile Dropdowns */
.mobile-dropdown {
  width: 100%;
  border-radius: 12px;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  padding: 12px 16px;
  font-family: inherit;
}

.mobile-dropdown-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--primary);
}

.mobile-dropdown.active .mobile-dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  padding: 5px 0 5px 45px;
  background: rgba(74, 111, 165, 0.03);
  border-radius: 12px;
  margin-bottom: 5px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-nav-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #4a5568;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav-sub i {
  width: 24px;
  font-size: 0.9rem;
  color: var(--primary);
}

.mobile-nav-sub:active {
  background: rgba(74, 111, 165, 0.08);
}

/* Mobile Nested Submenu */
.mobile-sub-dropdown {
  width: 100%;
}

.mobile-sub-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #4a5568;
  font-family: inherit;
}

.mobile-sub-toggle .fa-chevron-right {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
  color: var(--primary);
}

.mobile-sub-dropdown.active .mobile-sub-toggle .fa-chevron-right {
  transform: rotate(90deg);
}

.mobile-sub-menu {
  display: none;
  padding-left: 25px;
  margin-top: 5px;
}

.mobile-sub-dropdown.active .mobile-sub-menu {
  display: block;
}

.mobile-nav-sub-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-decoration: none;
  color: #5a6a7a;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav-sub-sub i {
  width: 22px;
  font-size: 0.85rem;
  color: #6c757d;
}

.mobile-nav-sub-sub:active {
  background: rgba(74, 111, 165, 0.08);
}

.mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 15px 0;
}

/* ==========================================================
   MIND MATCH: MEMORY GAME
   ========================================================== */
.mind-match-section {
  padding: 5rem 1.5rem;
  background: #f5f5f7;
  display: flex;
  justify-content: center;
}

.match-container {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.match-header {
  margin-bottom: 2rem;
}

.match-badge {
  display: inline-block;
  background: rgba(60, 150, 144, 0.1);
  color: #2a6e69;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(60, 150, 144, 0.2);
}

.match-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e2d42;
  margin-bottom: 0.5rem;
}

.match-header p {
  color: #556274;
  font-size: 1.05rem;
}

.match-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px -10px rgba(52, 73, 99, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: #6a7a8a;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e2d42;
}

.match-btn {
  background: #1e2d42;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.match-btn:hover {
  background: #3c9690;
  transform: translateY(-2px);
}

/* --- THE GAME BOARD --- */
.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  perspective: 1000px; /* Required for 3D flip */
}

.card {
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The actual flip trigger */
.card.flipped {
  transform: rotateY(180deg);
}

/* Match animation */
.card.matched {
  animation: matchPulse 0.6s ease;
  cursor: default;
}
.card.matched .card-front {
  border-color: #76a92d;
  box-shadow: 0 0 15px rgba(118, 169, 45, 0.4);
  background: #f0fdf4;
}

@keyframes matchPulse {
  0% {
    transform: rotateY(180deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.1);
  }
  100% {
    transform: rotateY(180deg) scale(1);
  }
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px -4px rgba(52, 73, 99, 0.15);
  border: 2px solid transparent;
}

/* Front (the emoji) */
.card-front {
  background: #ffffff;
  transform: rotateY(180deg);
  border-color: #e2e8f0;
}

/* Back (the pattern) */
.card-back {
  background: linear-gradient(135deg, #1e2d42 0%, #2a4a5c 100%);
  color: rgba(255, 255, 255, 0.2);
  transform: rotateY(0deg);
}

.card-back::after {
  content: "?";
  font-family: serif;
  font-size: 2rem;
  font-weight: 900;
}

/* Disable hover effects on flipped/matched cards */
.card:not(.flipped):not(.matched):hover .card-back {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
  box-shadow: 0 12px 20px -8px rgba(22, 34, 58, 0.3);
}

@media (max-width: 500px) {
  .game-board {
    gap: 0.5rem;
  }
  .card-face {
    font-size: 1.8rem;
    border-radius: 12px;
  }
  .match-stats {
    gap: 1rem;
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .match-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================
   DAILY SPARK: AFFIRMATION & GOAL WIDGET
   ========================================================== */
.daily-spark-section {
  padding: 5rem 1.5rem;
  background: #f5f5f7;
  display: flex;
  justify-content: center;
}

.spark-container {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.spark-card {
  background: linear-gradient(145deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border-radius: 24px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(22, 34, 58, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(245, 200, 66, 0.2);
}

/* Glow effect behind the card */
.spark-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.08) 0%,
    transparent 60%
  );
  animation: sparkFloat 8s infinite alternate;
  pointer-events: none;
}

@keyframes sparkFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(10%, 10%) rotate(5deg);
  }
}

.spark-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.spark-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5c842;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.spark-quote {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;

  /* Brand Theme Gradient (Gold -> Bright Leaf -> Teal) */
  background: linear-gradient(
    135deg,
    #fff3c4 0%,
    #f5c842 30%,
    #96d13a 70%,
    #45b5ad 100%
  );
  background-size: 200% auto;

  /* Required to make text take the gradient color */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* Subtle drop shadow behind the transparent text to make it readable */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));

  /* Optional: Slow animated shimmer effect across the text */
  animation: quoteGradientShift 5s ease infinite;
}

@keyframes quoteGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.spark-author {
  font-size: 0.9rem;
  color: #a0c5c2;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.spark-btn {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 15px -4px rgba(212, 175, 55, 0.5);
}

.spark-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -4px rgba(245, 200, 66, 0.7);
}

.spark-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  line-height: 1.5;
}

.spark-input-group {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

#spark-input {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

#spark-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#spark-input:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.15);
}

.spark-save-btn {
  background: #ffffff;
  color: #1e2d42;
  border: none;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spark-save-btn:hover {
  background: #f5c842;
}

.spark-saved-msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #a8f0c6;
  font-weight: 600;
  min-height: 1.2rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .spark-container {
    grid-template-columns: 1fr;
  }
  .spark-quote {
    font-size: 1.2rem;
  }
  .spark-input-group {
    flex-direction: column;
  }
  .spark-save-btn {
    padding: 0.9rem;
  }
}

/* ==========================================================
   MINDFUL SUDOKU
   ========================================================== */
.sudoku-section {
  padding: 5rem 1.5rem;
  background: #f5f5f7;
  display: flex;
  justify-content: center;
}

.sudoku-container {
  max-width: 550px;
  width: 100%;
  text-align: center;
}

.sudoku-header {
  margin-bottom: 2rem;
}
.sudoku-badge {
  display: inline-block;
  background: rgba(245, 200, 66, 0.15);
  color: #a67c00;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(245, 200, 66, 0.3);
}
.sudoku-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e2d42;
  margin-bottom: 0.5rem;
}
.sudoku-header p {
  color: #556274;
  font-size: 1.05rem;
}

.sudoku-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px -4px rgba(52, 73, 99, 0.1);
}

.sudoku-difficulty {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #344963;
  cursor: pointer;
}
.sudoku-difficulty input {
  accent-color: #3c9690;
  cursor: pointer;
}

.sudoku-btn {
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.sudoku-btn.primary {
  background: #1e2d42;
  color: white;
}
.sudoku-btn.primary:hover {
  background: #3c9690;
  transform: translateY(-2px);
}
.sudoku-btn.secondary {
  background: #eef1f5;
  color: #1e2d42;
}
.sudoku-btn.secondary:hover {
  background: #d8e0e8;
}
.sudoku-btn.success {
  background: #76a92d;
  color: white;
}
.sudoku-btn.success:hover {
  background: #5c8a1e;
  transform: translateY(-2px);
}
.sudoku-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* The Board */
.sudoku-board-wrapper {
  background: #1e2d42;
  padding: 4px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(30, 45, 66, 0.4);
  margin-bottom: 1.5rem;
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.sudoku-cell {
  aspect-ratio: 1/1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #3c9690;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

/* Thicker borders for 3x3 grids */
.sudoku-cell:nth-child(3n) {
  border-right: 2px solid #1e2d42;
}
.sudoku-cell:nth-child(9n) {
  border-right: none;
}
.sudoku-cell:nth-child(n + 19):nth-child(-n + 27),
.sudoku-cell:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid #1e2d42;
}

/* Fixed / Initial numbers */
.sudoku-cell.fixed {
  color: #1e2d42;
  font-weight: 800;
  background: #f8f9fa;
  cursor: default;
}
.sudoku-cell.selected {
  background: #e0f2f1 !important;
  box-shadow: inset 0 0 0 2px #3c9690;
}
.sudoku-cell.highlight {
  background: #f1f8e9;
}
.sudoku-cell.error {
  color: #dc2626;
  background: #fef2f2;
  animation: shake 0.3s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Status Bar */
.sudoku-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sudoku-status {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #556274;
  font-weight: 600;
}
.sudoku-status strong {
  color: #1e2d42;
}
.sudoku-actions {
  display: flex;
  gap: 0.5rem;
}

/* Numpad */
.sudoku-numpad {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}
.numpad-btn {
  aspect-ratio: 1/1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e2d42;
  cursor: pointer;
  transition: all 0.15s ease;
}
.numpad-btn:hover {
  background: #f5f5f7;
  border-color: #3c9690;
  color: #3c9690;
}

.sudoku-win-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .sudoku-cell {
    font-size: 1rem;
  }
  .sudoku-difficulty label {
    font-size: 0.8rem;
  }
  .sudoku-controls {
    flex-direction: column;
    gap: 1rem;
  }
  .sudoku-bottom {
    flex-direction: column;
  }
  .sudoku-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sudoku-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
  }
}

/* Find this in your style.css */
.dropdowns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  /* ADD THIS LINE: */
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

/* --- REUSED STYLES FOR THE NEW DROPDOWN --- */
/* (Assuming these already exist in your CSS, if not, here they are) */
.game-dropdown-wrapper {
  /* margin-bottom: 20px; -- Remove this from original if you want them perfectly aligned */
}
/* Find this in your style.css */
.game-dropdown-container {
  display: flex;
  flex-direction: row; /* Puts label and select side-by-side */
  align-items: center;
  gap: 10px;
  background: rgba(15, 22, 35, 0.75);
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-dropdown-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
}
.game-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.game-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 35px 8px 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
}
.game-select:hover,
.game-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.game-select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #8fa0b5;
}

/* ==========================================================
   CUSTOM PREMIUM DROPDOWN UI
   ========================================================== */

.dropdowns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.game-dropdown-wrapper.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 320px;
  user-select: none;
}

/* The visible trigger button */
.game-dropdown-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 8px 12px 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(52, 73, 99, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown:hover .game-dropdown-container {
  border-color: #d4af37;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.game-dropdown-label {
  font-weight: 800;
  color: #1e2d42;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.custom-select-trigger {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: #1e2d42;
  border: 2px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
}

.custom-select-trigger i {
  color: #3c9690;
  transition: transform 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown.open .custom-select-trigger i {
  transform: rotate(180deg);
}

/* The Dropdown Menu */
/* The Dropdown Menu - dark theme */
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e2d42; /* Deep navy background */
  border-radius: 12px;
  border: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
  padding: 6px;
}

.game-dropdown-wrapper.custom-dropdown.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual Options */
.custom-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0; /* Off-white text */
  transition: all 0.2s;
  text-align: left;
}

.custom-option:hover {
  background: rgba(60, 150, 144, 0.2); /* Teal hover */
  color: #ffffff;
}

.custom-option.selected {
  background: rgba(245, 200, 66, 0.15); /* Gold tint for selected */
  color: #f5c842;
  font-weight: 800;
}

@media (max-width: 850px) {
  .dropdowns-row {
    flex-direction: column;
  }
  .game-dropdown-wrapper.custom-dropdown {
    max-width: 100%;
  }
}

/* ==========================================================
   CUSTOM PREMIUM DROPDOWN UI
   ========================================================== */

.dropdowns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.game-dropdown-wrapper.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 320px;
  user-select: none;
}

/* The visible trigger button */
.game-dropdown-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 8px 12px 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(52, 73, 99, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown:hover .game-dropdown-container {
  border-color: #d4af37;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.game-dropdown-label {
  font-weight: 800;
  color: #1e2d42;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.custom-select-trigger {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: #1e2d42;
  border: 2px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
}

.custom-select-trigger i {
  color: #3c9690;
  transition: transform 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown.open .custom-select-trigger i {
  transform: rotate(180deg);
}

/* The Dropdown Menu */
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(30, 45, 66, 0.15);
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
  padding: 6px;
}

.game-dropdown-wrapper.custom-dropdown.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual Options */
.custom-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5c72;
  transition: all 0.2s;
  text-align: left;
}

.custom-option:hover {
  background: #f0f7ff;
  color: #1e2d42;
}

.custom-option.selected {
  background: #e0f2f1;
  color: #2a6e69;
  font-weight: 800;
}

@media (max-width: 850px) {
  .dropdowns-row {
    flex-direction: column;
  }
  .game-dropdown-wrapper.custom-dropdown {
    max-width: 100%;
  }
}

/* ============================================ */
/* FLAG STYLES                                  */
/* ============================================ */

.country-flag-img {
  width: 24px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.travel-card-header .country-flag-img {
  width: 48px;
  height: 36px;
  margin-bottom: 12px;
  margin-right: 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* COMMUNITY STORIES SECTION                    */
/* ============================================ */

.community-stories-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
}

.community-stories-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.community-stories-section .stories-header {
  text-align: center;
  margin-bottom: 50px;
}

.community-stories-section .stories-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  font-weight: 600;
  color: #4a6fa5;
  font-size: 0.9rem;
}

.community-stories-section .stories-badge i {
  color: #8b5cf6;
}

.community-stories-section .stories-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.community-stories-section .stories-title span {
  color: #8b5cf6;
}

.community-stories-section .stories-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.community-stories-section .stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
}

.community-story-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.community-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.community-story-card .card-tag-strip {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.community-story-card .category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.community-story-card .read-time {
  font-size: 0.75rem;
  color: #8a95a5;
}

.community-story-card .card-content {
  padding: 25px 25px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.community-story-card h3 {
  color: #2c3e50;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
}

.community-story-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.community-story-card .author-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.community-story-card .author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.community-story-card .author-info {
  flex: 1;
  min-width: 0;
}

.community-story-card .author-name {
  font-size: 0.85rem;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.community-story-card .author-role {
  font-size: 0.75rem;
  color: #8a95a5;
  margin: 0;
}

.community-story-card .read-link {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.community-story-card .read-link:hover {
  transform: translateX(3px);
}

.community-stories-section .story-cta {
  text-align: center;
}

.community-stories-section .story-cta p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 18px;
}

.community-stories-section .story-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.community-stories-section .story-cta .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

/* --- Community Tabs --- */
.community-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}

.community-tab {
  background: #ffffff;
  border: 2px solid #e9ecef;
  color: #4a6fa5;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.community-tab:hover {
  border-color: #4a6fa5;
  background: #f0f7ff;
}

.community-tab.active {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8c 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(74, 111, 165, 0.25);
}

/* --- Community Topic Cards --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.community-topic-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f2f5;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.community-topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(74, 111, 165, 0.12);
}

.topic-tag-strip {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.topic-category-tag {
  text-transform: uppercase;
}

.topic-suggest-count {
  color: #6b7280;
  font-weight: 500;
}

.topic-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-body h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #1f2937;
  margin: 0 0 12px;
  font-weight: 600;
}

.topic-body p {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

.topic-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.topic-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.topic-status.in-progress {
  background: #fff4e6;
  color: #c2410c;
}

.topic-status.researching {
  background: #eff6ff;
  color: #1d4ed8;
}

.topic-status.open {
  background: #f0fdf4;
  color: #15803d;
}

.topic-vote-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
  font-family: inherit;
}

.topic-vote-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.topic-vote-btn.voted {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.topic-vote-btn i {
  font-size: 0.85rem;
}

/* ============================================ */
/* WRITE FOR US SECTION                         */
/* ============================================ */

.write-for-us-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #eef2f7 0%, #e6ecf5 100%);
}

.write-for-us-section .container {
  padding: 0 20px;
}

.write-for-us-section .wfu-header {
  text-align: center;
  margin-bottom: 40px;
}

.write-for-us-section .wfu-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  font-weight: 600;
  color: #4a6fa5;
  font-size: 0.9rem;
}

.write-for-us-section .wfu-badge i {
  color: #6b8e23;
}

.write-for-us-section .wfu-title {
  color: #2c3e50;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.write-for-us-section .wfu-title span {
  color: #6b8e23;
}

.write-for-us-section .wfu-description {
  font-size: clamp(1rem, 4vw, 1.1rem);
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.write-for-us-section .how-it-works-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
  max-width: 1000px !important;
  margin: 0 auto 60px !important;
}

.write-for-us-section .wfu-step {
  background: white;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.write-for-us-section .wfu-step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 15px;
}

.write-for-us-section .wfu-step-number.step-1 {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8c 100%);
}

.write-for-us-section .wfu-step-number.step-2 {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
}

.write-for-us-section .wfu-step-number.step-3 {
  background: linear-gradient(135deg, #ff7e5f 0%, #ff6b6b 100%);
}

.write-for-us-section .wfu-step h4 {
  color: #2c3e50;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.write-for-us-section .wfu-step p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.write-for-us-section .write-for-us-grid {
  display: grid !important;
  grid-template-columns: 1fr 1.3fr !important;
  gap: 40px !important;
  align-items: start !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.write-for-us-section .wfu-card {
  background: white;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.write-for-us-section .wfu-card h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.write-for-us-section .wfu-card h3 i {
  color: #6b8e23;
}

.write-for-us-section .wfu-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.write-for-us-section .wfu-type-card {
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
}

.write-for-us-section .wfu-type-card.article {
  background: #f0f7ff;
}

.write-for-us-section .wfu-type-card.story {
  background: #f5f0ff;
}

.write-for-us-section .wfu-type-card i {
  font-size: 1.2rem;
}

.write-for-us-section .wfu-type-card.article i {
  color: #4a6fa5;
}

.write-for-us-section .wfu-type-card.story i {
  color: #8b5cf6;
}

.write-for-us-section .wfu-type-card p {
  font-size: 0.8rem;
  color: #2c3e50;
  font-weight: 600;
  margin: 6px 0 0;
}

.write-for-us-section .wfu-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.write-for-us-section .wfu-checklist li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.write-for-us-section .wfu-checklist li i {
  color: #4a6fa5;
  margin-top: 3px;
  flex-shrink: 0;
}

.write-for-us-section .wfu-checklist strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 4px;
}

.write-for-us-section .wfu-checklist p {
  color: #666;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.write-for-us-section .wfu-callout {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
}

.write-for-us-section .wfu-callout.story-callout {
  background: #f5f0ff;
  border-left: 4px solid #8b5cf6;
}

.write-for-us-section .wfu-callout.info-callout {
  background: #f0f7ff;
  border-left: 4px solid #4a6fa5;
  padding: 15px 18px;
}

.write-for-us-section .wfu-callout.email-callout {
  background: #fff8e1;
  border-left: 4px solid #ffa726;
}

.write-for-us-section .wfu-callout p {
  color: #2c3e50;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.write-for-us-section .wfu-callout p:last-child {
  margin-bottom: 0;
}

.write-for-us-section .wfu-callout .wfu-callout-text {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

.write-for-us-section .wfu-callout a {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 6px;
}

.write-for-us-section .wfu-form-header {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.write-for-us-section .wfu-form-header i {
  color: #4a6fa5;
}

.write-for-us-section .wfu-form-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.write-for-us-section .wfu-form-desc strong {
  color: #4a6fa5;
}

.write-for-us-section .wfu-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px;
  background: #f8f9fa;
  border-radius: 14px;
}

.write-for-us-section .wfu-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.write-for-us-section .wfu-toggle label.active {
  background: white;
}

.write-for-us-section .wfu-toggle input {
  accent-color: #4a6fa5;
}

.write-for-us-section .wfu-toggle input[value="Personal Story"] {
  accent-color: #8b5cf6;
}

.write-for-us-section #write-for-us-form {
  display: grid;
  gap: 18px;
}

.write-for-us-section .wfu-field {
  display: block;
}

.write-for-us-section .wfu-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.write-for-us-section .wfu-label .req {
  color: #ff6b6b;
}

.write-for-us-section .wfu-label .optional {
  font-weight: 400;
  color: #8a95a5;
  font-size: 0.8rem;
}

.write-for-us-section .wfu-input,
.write-for-us-section .wfu-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.write-for-us-section .wfu-textarea {
  resize: vertical;
  min-height: 120px;
}

.write-for-us-section .wfu-hint {
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
}

.write-for-us-section .wfu-submit {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8c 100%);
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 5px;
}

.write-for-us-section .wfu-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 111, 165, 0.3);
}

.write-for-us-section #write-for-us-success {
  display: none;
  text-align: center;
  padding: 22px;
  background: #e8f5e9;
  border-radius: 12px;
  color: #2e7d32;
}

/* --- Image Guidelines --- */
.image-callout {
  background: linear-gradient(135deg, #f0f4fa 0%, #e8eef7 100%);
  border-left: 4px solid #4a6fa5;
}

.wfu-image-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wfu-image-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.wfu-image-list li > i {
  color: #4a6fa5;
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.wfu-image-list strong {
  display: block;
  color: #2c3e50;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.wfu-image-list p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

.wfu-image-guidelines {
  max-width: 1100px;
  margin: 60px auto 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.wfu-image-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.wfu-image-header h3 {
  color: #2c3e50;
  font-size: 1.6rem;
  margin: 0 0 12px;
  line-height: 1.3;
}

.wfu-image-header p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.wfu-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.wfu-image-card {
  background: #f9fbfd;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid #eef2f7;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.wfu-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74, 111, 165, 0.12);
}

.wfu-image-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 1.4rem;
}

.wfu-image-icon.bio {
  background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8c 100%);
}

.wfu-image-icon.article {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
}

.wfu-image-icon.credit {
  background: linear-gradient(135deg, #ff7e5f 0%, #ff6b6b 100%);
}

.wfu-image-card h4 {
  color: #2c3e50;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.wfu-image-card p {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.wfu-image-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff7ed;
  border-left: 4px solid #ff7e5f;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

.wfu-image-warning i {
  color: #ff7e5f;
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.wfu-image-warning p {
  margin: 0;
  color: #5a4a3a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.wfu-image-footer {
  text-align: center;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 8px;
}

/* ============================================ */
/* FOOTER — THEMED 3D EDITION                   */
/* Theme: Navy #344963 · Teal #3C9690 ·         */
/*        Leaf #76A92D · Gold #d4af37           */
/* ============================================ */

.site-footer {
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --navy: #344963;
  --teal: #3c9690;
  --teal-bright: #45b5ad;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --leaf-bright: #9acd32;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;

  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;

  /* Rich navy → deep teal gradient */
  background: linear-gradient(155deg, #16223a 0%, #1e2d42 45%, #24334a 100%);

  color: rgba(255, 255, 255, 0.88);
  padding: 4rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* Gold shimmer bar at the top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-bright) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: footerGoldSweep 6s ease-in-out infinite;
  z-index: 4;
}

@keyframes footerGoldSweep {
  0%,
  100% {
    background-position: -100% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

/* Soft teal glow orb in the top-right corner */
.site-footer::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.14) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ============================================ */
/* FOOTER LOGO — 3D Animated                    */
/* ============================================ */

.footer-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
  border-bottom: none !important;
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  flex-shrink: 0;
  animation: footerLogoFloat 3s ease-in-out infinite;
}

.footer-logo-img {
  width: 34px !important;
  height: 34px !important;
  display: block !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 10px rgba(60, 150, 144, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 200, 66, 0.35);
}

@keyframes footerLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.footer-logo-text {
  display: inline-block;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a8d5d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo-accent {
  background: linear-gradient(135deg, #9acd32 0%, #f5c842 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ============================================ */
/* FOOTER COLUMN HEADINGS                       */
/* ============================================ */

.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold-bright) 100%);
  border-radius: 2px;
}

/* ============================================ */
/* FOOTER LINKS                                 */
/* ============================================ */

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
  padding-left: 6px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
}

/* ============================================ */
/* SOCIAL ICONS                                 */
/* ============================================ */

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 3px 8px -3px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social .social-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4),
    0 8px 16px -4px rgba(0, 0, 0, 0.5),
    0 0 18px -4px rgba(245, 200, 66, 0.5);
  background: linear-gradient(145deg, #3a4d66 0%, #24334a 100%);
}

/* ============================================ */
/* TRUST BADGES ROW                             */
/* ============================================ */

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(245, 200, 66, 0.15);
  width: 100%;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-trust-badge:hover {
  color: var(--gold-pale);
}

.footer-trust-badge i {
  color: var(--gold-bright);
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ============================================ */
/* DISCLAIMER BOX                               */
/* ============================================ */

.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(60, 150, 144, 0.1) 0%,
    rgba(52, 73, 99, 0.08) 100%
  );
  border-radius: 16px;
  border-left: 3px solid var(--teal);
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px -6px rgba(0, 0, 0, 0.3);
}

.footer-disclaimer i {
  color: var(--gold-bright);
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.footer-disclaimer strong {
  color: #ffffff;
  font-weight: 700;
}

/* ============================================ */
/* COPYRIGHT                                    */
/* ============================================ */

.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer-copyright a {
  color: var(--gold-bright);
  text-decoration: none;
  margin-left: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 200, 66, 0.35);
  transition: all 0.25s ease;
  padding-bottom: 1px;
}

.footer-copyright a:hover {
  color: var(--gold-pale);
  border-bottom-color: var(--gold-bright);
}

/* ============================================ */
/* EMAIL CONTACT BAR                            */
/* ============================================ */

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(245, 200, 66, 0.15);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.footer-contact i {
  color: var(--gold-bright);
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  word-break: break-word;
  border-bottom: 1px solid rgba(245, 200, 66, 0.35);
  padding-bottom: 2px;
}

.footer-contact a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ============================================ */
/* RESPONSIVE — TABLET                          */
/* ============================================ */

@media (max-width: 1024px) {
  .site-footer {
    padding: 3.5rem 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

/* ============================================ */
/* RESPONSIVE — MOBILE                          */
/* ============================================ */

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.25rem 0;
    margin-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo-link {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a:hover {
    padding-left: 0;
    color: var(--gold-bright);
  }

  .footer-links a::before {
    display: none;
  }

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

  .footer-trust {
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-disclaimer {
    text-align: left;
    padding: 1.15rem 1.25rem;
    font-size: 0.78rem;
  }

  .footer-copyright p {
    font-size: 0.78rem;
  }

  .footer-copyright a {
    display: inline-block;
    margin: 4px 6px 0 6px;
  }
}

/* ============================================ */
/* RESPONSIVE — SMALL MOBILE                    */
/* ============================================ */

@media (max-width: 480px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
  }

  .footer-logo-link {
    font-size: 1.35rem;
  }

  .footer-logo-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .footer-logo-img {
    width: 30px !important;
    height: 30px !important;
  }

  .footer-col h4 {
    font-size: 0.95rem;
  }

  .footer-tagline,
  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-social .social-link {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.85rem;
  }

  .footer-contact {
    padding: 1.1rem 1rem 1.5rem;
  }

  .footer-contact a {
    font-size: 0.88rem;
  }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
  .site-footer::before,
  .footer-logo-icon {
    animation: none !important;
  }

  .footer-social .social-link:hover,
  .footer-links a:hover {
    transform: none !important;
  }
}

/* ============================================ */
/* ABOUT SECTION (VIBRANT)                      */
/* ============================================ */

.about-vibrant {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 30%, #24243e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.about-vibrant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 126, 95, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107, 142, 35, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(74, 111, 165, 0.15) 0%,
      transparent 50%
    );
  animation: particleMove 20s infinite alternate;
}

@keyframes particleMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, -50px) scale(1.1);
  }
}

.vibrant-hero {
  margin-bottom: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tagline-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #ff7e5f 0%,
    #feb47b 25%,
    #86a8e7 50%,
    #91eae4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 126, 95, 0.3);
}

.hero-visual {
  position: relative;
  height: 400px;
}

.floating-emojis {
  position: absolute;
  width: 100%;
  height: 100%;
}

.emoji-float {
  position: absolute;
  font-size: 3rem;
  animation: floatAround 15s infinite linear;
}

.emoji-float:nth-child(1) {
  top: 10%;
  left: 20%;
}
.emoji-float:nth-child(2) {
  top: 60%;
  left: 10%;
}
.emoji-float:nth-child(3) {
  top: 30%;
  right: 20%;
}
.emoji-float:nth-child(4) {
  bottom: 20%;
  right: 30%;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(0, -50px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, -30px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.emoji-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 126, 95, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: orbPulse 4s infinite alternate;
}

@keyframes orbPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 126, 95, 0.4);
}

.pulse-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.btn-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(10px);
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.sparkle {
  animation: sparkleSpin 3s infinite linear;
}

@keyframes sparkleSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  color: var(--leaf);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--teal);
}

/* --- Category Cards --- */
.category-cards-section {
  margin: 60px 0;
}

.section-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 40px;
  font-weight: 700;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.category-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 126, 95, 0.4);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.card-illustration {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.category-card:hover .card-illustration {
  transform: scale(1.05);
}

.wellness-illu {
  background: linear-gradient(135deg, #86a8e7 0%, #91eae4 100%);
  box-shadow: 0 8px 20px rgba(134, 168, 231, 0.3);
}

.emotional-illu {
  background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3);
}

.lifestages-illu {
  background: linear-gradient(135deg, #98d8c8 0%, #b2e0d4 100%);
  box-shadow: 0 8px 20px rgba(152, 216, 200, 0.3);
}

.growth-illu {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  box-shadow: 0 8px 20px rgba(255, 126, 95, 0.3);
}

.finance-illu {
  background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.3);
}

.travel-illu {
  background: linear-gradient(135deg, #6b8e23 0%, #9acd32 100%);
  box-shadow: 0 8px 20px rgba(107, 142, 35, 0.3);
}

.category-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.category-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  width: auto;
  min-width: 160px;
  margin-top: 10px;
}

.category-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 126, 95, 0.3);
  color: white;
}

.card-disclaimer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Value Proposition --- */
.value-proposition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 100px 0;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-card {
  animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.1);
  }
  50% {
    box-shadow: 0 20px 50px rgba(255, 126, 95, 0.2);
  }
}

.value-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: inline-block;
}

.spin-icon {
  animation: spinSlow 10s infinite linear;
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
}

.value-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* --- Personal Connection --- */
.personal-connection {
  display: flex;
  margin: 100px 0;
}

.expert-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.connection-text h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.text-glow {
  text-shadow: 0 0 10px rgba(255, 126, 95, 0.5);
  color: var(--accent);
}

.personal-story {
  margin-bottom: 40px;
}

.story-point {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.story-point:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.story-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 126, 95, 0.12);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 126, 95, 0.3);
  transition: all 0.3s ease;
  margin-top: 25px;
  cursor: pointer;
  width: fit-content;
}

.editorial-link:hover {
  background: rgba(255, 126, 95, 0.2);
  transform: translateX(5px);
  border-color: rgba(255, 126, 95, 0.6);
  color: var(--accent);
}

/* --- Community Stats --- */
.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 100px 0;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 126, 95, 0.3);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.stat-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 5px;
}

.percent-sign {
  font-size: inherit;
}

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(
    135deg,
    rgba(255, 126, 95, 0.1) 0%,
    rgba(107, 142, 35, 0.1) 100%
  );
  border-radius: 30px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 126, 95, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(107, 142, 35, 0.2) 0%,
      transparent 50%
    );
  animation: floatBackground 10s infinite alternate;
}

@keyframes floatBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-20px, -20px);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #86a8e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.main-cta-btn {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
  padding: 20px 50px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.main-cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 126, 95, 0.4);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

.main-cta-btn:hover .btn-glow {
  left: 100%;
}

.secondary-cta-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.secondary-cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.trust-signals {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.trust-signals .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  color: inherit;
  font-size: inherit;
}

.expert-endorsement-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ==========================================================
   EMOTIONAL WELLNESS HUB — 3D VIVID CARDS
   ========================================================== */

.emotional-wellness-hub {
  --navy: #344963;
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --teal: #3c9690;
  --teal-bright: #45b5ad;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --leaf-bright: #96d13a;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-glow: #ffdc6b;

  padding: 5rem 1.5rem;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(60, 150, 144, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(118, 169, 45, 0.07) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  position: relative;
  overflow: hidden;
}

.emotional-wellness-hub .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.wellness-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(60, 150, 144, 0.12) 0%,
    rgba(118, 169, 45, 0.1) 100%
  );
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--teal-deep);
  border: 1px solid rgba(60, 150, 144, 0.25);
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px rgba(60, 150, 144, 0.2);
}

.wellness-main-title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.wellness-main-title .gradient-text {
  background: linear-gradient(
    135deg,
    var(--navy-deep) 0%,
    var(--teal) 55%,
    var(--leaf) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wellness-subtitle {
  font-size: 1.05rem;
  color: #4a5c72;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.wellness-stats {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #556274;
  font-weight: 500;
}

.wellness-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wellness-stats i {
  color: var(--teal);
  font-size: 0.9rem;
}

/* ---------- GRIDS ---------- */
.featured-topics-grid,
.expanded-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  perspective: 1400px;
}

/* ==========================================================
   3D WELLNESS CARD
   ========================================================== */

.wellness-card {
  position: relative;
  border-radius: 24px;
  padding: 2.25rem 1.85rem 1.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #ffffff;
  cursor: pointer;

  /* Vivid navy → teal gradient (deep, saturated) */
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);

  /* 3D beveled edge — gold border with inner highlight + outer shadow */
  border: 2px solid transparent;
  background-clip: padding-box;

  /* Layered 3D shadows */
  box-shadow:
    /* inner top highlight (bevel) */
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    /* close drop shadow */ 0 4px 0 0 #16223a,
    /* mid shadow */ 0 8px 16px -4px rgba(22, 34, 58, 0.5),
    /* far soft shadow */ 0 20px 40px -12px rgba(22, 34, 58, 0.4);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold gradient border via pseudo element */
.wellness-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    #fff3c4 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  animation: goldShimmer 6s ease-in-out infinite;
  transition: filter 0.4s ease;
}

@keyframes goldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Top edge highlight — subtle specular shine */
.wellness-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 100%
  );
  border-radius: 24px 24px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

/* Each card gets a subtly different gradient tint */
.featured-topics-grid .wellness-card:nth-child(2),
.expanded-topics-grid .wellness-card:nth-child(3n + 2) {
  background: linear-gradient(155deg, #223349 0%, #2d4a63 45%, #2f5e5a 100%);
}

.featured-topics-grid .wellness-card:nth-child(3),
.expanded-topics-grid .wellness-card:nth-child(3n) {
  background: linear-gradient(155deg, #1e2d42 0%, #2a5a4e 50%, #3c9690 100%);
}

.featured-topics-grid .wellness-card:nth-child(4),
.expanded-topics-grid .wellness-card:nth-child(3n + 1) {
  background: linear-gradient(155deg, #1a2840 0%, #25405a 50%, #2d7772 100%);
}

/* Hover: lift + 3D rotate + intensify shadows */
.wellness-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 6px 0 0 #16223a,
    0 16px 32px -6px rgba(22, 34, 58, 0.55),
    0 32px 64px -16px rgba(22, 34, 58, 0.45),
    0 0 0 4px rgba(245, 200, 66, 0.15),
    0 0 40px -8px rgba(245, 200, 66, 0.4);
}

.wellness-card:hover::before {
  filter: brightness(1.25);
  animation-duration: 3s;
}

/* ==========================================================================
   COMING SOON CARD — Freeze Response edition
   ========================================================================== */

/* .coming-soon-container {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
} */

/* Pulsing glow */
/* .cs-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(155, 184, 139, 0.22) 0%,
    transparent 60%
  );
  filter: blur(22px);
  z-index: -1;
  animation: csPulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes csPulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
} */

/* ---------- THE CARD ---------- */
/* .coming-soon-fun {
  position: relative;
  border-radius: 20px;
  padding: 60px 45px 50px;
  text-align: center;
  background: linear-gradient(160deg, #1a2332 0%, #223b3d 55%, #1e2f2a 100%);
  color: #e8ecf2;
  border: 1px solid rgba(155, 184, 139, 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
} */

/* Subtle diagonal texture */
/* .coming-soon-fun::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 22px,
    rgba(155, 184, 139, 0.04) 22px,
    rgba(155, 184, 139, 0.04) 23px
  );
  pointer-events: none;
  opacity: 0.8;
} */

/* ---------- RIBBON ---------- */
/* .ribbon-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.ribbon-text {
  position: absolute;
  top: 24px;
  right: -34px;
  width: 160px;
  padding: 8px 0;
  background: linear-gradient(135deg, #c87a5a 0%, #b86947 100%);
  color: #fff;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: rotate(45deg);
  pointer-events: auto;
}

.ribbon-wrapper .mobile-text {
  display: none;
}

@media (max-width: 560px) {
  .ribbon-wrapper {
    width: 100px;
    height: 100px;
  }
  .ribbon-wrapper .desktop-text {
    display: none;
  }
  .ribbon-wrapper .mobile-text {
    display: inline;
  }
  .ribbon-text {
    top: 18px;
    right: -28px;
    width: 130px;
    font-size: 0.65rem;
    padding: 6px 0;
  }
} */

/* ---------- ICON ---------- */
/* .coming-soon-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(155, 184, 139, 0.28),
    rgba(155, 184, 139, 0.06) 70%
  );
  border: 2px solid rgba(155, 184, 139, 0.5);
  font-size: 2rem;
  color: #b8d4a5;
  margin-bottom: 1.2rem;
  animation: csIconFloat 3.6s ease-in-out infinite;
}
@keyframes csIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-6px) rotate(4deg);
  }
} */

/* ---------- COUNTDOWN TAG ---------- */
/* .coming-soon-middle-tag {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}
.middle-tag-pulse {
  display: inline-block;
  background: rgba(10, 37, 64, 0.85);
  padding: 10px 24px;
  border: 1px solid #9bb88b;
  border-radius: 40px;
  color: #b8d4a5;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 0 0 rgba(155, 184, 139, 0.5);
  animation: csTagPulse 2.4s ease-in-out infinite;
}
@keyframes csTagPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 184, 139, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(155, 184, 139, 0);
  }
} */

/* ---------- TITLE ---------- */
/* .coming-soon-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: #f4ede0;
  margin: 0.4rem 0 1.4rem;
  text-wrap: balance;
} */

/* ---------- DESCRIPTION ---------- */
/* .coming-soon-fun-desc {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 1.6rem;
}
.coming-soon-fun-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d8e2d0;
  margin: 0 0 1.2rem;
}
.coming-soon-fun-tagline span {
  color: #b8d4a5;
  font-style: normal;
  font-weight: 500;
}

.coming-soon-fun-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.4rem;
  display: grid;
  gap: 0.7rem;
  text-align: left;
}
.coming-soon-fun-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(155, 184, 139, 0.15);
  border-left: 3px solid rgba(155, 184, 139, 0.55);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e0e8dc;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}
.coming-soon-fun-list li:hover {
  border-left-color: #b8d4a5;
  background: rgba(155, 184, 139, 0.08);
  transform: translateX(4px);
}
.coming-soon-fun-list li strong {
  color: #f4ede0;
  font-weight: 600;
}
.fun-emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.coming-soon-fun-closer {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
  color: #d8e2d0;
  margin: 1.2rem 0 0;
}
.coming-soon-fun-closer strong {
  color: #b8d4a5;
  font-style: normal;
}

/* ---------- META BADGES ---------- */
/* .card-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 1.2rem;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 40px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.meta-badge.research {
  background: rgba(155, 184, 139, 0.16);
  border: 1px solid rgba(155, 184, 139, 0.4);
  color: #b8d4a5;
}
.meta-badge.read-time {
  background: rgba(123, 156, 176, 0.14);
  border: 1px solid rgba(123, 156, 176, 0.35);
  color: #a5c1d4;
}
.meta-badge.coming-soon-badge {
  background: rgba(200, 122, 90, 0.14);
  border: 1px solid rgba(200, 122, 90, 0.4);
  color: #e4a48a;
} */

/* ---------- EAGER LINE ---------- */
/* .coming-soon-eager {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  background: rgba(10, 37, 64, 0.5);
  border-radius: 40px;
  border: 1px dashed rgba(155, 184, 139, 0.4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: #d8e2d0;
  max-width: 100%;
}
.eager-icon {
  color: #b8d4a5;
  font-size: 0.95rem;
  flex-shrink: 0;
  animation: csEagerTwinkle 2.6s ease-in-out infinite;
}
.eager-icon:nth-child(3) {
  animation-delay: 1.3s;
}
@keyframes csEagerTwinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.eager-text {
  flex: 1;
  min-width: 0;
  text-align: center;
} */

/* ---------- MOBILE ---------- */
/* @media (max-width: 640px) {
  .coming-soon-fun {
    padding: 55px 22px 38px;
  }
  .coming-soon-title {
    font-size: 1.35rem;
  }
  .coming-soon-fun-tagline {
    font-size: 0.98rem;
  }
  .coming-soon-fun-list li {
    font-size: 0.87rem;
    padding: 0.65rem 0.8rem;
  }
  .coming-soon-eager {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  .coming-soon-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }
  .middle-tag-pulse {
    font-size: 0.9rem;
    padding: 8px 18px;
  }
} */

/* ---------- REDUCED MOTION ---------- */
/* @media (prefers-reduced-motion: reduce) {
  .cs-glow,
  .coming-soon-icon,
  .middle-tag-pulse,
  .eager-icon {
    animation: none !important;
  }
  .coming-soon-fun-list li {
    transition: none !important;
  }
} */

/* ---------- PRINT ---------- */
/* @media print {
  .coming-soon-container {
    display: none !important;
  }
} */

/* ==========================================================
   LATEST ARTICLE & STORIES — SINGLE FEATURED CARD + UPCOMING NOTE
   ========================================================== */

.latest-stories-section {
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --navy: #344963;
  --teal: #3c9690;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;

  position: relative;
  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(60, 150, 144, 0.1) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(245, 200, 66, 0.09) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  overflow: hidden;
  isolation: isolate;
}

.latest-stories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Floating glow orbs */
.latest-stories-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.latest-stories-orb-1 {
  top: 5%;
  left: 3%;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.2) 0%,
    transparent 70%
  );
  animation: lsOrbFloat1 13s ease-in-out infinite;
}

.latest-stories-orb-2 {
  bottom: 8%;
  right: 4%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.16) 0%,
    transparent 70%
  );
  animation: lsOrbFloat2 16s ease-in-out infinite;
}

@keyframes lsOrbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -25px) scale(1.1);
  }
}
@keyframes lsOrbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-35px, 20px) scale(1.12);
  }
}

/* ---------- HEADER ---------- */
.latest-stories-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.latest-stories-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(245, 200, 66, 0.15) 0%,
    rgba(60, 150, 144, 0.12) 100%
  );
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--teal-deep);
  border: 1px solid rgba(245, 200, 66, 0.4);
  text-transform: uppercase;
  box-shadow: 0 4px 14px -6px rgba(245, 200, 66, 0.3);
}

.ls-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.7);
  animation: lsPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes lsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 200, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0);
  }
}

.latest-stories-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.latest-stories-title span {
  background: linear-gradient(135deg, var(--teal) 0%, var(--leaf) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.latest-stories-subtitle {
  font-size: 1.02rem;
  color: #4a5c72;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 620px;
}

.latest-stories-subtitle strong {
  color: var(--teal-deep);
  font-weight: 700;
}

/* ---------- WIDE FEATURED CARD ---------- */
.latest-story-solo {
  max-width: 980px;
  margin: 0 auto;
  padding: 3.25rem 3rem 2.25rem;
}

.latest-story-card {
  position: relative;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #ffffff;
  overflow: hidden;

  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);

  border: 2px solid transparent;
  background-clip: padding-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 8px 0 0 #16223a,
    0 14px 28px -8px rgba(22, 34, 58, 0.5),
    0 32px 64px -18px rgba(22, 34, 58, 0.4);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    var(--gold-pale) 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: lsGoldShimmer 7s ease-in-out infinite;
}

@keyframes lsGoldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.latest-story-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
  border-radius: 32px 32px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

.latest-story-card:hover {
  transform: translateY(-12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 14px 0 0 #16223a,
    0 24px 48px -6px rgba(22, 34, 58, 0.55),
    0 48px 96px -18px rgba(22, 34, 58, 0.45),
    0 0 0 4px rgba(245, 200, 66, 0.15),
    0 0 56px -8px rgba(245, 200, 66, 0.45);
}

/* ---------- JUST PUBLISHED RIBBON ---------- */
.latest-story-ribbon {
  position: absolute;
  top: 40px;
  right: -45px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f5c842, #d4af37);
  color: #1e2d42;
  padding: 8px 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- ICON ---------- */
.latest-story-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 4;
  flex-shrink: 0;

  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45),
    0 8px 16px -4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.latest-story-icon i {
  font-size: 1.9rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transition: all 0.4s ease;
}

.latest-story-card:hover .latest-story-icon {
  transform: translateY(-5px) rotate(-6deg) scale(1.1);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 14px 28px -4px rgba(0, 0, 0, 0.55),
    0 0 36px -4px rgba(245, 200, 66, 0.6);
}

.latest-story-card:hover .latest-story-icon i {
  color: #fff8e1;
  transform: scale(1.08);
}

/* ---------- TAGS ---------- */
.latest-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 4;
}

.ls-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.42rem 0.9rem;
  border-radius: 40px;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25),
    0 3px 6px -2px rgba(0, 0, 0, 0.3);
}

.ls-tag-new {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  border: 1px solid rgba(255, 243, 196, 0.6);
}

.ls-tag-category {
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  color: #ffffff;
  border: 1px solid rgba(120, 220, 210, 0.5);
}

/* ---------- TITLE ---------- */
.latest-story-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 1.15rem;
  position: relative;
  z-index: 4;
  letter-spacing: -0.018em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease;
  max-width: 780px;
}

.latest-story-card:hover .latest-story-title {
  color: var(--gold-pale);
}

/* ---------- TEXT ---------- */
.latest-story-text {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin: 0 0 2rem;
  flex: 1;
  position: relative;
  z-index: 4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  max-width: 760px;
}

/* ---------- FOOTER ---------- */
.latest-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(245, 200, 66, 0.18);
  position: relative;
  z-index: 4;
}

.latest-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1e2d42;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  padding: 1rem 2.15rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 8px 18px -4px rgba(212, 175, 55, 0.65);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-story-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transition: left 0.7s ease;
}

.latest-story-btn:hover::before {
  left: 100%;
}

.latest-story-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 14px 28px -4px rgba(245, 200, 66, 0.9);
}

.ls-btn-arrow {
  transition: transform 0.3s ease;
}

.latest-story-btn:hover .ls-btn-arrow {
  transform: translateX(6px);
}

.latest-story-time {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.latest-story-time i {
  color: var(--gold-bright);
}

/* ---------- UPCOMING TOPIC — simple line at the bottom ---------- */
.latest-story-upcoming-note {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(120, 220, 210, 0.35);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ls-upcoming-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7ad4cd;
  background: rgba(60, 150, 144, 0.18);
  border: 1px solid rgba(120, 220, 210, 0.4);
  padding: 0.32rem 0.7rem;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ls-upcoming-label i {
  font-size: 0.72rem;
}

.ls-upcoming-topic {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .latest-story-solo {
    max-width: 820px;
    padding: 2.75rem 2.25rem 2rem;
  }
}

@media (max-width: 768px) {
  .latest-stories-section {
    padding: 3.5rem 1.15rem 3rem;
  }

  .latest-stories-header {
    margin-bottom: 2.25rem;
  }

  .latest-story-solo {
    max-width: 100%;
    padding: 2rem 1.65rem 1.65rem;
  }

  .latest-story-card {
    border-radius: 22px;
  }

  .latest-story-card::before {
    border-radius: 22px;
  }

  .latest-story-card::after {
    border-radius: 22px 22px 50% 50%;
  }

  .latest-story-card:hover {
    transform: translateY(-7px);
  }

  .latest-story-icon {
    width: 60px;
    height: 60px;
    border-radius: 17px;
  }

  .latest-story-icon i {
    font-size: 1.6rem;
  }

  .latest-story-ribbon {
    font-size: 0.64rem;
    padding: 7px 42px;
    right: -38px;
  }

  .latest-story-title {
    font-size: 1.35rem;
  }

  .latest-story-text {
    font-size: 1rem;
  }

  .latest-story-btn {
    padding: 0.9rem 1.75rem;
    font-size: 0.92rem;
  }

  .latest-story-upcoming-note {
    font-size: 0.84rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .latest-stories-title {
    font-size: 1.55rem;
  }

  .latest-stories-subtitle {
    font-size: 0.95rem;
  }

  .latest-story-solo {
    padding: 1.75rem 1.35rem 1.4rem;
  }

  .latest-story-card {
    border-radius: 20px;
  }

  .latest-story-card::before {
    border-radius: 20px;
  }

  .latest-story-title {
    font-size: 1.2rem;
  }

  .latest-story-text {
    font-size: 0.94rem;
  }

  .latest-story-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .latest-story-btn {
    width: 100%;
    justify-content: center;
  }

  .latest-story-time {
    justify-content: center;
  }

  .latest-story-upcoming-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .latest-story-card,
  .latest-story-card::before,
  .latest-story-icon,
  .latest-story-btn,
  .latest-story-btn::before,
  .latest-stories-orb,
  .ls-badge-pulse {
    animation: none !important;
    transition: none !important;
  }
  .latest-story-card:hover,
  .latest-story-card:hover .latest-story-icon,
  .latest-story-btn:hover {
    transform: none !important;
  }
}

/* ---------- ICON TILE (3D embossed) ---------- */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 4;

  /* 3D embossed tile */
  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    0 6px 12px -4px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.wellness-card:hover .card-icon-wrapper {
  transform: translateY(-4px) rotate(-8deg) scale(1.1);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45),
    0 10px 20px -4px rgba(0, 0, 0, 0.5),
    0 0 24px -4px rgba(245, 200, 66, 0.6),
    0 0 0 1px rgba(245, 200, 66, 0.6);
}

.card-icon-wrapper i {
  font-size: 1.55rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transition: all 0.4s ease;
}

.wellness-card:hover .card-icon-wrapper i {
  color: #fff8e1;
  filter: drop-shadow(0 0 10px rgba(245, 200, 66, 0.9));
  transform: scale(1.08);
}

/* ---------- TEXT ---------- */
.wellness-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 4;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.wellness-card:hover h3 {
  color: #fff3c4;
}

.wellness-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  position: relative;
  z-index: 4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* ---------- META BADGES (3D pill buttons) ---------- */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 4;
}

.meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25),
    0 3px 6px -2px rgba(0, 0, 0, 0.3);
}

.meta-badge.research {
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  color: #ffffff;
  border: 1px solid rgba(120, 220, 210, 0.5);
}

.meta-badge.read-time {
  background: linear-gradient(145deg, #3a4d66 0%, #24334a 100%);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-badge.new {
  background: linear-gradient(145deg, #96d13a 0%, #5c8a1e 100%);
  color: #ffffff;
  border: 1px solid rgba(200, 240, 130, 0.5);
}

.wellness-card:hover .meta-badge {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 6px 12px -3px rgba(0, 0, 0, 0.4);
}

.wellness-card:hover .meta-badge.read-time {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  border-color: #fff3c4;
}

/* ---------- CARD LINK ---------- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  position: relative;
  z-index: 4;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
  margin-top: auto;
  padding-top: 0.25rem;
  letter-spacing: 0.2px;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright) 0%, #ffffff 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-link:hover {
  color: #fff8e1;
  gap: 0.8rem;
}

.card-link:hover::after {
  width: 100%;
}

/* ==========================================================
   VIEW MORE BUTTON — 3D
   ========================================================== */

.view-more-container {
  text-align: center;
  margin-top: 3rem;
}

#view-more-wellness-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(145deg, #3a4d66 0%, #1e2d42 100%);
  color: #ffffff;
  padding: 1rem 2.4rem;
  border-radius: 60px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  position: relative;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 6px 0 0 #16223a,
    0 10px 24px -6px rgba(22, 34, 58, 0.5);
}

#view-more-wellness-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright),
    #fff3c4,
    var(--gold-bright)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: goldShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

#view-more-wellness-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 8px 0 0 #16223a,
    0 18px 32px -6px rgba(60, 150, 144, 0.5),
    0 0 24px -4px rgba(245, 200, 66, 0.5);
}

#view-more-wellness-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 0 #16223a,
    0 4px 12px -4px rgba(22, 34, 58, 0.5);
}

#view-more-wellness-btn i {
  transition: transform 0.3s ease;
  color: var(--gold-bright);
}

#view-more-wellness-btn.expanded i {
  transform: rotate(180deg);
}

.view-count-text {
  color: #556274;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==========================================================
   TRUST FOOTER
   ========================================================== */

.wellness-trust-footer {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(52, 73, 99, 0.12);
}

.wellness-trust-footer .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #556274;
  font-weight: 500;
}

.wellness-trust-footer .trust-item i {
  color: var(--leaf);
  font-size: 1rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
  .emotional-wellness-hub {
    padding: 3.5rem 1.15rem;
  }

  .wellness-header {
    margin-bottom: 2.5rem;
  }

  .section-authority-badge {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
  }

  .wellness-subtitle {
    font-size: 0.98rem;
  }

  .wellness-stats {
    gap: 1rem;
    font-size: 0.78rem;
    flex-direction: column;
    align-items: center;
  }

  .featured-topics-grid,
  .expanded-topics-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    perspective: none;
  }

  .wellness-card {
    padding: 1.85rem 1.5rem 1.6rem;
    border-radius: 20px;
  }

  .wellness-card:hover {
    transform: translateY(-6px);
  }

  .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .card-icon-wrapper i {
    font-size: 1.35rem;
  }

  .wellness-card h3 {
    font-size: 1.05rem;
  }

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

@media (max-width: 480px) {
  .wellness-main-title {
    font-size: 1.5rem;
  }

  .wellness-card {
    padding: 1.5rem 1.25rem;
  }

  .wellness-card:hover {
    transform: translateY(-4px);
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .wellness-card,
  .wellness-card::before,
  .wellness-card::after,
  .card-icon-wrapper,
  .card-link::after,
  #view-more-wellness-btn::before {
    animation: none !important;
    transition: none !important;
  }

  .wellness-card:hover,
  .wellness-card:hover .card-icon-wrapper {
    transform: none !important;
  }
}

/* ===== TOPIC GLIMPSE SLIDESHOW ===== */
.wellness-glimpse-slider {
  position: relative;
  width: 100%;
  max-width: 1150px; /* Increased slightly to match card width */
  height: 220px; /* Increased from 160px to show more image */
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(60, 150, 144, 0.18);
  box-shadow: 0 6px 18px -8px rgba(52, 73, 99, 0.25);
  touch-action: pan-y;
  background: #1e2d42;
}

.glimpse-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.glimpse-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.glimpse-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%; /* Changes the focus. Try "center top" or "center bottom" if needed */
  pointer-events: none;
  user-select: none;
}

.glimpse-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  background: linear-gradient(
    to top,
    rgba(30, 45, 66, 0.78),
    rgba(30, 45, 66, 0)
  );
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.glimpse-caption .glimpse-tag {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  background: #3c9690;
  padding: 3px 8px;
  white-space: nowrap;
}

.glimpse-caption .glimpse-text {
  font-weight: 500;
  opacity: 0.95;
}

/* Arrows */
.glimpse-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 0; /* squared, matches non-rounded style */
  background: rgba(30, 45, 66, 0.55);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.glimpse-arrow:hover {
  background: rgba(60, 150, 144, 0.9);
}
.glimpse-arrow.prev {
  left: 0;
}
.glimpse-arrow.next {
  right: 0;
}

/* Dots */
.glimpse-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.glimpse-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.glimpse-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* Mobile */
@media (max-width: 640px) {
  .wellness-glimpse-slider {
    height: 110px;
  }
  .glimpse-caption {
    font-size: 0.7rem;
    padding: 6px 10px 8px;
  }
  .glimpse-caption .glimpse-tag {
    font-size: 0.6rem;
  }
  .glimpse-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .wellness-glimpse-slider {
    height: 150px;
  } /* Increased from 110px */
  .glimpse-caption {
    font-size: 0.7rem;
    padding: 6px 10px 8px;
  }
  .glimpse-caption .glimpse-tag {
    font-size: 0.6rem;
  }
  .glimpse-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ==========================================================
   LIFESPAN EMOTIONAL GUIDE — 3D VIVID CARDS
   Theme: Navy #344963 · Teal #3C9690 · Leaf #76A92D · Gold #d4af37
   ========================================================== */

.lifespan-emotional-guide {
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --navy: #344963;
  --teal: #3c9690;
  --teal-bright: #45b5ad;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --leaf-bright: #96d13a;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;

  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(60, 150, 144, 0.09) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 70%,
      rgba(118, 169, 45, 0.08) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  position: relative;
  overflow: hidden;
}

.lifespan-emotional-guide .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.lifespan-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(60, 150, 144, 0.14) 0%,
    rgba(118, 169, 45, 0.12) 100%
  );
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--teal-deep);
  border: 1px solid rgba(60, 150, 144, 0.28);
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px rgba(60, 150, 144, 0.25);
}

.lifespan-title {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.lifespan-title span {
  background: linear-gradient(135deg, var(--teal) 0%, var(--leaf) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lifespan-subtitle {
  font-size: 1.05rem;
  color: #4a5c72;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.lifespan-subtitle strong {
  color: var(--teal-deep);
  font-weight: 700;
}

.lifespan-header > p:last-child {
  font-size: 0.9rem !important;
  color: #556274 !important;
  margin-top: 0.75rem !important;
  line-height: 1.6;
}

.lifespan-header > p:last-child i {
  color: var(--teal);
  margin-right: 0.35rem;
}

/* ==========================================================
   3D STAGE CARD
   ========================================================== */

.stage-card {
  position: relative;
  border-radius: 28px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  isolation: isolate;

  /* Rich navy base — vivid, saturated */
  background: linear-gradient(160deg, #1e2d42 0%, #2a3d54 45%, #24334a 100%);
  color: #ffffff;

  /* 3D beveled edges + layered depth */
  border: 2px solid transparent;
  background-clip: padding-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 6px 0 0 #16223a,
    0 10px 20px -6px rgba(22, 34, 58, 0.5),
    0 24px 48px -16px rgba(22, 34, 58, 0.4);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold gradient border via ::before */
.stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    var(--gold-pale) 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: stageGoldShimmer 7s ease-in-out infinite;
}

@keyframes stageGoldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Top specular highlight */
.stage-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 28px 28px 50% 50%;
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 10px 0 0 #16223a,
    0 18px 36px -6px rgba(22, 34, 58, 0.55),
    0 36px 72px -18px rgba(22, 34, 58, 0.45),
    0 0 0 4px rgba(245, 200, 66, 0.15),
    0 0 40px -8px rgba(245, 200, 66, 0.35);
}

/* ==========================================================
   THEME COLOR ACCENT PER STAGE (left edge gold bar + gradient tint)
   ========================================================== */

/* Left accent bar replaces the old plain border-left */
.stage-card {
  border-left: none !important;
}

/* Each stage gets a vivid gradient tint overlay — subtle but distinct */
.stage-infancy {
  background: linear-gradient(160deg, #1e2d42 0%, #2b4058 45%, #374a63 100%);
}
.stage-infancy .stage-header::before {
  background: linear-gradient(90deg, #ff8fab 0%, #ffb3c1 100%);
}

.stage-toddler {
  background: linear-gradient(160deg, #1e2d42 0%, #2d4a3f 45%, #2a5a4e 100%);
}
.stage-toddler .stage-header::before {
  background: linear-gradient(90deg, #f5c842 0%, #f7d97a 100%);
}

.stage-preschool {
  background: linear-gradient(160deg, #1e2d42 0%, #25425a 45%, #2d6070 100%);
}
.stage-preschool .stage-header::before {
  background: linear-gradient(90deg, #45b5ad 0%, #7ad4cd 100%);
}

.stage-grade {
  background: linear-gradient(160deg, #1e2d42 0%, #2a3f5a 45%, #344963 100%);
}
.stage-grade .stage-header::before {
  background: linear-gradient(90deg, #7aa5d9 0%, #a8c9e8 100%);
}

.stage-early-teen {
  background: linear-gradient(160deg, #1e2d42 0%, #3a3555 45%, #4a4266 100%);
}
.stage-early-teen .stage-header::before {
  background: linear-gradient(90deg, #b39eb5 0%, #d4bfd6 100%);
}

.stage-mid-teen {
  background: linear-gradient(160deg, #1e2d42 0%, #4a3a2e 45%, #5c4832 100%);
}
.stage-mid-teen .stage-header::before {
  background: linear-gradient(90deg, #ffb347 0%, #ffd180 100%);
}

.stage-young-adult {
  background: linear-gradient(160deg, #1e2d42 0%, #2d4a30 45%, #3d5c38 100%);
}
.stage-young-adult .stage-header::before {
  background: linear-gradient(90deg, #96d13a 0%, #c0e57a 100%);
}

.stage-adult {
  background: linear-gradient(160deg, #1e2d42 0%, #5c2f2f 45%, #6b3a3a 100%);
}
.stage-adult .stage-header::before {
  background: linear-gradient(90deg, #e57373 0%, #ffab91 100%);
}

.stage-midlife {
  background: linear-gradient(160deg, #1e2d42 0%, #4a3a4e 45%, #5a4a5e 100%);
}
.stage-midlife .stage-header::before {
  background: linear-gradient(90deg, #b088b8 0%, #d4a8d8 100%);
}

.stage-early-old {
  background: linear-gradient(160deg, #1e2d42 0%, #2d3f42 45%, #3a4d50 100%);
}
.stage-early-old .stage-header::before {
  background: linear-gradient(90deg, #90a4ae 0%, #b8c8d0 100%);
}

.stage-late-old {
  background: linear-gradient(160deg, #1e2d42 0%, #2a3542 45%, #3a4755 100%);
}
.stage-late-old .stage-header::before {
  background: linear-gradient(90deg, #8fa3b8 0%, #c0d0e0 100%);
}

/* ==========================================================
   STAGE HEADER
   ========================================================== */

.stage-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

/* Colored top accent line inside the header */
.stage-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 28px 28px 0 0;
  z-index: 4;
}

.stage-icon {
  font-size: 2.8rem;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;

  /* 3D embossed tile */
  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.4);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45),
    0 6px 14px -4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.stage-card:hover .stage-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 10px 22px -4px rgba(0, 0, 0, 0.55),
    0 0 24px -4px rgba(245, 200, 66, 0.55),
    0 0 0 1px rgba(245, 200, 66, 0.6);
}

.stage-title-wrapper {
  flex: 1;
  min-width: 0;
}

.stage-title {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.stage-years {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-left: 0.5rem;
  display: inline-block;
  letter-spacing: 0.3px;
}

.stage-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 3D pill badge on the right */
.stage-importance {
  background: linear-gradient(145deg, #24334a 0%, #16223a 100%);
  padding: 0.55rem 1.15rem;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.6px;
  border: 1px solid rgba(245, 200, 66, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 4px 10px -3px rgba(0, 0, 0, 0.5);
  transition: all 0.35s ease;
}

.stage-card:hover .stage-importance {
  color: #fff8e1;
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 6px 14px -3px rgba(0, 0, 0, 0.55),
    0 0 18px -3px rgba(245, 200, 66, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================
   STAGE CONTENT
   ========================================================== */

.stage-content {
  padding: 2rem;
  position: relative;
  z-index: 3;
}

/* ---- FEATURED COLUMN — 3D inset panel ---- */
.stage-column.featured {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;

  /* 3D inset panel — sits BELOW the card surface */
  background: linear-gradient(145deg, #16223a 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.35);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

.stage-column.featured h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.stage-column.featured h4 i {
  font-size: 1.05rem;
  color: var(--gold-bright);
}

/* Featured links */
.stage-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-link {
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(245, 200, 66, 0.12);
  padding-bottom: 0.85rem;
}

.featured-link:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.featured-link a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
}

.featured-link a:hover {
  transform: translateX(6px);
  background: rgba(245, 200, 66, 0.06);
}

.link-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-link a:hover .link-icon {
  transform: scale(1.15) rotate(-6deg);
}

.link-text {
  flex: 1;
  line-height: 1.5;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.link-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.featured-link a:hover .link-text strong {
  color: var(--gold-pale);
}

/* 3D gold badge */
.link-badge {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 3px 8px -2px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
}

.featured-link a:hover .link-badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 5px 14px -2px rgba(245, 200, 66, 0.7);
  transform: translateY(-1px);
}

/* ---- SECONDARY GRID ---- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stage-category {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 16px;

  /* Glass panel with 3D bevel */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 10px -4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

.stage-category:hover {
  background: linear-gradient(
    145deg,
    rgba(245, 200, 66, 0.08) 0%,
    rgba(245, 200, 66, 0.02) 100%
  );
  border-color: rgba(245, 200, 66, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 8px 18px -6px rgba(0, 0, 0, 0.4),
    0 0 20px -6px rgba(245, 200, 66, 0.3);
  transform: translateY(-3px);
}

.stage-category h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(245, 200, 66, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stage-category h5 i {
  font-size: 0.95rem;
}

.stage-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stage-category li {
  margin-bottom: 0.5rem;
}

.stage-category li:last-child {
  margin-bottom: 0;
}

.stage-category a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-size: 0.85rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
}

.stage-category a:hover {
  background: rgba(245, 200, 66, 0.08);
  color: #ffffff;
  border-left-color: var(--gold-bright);
  transform: translateX(4px);
}

/* ==========================================================
   STAGE FOOTER
   ========================================================== */

.stage-footer {
  padding: 1.1rem 2rem;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(245, 200, 66, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
}

.reader-count {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.reader-count::first-letter {
  color: #ff6b9d;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .lifespan-emotional-guide {
    padding: 4rem 1.5rem 3rem;
  }

  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-card {
    border-radius: 24px;
  }

  .stage-card::before {
    border-radius: 24px;
  }

  .stage-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .lifespan-emotional-guide {
    padding: 3rem 1.1rem 2.5rem;
  }

  .lifespan-header {
    margin-bottom: 2.25rem;
  }

  .stage-card {
    border-radius: 22px;
    margin-bottom: 2rem;
  }

  .stage-card::before {
    border-radius: 22px;
  }

  .stage-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .stage-title-wrapper {
    text-align: center;
  }

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

  .stage-quote {
    text-align: center;
  }

  .stage-importance {
    margin: 0 auto;
    white-space: normal;
    text-align: center;
    font-size: 0.68rem;
  }

  .stage-icon {
    width: 68px;
    height: 68px;
    font-size: 2.4rem;
    border-radius: 18px;
  }

  .stage-content {
    padding: 1.35rem 1.15rem;
  }

  .stage-column.featured {
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 16px;
  }

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

  .featured-link a {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .link-text {
    font-size: 0.88rem;
    min-width: 0;
    flex-basis: 100%;
  }

  .link-badge {
    font-size: 0.58rem;
    padding: 0.3rem 0.65rem;
  }

  .stage-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lifespan-title {
    font-size: 1.5rem;
  }

  .lifespan-subtitle {
    font-size: 0.95rem;
  }

  .stage-card {
    border-radius: 20px;
    margin-bottom: 1.75rem;
  }

  .stage-card::before {
    border-radius: 20px;
  }

  .stage-header {
    padding: 1.25rem 1rem 1rem;
  }

  .stage-icon {
    width: 58px;
    height: 58px;
    font-size: 2rem;
    border-radius: 16px;
  }

  .stage-title {
    font-size: 1.1rem;
  }

  .stage-years {
    font-size: 0.75rem;
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
  }

  .stage-quote {
    font-size: 0.82rem;
  }

  .stage-content {
    padding: 1.15rem 1rem;
  }

  .stage-column.featured {
    padding: 1.15rem 1rem 1rem;
  }

  .featured-link a {
    padding: 0.4rem 0.5rem;
  }

  .link-icon {
    font-size: 1.4rem;
  }

  .link-text {
    font-size: 0.82rem;
  }

  .link-text strong {
    font-size: 0.9rem;
  }

  .stage-category {
    padding: 1rem 1rem 0.85rem;
  }

  .stage-category a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .stage-card,
  .stage-card::before,
  .stage-icon,
  .stage-importance,
  .stage-category,
  .featured-link a,
  .link-icon,
  .link-badge {
    animation: none !important;
    transition: none !important;
  }

  .stage-card:hover,
  .stage-card:hover .stage-icon,
  .stage-category:hover,
  .featured-link a:hover {
    transform: none !important;
  }
}

/* ==========================================================
   EMOTIONAL PEACE — 3D VIVID CARDS
   Theme: Navy #344963 · Teal #3C9690 · Leaf #76A92D · Gold #d4af37
   ========================================================== */

.emotional-peace {
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --navy: #344963;
  --teal: #3c9690;
  --teal-bright: #45b5ad;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --leaf-bright: #96d13a;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;

  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(60, 150, 144, 0.1) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(118, 169, 45, 0.09) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  position: relative;
  overflow: hidden;
}

.emotional-peace .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- BACKGROUND ORBS (kept, restyled) ---------- */
.peace-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.peace-bg-orb-1 {
  top: 5%;
  left: 3%;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.18) 0%,
    transparent 70%
  );
  animation: orbFloat1 12s ease-in-out infinite;
}

.peace-bg-orb-2 {
  bottom: 8%;
  right: 4%;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(118, 169, 45, 0.14) 0%,
    transparent 70%
  );
  animation: orbFloat2 15s ease-in-out infinite;
}

.peace-bg-orb-3 {
  top: 45%;
  right: 18%;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(52, 73, 99, 0.12) 0%,
    transparent 70%
  );
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -25px) scale(1.1);
  }
}

@keyframes orbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-35px, 20px) scale(1.12);
  }
}

@keyframes orbFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 30px) scale(1.08);
  }
}

/* ---------- HEADER ---------- */
.peace-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 2;
}

.peace-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(60, 150, 144, 0.15) 0%,
    rgba(118, 169, 45, 0.12) 100%
  );
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--teal-deep);
  border: 1px solid rgba(60, 150, 144, 0.3);
  text-transform: uppercase;
  box-shadow: 0 4px 14px -6px rgba(60, 150, 144, 0.3);
}

.peace-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.peace-title span {
  background: linear-gradient(135deg, var(--teal) 0%, var(--leaf) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.peace-subtitle {
  font-size: 1.05rem;
  color: #4a5c72;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.peace-subtitle strong {
  color: var(--teal-deep);
  font-weight: 700;
}

.peace-tags {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.peace-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-deep);
  border: 1px solid rgba(52, 73, 99, 0.08);
  box-shadow: 0 4px 12px -6px rgba(52, 73, 99, 0.15);
  transition: all 0.3s ease;
}

.peace-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(60, 150, 144, 0.35);
  box-shadow: 0 8px 20px -6px rgba(60, 150, 144, 0.25);
}

/* ---------- GRID ---------- */
.peace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

/* ==========================================================
   3D PEACE CARD
   ========================================================== */

.peace-card {
  position: relative;
  border-radius: 26px;
  padding: 2.25rem 1.85rem 1.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #ffffff;

  /* Rich navy → teal gradient */
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);

  /* 3D beveled edges */
  border: 2px solid transparent;
  background-clip: padding-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 6px 0 0 #16223a,
    0 10px 20px -6px rgba(22, 34, 58, 0.5),
    0 24px 48px -16px rgba(22, 34, 58, 0.4);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold gradient border via ::before */
.peace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    var(--gold-pale) 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: peaceGoldShimmer 7s ease-in-out infinite;
}

@keyframes peaceGoldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Top specular highlight */
.peace-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
  border-radius: 26px 26px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

.peace-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 10px 0 0 #16223a,
    0 18px 36px -6px rgba(22, 34, 58, 0.55),
    0 36px 72px -18px rgba(22, 34, 58, 0.45),
    0 0 0 4px rgba(245, 200, 66, 0.15),
    0 0 40px -8px rgba(245, 200, 66, 0.35);
}

/* ---- THEME TINTS PER CARD ---- */
.peace-card-1 {
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
}

.peace-card-2 {
  background: linear-gradient(155deg, #1e2d42 0%, #2d4a63 45%, #2f5e5a 100%);
}

.peace-card-3 {
  background: linear-gradient(155deg, #1e2d42 0%, #2d4a3f 45%, #3c9690 100%);
}

/* Small cards in the hidden grid get their own tint rotation */
#hidden-peace-topics .peace-card:nth-child(3n + 1) {
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
}

#hidden-peace-topics .peace-card:nth-child(3n + 2) {
  background: linear-gradient(155deg, #1e2d42 0%, #2d4a63 45%, #2f5e5a 100%);
}

#hidden-peace-topics .peace-card:nth-child(3n) {
  background: linear-gradient(155deg, #1e2d42 0%, #2d4a3f 45%, #3c9690 100%);
}

/* ---- ICON (3D embossed tile) ---- */
.peace-card-icon {
  font-size: 1.7rem;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 4;
  flex-shrink: 0;

  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.4);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45),
    0 6px 14px -4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.peace-card:hover .peace-card-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.1);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 10px 22px -4px rgba(0, 0, 0, 0.55),
    0 0 26px -4px rgba(245, 200, 66, 0.6),
    0 0 0 1px rgba(245, 200, 66, 0.6);
}

/* ---- TITLE ---- */
.peace-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 4;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.peace-card:hover .peace-card-title {
  color: var(--gold-pale);
}

/* ---- TEXT ---- */
.peace-card-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
  position: relative;
  z-index: 4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---- FOOTER ---- */
.peace-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 4;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 200, 66, 0.14);
}

/* ---- BUTTON — 3D gold-tinted pill ---- */
.peace-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e2d42;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  padding: 0.65rem 1.35rem;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 4px 10px -3px rgba(212, 175, 55, 0.55);
}

.peace-card-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.7s ease;
}

.peace-card-btn:hover::before {
  left: 100%;
}

.peace-card-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 8px 18px -3px rgba(245, 200, 66, 0.75);
}

.peace-card-btn span:last-child {
  transition: transform 0.3s ease;
}

.peace-card-btn:hover span:last-child {
  transform: translateX(4px);
}

/* ---- TIME ---- */
.peace-card-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ================= NEW CARD ACCENT — WORKPLACE & DIGNITY ================= */
.peace-card-4 {
  position: relative;
  /* Dark Teal Background matching your other cards */
  background: linear-gradient(180deg, #1a3f3c 0%, #153330 100%);
  border: 1px solid #2a5a56;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  /* Make sure text is white */
  color: #ffffff;
}

/* The animated top accent line */
.peace-card-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8a87c, #c87a5a, #e8a87c);
  background-size: 200% 100%;
  animation: workplaceAccent 6s ease infinite;
  border-radius: 12px 12px 0 0;
  z-index: 10;
}
@keyframes workplaceAccent {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Text Colors to ensure readability */
.peace-card-4 .peace-card-title {
  color: #ffffff;
}
.peace-card-4 .peace-card-text {
  color: #b3cbbf; /* Soft sage text for readability */
}

/* The Icon box */
.peace-card-4 .peace-card-icon {
  background: #244d49;
  color: #e8a87c; /* Warm dawn accent */
  border: 1px solid #32635e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* The Button styling */
.peace-card-4 .peace-card-btn {
  background: #e8a87c;
  color: #1a3f3c; /* Dark text on light orange button */
  border: none;
}
.peace-card-4 .peace-card-btn:hover {
  background: #d68f64;
  transform: translateY(-2px);
}

/* The "New" Tag */
.peace-card-4 .peace-card-tag-new {
  background: rgba(232, 168, 124, 0.15);
  color: #e8a87c;
  border-color: rgba(232, 168, 124, 0.3);
}

/* ==========================================================
   VIEW MORE BUTTON — 3D GOLD-TRIMMED
   ========================================================== */

#view-more-peace-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(145deg, #3a4d66 0%, #1e2d42 100%) !important;
  color: #ffffff !important;
  padding: 1rem 2.4rem !important;
  border-radius: 60px !important;
  border: 2px solid transparent !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: inherit;
  position: relative;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 6px 0 0 #16223a,
    0 10px 24px -6px rgba(22, 34, 58, 0.5) !important;
}

#view-more-peace-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright),
    var(--gold-pale),
    var(--gold-bright)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: peaceGoldShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

#view-more-peace-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 8px 0 0 #16223a,
    0 18px 32px -6px rgba(60, 150, 144, 0.5),
    0 0 24px -4px rgba(245, 200, 66, 0.5) !important;
}

#view-more-peace-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 0 0 #16223a !important;
}

#view-more-peace-btn i {
  transition: transform 0.3s ease;
  color: var(--gold-bright);
}

#view-more-peace-btn.expanded i,
#view-more-peace-btn.rotated i {
  transform: rotate(180deg);
}

/* Counter text */
.peace-counter-text {
  color: #556274 !important;
  margin-top: 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 500;
}

#visible-peace-count,
#total-peace-topics {
  font-weight: 700;
  color: var(--teal-deep);
}

/* ==========================================================
   FEATURED PANEL — 3D GOLD-TRIMMED SPOTLIGHT
   ========================================================== */

.peace-featured {
  position: relative;
  border-radius: 32px;
  padding: 3rem 2.5rem;
  margin-top: 2rem;
  overflow: hidden;
  color: #ffffff;

  background: linear-gradient(155deg, #16223a 0%, #1e2d42 45%, #2a4a5c 100%);

  border: 2px solid transparent;
  background-clip: padding-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 8px 0 0 #0f1827,
    0 14px 28px -8px rgba(22, 34, 58, 0.55),
    0 32px 64px -18px rgba(22, 34, 58, 0.45);
}

.peace-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    var(--gold-pale) 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: peaceGoldShimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.peace-featured::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.peace-featured-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.peace-featured-visual {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.peace-featured-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3.6rem;
  position: relative;

  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 2px solid rgba(245, 200, 66, 0.5);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.14),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5),
    0 10px 24px -6px rgba(0, 0, 0, 0.5),
    0 0 32px -6px rgba(245, 200, 66, 0.5);
  animation: peaceCirclePulse 3s ease-in-out infinite;
}

@keyframes peaceCirclePulse {
  0%,
  100% {
    box-shadow:
      inset 0 3px 6px rgba(255, 255, 255, 0.14),
      inset 0 -4px 8px rgba(0, 0, 0, 0.5),
      0 10px 24px -6px rgba(0, 0, 0, 0.5),
      0 0 32px -6px rgba(245, 200, 66, 0.5);
  }
  50% {
    box-shadow:
      inset 0 3px 6px rgba(255, 255, 255, 0.2),
      inset 0 -4px 8px rgba(0, 0, 0, 0.5),
      0 14px 32px -6px rgba(0, 0, 0, 0.55),
      0 0 48px -4px rgba(245, 200, 66, 0.75);
  }
}

.peace-featured-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 350px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.peace-featured-author {
  color: var(--gold-bright);
  font-weight: 700;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
}

.peace-featured-badge {
  display: inline-block;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  padding: 0.45rem 1.1rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 4px 12px -3px rgba(212, 175, 55, 0.6);
  text-transform: uppercase;
}

.peace-featured-title {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.15rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.peace-featured-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.peace-featured-text strong {
  color: var(--gold-pale);
  font-weight: 700;
}

.peace-featured-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 3D Primary button in featured panel */
.peace-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  padding: 0.95rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 6px 14px -4px rgba(212, 175, 55, 0.6),
    0 0 0 0 rgba(245, 200, 66, 0.3);
}

.peace-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transition: left 0.7s ease;
}

.peace-btn-primary:hover::before {
  left: 100%;
}

.peace-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 12px 24px -6px rgba(245, 200, 66, 0.8),
    0 0 0 4px rgba(245, 200, 66, 0.18);
}

.peace-btn-primary span:last-child {
  transition: transform 0.3s ease;
}

.peace-btn-primary:hover span:last-child {
  transform: translateX(5px);
}

/* ==========================================================
   REMINDER PANEL — 3D INSET
   ========================================================== */

.peace-reminder {
  margin-top: 3rem;
  position: relative;
  border-radius: 24px;
  padding: 2rem 2.25rem;
  overflow: hidden;

  background: linear-gradient(145deg, #16223a 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

.peace-reminder-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 2;
}

.peace-reminder-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px rgba(245, 200, 66, 0.5));
  animation: peaceIconFloat 3s ease-in-out infinite;
}

@keyframes peaceIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

.peace-reminder-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.peace-reminder-text strong {
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .emotional-peace {
    padding: 4rem 1.5rem 3rem;
  }

  .peace-featured {
    padding: 2.5rem 1.75rem;
    border-radius: 26px;
  }

  .peace-featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .peace-featured-buttons {
    justify-content: center;
  }

  .peace-featured-visual {
    order: -1;
  }

  .peace-card {
    padding: 2rem 1.65rem 1.65rem;
  }
}

@media (max-width: 768px) {
  .emotional-peace {
    padding: 3rem 1.15rem 2.5rem;
  }

  .peace-header {
    margin-bottom: 2.5rem;
  }

  .peace-title {
    font-size: 1.75rem;
  }

  .peace-subtitle {
    font-size: 0.98rem;
  }

  .peace-tags {
    gap: 0.6rem;
  }

  .peace-tag {
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }

  .peace-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .peace-card {
    padding: 1.75rem 1.4rem 1.5rem;
    border-radius: 22px;
  }

  .peace-card::before {
    border-radius: 22px;
  }

  .peace-card:hover {
    transform: translateY(-5px);
  }

  .peace-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 16px;
  }

  .peace-card-title {
    font-size: 1.05rem;
  }

  .peace-featured {
    padding: 2rem 1.4rem;
    border-radius: 22px;
  }

  .peace-featured::before {
    border-radius: 22px;
  }

  .peace-featured-circle {
    width: 110px;
    height: 110px;
    font-size: 3rem;
  }

  .peace-featured-quote {
    font-size: 0.95rem;
  }

  .peace-featured-title {
    font-size: 1.35rem;
  }

  .peace-featured-text {
    font-size: 0.95rem;
  }

  .peace-reminder {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .peace-reminder-text {
    font-size: 0.92rem;
  }

  #view-more-peace-btn {
    padding: 0.85rem 1.8rem !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 480px) {
  .peace-title {
    font-size: 1.5rem;
  }

  .peace-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .peace-card::before {
    border-radius: 20px;
  }

  .peace-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .peace-card-btn {
    width: 100%;
    justify-content: center;
  }

  .peace-card-time {
    text-align: center;
  }

  .peace-featured {
    padding: 1.75rem 1.2rem;
  }

  .peace-featured-circle {
    width: 90px;
    height: 90px;
    font-size: 2.4rem;
  }

  .peace-featured-title {
    font-size: 1.2rem;
  }

  .peace-featured-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .peace-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .peace-reminder-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .peace-card,
  .peace-card::before,
  .peace-card-icon,
  .peace-card-btn,
  .peace-featured,
  .peace-featured::before,
  .peace-featured-circle,
  .peace-btn-primary,
  .peace-reminder-icon,
  .peace-bg-orb {
    animation: none !important;
    transition: none !important;
  }

  .peace-card:hover,
  .peace-card:hover .peace-card-icon,
  .peace-tag:hover,
  .peace-featured-circle {
    transform: none !important;
  }
}

/* ============================================ */
/* TOPIC REQUEST SECTION                        */
/* ============================================ */

.topic-request-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.topic-request-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.live-stats-card,
.voting-card,
.suggestion-form-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.live-stats-card {
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  border-radius: 12px;
}

.stat-box .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
}

.urgency-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.urgency-buttons label {
  flex: 1;
  cursor: pointer;
  min-width: 100px;
}

.urgency-buttons span {
  display: block;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 12px;
}

.form-actions button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Live Poll */
.live-poll {
  background: #faf5f0;
  border-radius: 16px;
  padding: 1.8rem;
  margin: 1.5rem 0 2.5rem 0;
  border: 2px solid #e8c87a;
  font-family: inherit;
}

.poll-heading {
  font-family: var(--font-serif, Georgia, serif);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #4d3e35;
  font-size: 1.2rem;
  font-weight: 600;
}

.poll-heading i {
  color: #c87a5a;
}

.poll-subheading {
  font-size: 0.9rem;
  color: #8b7569;
  margin: 0 0 1.2rem 0;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.poll-btn {
  background: white;
  border: 2px solid #e0d6cc;
  border-radius: 40px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #4d3e35;
  line-height: 1.3;
}

.poll-btn:hover:not(:disabled) {
  border-color: #c87a5a;
  background: #fffaf5;
  transform: translateY(-1px);
}

.poll-btn.selected {
  background: #c87a5a;
  color: white;
  border-color: #c87a5a;
}

.poll-btn.selected .poll-count {
  color: white;
}

.poll-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.poll-btn .poll-count {
  font-weight: 600;
  color: #c87a5a;
}

.poll-total {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #8b7569;
  text-align: center;
}

.poll-thanks {
  margin: 0.8rem 0 0 0;
  color: #6b8e23;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  animation: pollFadeIn 0.3s ease;
}

@keyframes pollFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   NEWSLETTER — 3D GOLD-TRIMMED SPOTLIGHT
   Theme: Navy #344963 · Teal #3C9690 · Leaf #76A92D · Gold #d4af37
   ========================================================== */

.newsletter-section {
  --navy-deep: #1e2d42;
  --navy-darker: #16223a;
  --navy: #344963;
  --teal: #3c9690;
  --teal-bright: #45b5ad;
  --teal-deep: #2a6e69;
  --leaf: #76a92d;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;

  padding: 5rem 1.5rem;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(60, 150, 144, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(118, 169, 45, 0.1) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section .container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- Background orbs ---------- */
.newsletter-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.newsletter-bg-orb-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.18) 0%,
    transparent 70%
  );
  animation: nlOrb1 12s ease-in-out infinite;
}

.newsletter-bg-orb-2 {
  bottom: 5%;
  right: 5%;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(118, 169, 45, 0.15) 0%,
    transparent 70%
  );
  animation: nlOrb2 15s ease-in-out infinite;
}

@keyframes nlOrb1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -25px) scale(1.1);
  }
}

@keyframes nlOrb2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-35px, 20px) scale(1.12);
  }
}

/* ==========================================================
   THE 3D CARD
   ========================================================== */

.newsletter-card {
  position: relative;
  border-radius: 32px;
  padding: 3.5rem 2.75rem;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;

  /* Rich navy → teal gradient */
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);

  /* 3D beveled edges */
  border: 2px solid transparent;
  background-clip: padding-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 8px 0 0 #0f1827,
    0 14px 28px -8px rgba(22, 34, 58, 0.55),
    0 32px 64px -18px rgba(22, 34, 58, 0.45);

  text-align: center;
}

/* Animated gold gradient border */
.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 25%,
    var(--gold-pale) 50%,
    var(--gold) 75%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: newsletterGoldShimmer 7s ease-in-out infinite;
}

@keyframes newsletterGoldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Soft gold glow in top-right corner */
.newsletter-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.14) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: newsletterGlowPulse 6s ease-in-out infinite;
}

@keyframes newsletterGlowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

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

/* ---------- 3D EMBOSSED ENVELOPE ICON ---------- */
.newsletter-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.newsletter-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;

  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.55);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.16),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 8px 18px -4px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 32px -6px rgba(245, 200, 66, 0.5);
  animation: newsletterIconFloat 4s ease-in-out infinite;
}

@keyframes newsletterIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

/* ---------- BADGE ---------- */
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 200, 66, 0.12);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--gold-bright);
  border: 1px solid rgba(245, 200, 66, 0.4);
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px -6px rgba(245, 200, 66, 0.35);
}

/* ---------- TITLE ---------- */
.newsletter-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.newsletter-title span {
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold-pale) 50%,
    var(--gold-bright) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: newsletterGradientFlow 4s ease infinite;
}

@keyframes newsletterGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- SUBTITLE ---------- */
.newsletter-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.newsletter-subtitle strong {
  color: var(--gold-pale);
  font-weight: 700;
}

/* ==========================================================
   FORM — 3D INSET INPUT + GOLD BUTTON
   ========================================================== */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto 1.25rem;
  max-width: 480px;
}

/* Inset 3D input field */
.newsletter-field {
  position: relative;
  display: flex;
  align-items: center;
}

.newsletter-field-icon {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

.newsletter-field:focus-within .newsletter-field-icon {
  color: var(--gold-bright);
}

.newsletter-field input {
  width: 100%;
  padding: 1.05rem 1.3rem 1.05rem 3rem;
  border-radius: 60px;
  border: 1.5px solid rgba(245, 200, 66, 0.25);
  background: linear-gradient(145deg, #16223a 0%, #1e2d42 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.35s ease;

  /* 3D inset look */
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.newsletter-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-field input:focus {
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(245, 200, 66, 0.18),
    0 0 24px -6px rgba(245, 200, 66, 0.5);
}

/* 3D gold subscribe button */
.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #1e2d42;
  position: relative;
  overflow: hidden;

  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15),
    0 6px 14px -4px rgba(212, 175, 55, 0.6),
    0 0 0 0 rgba(245, 200, 66, 0.3);

  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  transition: left 0.7s ease;
}

.newsletter-btn:hover::before {
  left: 100%;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.2),
    0 12px 24px -6px rgba(245, 200, 66, 0.85),
    0 0 0 4px rgba(245, 200, 66, 0.2);
}

.newsletter-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 3px 8px -3px rgba(212, 175, 55, 0.5);
}

.newsletter-btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.35s ease;
}

.newsletter-btn:hover .newsletter-btn-arrow {
  transform: translateX(5px);
}

/* ---------- NOTE ---------- */
.newsletter-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.newsletter-note i {
  color: var(--leaf);
  font-size: 0.78rem;
}

/* ==========================================================
   NEWSLETTER DISCLAIMER
   ========================================================== */
.soulspace-disclaimer {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(52, 73, 99, 0.08);
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 4px 12px -6px rgba(52, 73, 99, 0.05);
  transition: all 0.3s ease;
}

.soulspace-disclaimer strong {
  color: #344963;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Slight hover effect for interactivity */
.soulspace-disclaimer:hover {
  background: #ffffff;
  border-color: rgba(60, 150, 144, 0.2);
  box-shadow: 0 8px 20px -8px rgba(52, 73, 99, 0.1);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .soulspace-disclaimer {
    margin: 1.5rem 1rem 0;
    padding: 1rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
  .newsletter-section {
    padding: 3.5rem 1.15rem;
  }

  .newsletter-card {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
  }

  .newsletter-card::before {
    border-radius: 24px;
  }

  .newsletter-icon {
    width: 66px;
    height: 66px;
    font-size: 1.75rem;
    border-radius: 18px;
  }

  .newsletter-badge {
    font-size: 0.62rem;
    padding: 0.45rem 0.95rem;
    letter-spacing: 0.6px;
  }

  .newsletter-title {
    font-size: 1.65rem;
  }

  .newsletter-subtitle {
    font-size: 0.95rem;
  }

  .newsletter-field input,
  .newsletter-btn {
    padding: 0.95rem 1.15rem 0.95rem 2.85rem;
    font-size: 0.92rem;
  }

  .newsletter-btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .newsletter-field-icon {
    left: 1.1rem;
  }
}

@media (max-width: 480px) {
  .newsletter-card {
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }

  .newsletter-card::before {
    border-radius: 22px;
  }

  .newsletter-icon {
    width: 60px;
    height: 60px;
    font-size: 1.55rem;
    border-radius: 16px;
  }

  .newsletter-title {
    font-size: 1.45rem;
  }

  .newsletter-subtitle {
    font-size: 0.9rem;
  }

  .newsletter-field input {
    padding: 0.9rem 1rem 0.9rem 2.6rem;
    font-size: 0.9rem;
  }

  .newsletter-field-icon {
    left: 1rem;
    font-size: 0.85rem;
  }

  .newsletter-btn {
    padding: 0.9rem 1.35rem;
    font-size: 0.92rem;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .newsletter-card,
  .newsletter-card::before,
  .newsletter-card::after,
  .newsletter-icon,
  .newsletter-title span,
  .newsletter-btn::before,
  .newsletter-bg-orb {
    animation: none !important;
    transition: none !important;
  }

  .newsletter-btn:hover,
  .newsletter-icon {
    transform: none !important;
  }
}

/* ==========================================================
   AUTHOR BIO — LIGHT 3D CARD
   ========================================================== */

.author-bio {
  padding: 5rem 1.5rem;
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(60, 150, 144, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(118, 169, 45, 0.07) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #f6f2ea 0%, #fdfbf7 100%);
  position: relative;
  overflow: hidden;
}

.author-bio .container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.author-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 3rem 2.5rem;
  border: 2px solid transparent;
  background-clip: padding-box;
  overflow: hidden;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 6px 0 0 rgba(52, 73, 99, 0.08),
    0 12px 28px -10px rgba(52, 73, 99, 0.15),
    0 32px 64px -24px rgba(52, 73, 99, 0.2);
}

/* Gold gradient border */
.author-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 30%,
    var(--gold-pale) 55%,
    var(--gold) 80%,
    var(--gold-bright) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: authorGoldShimmer 8s ease-in-out infinite;
}

@keyframes authorGoldShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* soft teal glow */
.author-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.07) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.author-card > * {
  position: relative;
  z-index: 3;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(52, 73, 99, 0.08);
}

.author-avatar-3d {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--gold-bright);
  flex-shrink: 0;

  background: linear-gradient(145deg, #3a4d66 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.16),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 8px 18px -4px rgba(0, 0, 0, 0.45),
    0 0 28px -6px rgba(245, 200, 66, 0.45);
  animation: authorIconFloat 4s ease-in-out infinite;
}

@keyframes authorIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.author-heading h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}

.author-role {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  margin: 0;
}

.author-text {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.author-cta-wrap {
  margin: 1.75rem 0 2.25rem;
}

.author-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(145deg, #3a4d66 0%, #1e2d42 100%);
  color: #ffffff;
  padding: 0.95rem 1.9rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 5px 0 0 #0f1827,
    0 10px 20px -6px rgba(22, 34, 58, 0.4);
}

.author-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gold-bright),
    var(--gold-pale),
    var(--gold-bright)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: authorGoldShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.author-cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 8px 0 0 #0f1827,
    0 16px 30px -6px rgba(60, 150, 144, 0.45),
    0 0 24px -4px rgba(245, 200, 66, 0.4);
}

.author-cta-btn i {
  color: var(--gold-bright);
  transition: transform 0.3s ease;
}

.author-cta-btn:hover i {
  transform: rotate(-15deg) scale(1.1);
}

.author-cta-arrow {
  transition: transform 0.35s ease;
}

.author-cta-btn:hover .author-cta-arrow {
  transform: translateX(5px);
}

/* Pillars grid */
.author-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(52, 73, 99, 0.08);
}

.author-pillar {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fdfbf7 0%, #f6f2ea 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.35s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 10px -4px rgba(52, 73, 99, 0.08);
}

.author-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 18px -6px rgba(52, 73, 99, 0.12),
    0 0 0 4px rgba(245, 200, 66, 0.1);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.author-pillar:hover .pillar-icon {
  transform: scale(1.1) rotate(-6deg);
}

.pillar-icon-teal {
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  box-shadow: 0 6px 14px -4px rgba(60, 150, 144, 0.45);
}

.pillar-icon-leaf {
  background: linear-gradient(145deg, #96d13a 0%, #5c8a1e 100%);
  box-shadow: 0 6px 14px -4px rgba(118, 169, 45, 0.45);
}

.pillar-icon-rose {
  background: linear-gradient(145deg, #ff9a76 0%, #e57373 100%);
  box-shadow: 0 6px 14px -4px rgba(229, 115, 115, 0.4);
}

.pillar-icon-gold {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  box-shadow: 0 6px 14px -4px rgba(212, 175, 55, 0.5);
}

.author-pillar h4 {
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.005em;
}

.author-pillar p {
  color: #6a7a8a;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================
   FAQ — 3D LIGHT ACCORDION (FIXED & CLICKABLE)
   ========================================================== */

.related-questions {
  --navy-deep: #1e2d42;
  --teal: #3c9690;
  --teal-deep: #2a6e69;
  --gold: #d4af37;
  --gold-bright: #f5c842;
  --gold-pale: #fff3c4;
  --text-soft: #4a5c72;
  --text-muted: #6a7a8a;

  padding: 5rem 1.5rem;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(60, 150, 144, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(212, 175, 55, 0.07) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #fdfbf7 0%, #f6f2ea 100%);
  position: relative;
  overflow: hidden;
}

.related-questions .container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendation-engine {
  background: #faf1e6;
  border-radius: var(--border-radius-lg);
  padding: 2.8rem;
  margin: 4rem 0 2rem;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.rec-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  border: 1px solid #e2d1bf;
  cursor: pointer;
  transition: all 0.3s;
}

.rec-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.rec-card {
  display: block;
  background: #fff;
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: #2c2826;
  transition: all 0.3s ease;
}

.rec-card:hover {
  border-color: #c17b5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.rec-badge {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rec-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.rec-card p {
  font-size: 0.85rem;
  color: #6b5a51;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.rec-meta {
  font-size: 0.75rem;
  color: #8a7a70;
}

/* ---------- HEADER ---------- */
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  background: rgba(60, 150, 144, 0.08);
  border: 1px solid rgba(60, 150, 144, 0.2);
}

.faq-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-header p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- FAQ LIST ---------- */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  isolation: isolate;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 3px 0 0 rgba(52, 73, 99, 0.06),
    0 6px 14px -4px rgba(52, 73, 99, 0.1),
    0 16px 32px -16px rgba(52, 73, 99, 0.15);

  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold shimmer bar at top */
.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-bright) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 1s ease;
  z-index: 3;
  pointer-events: none;
}

.faq-item:hover::before,
.faq-item.open::before {
  background-position: 200% 0;
}

.faq-item:hover {
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 5px 0 0 rgba(52, 73, 99, 0.08),
    0 10px 22px -6px rgba(52, 73, 99, 0.13),
    0 0 0 4px rgba(245, 200, 66, 0.1);
}

.faq-item.open {
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 5px 0 0 rgba(52, 73, 99, 0.08),
    0 14px 28px -8px rgba(52, 73, 99, 0.15),
    0 0 0 4px rgba(245, 200, 66, 0.14);
}

/* ---------- QUESTION BUTTON (FULLY CLICKABLE) ---------- */
.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 4;
}

.faq-question:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: -3px;
  border-radius: 16px;
}

.faq-question:hover {
  background: rgba(245, 200, 66, 0.05);
}

.faq-q-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.45;
  letter-spacing: -0.005em;
  flex: 1;
  text-align: left;
}

/* 3D toggle button */
.faq-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-bright);
  background: linear-gradient(145deg, #3a4d66 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 4px 10px -3px rgba(22, 34, 58, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
}

.faq-toggle i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.faq-item.open .faq-toggle {
  color: #fff3c4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 6px 14px -3px rgba(22, 34, 58, 0.45),
    0 0 18px -3px rgba(245, 200, 66, 0.55);
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  border-color: var(--gold-bright);
}

.faq-item.open .faq-toggle i {
  transform: rotate(180deg);
}

/* ---------- ANSWER (SMOOTH EXPAND) ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 3;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 1.75rem 1.75rem;
}

.faq-answer p {
  color: var(--border);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(52, 73, 99, 0.08);
}

.faq-answer a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(60, 150, 144, 0.35);
  transition: all 0.25s ease;
  padding-bottom: 1px;
}

.faq-answer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-bright);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .related-questions {
    padding: 3rem 1.15rem;
  }

  .faq-header h2 {
    font-size: 1.5rem;
  }

  .faq-header p {
    font-size: 0.92rem;
  }

  .faq-question {
    padding: 1.25rem 1.15rem;
    gap: 0.9rem;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .faq-answer-inner {
    padding: 0 1.15rem 1.35rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-header h2 {
    font-size: 1.3rem;
  }

  .faq-header p {
    font-size: 0.88rem;
  }

  .faq-q-text {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 1.15rem 1rem;
  }

  .faq-answer-inner {
    padding: 0 1rem 1.15rem;
  }

  .faq-answer p {
    font-size: 0.86rem;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item::before,
  .faq-toggle,
  .faq-toggle i,
  .faq-answer {
    transition: none !important;
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .category-cluster,
  .author-bio,
  .related-questions {
    padding: 4rem 1.5rem;
  }

  .combination-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .category-cluster,
  .author-bio,
  .related-questions {
    padding: 3rem 1.15rem;
  }

  .category-cluster-title {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .cluster-icon-wrap {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 14px;
  }

  .category-cluster-title h2 {
    font-size: 1.35rem;
  }

  .combination-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .combination-item {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 18px;
  }

  .combination-item:hover {
    transform: translateY(-4px);
  }

  .author-card {
    padding: 2rem 1.5rem;
    border-radius: 22px;
  }

  .author-card::before {
    border-radius: 22px;
  }

  .author-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .author-avatar-3d {
    width: 66px;
    height: 66px;
    font-size: 1.65rem;
    border-radius: 18px;
  }

  .author-heading h2 {
    font-size: 1.3rem;
  }

  .author-role {
    font-size: 0.8rem;
  }

  .author-cta-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.4rem;
    font-size: 0.87rem;
    text-align: center;
  }

  .author-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .author-pillar {
    padding: 1rem 0.75rem;
  }

  .pillar-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    border-radius: 12px;
  }

  .author-pillar h4 {
    font-size: 0.88rem;
  }

  .author-pillar p {
    font-size: 0.75rem;
  }

  .faq-header h2 {
    font-size: 1.5rem;
  }

  .faq-header p {
    font-size: 0.92rem;
  }

  .faq-question {
    padding: 1.25rem 1.15rem;
    gap: 0.9rem;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.15rem 1.35rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .category-cluster-title h2 {
    font-size: 1.15rem;
  }

  .cluster-eyebrow {
    font-size: 0.62rem;
  }

  .combination-title {
    font-size: 0.98rem;
  }

  .combination-links a {
    font-size: 0.8rem;
    padding: 0.45rem 0.55rem 0.45rem 1.2rem;
  }

  .author-card {
    padding: 1.65rem 1.2rem;
    border-radius: 20px;
  }

  .author-card::before {
    border-radius: 20px;
  }

  .author-heading h2 {
    font-size: 1.15rem;
  }

  .author-text {
    font-size: 0.92rem;
  }

  .author-cta-btn {
    font-size: 0.8rem;
    padding: 0.8rem 1.1rem;
    gap: 0.5rem;
  }

  .author-pillars {
    grid-template-columns: 1fr;
  }

  .faq-header h2 {
    font-size: 1.3rem;
  }

  .faq-header p {
    font-size: 0.88rem;
  }

  .faq-q-text {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .combination-item,
  .combination-item::before,
  .combination-item::after,
  .author-card,
  .author-card::before,
  .author-avatar-3d,
  .author-cta-btn,
  .author-cta-btn::before,
  .faq-item,
  .faq-item::before,
  .faq-toggle {
    animation: none !important;
    transition: none !important;
  }

  .combination-item:hover,
  .author-avatar-3d,
  .author-cta-btn:hover,
  .author-pillar:hover,
  .author-pillar:hover .pillar-icon {
    transform: none !important;
  }
}

/* ============================================ */
/* CHATBOT STYLES                               */
/* ============================================ */

#chatBox {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  padding: 20px;
}

button[onclick="openChat()"] {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 9999;
}

/* ============================================ */
/* DARK MODE                                    */
/* ============================================ */

@media (prefers-color-scheme: dark) {
  body:not(.about-vibrant) {
    background-color: #1a1a2e;
    color: #e0e0e0;
  }

  body:not(.about-vibrant) h1,
  body:not(.about-vibrant) h2,
  body:not(.about-vibrant) h3 {
    color: #ffffff;
  }

  body:not(.about-vibrant) p {
    color: #d0d0d0;
  }

  header[role="banner"] {
    background: rgba(26, 26, 46, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  header[role="banner"].scrolled {
    background: rgba(26, 26, 46, 0.95);
  }

  .soulspace-logo {
    color: #e0e0e0;
  }

  .soulspace-logo .logo-text {
    background: linear-gradient(135deg, #e0e0e0 0%, #86a8e7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .nav-link {
    color: #e0e0e0;
  }

  .dropdown-menu,
  .submenu {
    background: rgba(30, 30, 50, 0.98);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .dropdown-menu li a,
  .submenu li a,
  .submenu-toggle {
    color: #e0e0e0;
  }

  .mobile-nav {
    background: rgba(26, 26, 46, 0.98);
  }

  .mobile-nav-header {
    background: rgba(26, 26, 46, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-link {
    color: #e0e0e0;
  }

  .mobile-dropdown-toggle {
    color: #e0e0e0;
  }

  .mobile-nav-sub {
    color: #b0b0c0;
  }

  .mobile-nav-sub-sub {
    color: #a0a0b0;
  }

  /* Sections */
  .emotional-wellness-hub,
  .lifespan-emotional-guide,
  .related-questions,
  .author-bio {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }

  .emotional-peace {
    background: linear-gradient(145deg, #1a1a2a 0%, #0f0f1a 100%);
  }

  .peace-card {
    background: #2a2a3a;
  }

  .peace-title,
  .peace-card-title,
  .peace-featured-title {
    color: #f0f0f0;
  }

  .peace-card-text,
  .peace-featured-text {
    color: #c0c0d0;
  }

  .peace-tag {
    background: #2a2a3a;
    color: #8ab3cf;
  }

  .peace-featured {
    background: #1a1a2a;
  }

  .wellness-card {
    background: #2a2a3e;
    border-color: #3a3a4e;
  }

  .wellness-card h3 {
    color: #e0e0e0;
  }

  .wellness-card p {
    color: #c0c0d0;
  }

  .card-meta .meta-badge.read-time {
    background: #3a3a4e;
    color: #b0b0c0;
  }

  .card-link {
    color: #6b8e23;
  }

  .faq-question span {
    color: #ffffff;
  }

  .faq-answer p {
    color: #c0c0d0;
  }

  .related-questions .section-title h2 {
    color: #ffffff;
  }

  .category-cluster-title {
    color: #8ab3cf;
  }

  .combination-item {
    background: #2a2a3e;
    border-color: #3a3a4e;
  }

  .combination-title {
    color: #e0e0e0;
  }

  .combination-links a {
    color: #8ab3cf;
  }

  .author-bio [style*="background: white"] {
    background: #2a2a3e !important;
  }

  .author-bio h2,
  .author-bio h4 {
    color: #ffffff !important;
  }

  .author-bio p {
    color: #d0d0d0 !important;
  }

  .container p,
  .container li {
    color: #d0d0d0;
  }

  .stage-card {
    background: #2a2a3e;
  }

  .stage-title,
  .stage-quote {
    color: #e0e0e0;
  }

  .stage-category a {
    color: #c0c0d0;
  }

  .stage-category a:hover {
    background: #3a3a4e;
    color: #8ab3cf;
  }

  .reader-count {
    color: #a0a0b0;
  }

  .travel-section {
    background: linear-gradient(135deg, #2a2418 0%, #1e1a12 100%);
  }

  .travel-card,
  .travel-card-content {
    background: #2a2418;
  }

  .travel-links li a {
    background: #3a3224;
    color: #e6d5b8;
  }
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS                       */
/* ============================================ */

/* Desktop Large (1100px+) */
@media (min-width: 1101px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Desktop Medium (1025px - 1100px) */
@media (min-width: 1025px) and (max-width: 1100px) {
  .desktop-nav {
    gap: 10px;
  }
  .nav-link {
    padding: 6px 8px;
    min-width: 50px;
  }
  .nav-link i {
    font-size: 0.9rem;
  }
  .nav-link span {
    font-size: 0.65rem;
  }
  .nav-special {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .category-cards-grid {
    gap: 20px;
  }
  .hero-title {
    font-size: 3rem !important;
  }
}

/* Tablet & Mobile (up to 1024px) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block !important;
  }
  .soulspace-logo {
    font-size: 1.4rem !important;
  }
  .soulspace-logo .logo-icon {
    font-size: 1.4rem !important;
  }
  .header-content {
    padding: 10px 16px !important;
  }
  .topic-request-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title {
    font-size: 3rem !important;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .value-proposition {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .personal-connection {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Mobile Landscape & Tablet (up to 768px) */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.6rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  .section-title {
    font-size: 1.5rem !important;
  }
  .wellness-main-title {
    font-size: 1.8rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-visual {
    height: 150px !important;
  }
  .floating-emojis,
  .emoji-orb {
    display: none;
  }
  .value-proposition {
    grid-template-columns: 1fr !important;
  }
  .personal-connection {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .community-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .final-cta {
    padding: 40px 20px !important;
  }
  .final-cta h2 {
    font-size: 2rem !important;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .category-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .featured-topics-grid,
  .expanded-topics-grid {
    grid-template-columns: 1fr !important;
  }
  .peace-grid,
  .peace-featured-grid {
    grid-template-columns: 1fr !important;
  }
  .stage-grid {
    grid-template-columns: 1fr !important;
  }
  .stage-header {
    flex-direction: column;
    text-align: center;
  }
  .stage-importance {
    white-space: normal;
    margin-left: 0;
  }
  .stage-content {
    padding: 15px;
  }
  .gold-grid {
    grid-template-columns: 1fr !important;
  }
  .gold-featured {
    flex-direction: column;
    text-align: center;
  }
  .travel-grid {
    grid-template-columns: 1fr !important;
  }
  .kitchen-pro-grid {
    grid-template-columns: 1fr !important;
  }
  .kitchen-pro-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wellness-main-title {
    font-size: 2rem;
  }
  .combination-grid {
    grid-template-columns: 1fr !important;
  }
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .community-stories-section .stories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .community-stories-section .stories-title {
    font-size: 1.8rem;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
  .section-title {
    font-size: 1.6rem !important;
  }
  .community-stats {
    grid-template-columns: 1fr !important;
  }
  .stat-number {
    font-size: 2.2rem !important;
  }
  .cta-btn {
    padding: 14px 25px !important;
    width: 100%;
    text-align: center;
  }
  .emoji-float,
  .pulse-dot,
  .spin-icon {
    animation: none !important;
  }
  input,
  textarea {
    font-size: 16px !important;
  }
  .mobile-nav-link {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .gold-title {
    font-size: 1.6rem;
  }
  .travel-card-header h3 {
    font-size: 1.3rem;
  }
  .travel-links li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .peace-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .peace-card-btn {
    width: 100%;
    justify-content: center;
  }
  .peace-featured-buttons {
    flex-direction: column;
  }
  .peace-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .featured-resource {
    padding: 32px 24px;
  }
  .featured-resource h3 {
    font-size: 1.5rem;
  }
  .trust-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  .community-stories-section {
    padding: 50px 0;
  }
  .community-stories-section .stories-title {
    font-size: 1.6rem;
  }
  .community-stories-section .stories-description {
    font-size: 0.95rem;
  }
  .community-tab {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
  .topic-body {
    padding: 20px 18px;
  }
  .topic-body h3 {
    font-size: 1.1rem;
  }
  .poll-options {
    grid-template-columns: 1fr;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.6rem !important;
  }
  .section-title {
    font-size: 1.4rem !important;
  }
  .soulspace-logo {
    font-size: 1.2rem;
  }
  .stat-number {
    font-size: 2rem !important;
  }
  .community-stories-section .stories-title {
    font-size: 1.25rem;
  }
  .community-stories-section .stories-description {
    font-size: 0.85rem;
  }
}

/* Write For Us NUCLEAR responsive fix */
@media (max-width: 991px) {
  .write-for-us-section .write-for-us-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .write-for-us-section .how-it-works-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 100% !important;
  }
}

@media (max-width: 575px) {
  .write-for-us-section .wfu-type-grid,
  .write-for-us-section .wfu-toggle,
  .write-for-us-section
    .write-for-us-grid
    > div[style*="grid-template-columns"],
  .write-for-us-section
    .write-for-us-grid
    > div
    > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .write-for-us-section .wfu-image-guidelines {
    padding: 35px 22px;
  }
  .write-for-us-section .wfu-image-header h3 {
    font-size: 1.3rem;
  }
  .write-for-us-section .wfu-image-warning {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================ */
/* ACCESSIBILITY & PREFERENCES                 */
/* ============================================ */

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

@media (prefers-contrast: high) {
  .about-vibrant {
    background: black !important;
  }
  .emotion-card,
  .value-card,
  .topic-card,
  .article-card {
    border: 3px solid white !important;
    background: black !important;
  }
  .gradient-text {
    color: yellow !important;
    background: none !important;
    -webkit-text-fill-color: yellow !important;
  }
}

@media print {
  .about-vibrant {
    background: white !important;
    color: black !important;
    padding: 20px 0 !important;
  }
  .vibrant-hero,
  .emoji-float,
  .floating-emojis,
  #chatBox,
  button,
  .newsletter,
  .topic-request-section,
  .final-cta {
    display: none !important;
  }
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .emotion-card:hover,
  .topic-card:hover,
  .article-card:hover,
  .travel-card:hover,
  .kitchen-pro-card:hover {
    transform: none !important;
  }
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* ============================================ */
/* HERO GRID — RESPONSIVE GAP FIX               */
/* Fixes the huge empty space on mobile/tablet  */
/* when .hero-grid stacks to one column         */
/* ============================================ */

/* --- Tablet / small desktop: reduce gap --- */
@media (max-width: 1024px) {
  .about-vibrant .hero-grid {
    gap: 40px !important;
  }

  .about-vibrant .hero-visual {
    height: 260px !important;
    min-height: 0 !important;
  }

  .about-vibrant .emoji-float {
    font-size: 2.2rem !important;
  }

  .about-vibrant .emoji-orb {
    width: 150px !important;
    height: 150px !important;
  }
}

/* --- Small tablet / large phone: stack cleanly --- */
@media (max-width: 768px) {
  .about-vibrant .vibrant-hero {
    margin-bottom: 60px !important;
  }

  .about-vibrant .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }

  /* Give the visual block a real, small height so it doesn't collapse
     into a huge empty space, and re-enable gentle animation */
  .about-vibrant .hero-visual {
    display: block !important;
    height: 140px !important;
    min-height: 0 !important;
    position: relative !important;
    margin: 0 auto !important;
    max-width: 320px !important;
  }

  /* SHOW the floating emojis again — small and tidy */
  .about-vibrant .floating-emojis {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }

  .about-vibrant .emoji-float {
    font-size: 1.8rem !important;
    animation-duration: 20s !important;
  }

  .about-vibrant .emoji-float:nth-child(1) {
    top: 10% !important;
    left: 15% !important;
  }
  .about-vibrant .emoji-float:nth-child(2) {
    top: 55% !important;
    left: 10% !important;
  }
  .about-vibrant .emoji-float:nth-child(3) {
    top: 20% !important;
    right: 18% !important;
  }
  .about-vibrant .emoji-float:nth-child(4) {
    bottom: 15% !important;
    right: 22% !important;
  }

  .about-vibrant .emoji-orb {
    display: block !important;
    width: 100px !important;
    height: 100px !important;
  }

  /* Tighten the trust badges so they don't create extra whitespace */
  .about-vibrant .hero-trust-badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  .about-vibrant .hero-trust-badges .trust-badge {
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
  }

  /* Tighten the section that follows — remove the giant top margin
     on small screens */
  .about-vibrant .category-cards-section {
    margin: 30px 0 !important;
  }

  .about-vibrant .section-header-badge {
    margin-bottom: 16px !important;
  }
}

/* --- Phones: fully compress the hero visual --- */
@media (max-width: 480px) {
  .about-vibrant .vibrant-hero {
    margin-bottom: 40px !important;
  }

  .about-vibrant .hero-grid {
    gap: 18px !important;
  }

  .about-vibrant .hero-visual {
    height: 100px !important;
    max-width: 240px !important;
  }

  .about-vibrant .emoji-float {
    font-size: 1.4rem !important;
  }

  .about-vibrant .emoji-orb {
    width: 70px !important;
    height: 70px !important;
  }

  .about-vibrant .hero-trust-badges {
    gap: 8px !important;
  }

  .about-vibrant .hero-trust-badges .trust-badge {
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
    gap: 5px;
  }

  .about-vibrant .category-cards-section {
    margin: 24px 0 !important;
  }

  .about-vibrant .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 24px !important;
  }
}

/* --- Smallest phones: hide the visual entirely to kill any residual gap --- */
@media (max-width: 380px) {
  .about-vibrant .hero-visual {
    display: none !important;
    height: 0 !important;
  }

  .about-vibrant .hero-grid {
    gap: 12px !important;
  }
}

/* --- Landscape phones: prevent visual + hero from pushing content --- */
@media (max-height: 500px) and (orientation: landscape) {
  .about-vibrant .vibrant-hero {
    margin-bottom: 40px !important;
  }

  .about-vibrant .hero-visual {
    height: 90px !important;
  }

  .about-vibrant .emoji-float {
    font-size: 1.4rem !important;
  }

  .about-vibrant .emoji-orb {
    width: 60px !important;
    height: 60px !important;
  }
}

/* --- Touch devices: no hover effects to cause layout shift --- */
@media (hover: none) and (pointer: coarse) {
  .about-vibrant .hero-visual:hover,
  .about-vibrant .hero-visual:active {
    transform: none !important;
  }
}

/* ============================================ */
/* CATEGORY CARDS SECTION — RESPONSIVE TIGHTEN  */
/* Prevents extra gap between hero and cards    */
/* ============================================ */

@media (max-width: 1024px) {
  .category-cards-section {
    margin: 40px 0 !important;
  }

  .category-cards-section .section-header-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
    margin-bottom: 18px;
  }
}

@media (max-width: 768px) {
  .category-cards-section {
    margin: 30px 0 !important;
  }

  .category-cards-section .section-header-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    gap: 6px;
    margin-bottom: 16px;
  }

  .category-cards-section .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 24px !important;
    padding: 0 8px;
  }

  .category-cards-grid {
    gap: 20px !important;
    margin: 24px 0 !important;
  }
}

@media (max-width: 480px) {
  .category-cards-section {
    margin: 24px 0 !important;
  }

  .category-cards-section .section-title {
    font-size: 1.35rem !important;
    margin-bottom: 20px !important;
  }

  .category-cards-grid {
    gap: 16px !important;
    margin: 20px 0 !important;
  }

  .category-card {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .category-card h3 {
    font-size: 1.15rem !important;
  }

  .category-card p {
    font-size: 0.85rem !important;
  }

  .category-btn {
    padding: 10px 22px !important;
    font-size: 0.85rem !important;
    min-width: 0 !important;
    width: 100%;
  }
}

/* ============================================ */
/* VIBRANT HERO — BASELINE FIX (all sizes)      */
/* Ensures the hero visual never leaves a       */
/* collapsed gap when emojis are hidden by      */
/* the default mobile rule.                     */
/* ============================================ */

.about-vibrant .hero-visual {
  position: relative;
  min-height: 120px;
  margin: -26rem 0;
}

/* Remove the old, over-aggressive mobile rule that hid emojis
   without replacing the height — that's what was causing the gap. */
@media (max-width: 768px) {
  .about-vibrant .floating-emojis,
  .about-vibrant .emoji-orb {
    /* Explicitly re-shown here so the visual is intentional, not empty */
    display: block !important;
  }
}

/* ============================================ */
/* VIBRANT HERO — SAFE AREA (notched phones)    */
/* ============================================ */

@supports (padding: max(0px)) {
  .about-vibrant {
    padding-left: max(0px, env(safe-area-inset-left)) !important;
    padding-right: max(0px, env(safe-area-inset-right)) !important;
  }
}

/* Desktop only — nudge the hero visual upward */
@media (min-width: 1025px) {
  .hero-visual {
    transform: translateY(-140px);
  }
}

/* New & Requested badge styles */
.meta-badge.new {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #4a2c00;
  font-weight: 700;
  animation: pulse-new 2s infinite;
}

.meta-badge.requested {
  background: linear-gradient(135deg, #8b3a3a, #c97e6b);
  color: #fff;
  font-weight: 600;
}

@keyframes pulse-new {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Tag row inside peace cards */
.peace-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem 0;
}

/* Base tag pill */
.peace-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  line-height: 1;
  white-space: nowrap;
}

/* "New" tag — warm gold */
.peace-tag-new {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #4a2c00;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35);
}

/* "Requested" tag — deep rose */
.peace-tag-requested {
  background: linear-gradient(135deg, #8b3a3a, #c97e6b);
  color: #fff;
  box-shadow: 0 2px 6px rgba(139, 58, 58, 0.35);
}

/* Optional: subtle pulse for the "New" tag */
@keyframes peaceTagPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
.peace-tag-new {
  animation: peaceTagPulse 2.2s ease-in-out infinite;
}

/* Fix for Coming Soon Card without interactions.js */
.coming-soon-card {
  display: flex !important;
  flex-direction: column;
  visibility: visible !important;
  opacity: 1 !important;
}
.coming-soon-fullwidth {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 45px 50px;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(0, 180, 200, 0.25);
  background: linear-gradient(135deg, #0a2540 0%, #0d3b5e 50%, #0a4a5e 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 140, 180, 0.45);
  margin-bottom: 2rem;
}

/* Fix for Topic Request Grid Layout */
.topic-request-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .topic-request-grid {
    grid-template-columns: 1fr !important; /* Stacks them on top of each other */
    gap: 30px !important;
  }

  .suggestion-form-side {
    width: 100%;
  }
}

/* ==========================================================
   COMING SOON CARD — PERFORMANCE OPTIMIZED
   Removed: backdrop-filter, filter blur on animated elements,
   heavy infinite shadows. Kept: all visual identity.
   ========================================================== */

/* Card base — lighter paint cost, no backdrop-filter */
.coming-soon-container {
  contain: layout style paint;
}

.coming-soon-fun {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 60px 45px 50px;
  text-align: center;
  isolation: isolate;
  /* Gradient backgrounds are fine — they render once, not per frame */
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 200, 66, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(60, 150, 144, 0.18) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, #0a2540 0%, #0d3b5e 50%, #0a4a5e 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  /* Single static shadow instead of layered animated shadow */
  box-shadow: 0 20px 40px -16px rgba(0, 140, 180, 0.4);
  /* GPU hint — will-change is deliberately NOT set here (see below) */
}

/* Gold border — static (removed the infinite shimmer animation which forces repaints) */
.coming-soon-fun::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #f5c842 0%,
    #d4af37 25%,
    #fff3c4 50%,
    #d4af37 75%,
    #f5c842 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 6;
  /* No animation — the gradient is already beautiful static */
}

/* Icon — animated but lightweight (transform only) */
.coming-soon-fun .coming-soon-icon {
  color: #f5c842;
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.6);
  font-size: 2.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  animation: funIconBounce 2.4s ease-in-out infinite;
  /* Force GPU layer for the animated element ONLY */
  will-change: transform;
}

@keyframes funIconBounce {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(4deg);
  }
}

.coming-soon-fun .coming-soon-title {
  font-size: 1.8rem;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

/* Tagline */
.coming-soon-fun-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5c842;
  margin: 0 0 1.4rem;
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.coming-soon-fun-tagline span {
  display: inline-block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.4rem;
  font-style: italic;
}

.coming-soon-fun-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.coming-soon-fun-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #bae6fd;
  font-size: 1rem;
  line-height: 1.55;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border-left: 3px solid rgba(245, 200, 66, 0.45);
  text-align: left;
}

.coming-soon-fun-list li strong {
  color: #fff3c4;
  font-weight: 700;
}

/* Emoji — kept the bobbing but simplified to transform only */
.fun-emoji {
  font-size: 1.35rem;
  flex-shrink: 0;
  display: inline-block;
  animation: funEmojiBob 3s ease-in-out infinite;
  will-change: transform;
}

.coming-soon-fun-list li:nth-child(2) .fun-emoji {
  animation-delay: 0.3s;
}
.coming-soon-fun-list li:nth-child(3) .fun-emoji {
  animation-delay: 0.6s;
}
.coming-soon-fun-list li:nth-child(4) .fun-emoji {
  animation-delay: 0.9s;
}
.coming-soon-fun-list li:nth-child(5) .fun-emoji {
  animation-delay: 1.2s;
}

@keyframes funEmojiBob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -4px, 0) rotate(-6deg);
  }
}

.coming-soon-fun-closer {
  text-align: center;
  margin-top: 1.4rem;
  font-style: italic;
  color: #fff3c4;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

.coming-soon-fun-closer strong {
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
}

/* Meta badges */
.coming-soon-fun .coming-soon-meta {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.coming-soon-fun .meta-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f7ff;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.coming-soon-fun .coming-soon-badge {
  background: linear-gradient(135deg, #f5c842, #d4af37);
  color: #1e2d42;
  font-weight: 900;
  border: none;
}

.coming-soon-fun .coming-soon-eager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff3c4;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.coming-soon-fun .eager-icon {
  animation: eagerFire 1.4s ease-in-out infinite alternate;
  display: inline-block;
  will-change: transform;
}

@keyframes eagerFire {
  from {
    transform: scale(0.9) rotate(-6deg);
    opacity: 0.8;
  }
  to {
    transform: scale(1.15) rotate(6deg);
    opacity: 1;
  }
}

/* ---- Ribbon (kept, animations minimized) ---- */
.ribbon-wrapper {
  --ribbon-size: 160px;
  position: absolute;
  top: 0;
  right: 0;
  width: var(--ribbon-size);
  height: var(--ribbon-size);
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  border-top-right-radius: 20px;
}

.ribbon-text {
  position: absolute;
  top: 38px;
  right: -50px;
  width: 220px;
  padding: 8px 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  font-weight: 900;
  letter-spacing: clamp(0.3px, 0.1vw, 1.2px);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* Removed ribbonWiggle animation — was causing scroll jank */
}

.ribbon-text .desktop-text {
  display: inline-block;
}
.ribbon-text .mobile-text {
  display: none;
}

/* ---- Card entrance reveal — lightweight, uses transform only ---- */
.coming-soon-fun {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Pulse glow behind card — static (was animated = costly) */
.coming-soon-container > div[style*="pulseGlow"] {
  animation: none !important;
  opacity: 0.6;
}

/* ==========================================================
   LATEST STORIES SECTION — PERFORMANCE OPTIMIZED
   ========================================================== */

.latest-stories-section {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(60, 150, 144, 0.1) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(245, 200, 66, 0.09) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #eef1f5 0%, #e4e9ef 100%);
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
}

.latest-stories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Orbs — STATIC now (removed infinite float animations that repaint every frame) */
.latest-stories-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* Removed filter: blur(70px) — was devastating for scroll perf.
     Replaced with wider radial gradient which looks the same but paints once. */
  background: radial-gradient(
    circle,
    rgba(60, 150, 144, 0.18) 0%,
    rgba(60, 150, 144, 0.05) 40%,
    transparent 70%
  );
}

.latest-stories-orb-1 {
  top: 5%;
  left: 3%;
  width: 400px;
  height: 400px;
}

.latest-stories-orb-2 {
  bottom: 8%;
  right: 4%;
  width: 440px;
  height: 440px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.14) 0%,
    rgba(245, 200, 66, 0.04) 40%,
    transparent 70%
  );
}

.latest-stories-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.latest-stories-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(245, 200, 66, 0.15) 0%,
    rgba(60, 150, 144, 0.12) 100%
  );
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #2a6e69;
  border: 1px solid rgba(245, 200, 66, 0.4);
  text-transform: uppercase;
  box-shadow: 0 4px 14px -6px rgba(245, 200, 66, 0.3);
}

.ls-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c842;
  animation: lsPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes lsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 200, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0);
  }
}

.latest-stories-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #1e2d42;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.latest-stories-title span {
  background: linear-gradient(135deg, #3c9690 0%, #76a92d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.latest-stories-subtitle {
  font-size: 1.02rem;
  color: #4a5c72;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 620px;
}

.latest-stories-subtitle strong {
  color: #2a6e69;
  font-weight: 700;
}

/* ---- HERO CARD — lighter shadow stack ---- */
.latest-story-solo {
  max-width: 980px;
  margin: 0 auto;
  padding: 3.25rem 3rem 2.75rem;
}

.latest-story-card {
  position: relative;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  /* Reduced to a single, cheaper shadow */
  box-shadow: 0 12px 32px -12px rgba(22, 34, 58, 0.45);
  /* Pre-promote for hover transform (avoids paint on hover) */
  transform: translateZ(0);
}

/* Gold border — static */
.latest-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #f5c842 0%,
    #d4af37 25%,
    #fff3c4 50%,
    #d4af37 75%,
    #f5c842 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

.latest-story-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
  border-radius: 32px 32px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

.latest-story-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow:
    0 12px 32px -12px rgba(22, 34, 58, 0.45),
    0 0 0 3px rgba(245, 200, 66, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.latest-story-ribbon {
  position: absolute;
  top: 40px;
  right: -45px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f5c842, #d4af37);
  color: #1e2d42;
  padding: 8px 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
}

.latest-story-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease;
}

.latest-story-icon i {
  font-size: 1.9rem;
  color: #f5c842;
}

.latest-story-card:hover .latest-story-icon {
  transform: translate3d(0, -4px, 0) rotate(-6deg) scale(1.05);
}

.latest-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 4;
}

.ls-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.42rem 0.9rem;
  border-radius: 40px;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.ls-tag-new {
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  border: 1px solid rgba(255, 243, 196, 0.6);
}

.ls-tag-category {
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  color: #ffffff;
  border: 1px solid rgba(120, 220, 210, 0.5);
}

.latest-story-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 1.15rem;
  position: relative;
  z-index: 4;
  letter-spacing: -0.018em;
  max-width: 780px;
}

.latest-story-text {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin: 0 0 2rem;
  flex: 1;
  position: relative;
  z-index: 4;
  max-width: 760px;
}

.latest-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(245, 200, 66, 0.18);
  position: relative;
  z-index: 4;
}

.latest-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1e2d42;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  padding: 1rem 2.15rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px -4px rgba(212, 175, 55, 0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.latest-story-btn:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 10px 22px -4px rgba(245, 200, 66, 0.75);
}

.ls-btn-arrow {
  transition: transform 0.3s ease;
}
.latest-story-btn:hover .ls-btn-arrow {
  transform: translateX(6px);
}

.latest-story-time {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.latest-story-time i {
  color: #f5c842;
}

/* ---- Responsive — kept simple ---- */
@media (max-width: 1024px) {
  .latest-story-solo {
    max-width: 820px;
    padding: 2.75rem 2.25rem 2.35rem;
  }
}

@media (max-width: 768px) {
  .latest-stories-section {
    padding: 3.5rem 1.15rem 3rem;
  }
  .latest-stories-header {
    margin-bottom: 2.25rem;
  }
  .latest-story-solo {
    max-width: 100%;
    padding: 2rem 1.65rem 1.75rem;
  }
  .latest-story-card,
  .latest-story-card::before {
    border-radius: 22px;
  }
  .latest-story-card::after {
    border-radius: 22px 22px 50% 50%;
  }
  .latest-story-card:hover {
    transform: none;
  }
  .latest-story-icon {
    width: 60px;
    height: 60px;
    border-radius: 17px;
  }
  .latest-story-icon i {
    font-size: 1.6rem;
  }
  .latest-story-ribbon {
    font-size: 0.64rem;
    padding: 7px 42px;
    right: -38px;
  }
  .latest-story-title {
    font-size: 1.35rem;
  }
  .latest-story-text {
    font-size: 1rem;
  }
  .latest-story-btn {
    padding: 0.9rem 1.75rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .latest-stories-title {
    font-size: 1.55rem;
  }
  .latest-stories-subtitle {
    font-size: 0.95rem;
  }
  .latest-story-solo {
    padding: 1.75rem 1.35rem 1.5rem;
  }
  .latest-story-card,
  .latest-story-card::before {
    border-radius: 20px;
  }
  .latest-story-title {
    font-size: 1.2rem;
  }
  .latest-story-text {
    font-size: 0.94rem;
  }
  .latest-story-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .latest-story-btn {
    width: 100%;
    justify-content: center;
  }
  .latest-story-time {
    justify-content: center;
  }
}

/* ==========================================================
   RIBBON — Responsive scaling
   ========================================================== */
@media (max-width: 1024px) {
  .ribbon-wrapper {
    --ribbon-size: 140px;
  }
  .ribbon-text {
    top: 32px;
    right: -42px;
    width: 190px;
  }
}
@media (max-width: 768px) {
  .ribbon-wrapper {
    --ribbon-size: 120px;
  }
  .ribbon-text {
    top: 28px;
    right: -38px;
    width: 170px;
    padding: 6px 0;
  }
  .ribbon-text .desktop-text {
    display: none;
  }
  .ribbon-text .mobile-text {
    display: inline-block;
    font-size: 0.65rem;
  }
  .coming-soon-fun {
    padding: 50px 20px 40px !important;
  }
  .coming-soon-fun .coming-soon-title {
    font-size: 1.5rem !important;
  }
  .coming-soon-fun-tagline {
    font-size: 1.05rem;
  }
  .coming-soon-fun-list li {
    font-size: 0.92rem;
    padding: 0.55rem 0.75rem;
  }
  .fun-emoji {
    font-size: 1.15rem;
  }
}
@media (max-width: 480px) {
  .ribbon-wrapper {
    --ribbon-size: 105px;
  }
  .ribbon-text {
    top: 24px;
    right: -32px;
    width: 150px;
    padding: 5px 0;
  }
  .ribbon-text .mobile-text {
    font-size: 0.6rem;
  }
}
@media (max-width: 360px) {
  .ribbon-wrapper {
    --ribbon-size: 95px;
  }
  .ribbon-text {
    top: 20px;
    right: -30px;
    width: 135px;
  }
  .ribbon-text .mobile-text {
    font-size: 0.55rem;
  }
}

/* Respect reduced motion — kill ALL infinite animations */
@media (prefers-reduced-motion: reduce) {
  .coming-soon-fun .coming-soon-icon,
  .fun-emoji,
  .coming-soon-fun .eager-icon,
  .ls-badge-pulse {
    animation: none !important;
  }
}

/* ==========================================================
   PERFORMANCE & SMOOTH SCROLL OVERRIDES
   ========================================================== */

/* 1. Force the whole page to use GPU scrolling */
html,
body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 2. Disable the heaviest infinite background animations */
/* The gold shimmer on the category cards is very heavy on the CPU */
.category-card > span:first-child {
  animation: none !important;
}

/* The floating background orbs cause constant repaints */
.peace-bg-orb,
.newsletter-bg-orb,
.latest-stories-orb {
  animation: none !important;
  filter: none !important; /* Removes the heavy blur calculation */
  opacity: 0.3 !important;
}

/* The typing cursor and pulse dots are fine, but let's make sure 
   the heavy headline text gradients don't repaint on scroll */
.gradient-text,
.hero-title span {
  will-change: transform;
}

/* 3. Remove the heavy blur from the sticky header (major scroll lag culprit) */
header[role="banner"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(245, 245, 247, 0.98) !important; /* Solid color fallback */
}

/* 4. Stop the "Coming Soon" card from doing heavy calculations */
.coming-soon-fun {
  box-shadow: 0 10px 30px -10px rgba(0, 140, 180, 0.3) !important;
}

/* ==========================================================
   MASTER RESPONSIVE & LAYOUT FIXES
   Fixes: Horizontal Scroll, Mobile Clipping, Logo Cutoff
   ========================================================== */

/* 1. Global Overflow Fix (Stops side scrolling & clipping) */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important; /* Stops horizontal scroll */
}

* {
  box-sizing: border-box;
}

/* 2. Header & Logo Fix (Stops the logo from being cut off at the top) */
header[role="banner"] {
  display: block;
  padding-top: 5px; /* Adds breathing room at the top */
}

.header-content {
  padding: 8px 15px !important; /* Balances the header height */
  min-height: 70px;
  display: flex;
  align-items: center;
}

.soulspace-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none;
  line-height: 1;
  margin: 0 !important;
}

.soulspace-logo .logo-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  position: relative !important;
  top: 0 !important;
}

/* This targets the new .logo-img class we added in the HTML */
.soulspace-logo .logo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  position: static !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(60, 150, 144, 0.3);
}

/* Fix the text next to the logo */
.soulspace-logo .logo-text {
  font-size: 1.5rem !important;
  line-height: 1 !important;
}

/* 3. Hide Desktop Nav & Show Mobile Menu properly */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
  }
}

/* 4. Footer Fix (Removes the white gap on the right) */
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
}

/* 5. Force all sections to stay within the screen */
@media (max-width: 768px) {
  section,
  div,
  main,
  footer {
    max-width: 100% !important;
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* ==========================================================
   PERFORMANCE TUNING (NO FEATURES REMOVED)
   ========================================================== */

/* 1. Remove backdrop-filter. This is the #1 cause of scroll lag. 
   We replace it with a solid color that looks almost identical. */
header[role="banner"],
.mobile-nav,
.stage-category {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: #f5f5f7 !important; /* Solid fallback */
}
.stage-category {
  background-color: rgba(
    255,
    255,
    255,
    0.05
  ) !important; /* Solid glass fallback */
}

/* 2. Stop the infinite background orbs from repainting the screen.
   They will stay on screen, but they won't float anymore. */
.peace-bg-orb,
.newsletter-bg-orb,
.latest-stories-orb,
.cs-glow {
  animation: none !important;
}

/* 3. Simplify the heaviest hover effects. 
   Instead of 5 layers of shadows, we use 2 layers. It looks 95% the same but runs 10x faster. */
.category-card,
.wellness-card,
.peace-card,
.stage-card,
.latest-story-card {
  /* Tell the browser to prepare these for smooth scrolling */
  will-change: transform;
  transform: translateZ(0);
}

/* 4. Stop the header from lagging when you scroll down */
header[role="banner"] {
  box-shadow: 0 4px 20px rgba(52, 73, 99, 0.08) !important;
}

/* 5. Fix the typing cursor micro-stutters */
.cursor {
  animation: none !important;
  opacity: 1 !important;
  background-color: var(--teal) !important;
}

/* ==========================================================
   IPHONE / MOBILE FIX: LOGO & HERO TEXT
   ========================================================== */

@media (max-width: 1024px) {
  /* 1. Bring the logo back onto the screen */
  .about-vibrant .hero-visual {
    display: block !important;
    height: auto !important;
    min-height: 280px !important;
    margin: 2rem auto !important; /* Removes the -26rem bug */
    order: -1; /* Puts it above the text */
  }

  /* 2. Make sure the logo is big enough to see */
  .logo-rotator {
    width: 220px !important;
    height: 220px !important;
    margin: 0 auto !important;
  }

  .logo-center {
    width: 90px !important;
    height: 90px !important;
    border-width: 4px !important;
  }

  /* 3. Fix the orbit icons so they don't overlap */
  .ring-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
  }

  /* 4. FIX TEXT VISIBILITY: Make the hero text white since the background is dark */
  .about-vibrant .hero-title {
    color: #ffffff !important;
  }

  .about-vibrant .hero-subtitle {
    color: #e2e8f0 !important;
  }

  .about-vibrant .highlight {
    color: #76a92d !important; /* Make the highlighted text bright green */
    background: rgba(118, 169, 45, 0.15) !important;
  }

  .about-vibrant #typed-text {
    color: #f5c842 !important; /* Make the typing text gold */
  }
}

/* 5. Fix for super small screens (iPhone SE, etc) */
@media (max-width: 480px) {
  .about-vibrant .hero-visual {
    min-height: 200px !important;
    margin: 1rem auto !important;
  }

  .logo-rotator {
    width: 170px !important;
    height: 170px !important;
  }

  .logo-center {
    width: 75px !important;
    height: 75px !important;
  }
}

/* ============================================ */
/* MOBILE NAV OVERLAY FULL-WIDTH & LOGO FIX     */
/* ============================================ */
@media (max-width: 1024px) {
  /* Force menu to cover the whole screen */
  .mobile-nav {
    width: 100vw !important;
    max-width: 100vw !important;
    right: -100vw !important;
    left: auto !important;
  }
  .mobile-nav.active {
    transform: translateX(-100vw) !important;
  }

  /* Stop the global header CSS from breaking the logo inside the menu */
  .mobile-nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-header a {
    display: flex !important;
    align-items: center !important;
  }

  .mobile-nav-header img {
    position: static !important;
    margin: 0 !important;
    max-height: 40px !important;
  }
}

/* ==========================================================
   3D DROPDOWN SELECTOR (THEME MATCHED)
   ========================================================== */
.stage-dropdown-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
  width: 100%;
  padding: 0 1rem;
}

.stage-dropdown-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stage-dropdown-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e2d42;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stage-dropdown-icon {
  font-size: 1.2rem;
}

/* The 3D wrapper */
.stage-select-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  /* 3D Shadow + Gold Gradient Border */
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  padding: 3px; /* Border thickness */
  box-shadow:
    0 10px 20px -8px rgba(212, 175, 55, 0.6),
    0 4px 0 0 #b08d2a,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stage-select-wrapper:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px -8px rgba(212, 175, 55, 0.8),
    0 6px 0 0 #b08d2a,
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stage-select-wrapper:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px -8px rgba(60, 150, 144, 0.5),
    0 6px 0 0 #2a6e69,
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The actual Select element */
.stage-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border: none;
  border-radius: 17px;
  padding: 1.2rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Style the options dropdown */
.stage-select option {
  background: #1e2d42;
  color: #ffffff;
  font-size: 1rem;
  padding: 10px;
}

/* Custom arrow icon */
.stage-select-arrow {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: #f5c842;
  pointer-events: none;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.stage-select-wrapper:focus-within .stage-select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #45b5ad;
}

/* Responsive */
@media (max-width: 768px) {
  .stage-select {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  .stage-select-arrow {
    right: 1.25rem;
  }
}

/* ==========================================================
   BRAIN TRAINING ARCADE (MASTER CONTAINER)
   ========================================================== */
.brain-arcade-section {
  padding: 5rem 1.5rem;
  background: #e8efef;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* The container holding the rows */
.arcade-container {
  max-width: 800px; /* You may want to increase this to 900px or 1000px to give them room */
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Subtle glow orbs to give it depth without being loud */
.brain-arcade-section {
  padding: 5rem 1.5rem;
  background: #e8efef;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.arcade-container {
  max-width: 900px; /* Make sure this is wide enough */
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.arcade-header {
  margin-bottom: 2rem;
}

.arcade-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e2d42;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.arcade-header p {
  color: #556274;
  font-size: 1rem;
}

.brain-arcade-section::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.arcade-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ==========================================================
   3D DROPDOWN SELECTOR (GAME THEME)
   ========================================================== */
.game-dropdown-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
  width: 100%;
  padding: 0 1rem;
}

/* The outer wrapper - matches your dark panels */
.game-dropdown-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  backdrop-filter: blur(10px);
  padding: 8px 12px 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(22, 34, 58, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown:hover .game-dropdown-container {
  border-color: #f5c842;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(212, 175, 55, 0.25);
}

/* The Label text - matches your gold/white theme text */
.game-dropdown-label {
  font-weight: 800;
  color: #f5c842; /* Gold accent */
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* The Dropdown Button itself - matches the theme */
.custom-select-trigger {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25); /* Dark inset look */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* The Arrow icon */
.custom-select-trigger i {
  color: #f5c842;
  transition: transform 0.3s ease;
}

.game-dropdown-wrapper.custom-dropdown.open .custom-select-trigger i {
  transform: rotate(180deg);
}

.game-select-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  padding: 3px;
  box-shadow:
    0 10px 20px -8px rgba(212, 175, 55, 0.6),
    0 4px 0 0 #b08d2a,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.game-select-wrapper:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px -8px rgba(212, 175, 55, 0.8),
    0 6px 0 0 #b08d2a,
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.game-select-wrapper:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px -8px rgba(60, 150, 144, 0.5),
    0 6px 0 0 #2a6e69,
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.game-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border: none;
  border-radius: 17px;
  padding: 1.2rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.game-select option {
  background: #1e2d42;
  color: #ffffff;
  font-size: 1rem;
  padding: 10px;
}

.game-select-arrow {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: #f5c842;
  pointer-events: none;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.game-select-wrapper:focus-within .game-select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #45b5ad;
}

/* ==========================================================
   GAME PANELS (SHOW/HIDE LOGIC)
   ========================================================== */
.game-panel {
  display: none;
  animation: fadeInGame 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-panel.active {
  display: block;
}

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

/* ==========================================================
   GAME SPECIFIC STYLES (Responsive Fixes)
   ========================================================== */

/* --- MIND MATCH --- */
.match-container {
  max-width: 550px;
  margin: 0 auto;
}

.match-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px -10px rgba(52, 73, 99, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================
   MINDFUL SUDOKU — FULLY RESPONSIVE (Fixed for iPhone & Fold)
   ========================================================== */

.sudoku-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Controls (Difficulty & New Game) */
.sudoku-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px -4px rgba(52, 73, 99, 0.1);
}

.sudoku-difficulty {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #344963;
  flex-wrap: wrap;
}

.sudoku-difficulty label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.sudoku-difficulty input {
  accent-color: #3c9690;
  cursor: pointer;
  margin: 0;
}

/* The Board */
.sudoku-board-wrapper {
  background: #1e2d42;
  padding: 4px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(30, 45, 66, 0.4);
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.sudoku-board {
  display: grid;
  /* Crucial fix: minmax(0, 1fr) stops the cells from overflowing */
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.sudoku-cell {
  aspect-ratio: 1/1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scales text down dynamically on smaller screens */
  font-size: clamp(0.8rem, 4vw, 1.4rem);
  font-weight: 600;
  color: #3c9690;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

/* Thicker borders for 3x3 grids */
.sudoku-cell:nth-child(3n) {
  border-right: 2px solid #1e2d42;
}
.sudoku-cell:nth-child(9n) {
  border-right: none;
}
.sudoku-cell:nth-child(n + 19):nth-child(-n + 27),
.sudoku-cell:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid #1e2d42;
}

/* Cell States */
.sudoku-cell.fixed {
  color: #1e2d42;
  font-weight: 800;
  background: #f8f9fa;
  cursor: default;
}
.sudoku-cell.selected {
  background: #e0f2f1 !important;
  box-shadow: inset 0 0 0 2px #3c9690;
}
.sudoku-cell.highlight {
  background: #f1f8e9;
}
.sudoku-cell.error {
  color: #dc2626;
  background: #fef2f2;
  animation: shake 0.3s;
}

/* Status Bar */
.sudoku-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sudoku-status {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #556274;
  font-weight: 600;
}

.sudoku-status strong {
  color: #1e2d42;
}

.sudoku-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Numpad */
.sudoku-numpad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 1rem;
  width: 100%;
}

.numpad-btn {
  aspect-ratio: 1/1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: #1e2d42;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numpad-btn:hover {
  background: #f5f5f7;
  border-color: #3c9690;
  color: #3c9690;
}

.sudoku-win-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .sudoku-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .sudoku-difficulty {
    justify-content: space-between;
  }

  .sudoku-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .sudoku-status {
    justify-content: space-between;
  }

  .sudoku-actions {
    width: 100%;
  }

  .sudoku-actions .sudoku-btn {
    flex: 1; /* Makes buttons fill the row evenly */
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 390px) {
  .sudoku-container {
    padding: 0 5px; /* Tighter fit for Galaxy Fold */
  }
  .sudoku-difficulty label {
    font-size: 0.8rem;
  }
}

/* ==========================================================
   RESPONSIVE (MOBILE OPTIMIZATION)
   ========================================================== */
@media (max-width: 768px) {
  .brain-arcade-section {
    padding: 3rem 1rem;
  }
  .arcade-header h2 {
    font-size: 1.8rem;
  }
  .game-select {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  .game-select-arrow {
    right: 1.25rem;
  }

  /* Mind Match Mobile */
  .match-stats {
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .match-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .game-board {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .card-face {
    font-size: 1.8rem;
    border-radius: 12px;
  }

  /* Sudoku Mobile */
  .sudoku-controls {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .sudoku-cell {
    font-size: 1.1rem;
  }
  .sudoku-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  .sudoku-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sudoku-btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }
  .numpad-btn {
    font-size: 1rem;
  }
}

/* ==========================================================
   WORD SCRAMBLE GAME
   ========================================================== */
.scramble-container {
  max-width: 550px;
  margin: 0 auto;
}

.scramble-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px -10px rgba(52, 73, 99, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.scramble-card {
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px -10px rgba(22, 34, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.2);
}

.scramble-hint {
  display: inline-block;
  color: #a8d5d3;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(245, 200, 66, 0.2);
}

.scramble-letters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  min-height: 70px;
}

.scramble-tile {
  width: 50px;
  height: 60px;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Segoe UI", sans-serif;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 0 #b08d2a,
    0 6px 15px -4px rgba(245, 200, 66, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scramble-tile:nth-child(2n) {
  transform: rotate(-4deg);
}
.scramble-tile:nth-child(3n) {
  transform: rotate(4deg);
}

.scramble-tile.revealed {
  background: linear-gradient(145deg, #45b5ad 0%, #2a6e69 100%);
  color: #ffffff;
  transform: translateY(-10px) rotate(0deg) scale(1.05);
  box-shadow:
    0 4px 0 0 #1e2d42,
    0 10px 20px -4px rgba(60, 150, 144, 0.6);
}

.scramble-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#scramble-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
}

#scramble-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

#scramble-input:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 4px rgba(245, 200, 66, 0.15);
}

#scramble-submit {
  background: #f5c842;
  color: #1e2d42;
  font-weight: 800;
  border-radius: 12px;
  padding: 0 1.5rem;
}

#scramble-submit:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.scramble-message {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 1.5em;
  position: relative;
  z-index: 2;
}

.scramble-message.success {
  color: #a8f0c6;
}
.scramble-message.error {
  color: #fca5a5;
}

/* Shake animation for wrong guess */
@keyframes scrambleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}
.shake-anim {
  animation: scrambleShake 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .scramble-stats {
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }
  .scramble-card {
    padding: 2rem 1rem;
  }
  .scramble-tile {
    width: 42px;
    height: 52px;
    font-size: 1.5rem;
  }
  .scramble-input-group {
    flex-direction: column;
  }
  #scramble-submit {
    padding: 0.9rem;
  }
}

/* ==========================================================
   MINDFUL RIDDLES GAME
   ========================================================== */
.riddles-container {
  max-width: 600px;
  margin: 0 auto;
}

.riddles-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px -10px rgba(52, 73, 99, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.riddle-card {
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px -10px rgba(22, 34, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.2);
  transition: all 0.4s ease;
}

.riddle-badge {
  display: inline-block;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px -2px rgba(212, 175, 55, 0.5);
}

.riddle-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 600;
  font-family: "Georgia", serif;
  font-style: italic;
  margin-bottom: 1.5rem;
  min-height: 80px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.riddle-hint-box {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  opacity: 0;
  background: rgba(245, 200, 66, 0.1);
  border: 1px dashed rgba(245, 200, 66, 0.4);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.riddle-hint-box.show {
  max-height: 200px;
  opacity: 1;
  padding: 1rem;
}

.riddle-hint-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f5c842;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.riddle-hint-text {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.riddle-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}

#riddle-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
}

#riddle-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

#riddle-input:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 4px rgba(245, 200, 66, 0.15);
}

#riddle-submit {
  background: #f5c842;
  color: #1e2d42;
  font-weight: 800;
  border-radius: 12px;
  padding: 0 1.5rem;
}

#riddle-submit:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.riddle-actions {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.riddle-hint-btn {
  background: transparent;
  border: 1px solid rgba(245, 200, 66, 0.4);
  color: #f5c842;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.riddle-hint-btn:hover {
  background: rgba(245, 200, 66, 0.15);
  border-color: #f5c842;
  transform: translateY(-2px);
}

.riddle-hint-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.riddle-message {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 1.5em;
  position: relative;
  z-index: 2;
}

.riddle-message.success {
  color: #a8f0c6;
}
.riddle-message.error {
  color: #fca5a5;
}
.riddle-message.reveal {
  color: #f5c842;
}

/* Card shake animation */
@keyframes riddleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}
.riddle-shake {
  animation: riddleShake 0.4s ease;
}

/* Win glow */
@keyframes riddleWin {
  0%,
  100% {
    box-shadow:
      0 10px 30px -10px rgba(22, 34, 58, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px -4px rgba(245, 200, 66, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}
.riddle-win {
  animation: riddleWin 1.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .riddles-stats {
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }
  .riddle-card {
    padding: 2rem 1.25rem;
  }
  .riddle-text {
    font-size: 1.1rem;
    min-height: 100px;
  }
  .riddle-input-group {
    flex-direction: column;
  }
  #riddle-submit {
    padding: 0.9rem;
  }
}

/* ==========================================================
   EMOTIONAL RELEASE GAME
   ========================================================== */
.release-container {
  max-width: 700px;
  margin: 0 auto;
}

.release-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.release-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e2d42;
  margin-bottom: 0.5rem;
}

.release-subtitle {
  color: #556274;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 450px;
  margin: 0 auto;
}

.release-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px -10px rgba(52, 73, 99, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.release-stats .stat-box {
  text-align: center;
}

.release-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: radial-gradient(
    circle at 50% 50%,
    #2a4a5c 0%,
    #1e2d42 60%,
    #16223a 100%
  );
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 15px 35px -10px rgba(22, 34, 58, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 200, 66, 0.15);
  cursor: crosshair;
}

#release-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.release-instruction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
  text-align: center;
  padding: 0 1rem;
  transition: opacity 0.5s ease;
  animation: releasePulse 2s infinite alternate;
}

.release-instruction.hidden {
  opacity: 0;
}

@keyframes releasePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
}

/* Popup floating text */
.release-float-text {
  position: absolute;
  color: #f5c842;
  font-weight: 800;
  font-size: 1.2rem;
  pointer-events: none;
  animation: floatUpFade 1s ease-out forwards;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

@keyframes floatUpFade {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150%) scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .release-stats {
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
    width: 90%;
  }
  .release-title {
    font-size: 1.3rem;
  }
  .release-subtitle {
    font-size: 0.85rem;
  }
  .release-instruction {
    font-size: 0.85rem;
  }
}

/* ==========================================================
   ULTIMATE SMOOTH SCROLL OVERRIDES
   ========================================================== */
html {
  scroll-behavior: smooth;
  /* Enables native hardware-accelerated momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevents layout shift when the scrollbar appears/disappears */
  scrollbar-gutter: stable;
}

/* Ensure the body has hardware acceleration */
body {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  overflow-x: hidden;
}

/* Reduce paint cost for heavy sections while scrolling */
.stage-card,
.game-panel,
.wellness-card,
.peace-card {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Remove heavy hover transitions on mobile to prevent "ghost taps" */
@media (hover: none) {
  .stage-tab:hover,
  .game-select-wrapper:hover,
  .peace-card:hover,
  .wellness-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================
   IPHONE / MOBILE FIX: BRAIN ARCADE GAMES
   ========================================================== */
@media (max-width: 768px) {
  /* 1. Stop the whole arcade section from stretching the page */
  .brain-arcade-section {
    padding: 2rem 1rem !important;
    max-width: 100vw;
    overflow: hidden;
  }

  .arcade-container {
    padding: 0 !important;
    max-width: 100%;
  }

  /* 2. Fix the stats bar that is causing the overflow */
  .match-stats,
  .sudoku-controls,
  .scramble-stats,
  .riddles-stats,
  .release-stats {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1rem !important;
    padding: 1rem !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 3. Make all game buttons fill the width so they don't get clipped */
  .match-btn,
  .sudoku-btn.primary,
  .sudoku-btn.secondary,
  .sudoku-btn.success {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
  }

  /* 4. Fix the canvas wrapper so it respects the screen edges */
  .release-canvas-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    box-sizing: border-box;
  }

  /* 5. Fix Sudoku so it doesn't break the grid */
  .sudoku-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .sudoku-board-wrapper {
    width: 100% !important;
    padding: 2px !important;
    box-sizing: border-box;
  }

  .sudoku-board {
    width: 100% !important;
    box-sizing: border-box;
  }

  .sudoku-cell {
    font-size: 0.9rem !important;
  }

  /* 6. Fix the Riddles and Scramble input groups to stack */
  .riddle-input-group,
  .scramble-input-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  #riddle-input,
  #scramble-input,
  #riddle-submit,
  #scramble-submit {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 7. Make sure the game board grid doesn't overflow */
  .game-board {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.4rem !important;
    padding: 0 !important;
  }

  .card-face {
    font-size: 1.5rem !important;
  }
}

/* ==========================================================
   ULTRA SAFE FALLBACK (For very small screens)
   ========================================================== */
@media (max-width: 390px) {
  .match-stats .stat-value {
    font-size: 1rem !important;
  }
  .match-btn {
    font-size: 0.8rem !important;
  }

  .sudoku-cell {
    font-size: 0.8rem !important;
  }

  .scramble-tile {
    width: 35px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
  }

  .riddle-text {
    font-size: 1rem !important;
  }

  .release-canvas-wrapper {
    aspect-ratio: 1 / 1 !important;
  }
}

/* ==========================================================
   AUTHOR BIO — PERFORMANCE-OPTIMIZED RESPONSIVE CARD
   - No inline styles (browser can cache & optimize)
   - No !important overrides
   - GPU layer created once on the card only
   - Animation runs on the mask span only (not the whole card)
   ========================================================== */

.author-bio {
  padding: 5rem 1.5rem;
  background: var(--offwhite);
  border-top: 1px solid #e2e8f0;
  position: relative;
  /* Isolate paint to this section */
  contain: layout style paint;
}

.author-bio-container {
  max-width: 1000px;
  margin: 0 auto;
}

.author-bio-card {
  position: relative;
  background: linear-gradient(155deg, #1e2d42 0%, #2a4a5c 45%, #2a6e69 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  border: 2px solid transparent;
  box-shadow:
    0 8px 0 0 #16223a,
    0 15px 30px -10px rgba(22, 34, 58, 0.5);
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2.5rem;
  /* Single GPU layer — promoted once */
  transform: translateZ(0);
  isolation: isolate;
}

/* Gold gradient border overlay — animation uses background-position (compositor-friendly) */
.author-bio-gold-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #f5c842 0%,
    #d4af37 25%,
    #fff3c4 50%,
    #d4af37 75%,
    #f5c842 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: goldShimmer 7s ease-in-out infinite;
  /* GPU layer for the animated element only */
  will-change: background-position;
}

/* Top gloss highlight — static, no animation */
.author-bio-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 100%
  );
  border-radius: 24px 24px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

/* 3D icon tile */
.author-bio-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: linear-gradient(145deg, #2d4a63 0%, #1e2d42 100%);
  border: 1px solid rgba(245, 200, 66, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #f5c842;
  flex-shrink: 0;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 8px 16px -4px rgba(0, 0, 0, 0.5);
  z-index: 3;
  margin-top: 0.5rem;
}

.author-bio-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.author-bio-heading {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.25;
}

.author-bio-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.author-bio-text-light {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.author-bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #f5c842 0%, #d4af37 100%);
  color: #1e2d42;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 10px -2px rgba(212, 175, 55, 0.6);
}

.author-bio-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px -2px rgba(212, 175, 55, 0.8);
}

/* ==========================================================
   RESPONSIVE — TABLET (≤991px)
   Layout shift only — no repaint of background/gradients
   ========================================================== */
@media (max-width: 991px) {
  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
    /* Reset GPU layer since layout changed — avoids extra layer */
    will-change: auto;
  }

  .author-bio-icon {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .author-bio-content {
    width: 100%;
    min-width: 0;
  }

  .author-bio-heading,
  .author-bio-text {
    text-align: center;
  }

  .author-bio-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE (≤480px) — iPhone 17 & Pro Max
   ========================================================== */
@media (max-width: 480px) {
  .author-bio {
    padding: 3rem 1rem;
  }

  .author-bio-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
    gap: 1.25rem;
  }

  .author-bio-gold-border {
    border-radius: 20px;
  }

  .author-bio-gloss {
    border-radius: 20px 20px 50% 50%;
  }

  .author-bio-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    border-radius: 16px;
  }

  .author-bio-heading {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .author-bio-text {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .author-bio-text-light {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .author-bio-btn {
    font-size: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    gap: 6px;
  }
}

/* ==========================================================
   REDUCED MOTION — kill animation for users who prefer it
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .author-bio-gold-border {
    animation: none !important;
  }
  .author-bio-btn {
    transition: none !important;
  }
  .author-bio-btn:hover {
    transform: none !important;
  }
}

/* ==========================================================
   PEACE CATEGORY PANELS (dropdown-driven)
   Reuses the existing .stage-dropdown-wrapper + .stage-select
   styles from the Life Stages section.
   ========================================================== */

.peace-category-container {
  position: relative;
  min-height: 400px; /* Prevents layout jump when switching */
  margin-bottom: 2rem;
}

.peace-category-panel {
  display: none;
}

.peace-category-panel.active {
  display: block;
  animation: fadeInPeacePanel 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Force exactly 3 columns on the grid (matches the wellness hub) */
.peace-category-panel .peace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 0;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .peace-category-panel .peace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .peace-category-panel .peace-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .peace-category-panel.active {
    animation: none !important;
  }
}

/* Hide the old view-more UI (no longer needed) */
#view-more-peace-btn,
#visible-peace-count,
#total-peace-topics {
  display: none !important;
}
