:root {
    --primary-blue: #0066FF;
    --secondary-blue: #0044CC;
    --accent-blue: #0088FF;
    --highlight-glow: rgba(0, 136, 255, 0.6);

    /* --- Dark Theme Base Colors & Gradients --- */
    --dark-bg-flat: #0A0C10; /* Original flat dark background */
    --dark-bg-gradient-start: #0F121A; /* Slightly lighter top for body */
    --dark-bg-gradient-end: var(--dark-bg-flat);   /* Darker bottom for body */
    
    --darker-bg: #030407; 
    --header-bg-start: #1A1D24;
    --header-bg-end: #101216;

    /* Gradients for specific complex sections (testimonials, footer) on dark theme */
    --section-bg-start-dark: var(--dark-bg-flat); /* Base for complex gradients */
    --section-bg-end-dark: #07090D;

    /* Gradients for generic content sections on dark theme */
    --generic-section-bg-dark-start: #11141C;
    --generic-section-bg-dark-end: #0B0E14;

    /* Gradients for Stemtropic page on dark theme */
    --stemtropic-page-bg-dark-start: #080B08;
    --stemtropic-page-bg-dark-end: #040704;

    --light-bg-flat: #161A20; /* For elements that need a lighter flat bg on dark theme */

    --white: #FFFFFF;
    --off-white: #E8ECF3;
    --black: #0D1014; /* Used for text, not main bg */
    --gray: #A0A8B8;
    --light-gray: #CCD3DD;

    --optimizer-blue: #00A8FF;
    --pain-relief-orange: #FF7A59;
    --longevity-purple: #B572FF;

    --border-radius: 12px;
    --border-radius-pill: 50px;
    --box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12); 
    --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.18); 
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --section-padding-standard: 80px 20px;
    --header-base-height: 75px;
    --header-pill-padding-top: 15px;
    --header-pill-margin-top: 15px;

    /* --- Theme Agnostic Variables (Default to Dark) --- */
    --theme-bg: linear-gradient(180deg, var(--dark-bg-gradient-start) 0%, var(--dark-bg-gradient-end) 100%);
    --theme-text: var(--off-white);
    --theme-heading-text: var(--white);
    --theme-subtle-bg: var(--light-bg-flat); /* Lighter flat bg for cards etc. */
    --theme-border-color: rgba(255, 255, 255, 0.07); 
    --theme-placeholder-text: var(--accent-blue);
    --theme-search-bg: var(--white);
    --theme-search-text: var(--black);
    --theme-logo-filter: none;
    --hero-glow-color: rgba(0, 136, 255, 0.35); 
    --cohort-content-bg-gradient-dark: linear-gradient(to top, rgba(var(--theme-bg-rgb), 0.98) 15%, rgba(var(--theme-bg-rgb), 0.8) 45%, transparent 80%);

    /* Specific section backgrounds (default to dark) */
    --section-bg-start: var(--section-bg-start-dark);
    --section-bg-end: var(--section-bg-end-dark);
    --generic-section-bg: linear-gradient(180deg, var(--generic-section-bg-dark-start) 0%, var(--generic-section-bg-dark-end) 100%);
    --stemtropic-page-bg: linear-gradient(180deg, var(--stemtropic-page-bg-dark-start) 0%, var(--stemtropic-page-bg-dark-end) 100%);


    --primary-blue-rgb: 0, 102, 255;
    --accent-blue-rgb: 0, 136, 255;
    --optimizer-blue-rgb: 0, 168, 255;
    --pain-relief-orange-rgb: 255, 122, 89;
    --theme-bg-rgb: 10, 12, 16; /* Corresponds to --dark-bg-flat for cohort card gradient base */
    --theme-heading-text-rgb: 255, 255, 255;
    --theme-subtle-bg-rgb: 22, 26, 32; /* Corresponds to --light-bg-flat for cohort card gradient base */
    --modern-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    --body-map-bg-dark: var(--darker-bg);
    --body-map-gradient-overlay-dark: radial-gradient(ellipse at 50% -10%, rgba(var(--primary-blue-rgb), 0.04) 0%, transparent 75%); 
    --body-map-bg-light: #F9FBFE; 
    --body-map-gradient-overlay-light: radial-gradient(ellipse at 50% -10%, rgba(var(--primary-blue-rgb), 0.025) 0%, transparent 70%);
}

body.light-theme {
    /* --- Light Theme Overrides --- */
    --theme-bg: linear-gradient(180deg, #FDFEFF 0%, #EDF2F9 100%);
    --theme-text: #4A5568; 
    --theme-heading-text: #1A202C;
    --theme-subtle-bg: #FFFFFF; /* Flat white for cards on light theme */
    --theme-border-color: #CBD5E0; 
    --off-white: #2D3748; /* Text color that was off-white on dark is now darker on light */
    --white: #1A202C;    /* Text color that was white on dark is now main heading on light */
    --gray: #6A7589;
    --header-bg-start: #FFFFFF;
    --header-bg-end: #FDFEFF;

    /* Gradients for specific complex sections (testimonials, footer) on light theme */
    --section-bg-start: linear-gradient(180deg, #EDF2F9 0%, #F7FAFC 100%); /* Base for complex gradients */
    
    /* Gradients for generic content sections on light theme */
    --generic-section-bg-light-start: #F0F5FA;
    --generic-section-bg-light-end: #F9FCFF;
    --generic-section-bg: linear-gradient(180deg, var(--generic-section-bg-light-start) 0%, var(--generic-section-bg-light-end) 100%);

    /* Gradients for Stemtropic page on light theme */
    --stemtropic-page-bg-light-start: #F7FCF7;
    --stemtropic-page-bg-light-end: #F1F9F1;
    --stemtropic-page-bg: linear-gradient(180deg, var(--stemtropic-page-bg-light-start) 0%, var(--stemtropic-page-bg-light-end) 100%);
    
    --theme-placeholder-text: var(--primary-blue);
    --theme-search-bg: #F7FAFC;
    --theme-search-text: #2D3748;
    --theme-logo-filter: none;
    --hero-glow-color: rgba(0, 102, 255, 0.2);
    --cohort-content-bg-gradient-light: linear-gradient(to top, rgba(var(--theme-subtle-bg-rgb), 1) 10%, rgba(var(--theme-subtle-bg-rgb), 0.8) 40%, transparent 75%);

    --theme-bg-rgb: 237, 242, 249; /* Corresponds to end of light theme body gradient */
    --theme-heading-text-rgb: 26, 32, 44;
    --theme-subtle-bg-rgb: 255, 255, 255; /* Corresponds to #FFFFFF for cohort card gradient base */

    --table-bg: #EBF4FF;
    --table-border: var(--accent-blue);
    --table-header-bg: #D1E3FF;

    --body-map-bg-dark: var(--body-map-bg-light); 
    --body-map-gradient-overlay-dark: var(--body-map-gradient-overlay-light);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-anchor: auto;
}

body {
    overflow-anchor: auto;
    font-family: 'Open Sans', var(--modern-font);
    color: var(--theme-text);
    line-height: 1.75;
    background: var(--theme-bg); 
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', var(--modern-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--theme-heading-text);
    transition: color 0.3s ease;
    overflow-wrap: break-word; 
    word-break: normal; 
}
.no-break { /* Replaces <nobr> */
    white-space: nowrap;
}
h1.main-title, h2.section-main-title,
.hero h1.main-title
{
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
h3 { font-size: 22px; }

h1 .char, h2 .char, h3 .char, h4 .char {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.word-wrapper {
    display: inline-block;
}

[data-animate-letters]:hover .char {
     transform: translateY(-3px) scale(1.05) rotate(1deg);
     text-shadow: 0 0 10px var(--accent-blue);
     color: var(--accent-blue) !important;
}
#simplePathTitle.revealed:not(:hover) .reveal-text-char {
    opacity: 1;
    transform: translateY(0) scale(1);
}
#simplePathTitle:hover .reveal-text-char {
    transform: translateY(-3px) scale(1.05) rotate(1deg);
    color: var(--accent-blue) !important;
    text-shadow: 0 0 10px var(--accent-blue);
}

.reveal-text { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal-text.visible { opacity: 1; transform: translateY(0); }

.reveal-text-stagger.visible .reveal-text-char {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

p, li, blockquote, dd, dt {
    color: var(--theme-text);
    font-size: 17px;
    margin-bottom: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
}
a { text-decoration: none; color: var(--primary-blue); transition: var(--transition); font-family: 'Open Sans', var(--modern-font); }
a:hover { color: var(--accent-blue); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1320px;  margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.btn { display: inline-block; padding: 15px 35px;  border-radius: var(--border-radius-pill);  font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; font-size: 17px; font-family: 'Open Sans', var(--modern-font); }
.btn-primary { background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue) 60%, var(--primary-blue) 100%); color: #FFFFFF !important; border: none; box-shadow: 0 5px 20px rgba(0, 102, 255, 0.35); }
.btn-primary:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 9px 30px rgba(0, 102, 255, 0.45); }
.btn-hero-cta { padding: 22px 50px; font-size: 20px; font-weight: 700; }
.btn-secondary { background-color: transparent; color: var(--theme-heading-text); border: 2px solid var(--primary-blue); }
.btn-secondary:hover { background-color: var(--primary-blue); color: #FFFFFF !important; border-color: var(--primary-blue); }

.section-title { margin-bottom: 60px;  }
.section-title h2.section-main-title { font-size: 42px; margin-bottom: 1.2rem; position: relative; display: inline-block; }
.section-title h2.section-main-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 70px; height: 3.5px; background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue)); }
.section-title p { max-width: 800px; margin: 0 auto; font-size: 19px; }

header {
    position: fixed; width: 92%; max-width: 1350px;
    left: 50%; transform: translateX(-50%);
    top: var(--header-pill-margin-top);
    z-index: 1000;
    background: rgba(var(--theme-subtle-bg-rgb), 0.85);
    border-radius: var(--border-radius-pill);
    box-shadow: 0 6px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
    border: 1px solid var(--theme-border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, top 0.4s ease-in-out, opacity 0.4s ease-in-out;
    padding: 0 35px;
    height: var(--header-base-height);
    opacity: 1;
}
header.header-hidden { top: -100px; opacity: 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; z-index: 1001; }
.logo img { height: 130px; width: auto; object-fit: contain; transition: var(--transition); filter: var(--theme-logo-filter); }
.logo span.logo-text { display: none !important; }
.logo:hover img { transform: scale(1.03); }

nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: flex-end; /* Align nav items to the right */
}
nav ul { display: flex; align-items: center; list-style: none; height: 100%; gap: 22px; }
nav ul li { margin-left: 0; position: relative; display: flex; align-items: center; }
nav ul li a { font-weight: 600;  font-size: 16px;  position: relative; padding: 0; display: flex; align-items: center; color: var(--theme-text); font-family: 'Open Sans', var(--modern-font); }
nav ul li a.btn { font-size: 15px; padding: 8px 18px; color: #FFFFFF !important; } 
nav ul li a:not(.btn)::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2.5px; background-color: var(--primary-blue); transition: var(--transition); }
nav ul li a:not(.btn):hover::after { width: 100%; }

.nav-cta-item { margin-left: auto; } /* Pushes the CTA button to the far right */
.theme-switch-li-desktop { margin-left: 15px; } /* Space before the theme toggle */

.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); background-color: var(--theme-subtle-bg);
    min-width: 240px; box-shadow: var(--box-shadow);
    border-radius: var(--border-radius); z-index: 1005;
    padding: 12px 0; border: 1px solid var(--theme-border-color);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}
.dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; top: 100%; }
.dropdown-content a {
    color: var(--theme-text); padding: 14px 22px; text-decoration: none;
    display: block; font-size: 16.5px; font-weight: 500;
    font-family: 'Open Sans', var(--modern-font);
}
.dropdown-content a:hover { background-color: rgba(var(--primary-blue-rgb), 0.1); color: var(--primary-blue); }
.dropdown-content a:not(:last-child) { border-bottom: 1px solid var(--theme-border-color); }
.dropdown .fas.fa-angle-down { margin-left: 8px; font-size: 0.8em; }

.login-btn { background: none; border: none; color: var(--theme-text); font-weight: 600; font-size: 16px; margin-right: 15px; cursor: pointer; transition: var(--transition); font-family: 'Open Sans', var(--modern-font); padding: 0; }
.mobile-menu {
    display: none;
    font-size: 26px; 
    cursor: pointer;
    color: var(--theme-heading-text);
    z-index: 1001;
    padding: 20px; 
    margin-right: 0px; 
    line-height: 1; 
}
.theme-switch-wrapper { display: flex; align-items: center; margin-left: 20px; }
.theme-switch { display: inline-block; height: 24px; position: relative; width: 48px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--light-gray); transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(24px); }
body.light-theme .slider { background-color: var(--primary-blue); }
body.light-theme .slider:before { background-color: white; transform: translateX(24px); }
body.light-theme input:not(:checked) + .slider { background-color: var(--light-gray); }
body.light-theme input:not(:checked) + .slider:before { transform: translateX(0px); background-color: white; }

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    position: relative; overflow: hidden;
    padding-top: calc(var(--header-base-height) + var(--header-pill-margin-top) + var(--header-pill-padding-top) + 20px);
    padding-bottom: 20px;
    background: transparent;
    transition: background 0.4s ease;
}

.hero-content-wrapper {
    max-width: 1100px;  width:100%; margin: 0 auto; position: relative; z-index: 2;
    text-align: center; padding: 0 20px 30px;
}
.hero h1.main-title {
    font-size: 58px;  margin-bottom: 1.2rem; line-height: 1.25;
    color: var(--theme-heading-text);
    text-shadow: 0 0 25px var(--hero-glow-color), 0 0 35px rgba(var(--accent-blue-rgb), 0.35);
    position: relative;
    visibility: hidden; /* This will be overridden by JS after animation setup */
}
 .hero h1 .animated-letter {
    display: inline-block;
    opacity: 0;
    animation: letterFlipColor 0.6s forwards, letterAppear 0.6s forwards;
}
@keyframes letterFlipColor {
    0%, 100% { color: var(--theme-heading-text); text-shadow: 0 0 20px var(--hero-glow-color); }
    50% { color: var(--accent-blue); text-shadow: 0 0 25px var(--hero-glow-color), 0 0 10px var(--accent-blue); }
}
@keyframes letterAppear {
    from { opacity: 0; transform: translateY(15px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero p.subtitle {
    font-size: 21px; margin-bottom: 25px;
    max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.7;
    color: var(--light-gray); /* Dark Theme: Changed from --gray for more pop */
}
body.light-theme .hero p.subtitle {
    color: var(--theme-text); /* Light Theme: Changed for much better contrast */
}
.hero p.subtitle strong { font-weight: 700; color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 136, 255, 0.7); }
.hero-buttons { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 30px;  }
.learn-more-video-btn {
    padding: 19px 40px;
    font-size: 18px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent;
    color: var(--theme-heading-text);
    border: 2px solid var(--primary-blue);
    font-family: 'Open Sans', var(--modern-font);
}
.learn-more-video-btn:hover {
    background-color: var(--primary-blue);
    color: #FFFFFF !important;
    transform: translateY(-3px) scale(1.03);
}
.learn-more-video-btn i {
    margin-right: 12px;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}
.learn-more-video-btn:hover i { color: #FFFFFF; }

#cta-canvas-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.6;
}

.cohort-selection {
    width: 100%; padding: 0 20px; background-color: transparent;
    position: relative; z-index: 2; max-width: 1280px; margin: -25px auto 0;
}
.cohorts-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; align-items: flex-start;  }
.cohort-card {
    flex: 1; min-width: 300px; max-width: 370px;
    height: auto; min-height: 420px;
    background-color: var(--theme-subtle-bg); border-radius: var(--border-radius);
    overflow: visible; position: relative;
    cursor: pointer; border: 1px solid var(--theme-border-color);
    backdrop-filter: blur(8px); display: flex; flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.cohort-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--box-shadow-hover); z-index: 5; }
.cohort-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28;  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; border-radius: var(--border-radius); }
body.light-theme .cohort-bg { opacity: 0.45; }
.cohort-card:hover .cohort-bg { opacity: 0.45; transform: scale(1.05); }
body.light-theme .cohort-card:hover .cohort-bg { opacity: 0.6; }
.cohort-content {
    position: relative; z-index: 2; flex-grow: 1; display: flex; flex-direction: column;
    justify-content: space-between; padding: 25px;
    background: var(--cohort-content-bg-gradient-dark);
}
body.light-theme .cohort-content {
    background: var(--cohort-content-bg-gradient-light);
}
.cohort-content h3 {
    font-family: 'Inter', var(--modern-font);
    font-size: 23px;
    line-height: 1.35;
    word-break: normal;
}
.cohort-tag {
    display: inline-block; padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; margin-bottom: 15px;
    align-self: flex-start; position: relative; z-index: 3;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Open Sans', var(--modern-font);
}
.optimizer .cohort-tag {
    background-color: rgba(0, 168, 255, 0.65);
    color: var(--white);
    border: 1px solid var(--optimizer-blue);
}
.pain-reliever .cohort-tag {
    background-color: rgba(255, 107, 53, 0.65);
    color: var(--white);
    border: 1px solid var(--pain-relief-orange);
}
.longevity-seeker .cohort-tag {
    background-color: rgba(157, 78, 221, 0.65);
    color: var(--white);
    border: 1px solid var(--longevity-purple);
}
.cohort-details-bottom { margin-top: auto; transition: opacity 0.3s ease, max-height 0.5s ease; max-height: 300px; }

.cohort-card p { margin-bottom: 20px; font-size: 16px; line-height: 1.65; }
.cohort-benefits {
    display: none; 
    margin-bottom: 15px; padding-top: 10px; opacity: 0;
    max-height: 0; overflow: hidden;
    transition: opacity 0.5s ease 0.1s, max-height 0.5s ease 0.1s;
}
.cohort-card:hover .cohort-benefits, 
.cohort-card.benefits-visible .cohort-benefits { 
    display: block; opacity: 1; max-height: 200px; 
}
.benefit-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    font-size: 17px; 
    color: var(--theme-text); 
    font-weight: 700; 
}
.benefit-item i { 
    margin-right: 12px; 
    font-size: 14px; 
}
.optimizer .benefit-item i { color: var(--optimizer-blue); }
.pain-reliever .benefit-item i { color: var(--pain-relief-orange); }
.longevity-seeker .benefit-item i { color: var(--longevity-purple); }
.cohort-btn { display: inline-flex; align-items: center; font-weight: 600; transition: var(--transition); font-size: 16px; font-family: 'Open Sans', var(--modern-font); }
.optimizer .cohort-btn { color: var(--optimizer-blue); }
.pain-reliever .cohort-btn { color: var(--pain-relief-orange); }
.longevity-seeker .cohort-btn { color: var(--longevity-purple); }
.cohort-btn i { margin-left: 8px; transition: var(--transition); }
.cohort-card:hover .cohort-btn { transform: translateX(5px); }
.cohort-card:hover .cohort-btn i { transform: translateX(3px); }

