:root {
--bg-primary: #faf9f7;
--bg-secondary: #f4f3f0;
--bg-dark: #1c1c1c;
--bg-accent: #f0ebe4;
--text-primary: #1c1c1c;
--text-body: #3d3d3d;
--text-secondary: #6b6b6b;
--accent: #8b7355;
--accent-light: #a69076;
--border: #e5e3df;
--border-dark: #d4d1cb;
--font-serif: 'Fraunces', serif;
--font-sans: 'Inter', sans-serif;
--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
::selection {
background: var(--accent);
color: white;
}
html {
scroll-behavior: smooth;
font-size: 16px;
}
body {
font-family: var(--font-sans);
background: var(--bg-primary);
color: var(--text-body);
line-height: 1.7;
font-weight: 400;
letter-spacing: -0.01em;
-webkit-font-smoothing: antialiased;
    position: relative;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
background: var(--border-dark);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: 1rem 1.5rem;
    background: var(--bg-dark);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 4px 0;
    transition: top 0.3s var(--ease);
}

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

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Header */
header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 1.25rem 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-bottom 0.4s var(--ease);
}
/* On mobile, ensure header text is always visible */
@media (max-width: 767px) {
    header {
        background: rgba(28, 28, 28, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    header .logo,
    header .logo-name,
    header .logo-title {
        color: #ffffff !important;
    }
    header .menu-toggle {
        display: flex !important;
    }
    header .menu-toggle span {
        background: #ffffff !important;
    }
    /* When scrolled on mobile, header becomes light, so menu icon should be dark */
    header.scrolled {
        background: var(--bg-secondary) !important;
    }
    header.scrolled .logo,
    header.scrolled .logo-name,
    header.scrolled .logo-title {
        color: var(--text-primary) !important;
    }
    header.scrolled .menu-toggle span {
        background: var(--text-primary) !important;
    }
    /* When menu is active (X icon) and header is scrolled, make it dark */
    header.scrolled .menu-toggle.active span:first-child,
    header.scrolled .menu-toggle.active span:last-child {
        background: var(--text-primary) !important;
    }
    .desktop-nav {
        display: none !important;
    }
}
header.scrolled {
background: var(--bg-secondary) !important;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-dark);
padding: 1rem 0;
box-shadow: 0 4px 30px rgba(0,0,0,0.2), 0 1px 0 rgba(0,0,0,0.1);
}
/* Text colors when scrolled - dark text for light background */
header.scrolled .logo {
color: var(--text-primary) !important;
}
header.scrolled .logo-name {
color: var(--text-primary) !important;
}
header.scrolled .logo-title {
color: var(--text-secondary) !important;
}
header.scrolled .desktop-nav a {
color: var(--text-secondary) !important;
}
header.scrolled .desktop-nav a:hover {
color: var(--text-primary) !important;
}
/* Unified Container Width - All sections use same width */
.header-inner,
.hero-inner,
.section-inner,
.footer-main,
.footer-bottom {
width: 100%;
max-width: 1280px;
margin: 0 auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
    display: flex;
    align-items: center;
text-decoration: none;
    color: #ffffff !important;
transition: color 0.4s var(--ease);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff !important;
    line-height: 1.1;
}
.logo-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
transition: color 0.4s var(--ease);
}
.desktop-nav {
display: none;
align-items: center;
gap: 2.5rem;
}
.desktop-nav a {
font-size: 0.8rem;
font-weight: 500;
    color: #ffffff !important;
text-decoration: none;
letter-spacing: 0.01em;
transition: color 0.3s var(--ease);
}
.desktop-nav a:hover {
color: var(--bg-primary);
}
header.scrolled .desktop-nav a:hover {
color: var(--text-primary);
}

/* Active page indicator - Gold + Underline */
.desktop-nav a.active {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}
header.scrolled .desktop-nav a.active {
    color: var(--accent) !important;
}
.mobile-nav a.active {
    color: var(--accent) !important;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}
/* Header nav button - matches hero button style when not scrolled */
header:not(.scrolled) .desktop-nav .btn-primary {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: none !important;
}
header:not(.scrolled) .desktop-nav .btn-primary:hover {
    background: var(--accent-light) !important;
    color: white !important;
}
header.scrolled .desktop-nav .btn-primary {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    border: none !important;
}
header.scrolled .desktop-nav .btn-primary:hover {
    background: var(--accent) !important;
color: #ffffff !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.language-switcher .lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher .lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

header.scrolled .language-switcher .lang-link {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: var(--border-light);
}

header.scrolled .language-switcher .lang-link:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
}

.mobile-language-switcher .lang-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.3s var(--ease);
}

.mobile-language-switcher .lang-link:hover {
    background: var(--accent);
    color: #ffffff;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
font-family: var(--font-sans);
font-size: 0.8rem;
font-weight: 500;
letter-spacing: 0.01em;
text-decoration: none !important;
border-radius: 4px;
transition: all 0.3s var(--ease);
cursor: pointer;
border: none;
}
.btn:hover {
text-decoration: none !important;
}
.btn-primary {
background: var(--text-primary);
color: var(--bg-primary);
}
.btn-primary:hover {
background: var(--accent);
}
.btn-secondary {
background: transparent;
color: var(--text-primary);
border: 1px solid var(--border-dark);
}
.btn-secondary:hover {
border-color: var(--text-primary);
}
/* Hero specific buttons */
.hero .btn-primary {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--text-primary) !important;
}
.hero .btn-primary:hover {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--text-primary) !important;
}
.hero .btn-secondary {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.menu-toggle {
display: flex;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 8px;
    z-index: 1000;
    position: relative;
}
.menu-toggle span {
width: 22px;
height: 1.5px;
    background: #ffffff;
transition: all 0.3s var(--ease);
    display: block;
}
header.scrolled .menu-toggle span {
background: var(--text-primary);
}
.menu-toggle.active span:first-child {
transform: rotate(45deg) translate(4.5px, 4.5px);
    background: #ffffff !important;
}
.menu-toggle.active span:nth-child(2) {
opacity: 0;
}
.menu-toggle.active span:last-child {
transform: rotate(-45deg) translate(4.5px, -4.5px);
    background: #ffffff !important;
}
/* Mobile Navigation */
.mobile-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg-primary);
z-index: 999;
display: flex;
flex-direction: column;
justify-content: center;
    align-items: center;
padding: 2rem;
opacity: 0;
visibility: hidden;
transition: all 0.4s var(--ease);
}
.mobile-nav.active {
opacity: 1;
visibility: visible;
}
.mobile-nav a {
font-family: var(--font-serif);
font-size: 1.75rem;
font-weight: 300;
color: var(--text-primary);
text-decoration: none;
padding: 0.75rem 0;
border-bottom: 1px solid var(--border);
transform: translateY(20px);
opacity: 0;
transition: all 0.4s var(--ease);
    width: 100%;
    max-width: 600px;
    text-align: center;
}
.mobile-nav.active a {
transform: translateY(0);
opacity: 1;
}
.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-contact {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--border);
opacity: 0;
transition: opacity 0.4s var(--ease) 0.4s;
    width: 100%;
    max-width: 600px;
    text-align: center;
}
.mobile-nav.active .mobile-nav-contact {
opacity: 1;
}
.mobile-nav-contact p {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.mobile-nav-contact a {
font-family: var(--font-sans);
font-size: 0.9rem;
color: var(--text-primary);
border: none;
padding: 0;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    background: var(--bg-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-inner {
        padding: 6rem 3rem;
    }
}

/* Breadcrumbs inside hero - Consistent across all inner pages */
.hero .breadcrumbs-section {
    position: absolute;
    top: 100px; /* Below fixed header */
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: 0;
}

.hero .breadcrumbs-section .section-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .hero .breadcrumbs-section {
        top: 110px;
    }
    .hero .breadcrumbs-section .section-inner {
        padding: 0 3rem;
    }
}

.hero .hero-content {
    margin-top: 5rem; /* Space below breadcrumbs */
    padding: 0;
    max-width: 600px;
}

/* Hero with Illustration */
.hero-with-illustration {
    position: relative;
    overflow: hidden;
}

.hero-illustration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75; /* Increased from 0.6 for better visibility */
}

