/* Design System & Variables */
:root {
    /* Colors */
    --bg-color: #F9F7F2;
    --primary-color: #2E5C55;
    --secondary-color: #D6E4E1;
    --accent-color: #E08E79;
    --text-color: #333333;
    --white: #FFFFFF;

    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;

    /* Spacing & Shapes */
    --radius: 20px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

ul {
    list-style: none;
}

/* Utility Classes */
.overflow-hidden {
    overflow: hidden !important;
    height: 100vh;
    touch-action: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

.nav-btn-quiz {
    background-color: #BC5D41;
    color: var(--white);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    font-size: 16px;
    /* Explicit size to match links or be slightly larger */
    text-decoration: none;
    /* In case applied to A tag */
    display: inline-block;
}

.nav-btn-quiz:hover {
    background-color: #a34e36;
    /* Slightly darker terracotta */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 93, 65, 0.3);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(46, 92, 85, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar--hidden {
    transform: translateY(-100%);
    box-shadow: none !important;
    /* Ensure clean exit */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #555;
    max-width: 480px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

/* Category Header */
.category-header {
    padding: 100px 0 60px;
    background-color: var(--bg-color);
    text-align: center;
}

.category-header h1 {
    font-size: 56px;
    margin-bottom: 16px;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.category-header .subtitle {
    font-size: 20px;
    color: #555;
    font-family: var(--font-sans);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Masonry Grid */
.masonry-section {
    background-color: var(--white);
}

.masonry-grid {
    column-count: 3;
    column-gap: 30px;
}

.article-card {
    break-inside: avoid;
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 16px;
    border-radius: var(--radius);
}

.article-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.article-card img {
    /* Legacy fallback if needed, but wrapper is preferred */
    width: 100%;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}



.article-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.save-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .save-btn {
    opacity: 1;
}

.quick-read-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(46, 92, 85, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Infographic Section */
.infographic-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.infographic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Reduced gap to allow connectors to span */
    margin-top: 60px;
    flex-wrap: wrap;
}

.info-step {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px 30px;
    border-radius: 50%;
    width: 300px;
    /* Slightly larger */
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-step:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: 0 20px 40px rgba(46, 92, 85, 0.15);
    z-index: 10;
}

.step-icon-wrapper i {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.info-step:hover .step-icon-wrapper i {
    color: var(--accent-color);
    /* Change color on hover */
}

.info-step h3 {
    font-size: 24px;
    /* Bolder title */
    margin-bottom: 12px;
    color: var(--primary-color);
}

.info-step p {
    font-size: 16px;
    /* Larger description */
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.explore-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.info-step:hover .explore-link {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(2px);
}

.connector {
    height: 2px;
    width: 80px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* Lead Magnet */
.lead-magnet-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.symptom-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

/* Quiz Section Enhancements */
.symptom-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 250px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle default shadow */
}

.symptom-card:hover {
    transform: translateY(-8px);
    /* Float effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Deep soft shadow */
    border-color: transparent;
}

.symptom-3d-icon {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
}

.card-cta {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    /* Terra-cotta default */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.symptom-card:hover .card-cta {
    color: #cd826f;
    /* Darker Terra-cotta on hover */
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.insta-strip {
    display: flex;
    overflow: hidden;
}

.insta-img {
    flex: 1;
    height: 200px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.insta-img:hover {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .masonry-grid {
        column-count: 2;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hide for now, would need burger menu */
    }

    .masonry-grid {
        column-count: 1;
    }

    .symptom-cards {
        flex-direction: column;
        align-items: center;
    }

    .infographic-container {
        flex-direction: column;
        gap: 0;
        /* Remove gap to let connector work */
    }

    .info-step {
        margin: 20px 0;
        /* Add vertical spacing */
    }

    .connector {
        width: 2px;
        height: 60px;
        /* Vertical height */
        background: transparent;
        /* Remove solid background */
        border-left: 2px dashed var(--primary-color);
        /* Dashed line */
        opacity: 0.3;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Single Post Page Styles */
.article-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.article-title {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.hero-image-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 60px 0 100px;
}

.content-container {
    max-width: 700px;
    margin: 0 auto;
}

.content-container p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
}

.green-box-hook {
    background-color: #E8F0E8;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #254a44;
    /* Darker green border */
    box-shadow: 0 10px 30px rgba(46, 92, 85, 0.15);
    /* Soft drop shadow */
    position: relative;
}

.green-box-hook h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.green-box-hook h3::before {
    content: "✨";
    /* Sparkle icon */
    font-size: 1.5rem;
}

.green-box-hook p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.green-box-hook .btn-primary {
    background-color: #E08E79;
    /* Solid Matte Terra-cotta */
    color: white;
    box-shadow: none;
    /* Matte look, remove default shadow if any */
}

.green-box-hook .btn-primary:hover {
    background-color: #cd826f;
    /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 142, 121, 0.3);
    /* Add shadow back on hover for feel */
}

/* Magazine Style Blockquotes */
blockquote {
    border-left: 5px solid var(--primary-color);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-color);
    background-color: rgba(46, 92, 85, 0.05);
    /* 5% opacity green */
    padding: 30px 40px;
    margin: 40px 0;
    line-height: 1.6;
}

/* Quiz Section Enhancements */


/* CRO Button Styles */
.btn-outline-minimal {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 24px;
    /* Slightly smaller padding for elegance */
    transition: all 0.3s ease;
}

.btn-outline-minimal:hover {
    background-color: rgba(46, 92, 85, 0.05);
    /* Very light primary color tint */
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: none;
    /* Keep it minimal */
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-right: 28px;
    /* Balance for icon */
}

.btn-hero i {
    transition: transform 0.3s ease;
}


/* The Secret Vault Teaser */
.vault-teaser {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vault-teaser h2 {
    color: #f0f0f0;
    font-size: 3rem;
    margin-bottom: 16px;
}

.vault-teaser p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-gold {
    background: linear-gradient(135deg, #E08E79 0%, #C5A059 100%);
    color: #1a1a1a;
    border: none;
    padding: 14px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 142, 121, 0.4);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 142, 121, 0.6);
}

/* Velvet Rope Modal */
.vault-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vault-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.vault-modal-content {
    background: #222;
    color: #f0f0f0;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #444;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vault-modal-overlay.active .vault-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Luxury Pagination */
.pagination-luxury {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 20px;
    /* Spacing from grid */
    margin-top: 40px;
    border-top: 1px solid rgba(46, 92, 85, 0.1);
    /* Align with content grid */
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.btn-ghost-luxury {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-serif);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost-luxury:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 85, 0.2);
}

.btn-ghost-luxury i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-ghost-luxury:hover i {
    transform: translateX(3px);
}

.btn-ghost-luxury:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

/* Page 1 (only Next) alignment fix */
.pagination-right-only .btn-ghost-luxury {
    margin-left: auto;
}

/* Related Posts Section (Text-Only) */
.related-posts-section {
    background-color: #F9F7F2;
    padding: 64px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(46, 92, 85, 0.1);
}

.rp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rp-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #2E5C55;
    margin-bottom: 48px;
    font-weight: 700;
}

.rp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    /* Soft pill shape */
    border: 1px solid rgba(42, 72, 58, 0.15);
    /* #2A483A low opacity */
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-out;
    text-decoration: none;
    cursor: pointer;
}

.rp-card:active {
    transform: scale(0.98);
    background-color: #E8F3E8;
    border-color: #2A483A;
}

.rp-card:hover {
    background-color: #E8F3E8;
    border-color: rgba(42, 72, 58, 0.3);
}

.rp-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.rp-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #E08E79;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.rp-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #2E5C55;
    line-height: 1.3;
}

.rp-icon {
    font-size: 20px;
    color: #2E5C55;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: center;
    margin-left: 16px;
}

.rp-card:hover .rp-icon,
.rp-card:active .rp-icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .rp-grid {
        grid-template-columns: 1fr;
    }
}


.close-modal:hover {
    color: #fff;
}

.modal-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.modal-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-step h3 {
    color: #E08E79;
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal-step p {
    color: #aaa;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: #666;
    color: #fff;
}

/* Password Input */
.input-wrapper {
    margin-bottom: 24px;
    position: relative;
}

#vault-password,
#vault-email {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.3s ease;
}

#vault-password {
    letter-spacing: 4px;
}

#vault-password:focus,
#vault-email:focus {
    border-color: #E08E79;
}

.error-text {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 20px;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(224, 142, 121, 0.3);
    border-radius: 50%;
    border-top-color: #E08E79;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .modal-actions {
        flex-direction: column-reverse;
    }
}

/* Diagnosis Options (Step 2) */
.diagnosis-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.diagnosis-card {
    cursor: pointer;
    position: relative;
    width: 140px;
}

.diagnosis-card input[type="radio"] {
    display: none;
}

.diagnosis-card .card-inner {
    background: #333;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagnosis-card:hover .card-inner {
    transform: translateY(-5px);
    border-color: #666;
    background: #444;
}

.diagnosis-card input[type="radio"]:checked+.card-inner {
    border-color: #E08E79;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    box-shadow: 0 10px 30px rgba(224, 142, 121, 0.2);
}

.diagnosis-card .card-inner i {
    font-size: 32px;
    color: #888;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.diagnosis-card input[type="radio"]:checked+.card-inner i {
    color: #E08E79;
}

.diagnosis-card .card-inner span {
    color: #bbb;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.diagnosis-card input[type="radio"]:checked+.card-inner span {
    color: #fff;
}

/* Mobile responsive for diagnosis */
@media (max-width: 600px) {
    .diagnosis-options {
        flex-direction: column;
        align-items: center;
    }

    .diagnosis-card {
        width: 100%;
    }

    .diagnosis-card .card-inner {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 24px;
        gap: 20px;
    }

    .diagnosis-card .card-inner i {
        margin-bottom: 0;
        font-size: 24px;
    }
}

/* Quiz Modal Styles */
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quiz-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.quiz-modal-content {
    background: #F9F7F2;
    padding: 50px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* SCROLL FIX */
    max-height: 85vh;
    overflow-y: auto;
    /* Hide scrollbar for cleaner look if desired, or keep default */
}

@media (max-width: 600px) {
    .quiz-modal-content {
        padding: 24px;
        /* p-6 equivalent for mobile */
        width: 95%;
    }
}

.quiz-modal-overlay.active .quiz-modal-content {
    transform: scale(1);
}

.quiz-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.quiz-modal-close:hover {
    color: var(--primary-color);
}

.quiz-modal-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quiz-modal-view.active {
    display: block;
    opacity: 1;
}

.quiz-modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: pulseBounce 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@keyframes pulseBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.quiz-modal-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.quiz-modal-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Symptom/Routing Cards in Modal */
.symptom-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
    /* Safety for mobile */
}

.symptom-card-link {
    text-decoration: none;
    display: block;
}

.symptom-card {
    background: white;
    padding: 20px 16px;
    border-radius: 16px;
    width: 140px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.symptom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #E08E79;
}

.symptom-3d-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.symptom-card h4 {
    font-size: 1rem;
    color: #2E5C55;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-cta {
    font-size: 0.8rem;
    color: #E08E79;
    font-weight: 600;
}

.quiz-modal-return-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-top: 24px;
}

.quiz-modal-return-link:hover {
    border-bottom-color: var(--primary-color);
}

/* Footer Quiz Box */
.footer-quiz-box {
    background-color: #E8F3E8;
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px 0 40px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(46, 92, 85, 0.05);
}

.fqb-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-quiz-box h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.footer-quiz-box p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.fqb-btn {
    background-color: #E08E79;
    /* Terracotta/Rust */
    color: #fff;
    padding: 14px 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(224, 142, 121, 0.3);
    transition: all 0.3s ease;
}

.fqb-btn:hover {
    background-color: #cd826f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 142, 121, 0.5);
}

/* Elegant Pin Container */
.elegant-pin-container {
    position: relative;
    max-width: 512px;
    margin: 64px auto;
}

.elegant-pin-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pin-this-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: #BC5D41;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 12px 32px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
    outline: none;
}