/* ==========================================================================
   Body Map & Testimonials Section (Video Reel Version)
   ========================================================================== */
#body-map-testimonials {
    padding: 40px 0 60px; 
    background-color: var(--body-map-bg-dark); 
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}
#body-map-testimonials::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--body-map-gradient-overlay-dark);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.4s ease;
}
body.light-theme #body-map-testimonials {
    background-color: var(--body-map-bg-light); 
}
body.light-theme #body-map-testimonials::before {
    background-image: var(--body-map-gradient-overlay-light);
}
#body-map-testimonials .container {
    position: relative;
    z-index: 1;
    max-width: 1400px; 
}
#body-map-testimonials .section-title {
    margin-bottom: 20px; 
}
#body-map-testimonials .section-title h2.section-main-title {
    font-size: 36px; 
    margin-bottom: 0.6rem; 
}
#body-map-testimonials .section-title p.body-map-subtitle {
    max-width: 700px;
    font-size: 18px; 
    margin-bottom: 15px; 
}


.content-columns-wrapper {
    display: flex;
    flex-direction: row;
    gap: 35px; 
    align-items: flex-start; 
}

#interactive-video-column {
    flex: 0 0 38%; 
    max-width: 450px; 
    position: sticky;
    top: calc(var(--header-base-height) + var(--header-pill-margin-top) + 30px);
    align-self: flex-start; 
    height: auto; 
    min-height: 450px; 
    max-height: calc(100vh - (var(--header-base-height) + var(--header-pill-margin-top) + 80px)); 
    display: flex;
    flex-direction: column;
    background-color: rgba(var(--theme-subtle-bg-rgb), 0.6); 
    border: 1px solid var(--theme-border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(8px); 
    padding: 20px; 
    overflow: hidden;
    margin-bottom: 0; 
    z-index: 2; 
}

#interactive-video-column::after {
    content: '\f144'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
    z-index: 5; 
}


#video-reel-player-slot {
    flex-grow: 1;
    position: relative;
    background-color: var(--black);
    border-radius: calc(var(--border-radius) - 10px); 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px; 
}
.video-reel-placeholder { text-align: center; color: var(--gray); display: flex; flex-direction: column; align-items: center; justify-content: center;} /* Ensure placeholder content is centered */
.video-reel-placeholder i { font-size: 48px; margin-bottom: 10px; opacity: 0.5; }

#youtube-player-desktop-reel,
#youtube-player-main-modal,
.full-reel-video-item .video-content-wrapper > div { 
    width: 100%;
    height: 100%;
}
.full-reel-video-item .video-content-wrapper iframe {
    position: absolute; top:0; left:0; width:100%; height:100%;
}


#video-reel-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px 5px; 
    border-top: 1px solid var(--theme-border-color);
    margin-top: 20px; 
}
#video-reel-navigation button {
    background: transparent; border: none; color: var(--primary-blue);
    font-size: 22px; cursor: pointer; padding: 8px; border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#video-reel-navigation button:hover { background-color: rgba(var(--primary-blue-rgb), 0.1); transform: scale(1.1); }
#video-reel-navigation button:disabled { color: var(--gray); opacity: 0.5; cursor: not-allowed; transform: scale(1); }
#video-reel-current-info { text-align: center; flex-grow: 1; padding: 0 10px; overflow: hidden; }
.video-reel-title { display: block; font-size: 1rem; font-weight: 600; color: var(--theme-heading-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.video-reel-patient {
    display: block;
    font-size: 1rem; 
    color: var(--primary-blue); 
    font-weight: bold; 
    text-shadow: 0 1px 3px rgba(var(--primary-blue-rgb), 0.2); 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#interactive-content-column {
    flex: 1 1 62%; 
    min-width: 0;
    display: flex;
    flex-direction: column; 
    z-index: 1; 
}

#filtered-testimonials-column {
    flex-grow: 1; 
    min-height: 450px; 
    max-height: calc(100vh - (var(--header-base-height) + var(--header-pill-margin-top) + 80px)); 
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 40px; 
}

#filtered-testimonials-column .testimonial-map-card {
    background-color: rgba(var(--theme-subtle-bg-rgb), 0.75); 
    border: 1.5px solid var(--theme-border-color);
    border-radius: var(--border-radius);
    padding: 20px 25px; 
    margin-bottom: 18px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%; 
    transition: var(--transition);
    display: flex; 
    flex-direction: column; 
}
#filtered-testimonials-column .testimonial-map-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22); 
}

.testimonial-map-card-header { display: flex; align-items: center; margin-bottom: 12px; } 
.testimonial-map-avatar {
    width: 45px; height: 45px; 
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin-right: 15px; font-size: 18px; flex-shrink: 0;
}
.testimonial-map-author h5 { margin: 0 0 2px 0; font-size: 1.1rem; color: var(--theme-heading-text); line-height: 1.3; }
.testimonial-map-author h5 strong { font-weight: 700; } 
.testimonial-map-author p { margin: 0; font-size: 0.85rem; color: var(--gray); line-height: 1.3; }
.testimonial-map-card-body { flex-grow: 1; } 
.testimonial-map-card-body p { margin-bottom: 12px; line-height: 1.6; color: var(--theme-text); font-size: 16px; font-weight: 600;}
.testimonial-map-card-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--theme-border-color); padding-top: 12px; margin-top:12px;
}
.testimonial-map-condition {
    font-size: 0.8rem; color: var(--gray); background-color: var(--theme-bg); 
    padding: 5px 12px; border-radius: var(--border-radius-pill); border: 1px solid var(--theme-border-color);
    white-space: nowrap; 
    order: 1; 
    margin-right: auto; 
}
.testimonial-map-like-btn, .testimonial-map-video-btn {
    background: none; border: 1px solid var(--theme-border-color);
    color: var(--primary-blue); cursor: pointer; font-size: 0.85rem; 
    display: flex; align-items: center; gap: 6px; padding: 8px 14px; 
    border-radius: var(--border-radius-pill); transition: var(--transition);
    flex-shrink: 0; 
}
.testimonial-map-like-btn {
    order: 2;
    margin-right: 10px;
}
.testimonial-map-video-btn {
    order: 3;
}
.testimonial-map-like-btn:hover, .testimonial-map-video-btn:hover {
    background-color: rgba(var(--primary-blue-rgb), 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}
.testimonial-map-like-btn.liked { color: var(--pain-relief-orange); border-color: var(--pain-relief-orange); }
.testimonial-map-like-btn.liked i.far { display:none; }
.testimonial-map-like-btn:not(.liked) i.fas { display:none; }
.testimonial-map-like-btn .like-count { font-size: 0.8rem; color: var(--gray); }


#filtered-research-area {
    width: 100%; 
    margin-top: 0; 
    padding-top: 30px; 
    border-top: 1px solid var(--theme-border-color);
}
#filtered-research-area .section-main-title {
    font-family: 'Inter', var(--modern-font);
    font-size: 30px; 
    margin-bottom: 25px;
    text-align: center;
}
#filtered-research-area .section-main-title::after { display:none; }

.research-filter-controls { 
    margin-bottom: 35px;
}
.research-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; 
}
.pill-btn {
    background-color: rgba(var(--theme-subtle-bg-rgb), 0.7); 
    color: var(--theme-text);
    border: 1px solid var(--theme-border-color);
    padding: 10px 20px; 
    border-radius: var(--border-radius-pill);
    font-size: 15px;
    font-weight: 600; 
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.pill-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px) scale(1.03); 
    box-shadow: 0 4px 12px rgba(var(--primary-blue-rgb),0.25);
}
.pill-btn.active {
    background-color: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
    box-shadow: 0 3px 10px rgba(var(--accent-blue-rgb),0.35);
    transform: scale(1.02);
}
.mobile-research-filter-dropdown {
    display: none; 
    width: 100%;
    padding: 13px 18px; 
    font-size: 17px; 
    border-radius: var(--border-radius);
    border: 1px solid var(--theme-border-color);
    background-color: var(--theme-subtle-bg);
    color: var(--theme-text);
    margin-top: 10px; 
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px auto;
    cursor: pointer;
}
body.light-theme .mobile-research-filter-dropdown {
     background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A202C%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
}


#silhouette-research-results {
    max-height: 460px; 
    overflow-y: auto; 
    padding: 20px; 
    background-color: rgba(var(--theme-subtle-bg-rgb), 0.5); 
    border-radius: var(--border-radius);
    border: 1px solid var(--theme-border-color);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.07); 
}