/* Make SVG elements more visible */
.hero-illustration .neuro-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-illustration .neuro-svg path,
.hero-illustration .neuro-svg circle,
.hero-illustration .neuro-svg ellipse {
    stroke-width: 2px;
}

.hero-illustration .neuro-svg g[opacity] {
    opacity: 0.5 !important;
}

/* Make SVG text labels more visible */
.hero-illustration .neuro-svg text {
    fill: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-illustration .neuro-svg .area-labels text,
.hero-illustration .neuro-svg .region-labels text,
.hero-illustration .neuro-svg .road-labels text {
    fill: rgba(255, 255, 255, 0.9) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Ensure dashed lines are visible */
.hero-illustration .neuro-svg path[stroke-dasharray],
.hero-illustration .neuro-svg line[stroke-dasharray] {
    stroke: rgba(255, 255, 255, 0.5) !important;
}

/* Make filled shapes more visible */
.hero-illustration .neuro-svg ellipse[fill],
.hero-illustration .neuro-svg circle[fill]:not([fill="none"]) {
    fill-opacity: 0.15 !important;
    stroke-opacity: 0.7 !important;
}

/* Ensure all animated elements stay visible */
.hero-illustration .neuro-svg [class*="pulse"],
.hero-illustration .neuro-svg [class*="wave"],
.hero-illustration .neuro-svg [class*="node"],
.hero-illustration .neuro-svg [class*="marker"] {
    opacity: 1 !important;
}

/* On large screens (wider than container), align illustration with container right edge */
@media (min-width: 1264px) {
    .hero-illustration {
        /* Align right edge with the 1200px container's right edge */
        right: calc((100vw - 1200px) / 2);
        /* Fixed width instead of percentage */
        width: 720px;
    }
}

.hero-illustration .neuro-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Neuron animations */
.hero-illustration .neuron {
    animation: neuronPulse 4s ease-in-out infinite;
}

.hero-illustration .neuron-primary {
    animation-delay: 0s;
}

.hero-illustration .neuron-secondary {
    animation-delay: 0.5s;
}

.hero-illustration .neuron-tertiary {
    animation-delay: 1s;
}

.hero-illustration .neuron-core {
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes neuronPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes corePulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.9;
    }
}

/* Pathway animations */
.hero-illustration .pathway {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: pathwayDraw 8s ease-in-out infinite;
}

.hero-illustration .pathway-1 { animation-delay: 0s; }
.hero-illustration .pathway-2 { animation-delay: 1s; }
.hero-illustration .pathway-3 { animation-delay: 2s; }
.hero-illustration .pathway-4 { animation-delay: 3s; }

@keyframes pathwayDraw {
    0%, 100% {
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

/* Synapse pulse */
.hero-illustration .synapse {
    animation: synapsePulse 2s ease-in-out infinite;
}

@keyframes synapsePulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

/* Brainwave animation */
.hero-illustration .wave {
    animation: waveMove 6s linear infinite;
}

.hero-illustration .wave-1 { animation-duration: 5s; }
.hero-illustration .wave-2 { animation-duration: 7s; }
.hero-illustration .wave-3 { animation-duration: 9s; }

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-40px);
    }
}

/* Particle float */
.hero-illustration .particle {
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-illustration .particle:nth-child(odd) {
    animation-duration: 10s;
    animation-direction: alternate-reverse;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-15px) translateX(3px);
        opacity: 0.5;
    }
}

/* ==========================================
   Service Page Specific Animations
   ========================================== */

/* QEEG - Electrode pulses */
.hero-illustration .electrode.pulse-1 {
    animation: electrodePulse 2s ease-in-out infinite;
}
.hero-illustration .electrode.pulse-2 {
    animation: electrodePulse 2s ease-in-out infinite 0.5s;
}
.hero-illustration .electrode.pulse-3 {
    animation: electrodePulse 2s ease-in-out infinite 1s;
}

@keyframes electrodePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

/* QEEG - EEG Wave animations */
.hero-illustration .wave-alpha {
    animation: eegWaveAlpha 3s ease-in-out infinite;
}
.hero-illustration .wave-beta {
    animation: eegWaveBeta 1.5s ease-in-out infinite;
}
.hero-illustration .wave-theta {
    animation: eegWaveTheta 4s ease-in-out infinite;
}
.hero-illustration .wave-delta {
    animation: eegWaveDelta 5s ease-in-out infinite;
}

@keyframes eegWaveAlpha {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.3; }
    50% { stroke-dashoffset: 20; opacity: 0.5; }
}

@keyframes eegWaveBeta {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.45; }
}

@keyframes eegWaveTheta {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.2; }
    50% { stroke-dashoffset: 30; opacity: 0.4; }
}

@keyframes eegWaveDelta {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

/* TMS - Pulse waves */
.hero-illustration .pulse-wave.wave-1 {
    animation: tmsPulseWave 2s ease-out infinite;
}
.hero-illustration .pulse-wave.wave-2 {
    animation: tmsPulseWave 2s ease-out infinite 0.3s;
}
.hero-illustration .pulse-wave.wave-3 {
    animation: tmsPulseWave 2s ease-out infinite 0.6s;
}

@keyframes tmsPulseWave {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* TMS - Target zone pulse */
.hero-illustration .target-zone.pulse-1 {
    animation: targetPulse 2.5s ease-in-out infinite;
}
.hero-illustration .target-zone.pulse-2 {
    animation: targetPulse 2.5s ease-in-out infinite 0.4s;
}
.hero-illustration .target-zone.pulse-3 {
    animation: targetPulse 2.5s ease-in-out infinite 0.8s;
}

@keyframes targetPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* TPS - Deep brain activation */
.hero-illustration .deep-target.pulse-1 {
    animation: deepPulse 3s ease-in-out infinite;
}
.hero-illustration .deep-target.pulse-2 {
    animation: deepPulse 3s ease-in-out infinite 0.5s;
}
.hero-illustration .deep-target.pulse-3 {
    animation: deepPulse 3s ease-in-out infinite 1s;
}

@keyframes deepPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.05);
    }
}

/* TPS - Cell activation */
.hero-illustration .cell.pulse-1 {
    animation: cellActivate 2s ease-in-out infinite;
}
.hero-illustration .cell.pulse-2 {
    animation: cellActivate 2s ease-in-out infinite 0.3s;
}
.hero-illustration .cell.pulse-3 {
    animation: cellActivate 2s ease-in-out infinite 0.6s;
}

@keyframes cellActivate {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* tDCS - LED blinking */
.hero-illustration .led.pulse-1 {
    animation: ledBlink 1.5s ease-in-out infinite;
}

@keyframes ledBlink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* tDCS - Stimulation zone */
.hero-illustration .stim-zone.pulse-2 {
    animation: stimZone 3s ease-in-out infinite;
}
.hero-illustration .stim-zone.pulse-3 {
    animation: stimZone 3s ease-in-out infinite 0.5s;
}

@keyframes stimZone {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.45;
    }
}

/* Services Index - Pulse rings */
.hero-illustration .pulse-ring.ring-1 {
    animation: serviceRing 4s ease-out infinite;
}
.hero-illustration .pulse-ring.ring-2 {
    animation: serviceRing 4s ease-out infinite 0.5s;
}
.hero-illustration .pulse-ring.ring-3 {
    animation: serviceRing 4s ease-out infinite 1s;
}

