/* Kids Stories Theme - Main Stylesheet */

/* ============================================
   ROOT VARIABLES - Juliet Apps Color Palette
   ============================================ */
:root {
    /* Primary Colors - Teal & Aqua */
    --color-primary: #006d77;
    --color-primary-light: #83c5be;
    --color-primary-dark: #004851;
    
        /* Card borders/rings */
        --brand-coral: #FF8A80;
        --brand-lavender-500: #A89DFF;
        --brand-lavender-150: #E9E6FF;
        --card-border: #E8E6F2;           /* neutral lavender‑gray */
        --card-ring-stories: #FFDAD6;      /* light coral */
        --card-ring-parent: var(--brand-lavender-150); /* light lavender */
        --card-ring-general-parenting: #B3E5FC; /* light blue for general parenting hover */
    
    --color-secondary: #83c5be;
    --color-secondary-light: #edf6f9;
    --color-secondary-dark: #5fa9a0;
    
    /* Brand accent colors */
    --color-accent: #e29578;
    --color-accent-light: #ffddd2;
    --color-accent-dark: #d97d5d;
    
    /* Text Colors (brand-aligned) */
    --color-text-primary: #3F3F46; /* darker gray for body copy */
    --color-text-secondary: #2D2A4A; /* brand navy */
    --color-text-muted: #6D6D6D;      /* homepage muted */
    
    /* Supporting Colors */
    --color-purple: #581c87;
    --color-orange: #f86443;
    --color-green: #14532d;
    --color-blue: #42a7ce;
    --color-burgundy: #7c2d12;
    
    /* Neutral Colors */
    --color-background: #edf6f9;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray: #e1e1e1;
    --color-gray-dark: #6B7280;
    
    /* Fonts (homepage-aligned) */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-handwriting: 'Patrick Hand', cursive;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-colorful: 0 8px 32px rgba(247, 200, 115, 0.25);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: #edf6f9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Homepage background override */
body.home-page {
    background: #F9F9F9;
}

/* Make header blend with homepage background (no separate banner) */
/* Make header style consistent across all pages (match homepage) */
.site-header {
    background: #edf6f9;
    box-shadow: none;
    border-bottom: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Remove default main padding on homepage to lift hero under header */
body.home-page .main-content {
    padding-top: 0;
}

/* =============================
   Homepage (mock-aligned) hero
   ============================= */
.home-hero { padding: var(--spacing-lg) 0 var(--spacing-lg); }
.home-hero .container { padding-left: 0; padding-right: 0; }
/* Ensure the image card itself has no inner spacing */
body.home-page .hero-image-card { padding: 0; margin-right: 0; }
body.home-page .hero-media { display: block; border-radius: 0; }

/* Maintain breathing room for the text card after removing container padding */
@media (min-width: 768px) {
    body.home-page .hero-text-card { margin-left: 16px; }
    body.home-page .hero-layout { column-gap: 24px; }
}

/* New split hero layout */
.hero-layout {
    display: grid;
    /* Narrower image column so the image fills the box nicely */
    grid-template-columns: 1.2fr 0.9fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.hero-text-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.hero-image-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #F3F0EC;
    /* No inner padding/margins around the image */
    padding: 0;
    margin: 0;
    display: flex;
    position: relative;
    min-height: clamp(460px, 58vh, 760px);
}

.hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.hero-media {
    /* Real image with graceful fallback color */
    background-color: #e9eef6;
    background-image: url('/images/home-hero.jpg');
    /* Fill the box, no empty sides */
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    /* Fill the card fully */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 65%;
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.hero-overlay-inner {
    background: rgba(255,255,255,0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    /* Reduce left padding so the text box sits further left */
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
    max-width: 520px;
}

.hero-heading { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .25rem; font-family: 'Poppins', var(--font-heading), sans-serif; }
.hero-kicker { color: #FF8A80; font-weight: 800; letter-spacing: .04em; }
.amp { color: #2D2A4A; font-weight: 800; }
.hero-title-main { color: #2D2A4A; font-weight: 800; }
.hero-overlay-inner h1 { font-size: 2.25rem; line-height: 1.1; }
.hero-subtext { color: #6D6D6D; margin: .5rem 0 var(--spacing-md); max-width: 52ch; font-family: 'Open Sans', var(--font-body), sans-serif; }
.hero-text-body { max-width: 52ch; }

.btn-success { background: #B8E2C8; color: #2D2A4A; border: none; padding: .85rem 1.25rem; border-radius: 999px; font-weight: 700; font-family: 'Poppins', var(--font-body), sans-serif; }
.btn-success:hover { background: #A9D9BC; color: #2D2A4A; filter: none; }

/* Badge row */
.home-badges { padding: var(--spacing-xl) 0 var(--spacing-2xl); }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-xl); }
.badge-item { text-align: center; }
.badge-icon { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto var(--spacing-sm); background: #E9E6FF; border: none; color: #FF8A80; display: grid; place-items: center; font-size: 2rem; box-shadow: var(--shadow-sm); }
.badge-label { color: #2D2A4A; font-weight: 600; font-family: 'Poppins', var(--font-body), sans-serif; }

/* Pull badges up slightly so they're visible on laptop screens */
body.home-page .home-badges { margin-top: -32px; position: relative; z-index: 1; }

/* Responsive tweaks */

/* Make the hero button match the text width (container-controlled) */
.hero-text-body .btn-success { display: block; width: 100%; }
@media (max-width: 768px) {
    .hero-layout { grid-template-columns: 1fr; gap: var(--spacing-lg); }
    .hero-text-card { padding: var(--spacing-lg); }
        /* Let the card control height so the background scales correctly */
        .hero-image-card { min-height: clamp(320px, 54vh, 520px); }
        .hero-media { background-position: center; background-size: cover; }
  .badge-grid { grid-template-columns: 1fr; }
}

/* Laptop-specific tweak (typical 1366x768 or similar) */
@media (min-width: 1024px) and (max-height: 900px) {
    body.home-page .home-hero .hero-image-card { min-height: clamp(460px, 60vh, 680px); }
    body.home-page .home-badges { margin-top: -40px; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary); /* brand navy headings */
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a {
    color: #2D2A4A; /* brand navy */
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #2D2A4A; /* keep navy on hover */
    text-decoration: none; /* prevent underline on hover */
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.main-content {
    min-height: 60vh;
    padding: var(--spacing-xl) 0;
}

/* ============================================
   HEADER & NAVIGATION - Modern & Responsive
   ============================================ */
.site-header {
    background: #F9F9F9; /* match homepage */
    backdrop-filter: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1001;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-direction: column; /* stack text under icon */
}

.site-logo img {
    height: 72px;
    width: auto;
    transition: var(--transition-fast);
    display: block; /* remove inline image bottom whitespace */
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 700;
    text-shadow: none;
    margin-left: var(--spacing-sm);
}

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

/* Site name with Dancing Script font */
.site-name {
    font-size: 2rem;
    color: var(--color-primary);
    white-space: nowrap;
    margin-left: 1.5rem;
}

.site-name .surname {
    color: #e29578;
}

.font-dancing { font-family: 'Dancing Script', cursive; }

/* Brand text next to icon */
.site-brand-text {
    margin-left: 0;
    margin-top: -2px; /* pull text even closer to bubbles */
    font-family: 'Poppins', var(--font-heading), sans-serif;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 1.4rem;
    line-height: 1;
    text-align: center;
}
.brand-kiddi { color: #1B2230; }
.brand-moti { color: #FF8A80; }

.emoji-decoration {
    display: none; /* Remove emoji decorations for cleaner look */
}

/* Modern Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-link {
    color: #2D2A4A;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 1.1rem;
    font-family: 'Poppins', var(--font-body), sans-serif;
    text-decoration: none; /* no underline */
}

.nav-link:hover {
    background-color: transparent; /* no block */
    color: #2D2A4A;
    text-decoration: underline; /* navy underline */
    text-decoration-color: #2D2A4A;
    text-underline-offset: 3px;
}

/* Remove hover underlines/lines for logo and header links explicitly */
.site-header a,
.site-header a:hover,
.site-header a:focus {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.nav-item.active .nav-link {
    background: transparent; /* no yellow background */
    color: #2D2A4A;
    font-weight: 600;
    text-decoration: underline; /* show navy underline */
    text-decoration-color: #2D2A4A;
    text-underline-offset: 3px;
}

/* Ensure header nav underline wins over generic header link reset */
.site-header .nav-link:hover,
.site-header .nav-item.active > .nav-link {
    background: transparent !important;
    color: #2D2A4A !important;
    text-decoration: underline !important;
    text-decoration-color: #2D2A4A !important;
    text-underline-offset: 3px !important;
}

/* Connect page highlight bar above form */
.signup-highlight {
    background: var(--brand-lavender-150); /* light lavender */
    border: 1px solid var(--brand-lavender-500); /* lavender border */
    color: #2D2A4A;
    font-family: 'Poppins', var(--font-heading), sans-serif;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    margin: 0 0 var(--spacing-md); /* slightly more space to the form */
        white-space: nowrap; /* keep to one line on desktop */
}

@media (max-width: 640px) {
    .signup-highlight { white-space: normal; }
}

/* Lift the banner section closer to the header (~50% of main top padding) */
/* Pull the banner+form further up (closer to header like home hero) */
.connect-page .signup-section { margin-top: calc(-1.25 * var(--spacing-xl)); }

/* FAQ-specific styling */
.post-content.faq-format h2 {
    color: #2D2A4A;
    border-bottom: 2px solid #2D2A4A;
    padding-bottom: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.35rem;
}

.post-content.faq-format h2:first-of-type {
    margin-top: 0;
}

.post-content.faq-format ol,
.post-content.faq-format ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.post-content.faq-format li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.post-content.faq-format strong {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ============================================
   COMPREHENSIVE GUIDE STYLING - Better Spacing
   ============================================ */
/* Enhanced spacing for comprehensive guide articles in general parenting */

.post-content ul,
.post-content ol {
    margin-bottom: var(--spacing-lg); /* Increased from default md to lg for better separation */
    margin-left: var(--spacing-md);
    padding-left: var(--spacing-sm);
}

.post-content li {
    margin-bottom: var(--spacing-xs); /* Slightly reduced space between list items */
    line-height: 1.7;
}

.post-content li:last-child {
    margin-bottom: 0; /* Remove margin from last item */
}

/* Improved spacing between text blocks and following headers */
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: var(--spacing-xl); /* Increased top margin for better separation from previous content */
    margin-bottom: var(--spacing-lg); /* Slightly increased bottom margin */
}

/* First header in content doesn't need extra top margin */
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
    margin-top: 0;
}

/* Improved spacing after lists - ensure good separation before next content */
.post-content ul + p,
.post-content ol + p,
.post-content ul + h2,
.post-content ol + h2,
.post-content ul + h3,
.post-content ol + h3,
.post-content ul + h4,
.post-content ol + h4 {
    margin-top: var(--spacing-xl); /* Extra space after lists before next content */
}

/* Better spacing for paragraphs that follow headers */
.post-content h2 + p,
.post-content h3 + p,
.post-content h4 + p {
    margin-top: var(--spacing-sm); /* Reduce space between header and first paragraph */
}

/* Nested lists should have tighter spacing */
.post-content li ul,
.post-content li ol {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   GENERAL PARENTING IMAGE STYLING
   ============================================ */
/* Hero images for general parenting articles - Article Width Design */
.featured-image.general-parenting-hero {
    /* Match article content width */
    width: 100%;
    max-width: 800px; /* Same as article content max-width */
    height: auto; /* Let image maintain its natural proportions */
    margin: 0 auto var(--spacing-xl) auto; /* Center within article */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.featured-image.general-parenting-hero img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.featured-image.general-parenting-hero:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-image.general-parenting-hero {
        margin-bottom: var(--spacing-lg);
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .featured-image.general-parenting-hero {
        margin-bottom: var(--spacing-md);
    }
}

/* ============================================
   STORIES IMAGE STYLING
   ============================================ */
/* Hero images for stories - Article Width Design */
.featured-image.stories-hero {
    /* Match article content width */
    width: 100%;
    max-width: 800px; /* Same as article content max-width */
    height: auto; /* Let image maintain its natural proportions */
    margin: 0 auto var(--spacing-xl) auto; /* Center within article */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.featured-image.stories-hero img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.featured-image.stories-hero:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-image.stories-hero {
        margin-bottom: var(--spacing-lg);
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .featured-image.stories-hero {
        margin-bottom: var(--spacing-md);
    }
}

/* ============================================
   STORIES CONTENT STYLING
   ============================================ */
/* Story situation description styling */
.post-content em:first-child {
    display: block;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    background-color: #f8f9ff;
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-blue);
    border-radius: 0 8px 8px 0;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    font-family: var(--font-body);
}

/* Card styling for general parenting */
.story-card.is-general-parenting {
    border-color: var(--color-blue);
}

.story-card.is-general-parenting:hover {
    border-color: var(--card-ring-general-parenting);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 2px var(--card-ring-general-parenting);
}

.story-card.is-general-parenting .card-image {
    background: linear-gradient(135deg, #E3F2FD 0%, var(--color-blue) 100%);
}

.story-card.is-general-parenting .placeholder-emoji {
    color: var(--color-text-secondary);
}

/* Section dot styling for general parenting */
.section-dot.is-general-parenting {
    background-color: var(--color-blue);
}

/* Content series navigation */
.content-series {
    background: var(--brand-lavender-150);
    border: 1px solid var(--brand-lavender-500);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.content-series h3 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.series-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.content-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid #E1DDFF;
    transition: var(--transition-fast);
}

.content-link:hover {
    border-color: var(--brand-coral);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-link.is-comprehensive {
    border-left: 4px solid var(--brand-coral);
}

.content-link.is-faq {
    border-left: 4px solid var(--brand-lavender-500);
}

.content-icon {
    font-size: 1.5rem;
    min-width: 24px;
}

.content-meta {
    flex: 1;
}

.content-title {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.content-type {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .content-series {
        margin: var(--spacing-md) 0;
        padding: var(--spacing-md);
    }
    
    .content-link {
        padding: var(--spacing-sm);
    }
}

/* Brand yellow button on Connect page */
.connect-page .btn-primary {
        background: var(--color-primary) !important; /* brand yellow */
        color: #2D2A4A !important; /* navy text */
        border: none !important;
}
.connect-page .btn-primary:hover {
        background: var(--color-primary-dark) !important;
        color: #2D2A4A !important;
        filter: none !important;
}

/* Desktop: bring the menu closer to the logo */
@media (min-width: 1025px) {
    .header-content {
        justify-content: flex-start; /* keep nav next to logo */
        gap: var(--spacing-md); /* add space between logo and menu */
    }
    .main-navigation {
        justify-content: flex-start;
        flex: 0 0 auto;
        margin-left: var(--spacing-md); /* move menus slightly right of logo */
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    color: var(--color-text-secondary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none; /* Remove floating emojis for cleaner look */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS - Modern Style
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-colorful);
    color: var(--color-text-secondary);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-secondary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-text-secondary);
}

.btn-outline:hover {
    background-color: var(--color-text-secondary);
    color: var(--color-white);
}

/* ============================================
   CONTENT GRID - Story Cards
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

/* Section list pages */
.list-page .page-header { margin-bottom: var(--spacing-lg); }
.list-page .page-title { font-family: 'Poppins', var(--font-heading), sans-serif; color: #2D2A4A; font-weight: 800; text-align: left; }
.list-page .page-description { color: var(--color-text-primary); font-family: 'Open Sans', var(--font-body), sans-serif; }
.list-page .page-description.is-centered { text-align: center; max-width: 68ch; margin: 0 auto; }
.articles-list .page-description.is-centered { font-size: 1.125rem; line-height: 1.8; }

/* Tags hub */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 999px; border: 1px solid #E1DDFF;
    background: #E9E6FF; color: #2D2A4A; text-decoration: none;
    font-family: 'Open Sans', var(--font-body), sans-serif; font-size: 0.9375rem;
    transition: var(--transition-fast);
}
.tag-chip:hover { background: #E3E0FF; transform: translateY(-1px); }
.tag-chip .tag-count { font-size: .85em; opacity: .7; }
.tags-inline { margin: 10px 0 18px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* removed centered CTA styles */
.list-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 6px 0 12px; }
.back-actions { justify-content: flex-start; margin-bottom: 8px; }
.browse-tags-link { font-family: 'Poppins', var(--font-heading), sans-serif; font-weight: 600; color: #2D2A4A; text-decoration: none; border-bottom: 2px solid #A89DFF; padding-bottom: 2px; }
.browse-tags-link:hover { color: #2D2A4A; border-bottom-color: #FF8A80; }

/* Back link color overrides per section */
.back-actions .browse-tags-link.is-parenting {
    color: #2D2A4A; /* keep text (and arrow) navy */
    border-bottom-color: var(--brand-lavender-500); /* lavender underline */
}
.back-actions .browse-tags-link.is-parenting:hover,
.back-actions .browse-tags-link.is-parenting:focus {
    color: #2D2A4A; /* keep navy on hover */
    border-bottom-color: var(--brand-lavender-500); /* keep lavender underline */
}

.back-actions .browse-tags-link.is-general-parenting {
    color: #2D2A4A; /* keep text (and arrow) navy */
    border-bottom-color: var(--color-blue); /* light blue underline */
}
.back-actions .browse-tags-link.is-general-parenting:hover,
.back-actions .browse-tags-link.is-general-parenting:focus {
    color: #2D2A4A; /* keep navy on hover */
    border-bottom-color: var(--color-blue); /* keep light blue underline */
}

.back-actions .browse-tags-link.is-stories {
    color: #2D2A4A; /* keep text (and arrow) navy */
    border-bottom-color: var(--brand-coral); /* coral underline */
}
.back-actions .browse-tags-link.is-stories:hover,
.back-actions .browse-tags-link.is-stories:focus {
    color: #2D2A4A; /* keep navy on hover */
    border-bottom-color: var(--brand-coral); /* keep coral underline */
}

.story-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
        border: 1px solid var(--card-border);
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

    /* Section-colored hover ring (Option A) */
.story-card.is-stories { border-color: var(--brand-coral); }
    .story-card.is-stories:hover {
        border-color: var(--card-ring-stories);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 2px var(--card-ring-stories);
    }
.story-card.is-parenting { border-color: var(--brand-lavender-500); }
    .story-card.is-parenting:hover {
        border-color: var(--card-ring-parent);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 2px var(--card-ring-parent);
    }

/* Title and tag links: subtle hover without underline */
.card-title-link { color: var(--color-text-secondary); text-decoration: none; }
.card-title-link:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-text-secondary); /* dark navy */
    text-underline-offset: 2px;
}

.card-tags .tag-mini { text-decoration: none; }
.card-tags .tag-mini:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-text-muted); /* grey underline */
    text-underline-offset: 2px;
}

/* Section inline link */
.section-inline { text-decoration: none; }
.section-inline:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-text-secondary); /* dark navy */
    text-underline-offset: 2px;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-emoji {
    font-size: 4rem;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-family: 'Poppins', var(--font-heading), sans-serif;
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary); /* brand navy */
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px; /* tighter between lines */
    margin-bottom: calc(var(--spacing-sm) - 2px);
    font-family: var(--font-body); /* Open Sans for meta text */
}

/* Meta rows */
.card-meta__line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px; /* slightly tighter */
    color: var(--color-text-muted);
    font-size: 0.9rem; /* slightly smaller */
}

.card-stats { margin-top: 2px; }
.meta-sep { opacity: 0.6; }

/* Section label without bubble */
.section-inline { display: inline-flex; align-items: center; gap: 6px; color: #2D2A4A; }
.section-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.section-dot.is-stories { background: #FF8A80; }
.section-dot.is-parenting { background: #A89DFF; }
.section-dot.is-general-parenting { background: #42a7ce; }

/* Hide legacy bubble styles if still present in markup */
.section-pill, .section-badge { display: none !important; }

.age-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body); /* Open Sans */
}

/* New: Section pill replaces age badge spot */
.section-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-body); /* Open Sans for non-header */
    color: #2D2A4A; /* navy text */
}
.section-pill.is-stories { background: #FF8A80; } /* coral for Stories */
.section-pill.is-parenting { background: #E9E6FF; } /* lavender for Parenting */

/* Meta-row badge (parenting only) */
.section-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-body); /* Open Sans */
    color: #2D2A4A; /* navy */
    background: #E9E6FF; /* default to lavender */
}
.section-badge.is-parenting { background: #E9E6FF; color: #2D2A4A; }

.card-excerpt {
    color: var(--color-text-primary); /* darker gray for readability */
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-body); /* Open Sans */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    border-top: 1px solid var(--color-gray);
    padding-top: var(--spacing-sm);
    font-family: var(--font-body); /* Open Sans */
}

.read-time {
    font-weight: 500;
    color: var(--color-text-muted);
    font-family: var(--font-body); /* Open Sans */
}

.card-tags {
    display: flex;
    gap: var(--spacing-xs);
    font-family: var(--font-body); /* Open Sans */
}

.tag-mini {
    background-color: var(--color-gray-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-body); /* Open Sans */
}

/* ============================================
   SINGLE POST / STORY PAGE
   ============================================ */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.post-title {
    color: #2D2A4A; /* brand navy like homepage */
    font-size: 2.5rem;
    font-family: var(--font-heading);
}

.post-meta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    color: var(--color-gray-dark);
    font-size: 0.95rem;
    font-family: var(--font-body); /* Open Sans for non-heading text */
}

.post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    font-family: var(--font-body); /* Open Sans */
}

/* Single page tags mimic card chips */
.post-tags .tag-mini {
    background-color: var(--color-gray-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-decoration: none;
}
.post-tags .tag-mini:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-text-muted);
    text-underline-offset: 2px;
}

/* Featured image floats right so text wraps on the left */
.single-post .featured-image {
    float: right;
    width: min(42%, 360px);
    margin: 0 0 var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clear floats before footer and on small screens stack image above */
.post-footer { clear: both; }

@media (max-width: 768px) {
    .single-post .featured-image {
        float: none;
        width: 100%;
        margin: 0 0 var(--spacing-lg) 0;
    }
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-body); /* Open Sans */
    color: var(--color-text-primary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.moral-lesson {
    background: #FFDAD6; /* lighter coral */
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
    text-align: left; /* left-align content */
}

.moral-lesson h3 {
    color: var(--color-text-secondary); /* brand navy */
    margin-bottom: var(--spacing-sm);
    font-family: 'Poppins', var(--font-heading), sans-serif;
}

.moral-lesson p {
    font-size: 1.05rem;
    font-weight: 400; /* body weight */
    color: var(--color-text-primary); /* match main body text */
    margin-bottom: 0;
    font-family: var(--font-body); /* Open Sans */
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-2xl);
    gap: var(--spacing-md);
    font-family: var(--font-body); /* Open Sans */
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-prev:hover,
.nav-next:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.featured-stories,
.categories-section {
    padding: var(--spacing-2xl) 0;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-green) 100%);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.category-count {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.pagination-prev,
.pagination-next {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: transparent; /* brand neutral */
    color: #2D2A4A; /* brand navy */
    border: 2px solid #2D2A4A;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: 'Poppins', var(--font-body), sans-serif;
    transition: var(--transition-fast);
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--color-gray-light); /* soft gray hover */
    color: #2D2A4A;
    border-color: #2D2A4A;
    transform: translateY(-2px);
}

.pagination-info {
    color: #6D6D6D; /* brand muted gray */
    font-family: 'Open Sans', var(--font-body), sans-serif;
}

/* Fallback styling for internal pagination templates */
.pagination a {
    color: #2D2A4A; /* brand navy */
    font-family: 'Poppins', var(--font-body), sans-serif;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #F9F9F9; /* match site bg */
    color: #2D2A4A; /* brand navy */
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid #EAEAEA;
}

/* Hard override if any other stylesheet sets footer bg */
footer.site-footer { background-color: #F9F9F9 !important; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Footer headings (KiddiMoti, Quick Links, Connect) */
.site-footer .footer-section h3 {
    color: #2D2A4A; /* brand navy */
    font-family: 'Poppins', var(--font-heading), sans-serif;
    font-weight: 800;
}

/* Footer body text (descriptions, lists) */
.site-footer .footer-section p,
.site-footer .footer-links li,
.site-footer .footer-links a {
    color: #6D6D6D; /* brand gray */
    font-family: 'Open Sans', var(--font-body), sans-serif;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: #2D2A4A; /* navy */
    opacity: 0.9;
    transition: var(--transition-fast);
    font-family: 'Poppins', var(--font-body), sans-serif;
}

.footer-links a:hover {
    opacity: 1;
    color: #FF8A80; /* coral hover */
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    font-size: 1.5rem;
}

.social-links a {
    transition: var(--transition-fast);
    color: #2D2A4A;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #FF8A80;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #EAEAEA;
    color: #2D2A4A; /* brand navy */
    font-family: var(--font-body);
}

.footer-bottom .heart { display: inline-flex; align-items: center; }
.footer-bottom .heart-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: #FF8A80; /* coral */
    vertical-align: -0.15em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-gray);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: var(--spacing-md);
        border-radius: 0;
        text-align: left;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Homepage responsive adjustments */
    .hero-section .hero-title {
        font-size: 2rem;
    }
    
    .hero-section .hero-description {
        font-size: 1rem;
    }
    
    .signup-card {
        padding: var(--spacing-lg);
    }
    
    .hero-text .hero-title {
        font-size: 1.75rem;
    }
    
    .feature-section {
        padding: var(--spacing-xl) 0;
        margin: var(--spacing-md) 0;
        border-radius: var(--radius-md);
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .signup-card {
        padding: var(--spacing-md);
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
    
    .hero-section .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-section .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .feature-section {
        padding: var(--spacing-lg) 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   HOMEPAGE SECTIONS - KiddiMoti Style
   ============================================ */

/* Hero Section */
.hero-section {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-section .container {
    max-width: 900px;
}

.hero-section .hero-title {
    font-size: 2.75rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-section .hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 22px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Signup Section */
.signup-section {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.signup-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    border: none;
}

.signup-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.signup-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
}

.signup-form {
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    background-color: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.2);
}

.form-control::placeholder {
    color: var(--color-gray-dark);
    opacity: 0.6;
}

.captcha-image {
    margin-bottom: var(--spacing-sm);
}

.captcha-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: var(--spacing-md) 0 0;
    line-height: 1.5;
}

/* Hero Text Section */
.hero-text {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-text .container {
    max-width: 800px;
}

.hero-text .hero-title {
    font-size: 2.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Feature Sections */
.feature-section {
    padding: var(--spacing-2xl) 0;
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.section-golden {
    background-color: #edb14f;
}

.section-warm {
    background: linear-gradient(135deg, #f7e6a6 0%, #fefcf7 100%);
}

.feature-section .section-title {
    color: var(--color-text-primary);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.section-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-outro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
}

.features-list {
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.feature-item:hover .feature-icon {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: var(--color-text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-golden .feature-title {
    color: #0f0f0f;
}

.feature-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.section-golden .feature-description {
    color: #4a4a4a;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #edb14f;
    padding: var(--spacing-2xl) 0;
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: none;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.testimonial-author {
    text-align: right;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-section .section-title {
    margin-bottom: var(--spacing-md);
}

.cta-section .section-intro {
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Remove orange/peach blocks: neutralize section backgrounds */
.section-golden,
.testimonials-section,
.section-warm {
    background: var(--color-background) !important;
}

/* On story/advice pages, hide any trailing marketing sections if they slip in */
.single-post ~ .feature-section,
.single-post ~ .testimonials-section,
.single-post ~ .section-warm,
.single-post ~ .cta-section {
    display: none !important;
}

/* Connect Page Styling */
.connect-page {
    min-height: 70vh;
}

.connect-page .signup-section {
    padding: var(--spacing-2xl) 0;
}