.pin-this-btn:active {
    transform: scale(0.95);
    filter: brightness(1.1);
}

/* Custom Utility Classes */
.bg-\[\#BC5D41\] {
    background-color: #BC5D41 !important;
}

.bg-\[\#BC5D41\]:hover {
    background-color: #a54e35 !important;
}

/* Header Utilities */
.nav-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================================
   Mobile Navigation & Responsive Utilities
   ================================********* */

/* Utility Classes */
.hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }

    .lg\:flex {
        display: flex !important;
    }
}

/* Mobile Toggle (Hamburger) */
.mobile-toggle {
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    margin-right: 0;
    /* Removed margin to use flex gap */
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    /* Dark Green Background */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-drawer a {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-drawer.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-drawer.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-drawer.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-drawer.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-drawer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-drawer-close:hover {
    transform: rotate(90deg);
}

/* 404 Page Styles */
.error-page-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-family: var(--font-serif);
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.08;
    margin-bottom: -50px;
    pointer-events: none;
    user-select: none;
}

.error-headline {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
    position: relative;
}

.error-subtext {
    font-family: var(--font-sans);
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.organic-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 142, 121, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

@media (max-width: 768px) {
    .error-number {
        font-size: 120px;
        margin-bottom: -30px;
    }

    .error-headline {
        font-size: 32px;
    }

    .organic-shape {
        width: 400px;
        height: 400px;
    }
}

/* Sticky Quiz Bar (Mobile Only) */
.sticky-quiz-bar {
    display: none;
    /* Base state hidden, overridden by media query */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2147483647 !important;
    /* Max Integer to force top layer */
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 15px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.sticky-quiz-bar.active {
    transform: translateY(0) !important;
}

.sqb-content {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.sqb-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 18px;
    color: #0a2e1d;
    letter-spacing: normal;
    line-height: 1.2;
    padding-right: 15px;
    white-space: nowrap;
}

.sqb-btn {
    background-color: #C1613E;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(193, 97, 62, 0.4);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    /* Reset if it's a button tag */
}

.sqb-btn:active {
    transform: scale(0.96);
}

/* Visibility Logic - FORCE SHOW */
@media (min-width: 769px) {
    .sticky-quiz-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sticky-quiz-bar {
        display: flex !important;
        /* Force Flex on Mobile */
    }
}