@keyframes serviceRing {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Node activation (for services index) */
.hero-illustration .node.pulse-1 {
    animation: nodeActivate 2s ease-in-out infinite;
}
.hero-illustration .node.pulse-2 {
    animation: nodeActivate 2s ease-in-out infinite 0.4s;
}
.hero-illustration .node.pulse-3 {
    animation: nodeActivate 2s ease-in-out infinite 0.8s;
}

@keyframes nodeActivate {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Ensure hero content is above illustration */
.hero-with-illustration .hero-inner {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-illustration {
        width: 70%;
        opacity: 0.55; /* Increased from 0.4 */
    }
}

@media (max-width: 768px) {
    /* Stack layout: Animation on top, content below */
    .hero.hero-with-illustration {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-top: 100px; /* Space for fixed header */
    }
    
    .hero.hero-with-illustration .hero-inner {
        order: 2;
        position: relative;
        padding: 2rem 1.5rem 3rem;
        min-height: auto;
    }
    
    .hero-illustration {
        position: relative;
        order: 1;
        width: 100%;
        height: 250px;
        opacity: 0.8;
        top: auto;
        right: auto;
    }
    
    .hero-illustration .neuro-svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Subtle fade at bottom of animation */
    .hero-illustration::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--bg-dark));
        pointer-events: none;
    }
    
    /* Adjust hero content for stacked layout */
    .hero.hero-with-illustration .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero.hero-with-illustration .hero-label {
        margin: 0 auto 1rem;
    }
    
    .hero.hero-with-illustration .hero-name {
        font-size: 2rem;
    }
    
    .hero.hero-with-illustration .hero-title {
        font-size: 1rem;
    }
    
    .hero.hero-with-illustration .hero-intro {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero.hero-with-illustration .hero-cta {
        justify-content: center;
    }
    
    /* Breadcrumbs adjustment */
    .hero.hero-with-illustration .breadcrumbs-section {
        position: relative;
        top: auto;
        padding: 0 0 1rem;
    }
    
    .hero.hero-with-illustration .breadcrumbs {
        justify-content: center;
    }
}

/* === Additional Illustration Animations === */

/* Autism: Spectrum waves */
.hero-illustration .spectrum-wave {
    animation: spectrumWave 8s ease-in-out infinite;
}
.hero-illustration .spectrum-wave.wave-1 { animation-delay: 0s; }
.hero-illustration .spectrum-wave.wave-2 { animation-delay: 0.5s; }
.hero-illustration .spectrum-wave.wave-3 { animation-delay: 1s; }
.hero-illustration .spectrum-wave.wave-4 { animation-delay: 1.5s; }

@keyframes spectrumWave {
    0%, 100% { transform: translateY(0); opacity: 0.15; }
    50% { transform: translateY(-10px); opacity: 0.25; }
}

/* Autism: Connection pulse */
.hero-illustration .connection {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: connectionDraw 6s ease-in-out infinite;
}

@keyframes connectionDraw {
    0%, 100% { stroke-dashoffset: 300; }
    50% { stroke-dashoffset: 0; }
}

/* ADHD: Attention rings */
.hero-illustration .attention-ring {
    animation: attentionExpand 3s ease-out infinite;
}
.hero-illustration .ring-1 { animation-delay: 0s; }
.hero-illustration .ring-2 { animation-delay: 0.5s; }
.hero-illustration .ring-3 { animation-delay: 1s; }

@keyframes attentionExpand {
    0% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.4; }
}

/* ADHD: Scattered points */
.hero-illustration .scatter-point {
    animation: scatterPulse 4s ease-in-out infinite;
}

@keyframes scatterPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.5; }
}

/* ADHD: Energy waves */
.hero-illustration .energy-wave {
    animation: energyFlow 5s ease-in-out infinite;
}

@keyframes energyFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

/* ADHD: Spark flash */
.hero-illustration .spark {
    animation: sparkFlash 2s ease-in-out infinite;
}

@keyframes sparkFlash {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Depression: Mood waves */
.hero-illustration .mood-wave {
    animation: moodOscillate 10s ease-in-out infinite;
}

@keyframes moodOscillate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* OCD: Loop rotation */
.hero-illustration .loop-outer {
    animation: loopRotate 20s linear infinite;
    transform-origin: center;
}
.hero-illustration .loop-inner {
    animation: loopRotate 15s linear infinite reverse;
    transform-origin: center;
}
.hero-illustration .loop-core {
    animation: loopRotate 10s linear infinite;
    transform-origin: center;
}

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

/* OCD: Spiral thought pulse */
.hero-illustration .spiral-thought {
    animation: spiralPulse 4s ease-in-out infinite;
}

@keyframes spiralPulse {
    0%, 100% { opacity: 0.4; stroke-width: 1.5; }
    50% { opacity: 0.7; stroke-width: 2; }
}

/* Addiction: Reward pulse */
.hero-illustration .reward-pulse {
    animation: rewardExpand 2.5s ease-out infinite;
}
.hero-illustration .pulse-1 { animation-delay: 0s; }
.hero-illustration .pulse-2 { animation-delay: 0.4s; }
.hero-illustration .pulse-3 { animation-delay: 0.8s; }

@keyframes rewardExpand {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Addiction: Dopamine molecule float */
.hero-illustration .molecule {
    animation: moleculeFloat 6s ease-in-out infinite;
}

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

/* Addiction: Craving wave */
.hero-illustration .craving-wave {
    animation: cravingPulse 4s ease-in-out infinite;
}

@keyframes cravingPulse {
    0%, 100% { stroke-width: 2; opacity: 0.4; }
    50% { stroke-width: 3.5; opacity: 0.7; }
}

/* Alzheimer's: Memory node fade */
.hero-illustration .memory-node.degraded {
    animation: memoryFade 8s ease-in-out infinite;
}

@keyframes memoryFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Alzheimer's: Healthy node maintain */
.hero-illustration .memory-node.healthy {
    animation: healthyPulse 5s ease-in-out infinite;
}

@keyframes healthyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

/* Learning: Processing flow */
.hero-illustration .pathway.strong {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: strongFlow 4s ease-in-out infinite;
}

@keyframes strongFlow {
    0%, 100% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
}

.hero-illustration .pathway.challenging {
    animation: challengingPath 6s ease-in-out infinite;
}

@keyframes challengingPath {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
}

/* Speech Therapy: Speech area pulse */
.hero-illustration .speech-area-pulse {
    animation: speechAreaPulse 3s ease-in-out infinite;
}

@keyframes speechAreaPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4;
        stroke-width: 2px;
    }
    50% { 
        transform: scale(1.08); 
        opacity: 0.7;
        stroke-width: 2.5px;
    }
}

/* Speech Therapy: Neural pathway draw */
.hero-illustration .neural-pathway {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: neuralPathwayDraw 4s ease-in-out infinite;
}

@keyframes neuralPathwayDraw {
    0%, 100% { stroke-dashoffset: 100; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 0.6; }
}

/* Speech Therapy: Speech bubble float */
.hero-illustration .speech-bubble {
    animation: speechBubbleFloat 5s ease-in-out infinite;
}

@keyframes speechBubbleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-8px); opacity: 0.5; }
}

/* Speech Therapy: Sound waves */
.hero-illustration .sound-wave {
    animation: soundWaveExpand 2s ease-out infinite;
}
.hero-illustration .sound-wave.wave-1 { animation-delay: 0s; }
.hero-illustration .sound-wave.wave-2 { animation-delay: 0.3s; }
.hero-illustration .sound-wave.wave-3 { animation-delay: 0.6s; }

@keyframes soundWaveExpand {
    0% { opacity: 0.5; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1.5); }
}

/* Neuropsychological Assessment: Brain region pulse */
.hero-illustration .brain-region-pulse {
    animation: brainRegionPulse 4s ease-in-out infinite;
}

@keyframes brainRegionPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3;
        stroke-width: 1.5px;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.6;
        stroke-width: 2px;
    }
}

/* Neuropsychological Assessment: Measurement line pulse */
.hero-illustration .measurement-lines line {
    animation: measurementPulse 3s ease-in-out infinite;
}

@keyframes measurementPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Neuropsychological Assessment: Cognitive icon float */
.hero-illustration .cognitive-icons g {
    animation: cognitiveFloat 6s ease-in-out infinite;
}

.hero-illustration .cognitive-icons g:nth-child(2) { animation-delay: 1s; }
.hero-illustration .cognitive-icons g:nth-child(3) { animation-delay: 2s; }