#silhouette-research-results .research-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}
@media (min-width: 1200px) { 
    #silhouette-research-results .research-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

#silhouette-research-results .research-item {
    background-color: var(--theme-bg); 
    border: 1px solid var(--theme-border-color);
    border-radius: var(--border-radius);
    padding: 20px; 
    box-shadow: var(--box-shadow); 
    transition: var(--transition);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
#silhouette-research-results .research-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--box-shadow-hover);
}
#silhouette-research-results .research-item h4 {
    font-family: 'Inter', var(--modern-font);
    font-size: 17px; 
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--theme-heading-text);
    line-height: 1.35;
}
#silhouette-research-results .research-item p {
    font-size: 14.5px; 
    margin-bottom: 15px;
    color: var(--theme-text);
    flex-grow: 1; 
    line-height: 1.6;
}
#silhouette-research-results .research-item .research-link {
    color: var(--primary-blue); text-decoration: none; font-weight: 600;
    font-size: 15px; margin-top: auto; align-self: flex-start;
}
#silhouette-research-results .research-item .research-link i { margin-left: 5px; }

#no-testimonials-message, #research-placeholder-message {
    text-align: center; color: var(--gray); padding: 30px 20px; font-style: italic; font-size: 1.05rem;
}


/* Mobile Full Screen Reel Modal Styles */
.mobile-full-screen-reel-modal .modal-content-full-reel {
    width: 100%; height: 100%; background-color: var(--black);
    border-radius: 0; box-shadow: none; padding: 0;
    display: flex; flex-direction: column; overflow: hidden;
}
.mobile-full-screen-reel-modal .modal-close {
    top: 20px; right: 20px; color: rgba(255,255,255,0.9);
    background-color: rgba(0,0,0,0.6); border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 0; z-index: 1010;
}
.mobile-full-screen-reel-modal .modal-close:hover { color: #fff; background-color: rgba(0,0,0,0.8); }

.full-reel-video-item-container {
    width: 100%; height: 100%; overflow-y: auto;
    scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; position: relative;
}

.full-reel-video-item {
    width: 100%; height: 100%; scroll-snap-align: start;
    position: relative; display: flex; align-items: center; justify-content: center;
    background-color: var(--black);
}
.full-reel-video-item .video-content-wrapper { width: 100%; height: 100%; position: relative; }
.full-reel-video-item .video-reel-placeholder { color: var(--gray); }
.full-reel-video-item .video-reel-placeholder i { font-size: 60px; opacity: 0.6; margin-bottom: 15px; }
.full-reel-video-item .video-reel-placeholder p { font-size: 1.1rem; }

#videoModal .modal-content { width: 90%; max-width: 980px; background-color: var(--black); padding:0; }
#videoModal .video-embed-container { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: var(--border-radius); }
#videoModal .video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
#videoModal .modal-close { top: -35px; right: -5px; font-size: 36px; color: #FFFFFF; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }


.path-page {
    padding-top: calc(var(--header-base-height) + var(--header-pill-margin-top) + 15px);
    padding-bottom: 15px;
    background: var(--generic-section-bg); 
}
.path-header {
    text-align: center; margin-bottom: 15px; position: relative; z-index: 2;
}
.path-header h2.section-main-title {
    font-size: 36px; margin-bottom: 0.4rem;
    background: linear-gradient(to right, var(--theme-heading-text), var(--light-gray));
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(var(--accent-blue-rgb), 0.2);
}
.path-header p { font-size: 16px; max-width: 700px; margin: 0 auto 6px; line-height: 1.55; }
.path-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
    max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background-color: var(--theme-subtle-bg);
    border-radius: var(--border-radius);
    padding: 18px 15px;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--theme-border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 200px;
}
.feature-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--box-shadow-hover); }
.feature-icon { font-size: 28px; margin-bottom: 8px; text-align: center; }
.optimizer-page .feature-icon { color: var(--optimizer-blue); }
.pain-reliever-page .feature-icon { color: var(--pain-relief-orange); }
.longevity-seeker-page .feature-icon { color: var(--longevity-purple); }
.feature-card h3 {
    font-family: 'Inter', var(--modern-font); font-size: 17px; margin-bottom: 6px;
    text-align: center; line-height: 1.25; word-break: break-word; overflow-wrap: break-word;
}
.feature-card p {
    font-size: 13.5px; margin-bottom: 8px; line-height: 1.5;
    flex-grow: 1; text-align: left; word-break: break-word; overflow-wrap: break-word;
}
.path-page .text-center { margin-top: 20px; }

.how-it-works.content-section { 
    padding-top: 30px; 
    padding-bottom: 40px; 
    background: var(--generic-section-bg); 
}
#how-it-works .section-title { margin-bottom: 40px; }
#how-it-works .section-title h2.section-main-title { font-size: 34px; margin-bottom: 0.8rem; }
#how-it-works .section-title p { font-size: 17px; max-width: 750px; margin-bottom: 0; }
.steps-container {
    display: flex; justify-content: center; max-width: 1350px; margin: 0 auto;
    flex-wrap: wrap; gap: 25px;
}
.step {
    flex: 1 1 280px; max-width: 330px; text-align: center; padding: 25px 20px;
    background-color: var(--theme-subtle-bg); border-radius: var(--border-radius);
    transition: var(--transition);
}
.feature-card {
    position: relative; 
    overflow: hidden; 
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.step::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue)); }
.step:hover { transform: translateY(-18px) scale(1.03); box-shadow: var(--box-shadow-hover); }
.step .step-icon { font-size: 28px; color: var(--primary-blue); margin-bottom: 12px; }
.step h3 {
    font-family: 'Inter', var(--modern-font); font-size: 20px; margin-bottom: 10px; line-height: 1.35;
    color: var(--theme-heading-text); overflow-wrap: break-word; word-break: normal; text-align: center;
}
.step p {
    font-size: 14.5px; line-height: 1.55; color: var(--theme-text);
    overflow-wrap: break-word; word-break: normal; text-align: center;
}

#platinum-biologics-page {
    padding-top: 60px;
    padding-bottom: 60px;
}

.platinum-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.platinum-text-col {
    flex: 1;
    max-width: 55%;
}
.platinum-text-col .section-main-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
.platinum-text-col .section-main-title::after {
    left: 0;
    transform: translateX(0);
}
.platinum-text-col > p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.platinum-image-col {
    flex: 1;
    max-width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platinum-image-col img {
    max-width: 70%; /* Scaled down on the page */
    height: auto;
    border-radius: var(--border-radius);
}
body.dark-theme .platinum-image-col img {
    filter: drop-shadow(0 0 25px rgba(var(--primary-blue-rgb), 0.2));
}

#platinum-biologics-page .faq-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--theme-border-color);
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}
#platinum-biologics-page .faq-question {
    padding: 20px 0;
    font-size: 18px;
    color: var(--primary-blue);
}
#platinum-biologics-page .faq-answer {
    padding: 0 0 20px 0;
    border-top: none;
    margin-top: -10px;
    font-size: 16px;
}