@keyframes cognitiveFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 0.6; }
}

/* Neuropsychological Assessment: Data visualization bars */
.hero-illustration .data-viz rect {
    animation: dataBarPulse 2s ease-in-out infinite;
}

.hero-illustration .data-viz rect:nth-child(2) { animation-delay: 0.3s; }
.hero-illustration .data-viz rect:nth-child(3) { animation-delay: 0.6s; }
.hero-illustration .data-viz rect:nth-child(4) { animation-delay: 0.9s; }

@keyframes dataBarPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Contact Page: Location marker pulse */
.hero-illustration .location-pulse {
    animation: locationPulseExpand 3s ease-out infinite;
}
.hero-illustration .location-pulse.pulse-1 { animation-delay: 0s; }
.hero-illustration .location-pulse.pulse-2 { animation-delay: 0.5s; }
.hero-illustration .location-pulse.pulse-3 { animation-delay: 1s; }

@keyframes locationPulseExpand {
    0% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Contact Page: Location marker glow */
.hero-illustration .location-marker {
    animation: locationMarkerGlow 2s ease-in-out infinite;
}

@keyframes locationMarkerGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255,255,255,0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
}

/* QPAN Page: Neural network pulse */
.hero-illustration .qpan-node {
    animation: qpanNodePulse 3s ease-in-out infinite;
}

@keyframes qpanNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Legal Pages: Document/Shield animations */
.hero-illustration .legal-icon {
    animation: legalIconFloat 5s ease-in-out infinite;
}

@keyframes legalIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-10px) rotate(2deg); opacity: 0.6; }
}

/* GDPR Page: Center node pulse */
.hero-illustration .gdpr-center-node .center-ring {
    animation: gdprRingPulse 4s ease-in-out infinite;
}

.hero-illustration .gdpr-center-node .center-ring.ring-2 {
    animation-delay: 0.5s;
}

.hero-illustration .gdpr-center-node .center-core {
    animation: gdprCorePulse 3s ease-in-out infinite;
}

@keyframes gdprRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes gdprCorePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* GDPR Page: Rights nodes animation */
.hero-illustration .rights-node {
    animation: rightsNodePulse 5s ease-in-out infinite;
}

.hero-illustration .rights-node.node-2 { animation-delay: 0.4s; }
.hero-illustration .rights-node.node-3 { animation-delay: 0.8s; }
.hero-illustration .rights-node.node-4 { animation-delay: 1.2s; }
.hero-illustration .rights-node.node-5 { animation-delay: 1.6s; }
.hero-illustration .rights-node.node-6 { animation-delay: 2.0s; }

@keyframes rightsNodePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Contact Page: Rail line animation */
.hero-illustration .rail-line {
    stroke-dasharray: 8 4;
    animation: railLineFlow 3s linear infinite;
}

@keyframes railLineFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -24; }
}

/* Contact Page: Main road pulse */
.hero-illustration .main-road {
    animation: mainRoadPulse 4s ease-in-out infinite;
}

@keyframes mainRoadPulse {
    0%, 100% { stroke-width: 5; opacity: 0.4; }
    50% { stroke-width: 6; opacity: 0.6; }
}

/* Particles animation */
.hero-illustration .particles circle {
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-illustration .particles circle:nth-child(2) { animation-delay: 1s; }
.hero-illustration .particles circle:nth-child(3) { animation-delay: 2s; }
.hero-illustration .particles circle:nth-child(4) { animation-delay: 3s; }
.hero-illustration .particles circle:nth-child(5) { animation-delay: 4s; }
.hero-illustration .particles circle:nth-child(6) { animation-delay: 5s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-10px) translateX(5px); opacity: 0.5; }
    50% { transform: translateY(-5px) translateX(-5px); opacity: 0.4; }
    75% { transform: translateY(-15px) translateX(3px); opacity: 0.5; }
}

/* Spark animation */
.hero-illustration .spark {
    animation: sparkle 3s ease-in-out infinite;
}

.hero-illustration .spark:nth-child(2) { animation-delay: 0.5s; }
.hero-illustration .spark:nth-child(3) { animation-delay: 1s; }
.hero-illustration .spark:nth-child(4) { animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* QPAN Page: QEEG wave animations */
.hero-illustration .qeeg-wave {
    animation: qeegWaveFlow 3s linear infinite;
}

.hero-illustration .alpha-wave {
    stroke-dasharray: 20 10;
    animation: qeegWaveFlow 4s linear infinite;
}

.hero-illustration .beta-wave {
    stroke-dasharray: 10 5;
    animation: qeegWaveFlow 2s linear infinite;
}

.hero-illustration .theta-wave {
    stroke-dasharray: 30 15;
    animation: qeegWaveFlow 5s linear infinite;
}

.hero-illustration .delta-wave {
    stroke-dasharray: 40 20;
    animation: qeegWaveFlow 8s linear infinite;
}

@keyframes qeegWaveFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -60; }
}

/* QPAN Badge rotation */
.hero-illustration .badge-outer-ring {
    transform-origin: center;
}

/* Neural node pulse */
.hero-illustration .neural-node {
    animation: neuralNodePulse 3s ease-in-out infinite;
}

.hero-illustration .neural-node.node-2 { animation-delay: 0.3s; }
.hero-illustration .neural-node.node-3 { animation-delay: 0.6s; }
.hero-illustration .neural-node.node-4 { animation-delay: 0.9s; }
.hero-illustration .neural-node.node-5 { animation-delay: 1.2s; }
.hero-illustration .neural-node.node-6 { animation-delay: 1.5s; }

@keyframes neuralNodePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Electrode markers */
.hero-illustration .electrode {
    animation: electrodePing 2s ease-in-out infinite;
}

.hero-illustration .electrode.e2 { animation-delay: 0.4s; }
.hero-illustration .electrode.e3 { animation-delay: 0.8s; }

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

/* Scan indicator glow */
.hero-illustration .scan-indicator line {
    filter: blur(1px);
}

/* QPAN Floating Labels */
.hero-illustration .qpan-floating-labels text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-illustration .qpan-label.label-qeeg,
.hero-illustration .qpan-label.label-personalised,
.hero-illustration .qpan-label.label-neuro {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-illustration .qpan-label.label-ai {
    text-shadow: 0 0 20px rgba(197, 167, 103, 0.5);
}

.hero-illustration .qpan-label.label-precision {
    text-shadow: 0 0 15px rgba(197, 167, 103, 0.4);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}
.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}
.hero-intro {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.hero-credentials {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 2.5rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(255,255,255,0.1);
}
.credential {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.credential-label {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: rgba(255,255,255,0.4);
}
.credential-value {
font-family: var(--font-serif);
font-size: 1rem;
font-weight: 400;
color: var(--bg-primary);
}
.hero-cta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.hero-image-container {
position: relative;
overflow: hidden;
order: 1;
background: var(--bg-dark);
display: flex;
align-items: center;
    justify-content: center;
padding: 2rem 0 0;
}
.hero-image {
width: 100%;
max-width: 300px;
height: auto;
object-fit: contain;
    margin: 0 auto;
}
.hero-image-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 30%;
background: linear-gradient(to bottom, var(--bg-primary), transparent);
display: none;
}

/* Mobile ONLY: Homepage - image above content */
@media (max-width: 767px) {
    .hero > .hero-inner {
        display: flex;
        flex-direction: column;
        padding-top: 80px;
    }
    
    .hero > .hero-inner > .hero-image-container {
        order: 1;
        padding: 0.5rem 1rem;
    }
    
    .hero > .hero-inner > .hero-content {
        order: 2;
        padding: 1.5rem;
    }
    
    .hero > .hero-inner > .hero-image-container .hero-image {
        max-width: 340px;
        width: 85%;
        border-radius: 8px;
    }
}

/* Mobile ONLY: Biography page - fix breadcrumb overlap with image */
@media (max-width: 767px) {
    .hero.hero-with-image .hero-inner {
        padding-top: 0;
    }
    
    .hero.hero-with-image .breadcrumbs-section {
        position: relative;
        top: auto;
        order: 0;
        padding: 100px 1.5rem 1rem;
    }
    
    .hero.hero-with-image .hero-image-container {
        order: 1;
    }
    
    .hero.hero-with-image .hero-content {
        order: 2;
        margin-top: 0;
    }
}

/* Specialisms Strip */
.specialisms-strip {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

.specialisms-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.specialisms-strip a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease);
    letter-spacing: 0.02em;
}

.specialisms-strip a:hover {
    color: var(--text-primary);
}

.specialisms-strip .divider {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .specialisms-strip {
        padding: 0.75rem 0;
    }
    
    .specialisms-inner {
        gap: 0.35rem;
    }
    
    .specialisms-strip a {
        font-size: 0.75rem;
    }
    
    .specialisms-strip .divider {
        font-size: 0.6rem;
    }
}

/* Section Styling */
section {
padding: 5rem 0;
}

/* Breadcrumbs - spacing handled above */

.breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.breadcrumbs a:hover {
    color: #ffffff !important;
}

.breadcrumbs span:last-child {
    color: #ffffff !important;
    font-weight: 500;
}
/* section-inner uses unified container width above */
.section-header {
margin-bottom: 3rem;
}
.section-label {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--accent);
margin-bottom: 1rem;
}
.section-title {
font-family: var(--font-serif);
font-size: clamp(1.75rem, 4vw, 2.5rem);
font-weight: 300;
color: var(--text-primary);
line-height: 1.25;
letter-spacing: -0.02em;
}
.section-intro {
font-size: 0.95rem;
color: var(--text-body);
max-width: 560px;
margin-top: 1.25rem;
line-height: 1.8;
}
/* Biography Section */
.bio-section {
background: var(--bg-secondary);
}
.bio-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.bio-section h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.bio-section p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.bio-grid {
display: grid;
    grid-template-columns: 1fr;
gap: 3rem;
}

@media (min-width: 1024px) {
    .bio-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
    }
}
.bio-text {
font-size: 0.95rem;
color: var(--text-body);
line-height: 1.9;
}
.bio-text p {
margin-bottom: 1.5rem;
}
.bio-text p:last-child {
margin-bottom: 0;
}
.bio-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.bio-text h2:first-child {
    margin-top: 0;
}
.bio-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.bio-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}
.bio-text ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}
.bio-text ul li:last-child {
    margin-bottom: 0;
}
.bio-text a:not(.btn) {
    color: var(--accent);
    text-decoration: underline;
}
.bio-text a:hover {
    color: var(--accent-light);
}
.bio-quote {
padding: 2rem;
background: var(--bg-primary);
    margin-top: 3rem;
border-left: 2px solid var(--accent);
margin: 2rem 0;
}
.bio-quote p {
font-family: var(--font-serif);
font-size: 1.15rem;
font-style: italic;
font-weight: 300;
color: var(--text-primary);
line-height: 1.7;
margin-bottom: 0;
}
.bio-quote cite {
display: block;
margin-top: 1rem;
font-family: var(--font-sans);
font-size: 0.8rem;
font-style: normal;
color: var(--text-secondary);
}
.bio-sidebar {
display: flex;
flex-direction: column;
gap: 2rem;
}
.bio-card {
padding: 1.5rem;
background: var(--bg-primary);
border: 1px solid var(--border);
}

/* CTA Card - Call to Action styling */
.bio-card.cta-card {
    background: var(--bg-dark);
    border: none;
    color: #ffffff;
    text-align: center;
}

.bio-card.cta-card .bio-card-title {
    color: rgba(255,255,255,0.7);
    border-bottom-color: rgba(255,255,255,0.15);
}

.bio-card.cta-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bio-card.cta-card .btn-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* CTA card button - ensure visibility on dark background */
.bio-card.cta-card .btn-primary {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

.bio-card.cta-card .btn-primary:hover {
    background: #ffffff !important;
    color: var(--bg-dark) !important;
}

.bio-card.cta-card .cta-phone {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.bio-card.cta-card .cta-phone a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bio-card.cta-card .cta-phone a:hover {
    color: #ffffff;
}
.bio-card-title {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-secondary);
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border);
}
.bio-card ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.bio-card li {
font-size: 0.9rem;
color: var(--text-body);
}
.bio-card a:not(.btn) {
    color: var(--text-primary);
    text-decoration: underline;
    transition: color 0.3s var(--ease);
}
.bio-card a:hover {
    color: var(--accent);
}
.bio-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}
/* Expertise Section */
.expertise-section {
background: var(--bg-dark);
color: var(--bg-primary);
}
.expertise-section .section-label {
color: var(--accent-light);
}
.expertise-section .section-title {
color: var(--bg-primary);
}
.expertise-section .section-intro {
color: rgba(255,255,255,0.6);
}
.expertise-grid {
display: grid;
gap: 0;
margin-top: 3rem;
}
.expertise-item {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 1rem;
padding: 1.25rem 0;
border-bottom: 1px solid rgba(255,255,255,0.1);
text-decoration: none;
color: inherit;
transition: all 0.3s var(--ease);
}
.expertise-item:first-child {
border-top: 1px solid rgba(255,255,255,0.1);
}
.expertise-item:hover {
padding-left: 1rem;
}
.expertise-item:hover .expertise-name {
color: var(--accent-light);
}
.expertise-item:hover .expertise-arrow {
opacity: 1;
transform: translateX(0);
}
.expertise-name {
font-family: var(--font-serif);
font-size: clamp(1.1rem, 2.5vw, 1.4rem);
font-weight: 300;
letter-spacing: -0.01em;
transition: color 0.3s var(--ease);
}
.expertise-arrow {
width: 20px;
height: 20px;
color: var(--accent-light);
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s var(--ease);
}

/* Additional Conditions */
.additional-conditions {
margin-top: 3rem;
padding-top: 2rem;
}
.additional-conditions h3 {
font-family: var(--font-serif);
font-size: 1.1rem;
font-weight: 400;
color: rgba(255,255,255,0.7);
margin-bottom: 1.5rem;
letter-spacing: -0.01em;
}
/* Flowing conditions text */
.conditions-flow {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 2.2;
    letter-spacing: 0.01em;
}
.conditions-flow .sep {
    color: rgba(255,255,255,0.35);
    margin: 0 0.4rem;
}