#treatment-areas-path .areas-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 35px; max-width: 1400px; margin: 0 auto; }
#treatment-areas-path .area-card {
    background-color: var(--theme-subtle-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow);
    width: 100%; max-width: 420px; transition: var(--transition); border: 1px solid var(--theme-border-color);
    display: flex; flex-direction: column;
}
@media (min-width: 768px) { #treatment-areas-path .area-card { width: calc(50% - 17.5px); } }
@media (min-width: 1100px) { #treatment-areas-path .area-card { width: calc(33.333% - 24px); } }
#treatment-areas-path .area-card:hover { transform: translateY(-18px) scale(1.03); box-shadow: var(--box-shadow-hover); }
#treatment-areas-path .area-image { height: 240px; position: relative; overflow: hidden; }
#treatment-areas-path .area-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
#treatment-areas-path .area-card:hover .area-image img { transform: scale(1.08); }
#treatment-areas-path .area-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(var(--theme-bg-rgb), 0.9) 0%, transparent 70%); display: flex; align-items: flex-end; padding: 30px; }
#treatment-areas-path .area-overlay h3.section-main-title { font-size: 28px; color: #FFFFFF; margin-bottom: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
#treatment-areas-path .area-content { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
#treatment-areas-path .area-content p { margin-bottom: 28px; font-size: 16.5px; }
#treatment-areas-path .area-btn { display: inline-flex; align-items: center; color: var(--primary-blue); font-weight: 600; transition: var(--transition); font-size: 17px; margin-top: auto; }
#treatment-areas-path .area-btn i { margin-left: 10px; transition: var(--transition); }
#treatment-areas-path .area-btn:hover { color: var(--accent-blue); }
#treatment-areas-path .area-btn:hover i { transform: translateX(6px); }

.science-page.content-section { 
    padding-top: 60px; 
    background: var(--generic-section-bg); 
}

.science-header { text-align: center; margin-bottom: 45px; }
.science-header h2.section-main-title { 
    text-shadow: 0 0 12px rgba(var(--primary-blue-rgb), 0.15); 
}
.science-summary {
    max-width: 1100px; 
    margin: 45px auto;
    background: linear-gradient(150deg, rgba(var(--primary-blue-rgb), 0.02), rgba(var(--accent-blue-rgb), 0.01)), var(--theme-subtle-bg); 
    padding: 20px; 
    border-radius: var(--border-radius); border: 1px solid var(--theme-border-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
}
.science-summary h3.msc-summary-title { 
    font-family: 'Inter', var(--modern-font);
    font-size: 28px; 
    color: var(--primary-blue);
    margin-bottom: 1.2rem; 
    text-align: center;
    word-break: normal; 
    overflow-wrap: normal;
}

.science-summary p.msc-summary-subtext { 
   font-size: 17px;  
   margin-bottom: 1.8rem; 
   margin-top: 1rem; 
   word-break: normal; 
   overflow-wrap: normal;
}

.science-summary li {
    background-color: var(--theme-bg); 
    border: 1px solid var(--theme-border-color);
    border-radius: var(--border-radius);
    padding: 22px; 
    font-size: 16px; color: var(--theme-text);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    width: 100%; 
    flex-shrink: 0; 
    list-style: none;
}
.science-summary li:hover { transform: translateY(-6px); box-shadow: var(--box-shadow); }
.science-summary li strong { color: var(--accent-blue); display: block; margin-bottom: 10px; font-size: 18px; font-weight: 600; font-family: 'Inter', var(--modern-font); }


/* === SCIENCE CAROUSEL STYLES === */
.science-carousel-controls {
    position: relative;
    padding: 10px;
    background: transparent;
}
.science-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.science-track {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}
.science-slider-controls {
    display: none; /* Hidden by default, shown for mobile */
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}
.science-slider-dot {
    width: 10px;
    height: 10px;
}

/* Desktop Grid Layout (Default is now grid) */
@media (min-width: 992px) { 
    .science-track {
        grid-template-columns: repeat(3, 1fr); 
    }
}
@media (min-width: 768px) and (max-width: 991px) { 
     .science-track {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile/Tablet Carousel Layout */
@media (max-width: 991px) {
    .science-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .science-track {
        display: flex;
        transform: none !important;
        gap: 15px;
    }
    .science-summary li {
        width: 85%;
        min-width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    .science-summary li:first-child {
        margin-left: calc((100% - 85% - 15px) / 2);
    }
    .science-summary li:last-child {
        margin-right: calc((100% - 85% - 15px) / 2);
    }
    .science-slider-controls {
        display: flex;
    }
}

@media (max-width: 576px) {
    .science-summary li {
        width: 90%;
        min-width: 90%;
    }
    .science-summary li:first-child {
        margin-left: calc((100% - 90% - 15px) / 2);
    }
    .science-summary li:last-child {
        margin-right: calc((100% - 90% - 15px) / 2);
    }
}

.testimonials.content-section {
    padding-top: 40px; 
    padding-bottom: 10px; 
    position: relative;
    background: linear-gradient(-45deg, rgba(var(--primary-blue-rgb),0.05), rgba(var(--accent-blue-rgb),0.025), var(--section-bg-start), var(--section-bg-end) 70%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}
body.light-theme .testimonials.content-section {
    background: linear-gradient(-45deg, rgba(var(--primary-blue-rgb),0.08), rgba(var(--accent-blue-rgb),0.06), var(--section-bg-start), var(--section-bg-start) 70%);
}
.pill-title-box {
    background: var(--theme-subtle-bg); border-radius: var(--border-radius-pill);
    padding: 22px 40px; 
    margin: 0 auto 45px; 
    max-width: 800px;
    box-shadow: var(--box-shadow); border: 1px solid var(--theme-border-color); text-align: center;
}
.pill-title-box .section-title { margin-bottom: 0; }
.pill-title-box .section-title h2.section-main-title { font-size: 38px; }
.pill-title-box .section-title p {
    font-size: 18.5px;
    margin-bottom: 0.5rem; 
}

/* === TESTIMONIAL CAROUSEL STYLES === */
.testimonial-carousel-controls {
    position: relative;
    background: var(--theme-subtle-bg);
    border-radius: var(--border-radius-pill);
    padding: 35px 70px; /* Desktop: Ample padding for arrows + content */
    box-shadow: var(--box-shadow);
    border: 1px solid var(--theme-border-color);
    min-height: 380px; /* Increased to ensure content fits well */
    display: flex;
    align-items: center; /* Vertically center the slider within the pill */
    justify-content: center; /* Horizontally center the slider */
}

.testimonial-prev-btn, .testimonial-next-btn {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    background-color: rgba(var(--theme-subtle-bg-rgb), 0.8);
    color: var(--primary-blue);
    border: 1px solid var(--theme-border-color);
    border-radius: 50%;
    width: 44px; 
    height: 44px; 
    font-size: 20px; 
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.testimonial-prev-btn:hover, .testimonial-next-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1); 
}
.testimonial-prev-btn { left: 20px; } 
.testimonial-next-btn { right: 20px; } 

.testimonials-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonial-slider { /* This is the viewport for the slides */
    position: relative;
    width: 100%; /* Takes full width of .testimonial-carousel-controls's content area */
    height: 100%; /* Takes full height available within .testimonial-carousel-controls */
    overflow: hidden; /* CRITICAL: Clips the .testimonial-track */
}

.testimonial-track {
    display: flex; /* Lays out .testimonial slides horizontally */
    height: 100%; /* Track is as tall as the slider viewport */
    /* width is implicitly (number of slides * slide_width) due to children */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* transform: translateX(0); /* Initial position, handled by JS */
}

.testimonial { /* Each individual slide */
    width: 100%; /* EACH slide is 100% of the .testimonial-slider's width */
    flex-shrink: 0; /* CRITICAL: Prevent slides from shrinking */
    height: 100%; /* Each slide is 100% of the .testimonial-slider's height */
    box-sizing: border-box;
    padding: 20px 25px; /* Internal padding FOR THE CONTENT WITHIN THE SLIDE */

    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center (quote + author block) */
    align-items: center;     /* Horizontally center (quote + author block) */
    text-align: center;      /* Default text alignment for direct children */
}

.testimonial-content { /* Container for quote mark and quote paragraph */
    background-color: transparent;
    padding: 0; /* Padding is on .testimonial now */
    position: relative;
    margin: 0 auto 25px auto; /* Center block, add bottom margin before author */
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 720px; /* Slightly wider max-width for quote block for better text flow */
    text-align: center;
}

.testimonial-content::before { /* The large quote mark */
    content: '"';
    display: block;
    text-align: center;
    font-size: 48px; /* Slightly smaller */
    color: rgba(var(--primary-blue-rgb), 0.08);
    font-family: Georgia, serif;
    line-height: 0.7; /* Adjust vertical position */
    margin-bottom: 8px; /* Space between quote mark and text */
    z-index: 1;
}
body.light-theme .testimonial-content::before { color: rgba(var(--primary-blue-rgb), 0.04); }

.testimonial-content p { /* The actual quote text */
    line-height: 1.7; /* Slightly more line height */
    color: var(--theme-text);
    margin: 0 auto;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center; /* Ensure text lines are centered */
    font-size: 17px; /* Base font size */
}

.testimonial-author { /* Container for avatar and author-info */
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the (avatar + info) group */
    padding-top: 15px; /* Increased space from quote */
    width: auto; /* Fit content */
    max-width: 100%;
    margin-top: auto; /* Push to bottom if quote is short */
}

.author-avatar {
    width: 70px; /* Slightly smaller avatar */
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 26px; /* Adjusted */
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(var(--primary-blue-rgb),0.3);
    font-family: 'Inter', var(--modern-font);
}

.author-info { /* Contains h4 (name) and p (condition) */
    text-align: left; /* Name and condition text left-aligned relative to each other */
}
.author-info h4 {
    font-family: 'Inter', var(--modern-font);
    font-size: 20px; /* Adjusted */
    margin-bottom: 5px; /* Adjusted */
    color: var(--theme-heading-text);
}
.author-info p {
    font-size: 16px; /* Adjusted */
    color: var(--gray);
    margin-bottom: 0;
}

.slider-controls { display: flex; justify-content: center; gap: 18px; margin-top: 30px; margin-bottom: 10px; }
.slider-dot { width: 13px; height: 13px; border-radius: 50%; background-color: var(--theme-subtle-bg); cursor: pointer; transition: var(--transition); border: 1px solid var(--theme-border-color); }
.slider-dot.active { background-color: var(--primary-blue); transform: scale(1.25); box-shadow: 0 0 8px rgba(var(--primary-blue-rgb),0.5); }
/* === END OF TESTIMONIAL CAROUSEL STYLES === */

.cta-section {
    padding: 75px 20px; 
    text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue) 60%);
    color: var(--white); transition: background-color 0.3s ease;
}
body.light-theme .cta-section {
    background: linear-gradient(135deg, #C8DFFF, #97BCFC 60%);
}
.cta-canvas-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.6;
}
.cta-container { 
    max-width: calc(100% - 20px); 
    margin: 0 auto; position: relative; z-index: 2; 
}
.cta-section .scrolling-text-container {
    font-family: 'Playfair Display', serif; 
    font-size: 50px; 
    font-weight: 700;
    margin-bottom: 2.5rem; height: auto; min-height: 130px; 
    overflow: hidden; 
    position: relative; 
    color: #FFFFFF; /* Force white for both themes */
    text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 18px rgba(255,255,255,0.6), 0 0 25px rgba(200,220,255,0.4); /* Consistent white glow */
    width: 100%; 
    padding: 0 10px; 
}
body.light-theme .cta-section .scrolling-text-container { 
    color: #FFFFFF !important; /* Ensure override */
    text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 18px rgba(255,255,255,0.6), 0 0 25px rgba(200,220,255,0.4); /* Consistent white glow */
}
.cta-section .cta-phrase {
    position: absolute; width: 100%; text-align: center;
    left: 0; top: 0; opacity: 0; line-height: 1.3;
    white-space: normal; 
}
.cta-phrase.snap-in { animation: ctaSnapIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.cta-phrase.slow-move { animation: ctaSlowMove 2.4s ease-in-out 0.6s forwards; }
.cta-phrase.dart-off { animation: ctaDartOff 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) 3.0s forwards; }

.cta-section p { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 50px; 
    opacity: 0.95; 
    color: var(--white); 
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 5px rgba(255,255,255,0.7); 
}
body.light-theme .cta-section p {
    color: var(--theme-heading-text); /* Revert paragraph to theme default on light */
    text-shadow: 0 1px 3px rgba(var(--theme-heading-text-rgb),0.15), 0 0 8px rgba(var(--theme-heading-text-rgb),0.1); 
}


#faq-page .faq-item {
    background-color: var(--theme-subtle-bg);
    border-radius: var(--border-radius); margin-bottom: 22px;
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
#faq-page .faq-question {
    padding: 24px 28px; font-size: 20px; font-weight: 600;
    cursor: pointer; position: relative; display: flex;
    justify-content: space-between; align-items: center;
    font-family: 'Inter', var(--modern-font);
}
#faq-page .faq-question::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    transition: transform 0.35s ease; font-size: 17px;
}
#faq-page .faq-question.active::after { transform: rotate(180deg); }
#faq-page .faq-answer {
    padding: 0 28px 28px; font-size: 17.5px; display: none;
    border-top: 1px solid var(--theme-border-color); margin-top: 18px;
    line-height: 1.8;
}
#faq-page .faq-answer.active { display: block; }

footer {
    background: linear-gradient(180deg, var(--section-bg-start) 0%, var(--section-bg-end) 100%);
    background-size: auto, auto;
    color: var(--theme-heading-text); padding: 70px 20px 35px; position: relative;
}

.footer-container { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 35px; }
.footer-about .footer-logo-wrapper { margin-bottom: 1.8rem; }
.footer-about .footer-logo-wrapper img { height: 150px;  width: auto; filter: var(--theme-logo-filter); }
.footer-about p { opacity: 0.85; margin-bottom: 1.8rem; font-size: 15.5px; line-height: 1.75; color: var(--gray); }
.social-links { display: flex; gap: 20px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: var(--theme-subtle-bg); color: var(--theme-text); font-size: 18px; transition: var(--transition); }
.social-links a:hover { background-color: var(--primary-blue); transform: translateY(-4px) scale(1.08); color: #FFFFFF !important; }
.footer-links h3 { font-family: 'Inter', var(--modern-font); font-size: 20px; margin-bottom: 1.5rem; position: relative; padding-bottom: 12px; }
.footer-links h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 45px; height: 2.5px; background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue)); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 14px; }
.footer-links ul li a { color: var(--gray); opacity: 0.9; font-size: 16.5px; }
.footer-links ul li a:hover { opacity: 1; color: var(--primary-blue); transform: translateX(6px); }
.footer-contact p { display: flex; align-items: center; margin-bottom: 1.2rem; opacity: 0.9; font-size: 16.5px; color: var(--gray); }
.footer-contact p i { margin-right: 14px; color: var(--primary-blue); width: 22px; text-align: center; font-size: 19px; }
.footer-contact p a.phone-link { color: var(--theme-text); font-size: 23px; font-weight: 700; font-family: 'Inter', var(--modern-font); }
.footer-contact p a.phone-link:hover { color: var(--primary-blue); }
.footer-contact .nationwide-highlight {
    font-family: 'Inter', var(--modern-font);
    font-size: 20px; font-weight: 700; color: var(--accent-blue);
    display: inline-block; transition: transform 0.3s ease, color 0.3s ease;
    padding: 2px 0;
}
.footer-contact .nationwide-highlight:hover { transform: scale(1.1) translateY(-1px); color: var(--primary-blue); }
.footer-bottom { text-align: center; padding-top: 45px; margin-top: 45px; border-top: 1px solid var(--theme-border-color); opacity: 0.75; font-size: 14.5px; color: var(--gray); }
.footer-bottom a { color: var(--primary-blue); font-weight: 500; }