/* Services Section */
.services-section {
background: var(--bg-accent);
}
.services-grid {
display: grid;
gap: 1.5rem;
margin-top: 3rem;
}
.service-card {
background: var(--bg-primary);
border: 1px solid var(--border);
padding: 2rem;
transition: all 0.3s var(--ease);
}
.service-card:hover {
border-color: var(--accent);
}
.service-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}
.service-card h3 {
font-family: var(--font-serif);
font-size: 1.25rem;
font-weight: 400;
color: var(--text-primary);
letter-spacing: -0.01em;
}
.service-badge {
font-size: 0.6rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--accent);
background: var(--bg-accent);
padding: 0.35rem 0.75rem;
border-radius: 2px;
}
.service-card p {
font-size: 0.9rem;
color: var(--text-body);
line-height: 1.7;
margin-bottom: 1.25rem;
}
.service-features {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.service-features li {
font-size: 0.8rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 0.5rem;
}
.service-features li::before {
content: '';
width: 4px;
height: 4px;
background: var(--accent);
border-radius: 50%;
}
/* Treatment Modalities Section */
.modalities-section {
border-top: 1px solid var(--border);
}
.modalities-grid {
display: grid;
gap: 2rem;
margin-top: 3rem;
}
.modality-item {
display: grid;
grid-template-columns: 4rem 1fr;
gap: 1.5rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--border);
}
.modality-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.modality-abbr {
font-family: var(--font-serif);
font-size: 0.9rem;
font-weight: 400;
color: var(--accent);
padding-top: 0.25rem;
}
.modality-content h3 {
font-family: var(--font-serif);
font-size: 1.15rem;
font-weight: 400;
color: var(--text-primary);
margin-bottom: 0.5rem;
letter-spacing: -0.01em;
}
.modality-content p {
font-size: 0.9rem;
color: var(--text-body);
line-height: 1.7;
}
.modality-note {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: 0.75rem;
font-style: italic;
}
/* Approach Section */
.approach-section {
background: var(--bg-secondary);
}
.approach-grid {
display: grid;
gap: 2rem;
}
.approach-item {
display: grid;
grid-template-columns: 3rem 1fr;
gap: 1.25rem;
padding: 2rem;
background: var(--bg-primary);
border: 1px solid var(--border);
transition: all 0.3s var(--ease);
}
.approach-item:hover {
border-color: var(--accent);
}
.approach-number {
font-family: var(--font-serif);
font-size: 1.75rem;
font-weight: 300;
color: var(--accent);
line-height: 1;
}
.approach-content h3 {
font-family: var(--font-serif);
font-size: 1.15rem;
font-weight: 400;
color: var(--text-primary);
margin-bottom: 0.5rem;
letter-spacing: -0.01em;
}
.approach-content p {
font-size: 0.9rem;
color: var(--text-body);
line-height: 1.7;
}
/* Programmes Section */
.programmes-section {
background: var(--bg-dark);
color: var(--bg-primary);
padding: 6rem 0;
}
.programmes-section .section-inner {
max-width: 1280px;
}
.programmes-section .section-label {
color: var(--accent-light);
}
.programmes-section .section-title {
color: var(--bg-primary);
}
.programmes-section .section-intro {
color: rgba(255,255,255,0.6);
}
.programmes-grid {
display: grid;
gap: 2.5rem;
margin-top: 3rem;
}
.programme-card {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.1);
padding: 2.5rem;
border-radius: 8px;
transition: all 0.3s var(--ease);
}
.programme-card:hover {
border-color: var(--accent-light);
background: rgba(255,255,255,0.05);
}
.programme-card h3 {
font-family: var(--font-serif);
font-size: 1.35rem;
font-weight: 400;
color: var(--bg-primary);
margin-bottom: 1rem;
}
.programme-card > p {
font-size: 0.95rem;
color: rgba(255,255,255,0.7);
line-height: 1.8;
margin-bottom: 1.5rem;
margin-bottom: 1.5rem;
}
.programme-includes {
padding-top: 1.25rem;
border-top: 1px solid rgba(255,255,255,0.1);
}
.programme-includes h4 {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: rgba(255,255,255,0.4);
margin-bottom: 0.75rem;
}
.programme-includes ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.programme-includes li {
font-size: 0.85rem;
color: rgba(255,255,255,0.7);
}
/* Testimonials */
.testimonials-section {
border-top: 1px solid var(--border);
}
.testimonial-container {
max-width: 720px;
margin: 0 auto;
}
.testimonial-content {
padding: 2.5rem 0;
text-align: center;
}
.testimonial-quote {
font-family: var(--font-serif);
font-size: clamp(1.05rem, 2.5vw, 1.3rem);
font-weight: 300;
font-style: italic;
color: var(--text-primary);
line-height: 1.75;
margin-bottom: 2rem;
}
.testimonial-attribution {
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.testimonial-attribution strong {
font-size: 0.85rem;
font-weight: 500;
color: var(--text-primary);
}
.testimonial-attribution span {
font-size: 0.8rem;
color: var(--text-secondary);
}
.testimonial-nav {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 2rem;
}
.testimonial-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--border-dark);
border: none;
cursor: pointer;
transition: all 0.3s var(--ease);
}
.testimonial-dot.active {
background: var(--accent);
}
/* Fees Section */
.fees-section {
background: var(--bg-accent);
}
.fees-intro {
font-size: 0.95rem;
color: var(--text-body);
max-width: 600px;
line-height: 1.8;
margin-bottom: 2.5rem;
}
.fees-grid {
display: grid;
gap: 1px;
background: var(--border);
}
.fee-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 1rem;
padding: 1rem 1.25rem;
background: var(--bg-primary);
align-items: center;
}
.fee-row.header {
background: var(--bg-secondary);
}
.fee-service {
font-size: 0.9rem;
color: var(--text-primary);
}
.fee-row.header .fee-service {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-secondary);
}
.fee-amount {
font-family: var(--font-serif);
font-size: 1rem;
color: var(--text-primary);
text-align: right;
}
.fee-row.header .fee-amount {
font-family: var(--font-sans);
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-secondary);
}
.fees-note {
margin-top: 2rem;
font-size: 0.8rem;
color: var(--text-secondary);
line-height: 1.7;
}
/* Contact Section */
.contact-section {
background: var(--bg-secondary);
    padding: 5rem 0;
}

/* Hours Table */
.hours-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
}
.hours-table tr {
    border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child {
    border-bottom: none;
}
.hours-table td {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-body);
}
.hours-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}
.hours-table td:last-child {
    text-align: right;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-row {
display: grid;
    grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #c53030;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

/* CAPTCHA Styles */
.captcha-group {
    background: var(--color-surface, #f5f3ef);
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border, #e5e5e5);
}

.captcha-question {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 0.05em;
    border: 1px dashed var(--border, #ddd);
}

.captcha-group input {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.captcha-group label {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666) !important;
}

/* Modal form captcha adjustments */
.modal-form .captcha-group {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.modal-form .captcha-question {
    background: white;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--text-primary);
    cursor: pointer;
}

.form-checkbox label {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.5;
    cursor: pointer;
}

.form-group.form-checkbox {
    margin-bottom: 1.75rem;
}

.form-checkbox .error-message {
    position: absolute;
    top: 100%;
    left: calc(18px + 0.75rem);
    margin-top: 0.25rem;
}

.contact-form .form-checkbox input.error {
    outline: 2px solid #c53030;
    outline-offset: 1px;
}

.contact-form .form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-form .form-success .success-icon {
    width: 80px;
    height: 80px;
    background: #e6f4ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-form .form-success .success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #137333;
}

.contact-form .form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-form .form-success p {
    color: var(--text-body);
    font-size: 1rem;
}

/* Form Result States (Success/Error) */
.form-result {
    text-align: center;
    padding: 3rem 2rem;
}

.form-result.success .result-icon {
    width: 80px;
    height: 80px;
    background: #e6f4ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.form-result.success .result-icon svg {
    width: 40px;
    height: 40px;
    stroke: #137333;
}

.form-result.error .result-icon {
    width: 80px;
    height: 80px;
    background: #fce8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.form-result.error .result-icon svg {
    width: 40px;
    height: 40px;
    stroke: #c53030;
}

.form-result h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-result p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-result .result-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.form-result .result-subtext strong {
    color: var(--text-primary);
}

/* Button Loading State */
.btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Error Message (inline alert) */
.form-error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-error-message svg {
    flex-shrink: 0;
    stroke: #b91c1c;
}

/* Modal Form Result States */
.modal-form .form-result {
    padding: 2rem 1rem;
}

.modal-form .form-result h3 {
    font-size: 1.25rem;
}

.modal-form .form-result p {
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Card phone link */
.card-phone {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    margin: 0.5rem 0;
}

.card-phone:hover {
    text-decoration: underline;
}

.card-hours {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Warning card */
.bio-card-warning {
    background: rgba(197, 48, 48, 0.05);
    border-left: 3px solid #c53030;
}

.bio-card-warning .bio-card-title {
    color: #c53030;
}

/* Turkish text styling */
.turkish-text {
    font-style: italic;
    color: var(--text-secondary);
}

/* Contact Page - Info Blocks */
.contact-info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.contact-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-block h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.contact-info-block p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-large {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 0.25rem !important;
}

.contact-large a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-large a:hover {
    color: var(--color-gold);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Hours Table Compact (Sidebar) */
.hours-table-compact {
    width: 100%;
    font-size: 0.9rem;
}

.hours-table-compact tr {
    border-bottom: 1px solid var(--border);
}

.hours-table-compact tr:last-child {
    border-bottom: none;
}

.hours-table-compact td {
    padding: 0.5rem 0;
}

.hours-table-compact td:first-child {
    color: var(--text-secondary);
}

.hours-table-compact td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--text-primary);
}

/* Legacy Contact Items Grid (kept for backward compatibility) */
.contact-grid {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.contact-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.contact-item h3 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.contact-item p:last-child {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-item a {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* TFL Journey Planner */
.tfl-journey-planner,
.google-maps-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tfl-journey-planner h3,
.google-maps-link h3 {
    margin-bottom: 0.75rem;
}

.btn-tfl {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0019a8 !important;
    color: #ffffff !important;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.btn-tfl:hover {
    background: #001580 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-tfl svg {
    flex-shrink: 0;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.btn-tfl svg circle,
.btn-tfl svg rect {
    stroke: #ffffff !important;
}

.btn-tfl svg rect {
    fill: #ffffff !important;
}

.tfl-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

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

/* Google Maps Container - Grey style */
.map-container-styled {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #f4f3f0;
}

.map-container-styled iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* Location pulse animation */
.hero-illustration .location-pulse,
.map-illustration .location-pulse {
    animation: locationPulse 2s ease-out infinite;
}

.hero-illustration .location-pulse.pulse-1 {
    animation-delay: 0s;
}

.hero-illustration .location-pulse.pulse-2 {
    animation-delay: 0.3s;
}

.hero-illustration .location-pulse.pulse-3 {
    animation-delay: 0.6s;
}

@keyframes locationPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Pin marker bounce */
.hero-illustration .pin-marker {
    animation: pinBounce 2s ease-in-out infinite;
}

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

/* Map-specific styles */
.map-svg .location-tooltip {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.map-svg .location-marker-group:hover .location-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.map-svg .location-marker {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-svg .location-marker-group:hover .location-marker {
    transform: scale(1.1);
}

.map-svg .location-marker-group:hover .marker-glow {
    animation: markerGlowPulse 1s ease-in-out infinite;
}

.map-svg .location-marker-group:hover .pin-marker {
    fill: rgba(255,255,255,0.9);
    animation: pinBounceActive 0.5s ease-in-out infinite;
}

@keyframes markerGlowPulse {
    0%, 100% {
        opacity: 0.8;
        r: 25;
    }
    50% {
        opacity: 1;
        r: 30;
    }
}

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

/* Make tooltip work with CSS hover on SVG */
.map-svg .location-marker-group {
    cursor: pointer;
}

/* Enhance area labels visibility */
.map-svg .area-labels text {
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Road labels styling */
.map-svg .road-labels text {
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info .section-header {
    margin-bottom: 1.5rem;
}

.contact-card {
display: flex;
gap: 1rem;
align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-card:first-of-type {
    padding-top: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
background: var(--bg-primary);
border: 1px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
}
.contact-details h4 {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contact-details p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    font-family: var(--font-serif);
    font-size: 1.05rem;
color: var(--text-primary);
text-decoration: none;
    transition: color 0.3s var(--ease);
}

.contact-details a:hover {
    color: var(--color-gold);
}
.contact-map {
aspect-ratio: 4/3;
    background: #f4f3f0;
overflow: hidden;
}

.contact-map iframe {
width: 100%;
height: 100%;
border: none;
filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.contact-map .map-container-styled {
    width: 100%;
    height: 100%;
    background: #f4f3f0;
}

.contact-map .map-container-styled iframe {
    border: none;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* Published Researches Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.research-item {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.research-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.research-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.research-abstract {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.research-link:hover {
    color: var(--color-text);
}

.research-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Full-width research items for dedicated page */
.research-grid-full {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.research-item-full {
    padding: 2.5rem;
    border-left: 3px solid var(--color-accent);
}

.research-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.research-type {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.research-author {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.research-item-full .research-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.research-item-full .research-abstract {
    -webkit-line-clamp: unset;
    margin-bottom: 1rem;
}

.research-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* CTA Section */
.cta-section {
background: var(--bg-dark);
color: var(--bg-primary);
text-align: center;
}
.cta-section .section-inner {
padding-top: 5rem;
padding-bottom: 5rem;
}
.cta-section .section-title,
.cta-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.cta-intro,
.cta-section p {
font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
line-height: 1.8;
}
.cta-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.cta-section .btn-primary {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: none !important;
}
.cta-section .btn-primary:hover {
    background: rgba(255,255,255,0.9) !important;
    color: var(--text-primary) !important;
}
.cta-section .btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.btn-light {
background: var(--bg-primary);
color: var(--text-primary);
}
.btn-light:hover {
background: var(--accent-light);
color: white;
}
.btn-outline-light {
background: transparent;
color: var(--bg-primary);
border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
border-color: var(--bg-primary);
}
.cta-note {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    max-width: 500px;
margin-left: auto;
margin-right: auto;
}
/* Footer */
footer {
background: var(--bg-dark);
color: rgba(255,255,255,0.5);
padding: 4rem 0 2rem;
border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-main {
display: grid;
gap: 2.5rem;
margin-bottom: 3rem;
/* Uses unified container width above */
}
.footer-brand .logo-name {
color: var(--bg-primary);
}
.footer-brand .logo-title {
    color: rgba(255,255,255,0.5);
}
.footer-brand p {
margin-top: 1.25rem;
font-size: 0.85rem;
line-height: 1.7;
max-width: 280px;
}
.footer-links h4 {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: rgba(255,255,255,0.35);
margin-bottom: 1rem;
}
.footer-links ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.footer-links a {
font-size: 0.85rem;
color: rgba(255,255,255,0.6);
text-decoration: none;
transition: color 0.3s var(--ease);
}
.footer-links a:hover {
color: var(--bg-primary);
}

/* Footer Affiliations */
.footer-affiliations {
margin-top: 1.5rem;
padding-top: 1.25rem;
border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-affiliations h5 {
font-size: 0.6rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.1em;
color: rgba(255,255,255,0.35);
margin-bottom: 0.75rem;
}
.footer-affiliations ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.footer-affiliations li {
font-size: 0.75rem;
color: rgba(255,255,255,0.45);
line-height: 1.5;
}

/* Footer More Link */
.footer-more {
margin-top: 0.25rem;
}
.footer-more a {
color: var(--bg-primary) !important;
font-size: 0.8rem;
font-weight: 500;
opacity: 0.85;
}
.footer-more a:hover {
opacity: 1;
}

.footer-bottom {
padding-top: 2rem;
padding-bottom: 0;
border-top: 1px solid rgba(255,255,255,0.1);
text-align: center;
/* Uses unified container width above */
}
.footer-bottom p {
font-size: 0.75rem;
color: rgba(255,255,255,0.4);
line-height: 1.8;
margin-bottom: 1rem;
}
.footer-legal-links {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.footer-legal-links a {
font-size: 0.7rem;
color: rgba(255,255,255,0.35);
text-decoration: none;
transition: color 0.3s ease;
}
.footer-legal-links a:hover {
color: rgba(255,255,255,0.7);
}

/* Legal Pages Styles */
.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.legal-content address {
    font-style: normal;
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
line-height: 1.8;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-table th {
    background: var(--bg-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}
.legal-table td {
    font-size: 0.9rem;
}
.hero-compact .hero-inner {
    min-height: 35vh;
}
.hero-compact .hero-content {
    padding-top: 6rem;
}
/* Mobile Sticky CTA */
.sticky-cta {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--bg-primary);
border-top: 1px solid var(--border);
padding: 1rem 1.5rem;
z-index: 100;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
transform: translateY(100%);
transition: transform 0.4s var(--ease);
}
.sticky-cta.visible {
transform: translateY(0);
}
.sticky-cta .btn {
padding: 0.75rem 1rem;
font-size: 0.75rem;
}
/* Animations */
.reveal {
opacity: 1;
transform: translateY(0);
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
/* Desktop Styles */
@media (min-width: 768px) {
header {
    padding: 1.5rem 0;
    background: transparent !important;
}
/* Unified container padding for desktop */
.header-inner,
.hero-inner,
.section-inner,
.footer-main,
.footer-bottom {
    padding-left: 3rem;
    padding-right: 3rem;
}
.menu-toggle {
    display: none;
}
.desktop-nav {
    display: flex;
}
section {
    padding: 6rem 0;
}
/* Homepage hero with image */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.hero-content {
    padding: 0;
    order: 1;
}
.hero-image-container {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--bg-dark);
    padding: 2rem 0;
}
.hero-image {
    width: auto;
    height: auto;
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
}
.hero-image-overlay {
    display: none;
}
.hero-cta {
    flex-direction: row;
}
.bio-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
}
.services-grid {
    grid-template-columns: repeat(2, 1fr);
}
.modalities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.modality-item {
    border-bottom: none;
    padding-bottom: 0;
}
.approach-grid {
    grid-template-columns: repeat(2, 1fr);
}
.programmes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.fees-grid {
    max-width: 600px;
}
.contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.cta-buttons {
    flex-direction: row;
    justify-content: center;
}
.footer-main {
    grid-template-columns: 1.6fr 0.8fr 1fr 1fr 0.8fr;
}
.footer-bottom {
    padding-top: 2rem;
    padding-bottom: 0;
}
.sticky-cta {
    display: none;
}
}
@media (min-width: 1024px) {
.hero-content {
    padding: 8rem 0 5rem 0;
}
.hero-name {
    font-size: 3.25rem;
}
.hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
}
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}
.programmes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}
}

/* ==========================================
   Enquiry Modal Styles
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-form {
    padding: 1.5rem 2rem;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-form label .optional {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.7;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-muted);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form validation error states */
.modal-form input.error,
.modal-form textarea.error,
.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
    border-color: #c53030 !important;
    background: #fff5f5;
}

.modal-form input.error:focus,
.modal-form textarea.error:focus,
.contact-form input.error:focus,
.contact-form textarea.error:focus,
.contact-form select.error:focus {
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}

.modal-form .error-message,
.contact-form .error-message {
    display: none;
    font-size: 0.8rem;
    color: #c53030;
    margin-top: 0.4rem;
    padding-left: 0.25rem;
}

.modal-form .error-message.show,
.contact-form .error-message.show {
    display: block;
}

.modal-form .btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.25rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.modal-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-footer a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.modal-footer a:hover {
    color: var(--color-gold);
}

/* Modal success state */
.modal-form.success {
    text-align: center;
    padding: 3rem 2rem;
}

.modal-form.success .success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-form.success .success-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--bg-primary);
}

.modal-form.success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.modal-form.success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .modal-header {
        padding: 2rem 1.5rem 1.25rem;
    }
    
    .modal-form {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   QPAN® & Ecosystem Section
   ============================================= */
.ecosystem-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ecosystem-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ecosystem-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--color-gold);
}

.ecosystem-icon svg {
    width: 100%;
    height: 100%;
}

.ecosystem-item h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ecosystem-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* QPAN Stats */
.qpan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.qpan-stat-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.qpan-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qpan-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .qpan-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .qpan-stat-value {
        font-size: 2.5rem;
    }
}

/* =============================================
   QPAN Page Specific Styles
   ============================================= */

/* QPAN Hero Stats Section */
.qpan-stats-section {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.qpan-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.qpan-hero-stat-value {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.qpan-hero-stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* QPAN Pillars Section */
.qpan-pillars-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 1rem;
    line-height: 1;
}

.pillar-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pillar-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pillar-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pillar-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
}

/* QPAN Areas Section */
.qpan-areas-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

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

.area-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--color-gold);
    transition: transform 0.3s var(--ease);
}

.area-card:hover {
    transform: translateX(4px);
}

.area-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.area-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* QPAN Outcomes Section */
.qpan-outcomes-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.outcome-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.outcome-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.outcome-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.outcome-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.outcomes-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* QPAN Hero Illustration */
.qpan-hero-illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 450px;
    opacity: 0.6;
    pointer-events: none;
}

.qpan-hero-illustration svg {
    width: 100%;
    height: auto;
}

/* QPAN Page Responsive */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qpan-hero-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .qpan-hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qpan-hero-stat-value {
        font-size: 3rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .outcome-value {
        font-size: 2.5rem;
    }
    
    .pillar-card {
        padding: 1.5rem;
    }
    
    .pillar-number {
        font-size: 2rem;
    }
}

/* =============================================
   Published Author / Book Section
   ============================================= */
.book-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.book-image {
    position: relative;
}

.book-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.book-image:hover img {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(0, 0, 0, 0.2);
}

.book-content .section-label {
    color: var(--color-gold);
}

.book-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.book-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.book-formats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.format-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .book-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .book-image {
        display: flex;
        justify-content: center;
    }
    
    .book-image img {
        max-width: 280px;
    }
    
    .book-formats {
        justify-content: center;
    }
    
    .book-content .btn {
        display: inline-block;
    }
}

/* Book card in biography sidebar */
.book-card {
    text-align: center;
    padding: 1.5rem !important;
}

.book-cover-small {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    transition: transform 0.3s var(--ease);
}

.book-card:hover .book-cover-small {
    transform: translateY(-4px);
}

.book-author-credit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.book-formats-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.book-formats-small span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.book-cta-inline {
    margin-top: 1.5rem;
}

.book-feature-section {
    background: var(--bg-secondary);
}

/* =============================================
   Remote Treatment Pioneer Section
   ============================================= */
.remote-section {
    background: var(--bg-dark);
    padding: 5rem 0;
    color: #ffffff;
}

.remote-section .section-label {
    color: var(--color-gold);
}

.remote-section .section-title {
    color: #ffffff;
}

.remote-section .section-intro {
    color: rgba(255, 255, 255, 0.85);
}

.remote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.remote-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.remote-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
}

.remote-stat {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.remote-item h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.remote-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .remote-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .remote-stat {
        font-size: 2.5rem;
    }
}

/* =============================================
   Oxford Seminar Section
   ============================================= */
.seminar-section {
    background: var(--bg-dark);
    padding: 5rem 0;
    color: #ffffff;
}

.seminar-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.seminar-content .section-label {
    color: var(--color-gold);
}

.seminar-content .section-title {
    color: #ffffff;
}

.seminar-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.seminar-speakers {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 3px solid var(--color-gold);
}

.seminar-speakers h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.seminar-speakers ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seminar-speakers li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seminar-speakers li:last-child {
    border-bottom: none;
}

.seminar-speakers li strong {
    color: #ffffff;
}

.seminar-note {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.seminar-image {
    position: relative;
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.15) 0%, rgba(28, 28, 28, 0.9) 100%);
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.seminar-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.85;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.seminar-image:hover .seminar-photo {
    opacity: 1;
    transform: scale(1.02);
}

.seminar-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.seminar-badge {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.seminar-location {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.seminar-topic {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .seminar-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .seminar-image {
        min-height: 200px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-consent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent p {
    font-size: 0.85rem;
    color: var(--text-body);
    margin: 0;
    flex: 1;
    min-width: 280px;
}

.cookie-consent p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   MEDIA / VIDEO PAGE STYLES
======================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.video-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-dark);
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
    margin-left: 4px;
}

.video-card:hover .video-play-btn {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail.playing {
    cursor: default;
}

.video-thumbnail.playing .video-play-btn {
    display: none;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.video-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Video loading state */
.video-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-loading p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Video error state */
.video-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.video-error p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Video CTA */
.video-cta {
    margin-top: 3rem;
    text-align: center;
}

.video-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-large svg {
    flex-shrink: 0;
}

/* ========================================
   EXPERT WITNESS SECTION
======================================== */

.expert-witness-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.expert-witness-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (max-width: 1024px) {
    .expert-witness-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.expert-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.expert-card-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.expert-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.expert-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.expert-card p:last-child {
    margin-bottom: 0;
}

.expert-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-card ul li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.expert-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.expert-cta {
    text-align: center;
    margin-top: 2.5rem;
}