.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(var(--theme-bg-rgb),0.9);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    animation: modalFadeIn 0.4s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    position: relative; margin: auto; padding: 0;
    background-color: var(--theme-subtle-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    animation: modalScaleIn 0.4s ease;
}
@keyframes modalScaleIn { from { transform: scale(0.9); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    color: var(--theme-heading-text); position: absolute;
    top: 18px; right: 25px;
    font-size: 32px; font-weight: bold;
    transition: 0.3s; cursor: pointer; line-height: 1;
    z-index: 10;
}
.modal-close:hover, .modal-close:focus { color: var(--gray); transform: scale(1.1); }

#boilerplateModal .modal-content, #loginModal .modal-content {
    padding: 40px; border: 1px solid var(--theme-border-color);
    width: 90%; max-width: 520px; text-align: center;
}
#boilerplateModal h3, #loginModal h3 { font-family: 'Inter', var(--modern-font); color: var(--primary-blue); margin-bottom: 1.8rem; font-size: 26px; }
#boilerplateModal p { color: var(--theme-text); font-size: 17.5px; }
#loginModal form { display: flex; flex-direction: column; gap: 22px; }
#loginModal input[type="email"], #loginModal input[type="password"] {
    padding: 16px 20px; border-radius: var(--border-radius);
    border: 1px solid var(--theme-border-color);
    background-color: var(--theme-bg); color: var(--theme-text);
    font-size: 17px; font-family: 'Open Sans', var(--modern-font);
}
#loginModal input[type="email"]:focus, #loginModal input[type="password"]:focus {
    outline: none; border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.35);
}
#loginModal .btn-login-submit {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue) 70%, var(--primary-blue));
    color: #FFFFFF !important; border: none; padding: 16px;
    font-size: 18px; font-weight: 600; border-radius: var(--border-radius);
    cursor: pointer; transition: var(--transition);
}
#loginModal .btn-login-submit:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 5px 20px rgba(0,102,255,0.35); }
#storyModal .modal-content {
    padding: 35px;
    border: 1px solid var(--theme-border-color);
    width: 90%;
    max-width: 480px;
    text-align: center;
}
#storyModal h3 {
    font-family: 'Inter', var(--modern-font);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 24px;
}
#storyModal p {
    color: var(--theme-text);
    font-size: 17px;
    margin-bottom: 1rem;
}
#liveConsultModal .modal-content {
    padding: 40px;
    border: 1px solid var(--theme-border-color);
    width: 90%;
    max-width: 520px;
    text-align: center;
}
#liveConsultModal h3 { 
    font-family: 'Inter', var(--modern-font);
    color: var(--primary-blue);
    margin-bottom: 1.8rem;
    font-size: 26px;
}
#liveConsultModal input[type="text"],
#liveConsultModal input[type="tel"] {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--theme-border-color);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-size: 17px;
    font-family: 'Open Sans', var(--modern-font);
    width: 100%; 
}
#liveConsultModal input[type="text"]:focus,
#liveConsultModal input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.35);
}


/* Keyframes */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ctaSnapIn { 0% { transform: translateY(35px) scale(0.75); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes ctaSlowMove { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1;} }
@keyframes ctaDartOff { 0% { transform: translateX(0) scale(1); opacity: 1; } 100% { transform: translateX(-120px) scale(0.65); opacity: 0; } }
@keyframes gradientBG {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* General Responsive Overrides */
@media (max-width: 1350px) { header { width: 95%; } }
@media (max-width: 1200px) {
    .hero h1.main-title { font-size: 52px; }
    .section-title h2.section-main-title, .science-header h2.section-main-title, .path-header h2.section-main-title { font-size: 40px; }
    .cta-section .scrolling-text-container { font-size: 44px; } 
    .pill-title-box .section-title h2.section-main-title { font-size: 32px; } 
    .steps-container .step { flex-basis: calc(50% - 15px); max-width: none; }
    #silhouette-research-results .research-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    #interactive-video-column { flex-basis: 45%; max-width: none; } 
    #interactive-content-column { flex-basis: 55%; }
}
@media (max-width: 991px) { /* Tablet */
    header { top: 10px; height: calc(var(--header-base-height) - 5px); padding: 0 20px; }
    .logo img { height: 110px; }
    nav ul li a, .login-btn { font-size: 16px; }
    .hero { justify-content: center; padding-top: calc(var(--header-base-height) + 60px); }
    .hero h1.main-title { font-size: 46px; } 
    .hero p.subtitle { font-size: 19px; } 
    .cohort-card { min-width: calc(50% - 15px); min-height: 380px; }
    .cohort-card:hover { transform: translateY(-15px) scale(1.02); }
    nav ul { gap: 8px; } 
    nav ul li { margin-left: 0; } 
    .theme-switch-wrapper { margin-left: 15px; }

    .cta-section .scrolling-text-container { font-size: 38px; height: auto; min-height: 100px; } 
    .cta-section .cta-phrase { white-space: normal; } 
    .cta-section p { font-size: 20px; } 
    .pill-title-box { padding: 20px 30px; max-width: 90%; }
    .pill-title-box .section-title h2.section-main-title { font-size: 28px; } 
    .pill-title-box .section-title p { font-size: 17px; }
    .path-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

    #body-map-testimonials { padding-top: 20px; padding-bottom: 30px; } 
    #body-map-testimonials .section-title { margin-bottom: 15px; } /* Tablet: small gap after text */

    .content-columns-wrapper {
        flex-direction: column; 
    }
    #interactive-video-column {
        position: static; /* Important for tablet: z-index won't apply if static */
        width: 100%;
        max-width: 600px; 
        margin: 0 auto 20px auto; /* Gap after video column on tablet */
        height: auto; 
        min-height: 280px; 
        /* z-index: auto; /* Let natural flow dictate on tablet if static */
    }
    #interactive-content-column {
        max-width: 100%;
        width: 100%;
    }
    #filtered-testimonials-column{
        max-height: 60vh; 
        min-height: 350px; 
        margin-bottom: 40px; 
    }
    #silhouette-research-results { max-height: 400px; } 
    #silhouette-research-results .research-list { 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
    #filtered-research-area {
        border-top: none; 
        padding-top: 0;
    }
    
    p, li { font-size: 16px; }
    .section-title h2.section-main-title, 
    .science-header h2.section-main-title, 
    .path-header h2.section-main-title { 
        font-size: 36px; 
    }
    #body-map-testimonials .section-title h2.section-main-title { font-size: 28px; margin-bottom: 0.5rem;} 
    #body-map-testimonials .section-title p.body-map-subtitle { font-size: 15px; margin-bottom: 0;} 
    
    .science-summary h3.msc-summary-title { 
        font-size: 20px; 
        line-height: 1.3;
        word-break: normal; 
    } 
    .science-summary p.msc-summary-subtext { 
        font-size: 15px; 
        line-height: 1.6;
        word-break: normal;
    } 

    .step p { font-size: 14px; }
    .feature-card p { font-size: 13px; }
    .science-summary li { font-size: 15px; }
    #faq-page .faq-question { font-size: 18px; }
    #faq-page .faq-answer { font-size: 15.5px; }
    
    /* Testimonial Carousel Mobile/Tablet - Swipe Interface */
    .testimonial-carousel-controls {
        padding: 30px 10px; /* Reduced horizontal padding for tablet, arrows hidden */
        min-height: 380px;
    }
    .testimonial-prev-btn, .testimonial-next-btn { 
        display: none; /* Hide arrows on tablet and mobile to rely on swipe */
    }
    .testimonial-slider {
        overflow-x: auto; /* Enable horizontal scrolling */
        scroll-snap-type: x mandatory; /* Enable snapping */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        margin: 0;
    }
    .testimonial-track {
        transform: none !important; /* Ensure JS transform for desktop doesn't interfere */
        /* width is determined by children */
    }

    .testimonial {
        width: 85%; /* Slides are 85% of the slider's width */
        min-width: 85%; /* Reinforce */
        flex-shrink: 0;
        scroll-snap-align: center; /* Snap to center for better feel */
        margin-right: 15px; /* Space between slides */
        padding: 15px 10px; /* Internal padding */
    }
    /* Adjust first and last slide for centering if desired, requires careful calculation or padding on slider */
     .testimonial:first-child {
         margin-left: calc((100% - 85% - 15px) / 2); /* Approximate centering */
     }
     .testimonial:last-child {
         margin-right: calc((100% - 85% - 15px) / 2);  /* Approximate centering */
     }
    .testimonial-content p { font-size: 17px; } /* Slightly smaller for tablet */
    .testimonial-content::before { font-size: 45px; margin-bottom: 3px; }
    .author-avatar { width: 65px; height: 65px; font-size: 24px;}
    .author-info h4 { font-size: 19px; }
    .author-info p { font-size: 15.5px; }
    .slider-controls { margin-top: 25px; } 
    
    .platinum-layout {
        flex-direction: column-reverse; /* Stack image on top on tablet/mobile */
    }
    .platinum-text-col, .platinum-image-col {
        max-width: 100%;
    }
    .platinum-image-col img {
        max-width: 200px; /* A fixed max-width for smaller screens */
    }
}

@media (max-width: 768px) { /* Mobile */
    header {
        width: 100%; max-width: 100%; left: 0; transform: none;
        top: 0; border-radius: 0; height: calc(var(--header-base-height) - 10px);
        box-shadow: 0 3px 15px rgba(0,0,0,0.1); padding: 0 15px;
    }
    header.header-hidden { top: calc( (var(--header-base-height) - 10px) * -1 ); }
    .logo img { height: 100px; }
    .hero { padding-top: calc(var(--header-base-height) + 30px); }
    nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: var(--theme-subtle-bg); z-index: 1000; transition: var(--transition); padding: calc(var(--header-base-height) - 10px + 20px) 30px 30px; border-left: 1px solid var(--theme-border-color); align-items: flex-start; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: flex-start; height: auto; width: 100%; gap: 0;}
    nav ul li { margin: 0 0 22px 0; width: 100%; }
    nav ul li a { font-size: 18px; }
    nav ul li a.btn { width: 100%; text-align: center; padding: 12px; font-size: 16px; }
    nav ul .nav-cta-item, nav ul .theme-switch-li-desktop { display: none; } /* Hide desktop-specific items */
    .mobile-menu { display: block; }
    .hero-content-wrapper { padding-bottom: 25px;} .hero h1.main-title { font-size: 40px; }
    .hero-buttons { flex-direction: column; gap: 22px; margin-bottom: 20px; }
    .cohort-selection { margin-top: 0; }
    .cohort-card, .cohort-card:hover { min-width: 100%; min-height: auto; transform: translateY(0) scale(1);  }
    .cohort-card:hover { min-height: auto; }
    .cohort-card .cohort-benefits { 
        display: none; opacity: 0; max-height: 0;
        transition: opacity 0.3s ease, max-height 0.4s ease, visibility 0.3s ease;
        visibility: hidden;
    }
    .cohort-card.benefits-visible .cohort-benefits {
        display: block; opacity: 1; max-height: 200px; visibility: visible;
    }

    .section-title h2.section-main-title { font-size: 30px; } 
    .science-header h2.section-main-title { font-size: 30px; }
    .cta-section .scrolling-text-container { font-size: 30px; height: auto; min-height: 85px; padding: 0 10px;} 
    .cta-section .cta-phrase { white-space: normal; }
    .cta-section p { font-size: 18px; } 
    #how-it-works .section-title h2.section-main-title { font-size: 28px; } 
    #how-it-works .section-title p { font-size: 15px; } 

    .steps-container .step { flex-basis: 100%; }
    .testimonial-author { flex-direction: column; text-align: center; } /* Avatar on top */
    .author-avatar { margin-right: 0; margin-bottom: 15px; }
    .author-info { text-align: center; } /* Center name/condition text */
    #desktopThemeSwitch { display: none; }
    nav ul .theme-switch-li { display: flex; align-items: center; width: 100%; justify-content: space-between;}
    nav ul .theme-switch-li span.theme-label { margin-right: auto; font-weight: 600; color: var(--theme-text);}
    .testimonial-map-card { padding: 25px; }
    .testimonial-map-card-body p { font-size: 16px; }
    .path-features { grid-template-columns: 1fr; }

    /* === Body Map & Testimonials Section - MOBILE SPECIFIC SPACING & LAYOUT FIX === */
    #body-map-testimonials { 
        padding-top: 15px !important; 
        padding-bottom: 25px !important; 
    }
    
    #body-map-testimonials .section-title {
        margin-bottom: 15px !important; /* Space AFTER subtitle text block */
        padding-bottom: 0 !important; 
    }
    #body-map-testimonials .section-title h2.section-main-title {
        font-size: 24px !important;
        margin-bottom: 0.4rem !important;
    }
    #body-map-testimonials .section-title p.body-map-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important; /* Critical: Remove default p margin */
    }

    #body-map-testimonials .interactive-display-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #body-map-testimonials .content-columns-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* This is the desired space BETWEEN video column and content column */
        margin-top: 0 !important;
        padding-top: 0 !important;
        width: 100% !important; 
        box-sizing: border-box !important;
    }

    #interactive-video-column {
        order: 1 !important; 
        position: static !important; /* CHANGE: Let element flow normally */
        width: 100% !important;
        max-width: 100% !important; 
        margin: 0 !important; /* CHANGE: Rely on parent gap for spacing */
        height: auto !important; 
        min-height: 250px !important; 
        cursor: pointer !important; 
        padding-top: 5px !important;
        padding-left: 10px !important;  
        padding-right: 10px !important;
        padding-bottom: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: rgba(var(--theme-subtle-bg-rgb), 0.6) !important; 
        border: 1px solid var(--theme-border-color) !important;
        border-radius: var(--border-radius) !important;
        box-shadow: var(--box-shadow) !important;
        backdrop-filter: blur(8px) !important; 
        overflow: hidden !important; 
    }
    #interactive-video-column::after { 
        opacity: 0.8 !important; 
    }

    #video-reel-player-slot { 
        min-height: 220px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        flex-grow: 1 !important; /* Ensure it takes available space */
    }
    #video-reel-navigation { 
        display: none !important; 
    }

    #interactive-content-column {
        order: 2 !important; 
        position: static !important; /* CHANGE: Let element flow normally */
        flex-basis: auto !important; /* CHANGE: Allow natural height */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important; /* CHANGE: Consolidated margins */
    }
    #filtered-testimonials-column {
        max-height: 70vh !important;
        margin-bottom: 30px !important; 
        padding-top: 0 !important; 
    }
    /* === END OF MOBILE SPACING & LAYOUT FIX FOR VIDEO SECTION === */
    
    #silhouette-research-results { max-height: 300px; } 
    #silhouette-research-results .research-list { grid-template-columns: 1fr; }
    #filtered-research-area { border-top: 1px solid var(--theme-border-color); padding-top: 20px; }
    
    .research-filter-pills { display: none; } 
    .mobile-research-filter-dropdown { display: block; } 

    p, li { font-size: 15px; }
    
    .science-header h2.section-main-title { line-height: 1.2; font-size: 26px; } 
    .science-summary { padding: 20px 10px; } 
    .science-summary h3.msc-summary-title { 
        font-size: 18px; 
        line-height: 1.3; 
        margin-bottom: 0.8rem; 
        word-break: normal; 
    } 
    .science-summary p.msc-summary-subtext { 
        font-size: 14px; 
        margin-bottom: 1.2rem; 
        line-height: 1.6;
        word-break: normal;
    } 

    .feature-card p { font-size: 12.5px; }
    .science-summary li { font-size: 14.5px; padding: 18px; }
    #faq-page .faq-question { font-size: 17px; padding: 18px 20px;} 
    #faq-page .faq-answer { font-size: 15px; padding: 0 20px 20px;} 
    
    .testimonial-carousel-controls {
        min-height: auto;
        padding: 20px 5px; /* Further reduce padding */
    }
    .testimonial {
        width: 90%; /* Each slide nearly full width on small mobile */
        min-width: 90%;
        margin-right: 5px; /* Small gap */
        padding: 10px 5px;
    }
     .testimonial:first-child {
         margin-left: calc((100% - 90% - 5px) / 2);
     }
     .testimonial:last-child {
         margin-right: calc((100% - 90% - 5px) / 2);
     }
    .testimonial-content p { font-size: 15px; }
    .testimonial-content::before { font-size: 36px; margin-bottom: 2px;}
    .author-avatar { width: 60px; height: 60px; font-size: 22px; }
    .author-info h4 { font-size: 18px; }
    .author-info p { font-size: 15px; }
}

@media (max-width: 576px) { /* Small Mobile */
    header { height: calc(var(--header-base-height) - 15px); }
    header.header-hidden { top: calc( (var(--header-base-height) - 15px) * -1 ); }
    .logo img { height: 90px; }
    .hero h1.main-title { font-size: 36px; }
    .hero p.subtitle { font-size: 16px; } 
    .btn-hero-cta { padding: 18px 40px; font-size: 18.5px; }
    .learn-more-video-btn { padding: 16px 35px; font-size: 17px; }
    .section-title h2.section-main-title { font-size: 26px; } 
    .science-header h2.section-main-title { font-size: 24px; line-height: 1.25; } 
    .cta-section .scrolling-text-container { font-size: 28px; padding: 0 5px; height: auto; min-height: 80px;} 
    .cta-section .cta-phrase { white-space: normal; }
    .cta-section p { font-size: 16px; } 
    #how-it-works .section-title h2.section-main-title { font-size: 24px; } 
    #how-it-works .section-title p { font-size: 14px; } 
    .pill-title-box .section-title h2.section-main-title { font-size: 22px; }  
    nav ul li a { font-size: 17.5px; }
    
    .testimonial-content p { font-size: 14px; } /* Further reduced */
    .author-avatar { width: 50px; height: 50px; font-size: 18px; margin-bottom: 10px;}
    .author-info h4 { font-size: 17px; }
    .author-info p { font-size: 14px; }

    .cta-section { padding: 50px 15px; } 
    .footer-container { grid-template-columns: 1fr; }

    .science-summary li { 
        padding: 15px; font-size: 14px;
    }
    .science-summary h3.msc-summary-title { 
        font-size: 16px; 
        line-height: 1.3;
    } 
    .science-summary p.msc-summary-subtext { 
        font-size: 13px; 
        line-height: 1.55;
    } 


    #faq-page .faq-question { font-size: 16px; padding: 18px 20px;} 
    #faq-page .faq-answer { font-size: 14.5px; padding: 0 20px 20px;} 
    #loginModal .modal-content { max-width: 90%; }
    .testimonial-map-avatar { width: 40px; height: 40px; font-size: 16px;}
    .testimonial-map-author h5 { font-size: 1rem; }
    .path-features .feature-card { min-height: auto; }
    .steps-container .step { padding: 20px 15px; }
    .step h3 { font-size: 18px; }
    .step p { font-size: 14px; }
    
    #silhouette-research-results .research-list { grid-template-columns: 1fr; gap: 20px; } 
    #silhouette-research-results .research-item { padding: 20px; } 
    #silhouette-research-results .research-item h4 { font-size: 17px; } 
    #silhouette-research-results .research-item p { font-size: 14px; } 

    p, li { font-size: 14px; line-height: 1.6; }
    .hero p.subtitle { font-size: 16px; }
    #body-map-testimonials .section-title h2.section-main-title { font-size: 22px; } 
    #body-map-testimonials .section-title p.body-map-subtitle { font-size: 13px; } 
    .testimonial-map-card-body p { font-size: 14px; }
    .pill-btn { font-size: 14px; padding: 8px 16px; }
    .mobile-research-filter-dropdown { font-size: 15px; padding: 10px 12px;}

    .testimonial-slider { margin: 0; }
    .testimonial {
         width: 90vw; /* Nearly full viewport width on very small screens */
         min-width: 0; /* Allow it to be smaller than 90vw if viewport is tiny */
         max-width: 90vw;
         margin-right: 5vw; /* Small relative gap */
         margin-left: 5vw; /* Center it more effectively */
    }
    .testimonial:first-child { margin-left: 5vw; } /* Consistent margin */
    .testimonial:last-child { margin-right: 5vw; }
}

/* ==========================================================================
   NEW PLATINUM BIOLOGICS STYLES
   ========================================================================== */
#platinum-biologics-page {
    padding-top: 60px;
    padding-bottom: 60px;
}

.platinum-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.platinum-text-col {
    flex: 1;
    max-width: 55%;
}
.platinum-text-col .section-main-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
.platinum-text-col .section-main-title::after {
    left: 0;
    transform: translateX(0);
}
.platinum-text-col > p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.platinum-image-col {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platinum-image-col img {
    max-width: 90%;
    height: auto;
    border-radius: var(--border-radius);
}
body.dark-theme .platinum-image-col img {
    filter: drop-shadow(0 0 25px rgba(var(--primary-blue-rgb), 0.2));
}

#platinum-biologics-page .faq-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--theme-border-color);
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}
#platinum-biologics-page .faq-question {
    padding: 20px 0;
    font-size: 18px;
    color: var(--primary-blue);
}
#platinum-biologics-page .faq-answer {
    padding: 0 0 20px 0;
    border-top: none;
    margin-top: -10px;
    font-size: 16px;
}

@media (max-width: 991px) {
    .platinum-layout {
        flex-direction: column-reverse; /* Stack image on top on tablet/mobile */
        gap: 30px;
    }
    .platinum-text-col, .platinum-image-col {
        max-width: 100%;
    }
    .platinum-image-col img {
        max-width: 200px; /* A fixed smaller max-width for smaller screens */
    }
    .platinum-text-col .section-main-title {
        text-align: center;
    }
    .platinum-text-col .section-main-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   FOOTER LOGO STYLES
   ========================================================================== */

.footer-links ul li.footer-platinum-logo-li {
    margin-top: 15px;
    display: flex;
    align-items: center; /* Vertically center with the 'Company' title */
}
.footer-logo-link {
    display: block;
    text-align: left;
}
.footer-inline-logo {
    height: 280px;
    width: auto;
    margin: 0;
    filter: var(--theme-logo-filter);
    transition: var(--transition);
}
.footer-logo-link:hover .footer-inline-logo {
    transform: scale(1.05);
}


/* ==========================================================================
   FINAL - HERO SECTION Animated Background
   ========================================================================== */

/* Define the animation keyframes */
@keyframes ripple {
    0% { background-position: 50% 50%; }
    25% { background-position: 40% 60%; }
    50% { background-position: 70% 70%; }
    75% { background-position: 60% 30%; }
    100% { background-position: 50% 50%; }
}

/* Create two pseudo-element layers for the hero section background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places layers behind hero content */
    pointer-events: none;
    transition: background 0.4s ease, opacity 0.4s ease;
}

/* Layer 1 (::before): The original STATIC body gradient */
.hero::before {
    background: var(--theme-bg);
}

/* Layer 2 (::after): The NEW ANIMATED ripple effect on top */
.hero::after {
    /* Default (Dark Theme) animated glow */
    background: radial-gradient(ellipse at center, rgba(var(--primary-blue-rgb), 0.1) 0%, transparent 65%);
    
    /* Set up for animation */
    background-size: 200% 200%;
    animation: ripple 35s ease-in-out infinite;
    opacity: 0.8;
}

/* Tweak the animated ripple for the light theme */
body.light-theme .hero::after {
    background: radial-gradient(ellipse at center, rgba(var(--primary-blue-rgb), 0.05) 0%, transparent 65%);
    opacity: 1;
}