/* Ryan McConnell Psychology Theme - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0081cf;
    --secondary-blue: #0089ba;
    --tertiary-blue: #008e9b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-white: #ffffff;
    --background-light: #fafbfc;
    --border-light: #e8ecef;
    --shadow-light: rgba(0, 129, 207, 0.08);
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

span.ryan {
    color: rgb(91, 91, 222);
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: rgb(91, 91, 222);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-style: solid;
    font-family: 'Times New Roman', Times, serif;
}

/* Navbar brand hover animation */
.nav-brand h1 {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-brand h1 a {
    position: relative;
    display: inline-block;
}

.nav-brand h1 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgb(91, 91, 222);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.nav-brand h1 a:hover::after {
    width: 100%;
}

.nav-brand h1 a:hover span.ryan {
    text-decoration: none;
}

body {
    background: #F9F8FD;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    transition: opacity 0.3s ease;
    overflow-x: hidden;
}

/* Overlay when mobile nav is open (drawer background dim) */
/* removed temporary overlay */


/* Loading State */
body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
}

/* Page Transition Effects */
.page-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-transition.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Focus States */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* Preload Critical Elements */
.hero, .section {
    will-change: transform, opacity;
}

/* Optimize Animation Performance */
.therapy-card, .condition-item, .type-card, .faq-item,
.nav-link, .cta-button, .ryan-image img {
    will-change: transform;
    transform: translateZ(0);
}

/* Hardware Acceleration for Smooth Animations */
.nav-menu, .dropdown-content, .video-background, .ryan-image img,
.therapy-card, .condition-item, .type-card, .faq-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.emphasis {
    font-weight: 500;
    color: var(--primary-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

/* Force navbar to stay static - override any JavaScript transforms */
.new-nav[style*="transform"] {
    transform: translateX(-50%) !important;
}

.new-nav[style*="translateX"] {
    transform: translateX(-50%) !important;
}

/* Prevent any movement from transitions or animations */
.new-nav,
.new-nav * {
    transition: none !important;
    animation: none !important;
    transform-origin: center !important;
}

/* Lock navbar position completely - override any external scripts */
.new-nav {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 1200px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(40px) !important;
    z-index: 1000 !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: none !important;
    padding: 0 !important;
    margin: 0 !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    perspective: none !important;
}

/* Prevent any scroll-based positioning changes */
body.scrolled .new-nav,
html.scrolled .new-nav,
.new-nav.scrolled {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}


.nav-menu-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 2rem;
    list-style: none;
    margin: 0;
    width: 100%;
}

.nav-menu-desktop li {
    display: inline-block;
    margin: 0 0.5rem;
}

.nav-menu-desktop li:first-child {
    margin-left: 0;
}

.nav-menu-desktop a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.nav-menu-desktop a:hover {
    background: rgba(0, 129, 207, 0.1);
    color: var(--primary-blue);
}

.nav-menu-desktop a:active {
    transform: none;
    background: none;
}

.nav-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.has-dropdown:hover > a::after {
    opacity: 1;
    transform: rotate(180deg);
}

.has-dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 1rem 0;
    z-index: 1000;
    display: none;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.has-dropdown:hover ul,
.has-dropdown.open ul,
.has-dropdown ul:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.has-dropdown ul li {
    margin: 0;
}

.has-dropdown ul a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 0.75rem;
    transition: all 0.3s ease;
    line-height: 1.4;
    text-decoration: none;
    position: relative;
}

.has-dropdown ul a:hover {
    color: var(--primary-blue);
}

.has-dropdown ul a:hover::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.has-dropdown ul a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Special styling for Case Examples dropdown */
.has-dropdown:has(a[href*="case-examples"]) ul {
    min-width: 350px;
    max-width: 450px;
}

.has-dropdown:has(a[href*="case-examples"]) ul li {
    border-bottom: 1px solid rgba(0, 129, 207, 0.1);
    margin: 0;
}

.has-dropdown:has(a[href*="case-examples"]) ul li:last-child {
    border-bottom: none;
}

.has-dropdown:has(a[href*="case-examples"]) ul a {
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.2rem 0;
    position: relative;
}

.has-dropdown:has(a[href*="case-examples"]) ul a:hover::after {
    display: none;
}

.has-dropdown:has(a[href*="case-examples"]) ul a::after {
    display: none;
}

/* Special styling for Therapies dropdown */
.has-dropdown:has(a[href*="#therapies"]) ul {
    min-width: 320px;
    max-width: 380px;
}

.has-dropdown:has(a[href*="#therapies"]) ul li {
    border-bottom: 1px solid rgba(0, 129, 207, 0.1);
    margin: 0;
    display: block;
    width: 100%;
}

.has-dropdown:has(a[href*="#therapies"]) ul li:last-child {
    border-bottom: none;
}

.has-dropdown:has(a[href*="#therapies"]) ul a {
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.2rem 0;
    position: relative;
}

.has-dropdown:has(a[href*="#therapies"]) ul a:hover::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    right: auto;
    width: auto;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.has-dropdown:has(a[href*="#therapies"]) ul a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    right: auto;
    width: auto;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 2rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu-mobile {
    display: none;
    position: fixed;
    top: var(--nav-bottom, 100px); /* attach to navbar bottom when JS sets var */
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100% - 40px);
    max-width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.5rem 0 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    list-style: none;
    margin: 0;
    z-index: 2000;
    opacity: 0;
    transform: translate(-50%, -8px);
    visibility: hidden;
    overflow-y: auto;
    height: auto;
    max-height: calc(100vh - 140px);
}

.mobile-close-item {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1rem 0 1rem;
}

.mobile-menu-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-close:active {
    transform: scale(0.98);
}

.nav-menu-mobile.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.nav-menu-mobile li {
    margin: 0;
    width: 100%;
}

.nav-menu-mobile a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
    border-radius: 15px;
}

.nav-menu-mobile a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

.nav-menu-mobile a:active {
    transform: none;
    background: none;
}

.nav-menu-mobile .has-dropdown ul {
    position: static;
    display: none;
    background: var(--background-light);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
}

.nav-menu-mobile .has-dropdown.open ul {
    display: block;
}

.nav-menu-mobile .has-dropdown ul a {
    padding: 0.75rem 3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-menu-mobile .has-dropdown ul a:hover {
    color: var(--primary-blue);
}

.nav-menu-mobile .has-dropdown ul a:active {
    transform: none;
    background: none;
}

.nav-menu-mobile .has-dropdown ul a:hover::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-menu-mobile .has-dropdown ul a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Switch navbar to mobile layout at <=1200px */
@media (max-width: 1200px) {
    .new-nav {
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        border-radius: 20px !important;
        position: fixed !important;
    }

    .nav-menu-desktop {
        display: none;
    }

    .mobile-nav-header {
        display: flex;
        border-radius: 20px;
    }

    /* Make mobile nav container available at this breakpoint */
    .nav-menu-mobile {
        display: flex;
    }
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateZ(0);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.nav-link:hover::after {
    width: 0%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: transparent;
    color: white;
    padding: 8rem 0 6rem;
    padding-top: calc(6rem + 120px);
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page: make hero full viewport */
body.home-page .hero {
    min-height: 100vh;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-spinner.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 129, 207, 0.1);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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




/* Video Background - Hero Section Only */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.0);
    opacity: 0.7;
    object-fit: cover;
    filter: blur(0.5px);
    will-change: opacity;
    pointer-events: none;
}

/* Ensure video background extends behind navbar */

/* Image Background - About Page Hero */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
    filter: blur(1px);
    transform: scale(1.1);
}

/* About page hero specific styling - removed */

/* About Page Content Layout */
.about-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-credentials-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-credentials-list h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.about-credentials-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.about-credentials-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Practice Section Layout */
.practice-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    justify-items: center;
}

.practice-video-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ryan-video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.practice-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.practice-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.practice-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Height will be set dynamically to match image */
    padding: 1rem;
    box-sizing: border-box;
}

.practice-content-column .lead {
    text-align: center;
    margin-bottom: 0;
    width: 100%;
}

.about-image-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ryan-image {
    position: relative;
    width: 100%;
    max-width: 280px; /* 30% smaller than 400px */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.ryan-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
    max-width: 100%;
    object-fit: cover;
}

.ryan-image:hover img {
    transform: scale(1.02);
}



/* Mobile responsive for Practice and About layout */
@media (max-width: 768px) {
    .practice-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .practice-content-column .lead {
        text-align: center;
    }
    
    .about-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .about-image-section {
        order: -1; /* Image on top for mobile */
        margin-bottom: 1rem;
    }
    
    .about-credentials-list {
        padding: 1.5rem;
    }
    
    .ryan-image {
        max-width: 210px; /* 30% smaller than 300px */
    }
}

/* FAQ Page Styles */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 129, 207, 0.05), rgba(0, 137, 186, 0.05));
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(0, 129, 207, 0.08), rgba(0, 137, 186, 0.08));
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .faq-question::after {
        right: 1.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .video-background {
        display: none;
    }
    
    .image-background img {
        transform: scale(1.0);
        filter: none;
    }
    
    .ryan-image:hover img {
        transform: none;
    }
    
    .faq-item {
        transition: none;
    }
    
    .faq-question {
        transition: none;
    }
    
    .faq-question::after {
        transition: none;
    }
    
    .faq-item.active .faq-question::after {
        transform: translateY(-50%);
    }
    
    .section {
        background-color: var(--background-white);
        backdrop-filter: none;
    }

    .section-alt {
        background-color: var(--background-light);
        backdrop-filter: none;
    }

    .hero {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--tertiary-blue) 100%);
        backdrop-filter: none;
        padding-top: calc(8rem + 80px);
    }
    
    .hero-title {
        text-shadow: none;
    }
    
    .hero-subtitle {
        text-shadow: none;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1px);
}

.section-alt {
    background-color: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(1px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    margin: 0 auto;
}

/* Content */
.content {
    max-width: 900px;
    margin: 0 auto;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--border-light);
    margin: 2.5rem 0;
}

/* Issues Grid */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.issues-column ul {
    list-style: none;
    padding: 0;
}

.issues-column li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1.5rem;
}

.issues-column li:last-child {
    border-bottom: none;
}

.issues-column li::before {
    content: '•';
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Therapies Grid */
.therapies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Smaller desktop: 3 columns (results in 3 + 2 layout for 5 cards) */
@media (max-width: 1550px) {
    .therapies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet landscape and below: 2 columns */
@media (max-width: 1050px) {
    .therapies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.therapy-card {
    width: 16.8rem;
    height: 25.2rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    color: white;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.therapy-card img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
    transition: opacity .2s ease-out;
}

.therapy-card h3 {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-align: center;
    width: 90%;
}

.therapy-card p {
    position: absolute;
    opacity: 0;
    max-width: 85%;
    width: 85%;
    transition: opacity .3s ease-out;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
    text-align: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.therapy-card a {
    position: absolute;
    opacity: 0;
    transition: opacity .3s ease-out;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.46rem 0.91rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    white-space: nowrap;
}

/* Removed title animation - title stays at top */

.therapy-card:hover p, 
.therapy-card:hover a {
    opacity: 1;
    transition: opacity .5s .1s ease-in;
}

.therapy-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.therapy-card:hover img {
    transition: opacity .3s ease-in;
    opacity: 1;
}

.therapy-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.therapy-card:hover::after {
    opacity: 1;
}

/* Therapy Approach Cards (Therapeutic Approaches Section) */
.therapy-approach-card {
    width: 16.8rem;
    height: 25.2rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    color: white;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.therapy-approach-card img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
    transition: opacity .2s ease-out;
}

.therapy-approach-card h3 {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-align: center;
    width: 90%;
}

.therapy-approach-card p {
    position: absolute;
    opacity: 0;
    transition: opacity .3s ease-out;
    color: white;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    box-sizing: border-box;
    width: calc(100% - 1.2rem);
    height: calc(100% - 1.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.therapy-approach-card a {
    position: absolute;
    opacity: 0;
    transition: opacity .3s ease-out;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.46rem 0.91rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    white-space: nowrap;
}

.therapy-approach-card:hover p, 
.therapy-approach-card:hover a {
    opacity: 1;
    transition: opacity .5s .1s ease-in;
}

.therapy-approach-card:hover img {
    transition: opacity .3s ease-in;
    opacity: 1;
}

.therapy-approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Removed full overlay - using text background instead */

/* Practice Card Styles */
.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 129, 207, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 129, 207, 0.15);
    border-color: rgba(0, 129, 207, 0.2);
}

.practice-card .lead {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.practice-card .lead:last-of-type {
    margin-bottom: 0;
}

/* Removed old learn-more-link styles - now using .therapy-card a */



/* Case Layout with Sidebar */
.case-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.case-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 0;
    border-right: 1px solid #e9ecef;
}

.case-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.case-nav-link:hover {
    background: #e9ecef;
    color: var(--primary-blue);
}

.case-nav-link.active {
    background: var(--primary-blue);
    color: white;
    font-weight: 500;
}

.case-content {
    flex: 1;
    padding: 2rem;
}

.case-session {
    display: none;
}

.case-session.active {
    display: block;
}

.case-title {
    color: #87CEEB;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-container {
        flex-direction: column;
        margin: 1rem;
    }
    
    .case-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .case-nav-link {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #e9ecef;
    }
    
    .case-content {
        padding: 1.5rem;
    }
}

/* Contact Section */
#contact .content {
    text-align: center;
}

#contact .content p {
    text-align: center;
}

.contact-info {
    text-align: center;
    margin: 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.email-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
}

.email-link:hover {
    color: var(--secondary-blue);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 129, 207, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 129, 207, 0.2);
    border: none;
    cursor: pointer;
}

.cta-section .btn:hover {
    background: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 129, 207, 0.3);
}

.cta-section .btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

.footer p {
    margin: 0;
    text-align: center;
}

/* Footer Name with Curved Line */
.footer-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-name-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.name-text {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.name-underline {
    width: 80px;
    height: 2px;
    background: black;
    border-radius: 50px;
    position: relative;
    margin-bottom: 0.5rem;
}

.name-underline::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: black;
    border-radius: 50%;
    opacity: 0.8;
}

.name-underline::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: black;
    border-radius: 50%;
    opacity: 0.6;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .new-nav {
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 20px) !important;
        border-radius: 20px !important;
        position: fixed !important;
        backdrop-filter: blur(35px);
    }
    
    .nav-menu-desktop {
        display: none;
    }
    
    .mobile-nav-header {
        display: flex;
        border-radius: 20px;
    }
    
    .nav-menu-mobile {
        display: flex;
    }

    .hero {
        padding: 6rem 0 4rem;
        padding-top: calc(6rem + 100px);
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
        backdrop-filter: blur(35px);
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .therapies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .therapy-card {
        width: 100%;
        max-width: 16.8rem;
        margin: 0 auto;
    }
    
    .therapy-approach-card {
        width: 100%;
        max-width: 16.8rem;
        margin: 0 auto;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-card {
        margin-bottom: 2rem;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .therapy-card a {
        font-size: 0.85rem;
    }

    .issues-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .therapy-card {
        height: 22.4rem;
    }
    
    .therapy-card h3 {
        font-size: 1.25rem;
    }
    
    .therapy-card p {
        font-size: 0.85rem;
    }
    
    .therapy-approach-card {
        height: 22.4rem;
    }
    
    .therapy-approach-card h3 {
        font-size: 1.25rem;
    }
    
    .therapy-approach-card p {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Smooth Scrolling Animation */
@media (prefers-reduced-motion: no-preference) {
    .therapy-card,
    .issues-column li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.3s ease forwards;
    }

    .therapy-card:nth-child(1) { animation-delay: 0.05s; }
    .therapy-card:nth-child(2) { animation-delay: 0.1s; }
    .therapy-card:nth-child(3) { animation-delay: 0.15s; }
    .therapy-card:nth-child(4) { animation-delay: 0.2s; }
    .therapy-card:nth-child(5) { animation-delay: 0.25s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
  0% {
    top: -50px;
  }
  40% {
    top: 20px;
  }
  70% {
    top: 10px;
  }
  100% {
    top: 15px;
  }
}

/* Hidden Secret Message Styling */
.secret-message {
    color: transparent;
    user-select: none;
    font-size: 0.1px;
    position: absolute;
    left: -9999px;
}

/* Accessibility - Consolidated in bottom section */

/* Focus states for accessibility */
.nav-link:focus,
.cta-button:focus,
.email-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Case Studies Styles */
.case-study {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-light);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-study-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 129, 207, 0.1);
    position: relative;
    overflow: hidden;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.case-study-card:hover::before {
    transform: scaleX(1);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 129, 207, 0.15);
    border-color: rgba(0, 129, 207, 0.2);
}

.case-study-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.25rem;
}

.case-study-content p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.case-study-content .learn-more-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: auto;
    min-width: 120px;
    box-sizing: border-box;
    border: 1.5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    align-self: center;
}

.case-study-content .learn-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.case-study-content .learn-more-link:hover::before {
    left: 0;
}

.case-study-content .learn-more-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 129, 207, 0.25);
    border-color: var(--primary-blue);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
    font-style: italic;
}

.no-posts p {
    margin: 0;
    font-size: 1.1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 129, 207, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 129, 207, 0.15);
    border-color: rgba(0, 129, 207, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 2rem;
}

.blog-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--secondary-blue);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-date {
    font-weight: 500;
}

.blog-category a {
    color: var(--primary-blue);
    text-decoration: none;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination .current {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.search-query {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 129, 207, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.search-result-item:hover::before {
    transform: scaleX(1);
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 129, 207, 0.15);
    border-color: rgba(0, 129, 207, 0.2);
}

.search-result-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-result-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: var(--secondary-blue);
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-result-type {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.search-result-date {
    font-weight: 500;
}

.search-result-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--background-light);
    border-radius: 12px;
    margin-top: 2rem;
}

.no-results h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-section {
    max-width: 400px;
    margin: 0 auto;
}

.search-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.search-section form {
    display: flex;
    gap: 0.5rem;
}

.search-section input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
}

.search-section input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-section input[type="submit"]:hover {
    background: var(--secondary-blue);
}

/* Search Form */
.search-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-form-wrapper {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 129, 207, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form-wrapper:focus-within {
    box-shadow: 0 4px 25px rgba(0, 129, 207, 0.15);
    border-color: var(--primary-blue);
}

.search-label {
    flex: 1;
    margin: 0;
}

.search-field {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.search-field::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.search-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

.search-submit:active {
    transform: translateY(0);
}

.search-submit svg {
    flex-shrink: 0;
}

.search-submit-text {
    font-size: 0.9rem;
}

/* Mobile Search Form */
@media (max-width: 768px) {
    .search-form {
        max-width: 100%;
    }
    
    .search-form-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .search-field {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 129, 207, 0.1);
    }
    
    .search-submit {
        justify-content: center;
        padding: 1rem;
    }
    
    .search-submit-text {
        display: none;
    }
}

/* Single Case Study */
.case-study-content {
    margin-bottom: 3rem;
}

.case-study-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.case-study-image:hover img {
    transform: scale(1.02);
}

.case-study-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.case-study-text h2,
.case-study-text h3,
.case-study-text h4 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.case-study-text h2 {
    font-size: 1.5rem;
}

.case-study-text h3 {
    font-size: 1.3rem;
}

.case-study-text h4 {
    font-size: 1.2rem;
}

.case-study-text p {
    margin-bottom: 1.5rem;
}

.case-study-text ul,
.case-study-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.case-study-text li {
    margin-bottom: 0.5rem;
}

.case-study-text blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Case Study Navigation */
.case-study-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 129, 207, 0.3);
}

.nav-previous a:active,
.nav-next a:active {
    transform: translateY(0);
}

/* Mobile Case Study Navigation */
@media (max-width: 768px) {
    .case-study-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
        width: 100%;
    }
    
    .nav-previous a,
    .nav-next a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.case-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.case-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.case-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-light);
}

.case-meta span {
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.case-content {
    max-width: 900px;
    margin: 0 auto;
}

.case-section {
    margin-bottom: 2rem;
}

.case-section h3 {
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Single Therapy Service */
.therapy-service-content {
    margin-bottom: 3rem;
}

.therapy-service-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.therapy-service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.therapy-service-image:hover img {
    transform: scale(1.02);
}

.therapy-service-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.therapy-service-text h2,
.therapy-service-text h3,
.therapy-service-text h4 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.therapy-service-text h2 {
    font-size: 1.5rem;
}

.therapy-service-text h3 {
    font-size: 1.3rem;
}

.therapy-service-text h4 {
    font-size: 1.2rem;
}

.therapy-service-text p {
    margin-bottom: 1.5rem;
}

.therapy-service-text ul,
.therapy-service-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.therapy-service-text li {
    margin-bottom: 0.5rem;
}

.therapy-service-text blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.therapy-service-actions {
    text-align: center;
    margin: 2rem 0;
}

.therapy-service-actions .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 129, 207, 0.2);
}

.therapy-service-actions .btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 129, 207, 0.3);
}

.therapy-service-actions .btn:active {
    transform: translateY(0);
}

/* Therapy Service Navigation */
.therapy-service-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
}

/* Mobile Therapy Service */
@media (max-width: 768px) {
    .therapy-service-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
        width: 100%;
    }
    
    .nav-previous a,
    .nav-next a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.case-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.case-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1.5rem;
}

.case-list li:last-child {
    border-bottom: none;
}

.case-list li::before {
    content: '→';
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Timeline Styles */
.progress-timeline {
    position: relative;
    margin: 2rem 0;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--tertiary-blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 75px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 55px;
    height: 55px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
}

.timeline-content {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}

.timeline-content p {
    margin: 0;
    text-align: left;
}

/* Milestone Grid */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.milestone {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
}

.milestone h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.milestone p {
    margin: 0;
    font-size: 0.95rem;
    text-align: left;
}

/* Success Factors */
.success-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.factor-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
}

.factor-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.factor-card p {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
}

/* Mobile Responsive for Case Studies */
@media (max-width: 768px) {
    .case-study {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

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

    .case-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .timeline-item {
        padding-left: 65px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .progress-timeline::before {
        left: 24px;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
    }

    .success-factors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .case-study {
        padding: 1.5rem 1rem;
    }

    .case-title {
        font-size: 1.5rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 45px;
        height: 45px;
        font-size: 0.65rem;
    }

    .progress-timeline::before {
        left: 22px;
    }

    .factor-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .cta-button {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        background: white;
        color: black;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .case-study {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        background: white;
        color: black;
        border: 2px solid black;
        width: 55px;
        height: 55px;
    }
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    top: 100%;
    left: 0;
    border: 1px solid var(--border-light);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--background-light);
    color: var(--primary-blue);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Therapy Page Specific Styles */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.condition-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.condition-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.condition-item p {
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Expectations Timeline */
.expectations-timeline {
    margin: 2rem 0;
}

.expectation-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.expectation-number {
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.expectation-content h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.expectation-content p {
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 129, 207, 0.05), rgba(0, 142, 155, 0.05));
    border-left: 4px solid var(--primary-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.highlight-box p {
    margin: 0;
    text-align: left;
}

/* Therapy Types Grid */
.therapy-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.type-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-2px);
}

.type-card h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.type-card p {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
}

/* Nutrition Benefits */
.nutrition-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--tertiary-blue);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.benefit-item h4 {
    color: var(--tertiary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.benefit-item p {
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
}

/* Video Section */
.video-section {
    margin: 3rem 0;
}

.video-placeholder {
    background: var(--background-light);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
}

.video-content h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.video-content p {
    margin: 0.5rem 0;
    text-align: center;
}

.video-content em {
    color: var(--text-light);
    font-style: italic;
}

/* Mobile Responsive for Therapy Pages */
@media (max-width: 768px) {
    .video-background {
        display: none;
    }
    .nav-dropdown {
        position: static;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--background-light);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-light);
        margin-top: 0.5rem;
    }

    .nav-dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .condition-item {
        padding: 1.5rem;
    }

    .expectation-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .expectation-content {
        text-align: center;
    }

    .expectation-content p {
        text-align: center;
    }

    .therapy-types {
        grid-template-columns: 1fr;
    }

    .nutrition-benefits {
        grid-template-columns: 1fr;
    }

    .highlight-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .condition-item {
        padding: 1.25rem;
    }

    .expectation-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .type-card {
        padding: 1.25rem;
    }

    .benefit-item {
        padding: 1.25rem;
    }

    .video-placeholder {
        padding: 1.5rem;
    }


    .section {
        background-color: var(--background-white);
        backdrop-filter: none;
    }

    .section-alt {
        background-color: var(--background-light);
        backdrop-filter: none;
    }

    .hero {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--tertiary-blue) 100%);
        backdrop-filter: none;
        padding-top: calc(8rem + 80px);
    }
    
    .hero-title {
        text-shadow: none;
    }
    
    .hero-subtitle {
        text-shadow: none;
    }
} 
/* CBT Page Specific Styles */
.cbt-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.cbt-conditions-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cbt-conditions-list h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cbt-conditions-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.cbt-conditions-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.cbt-video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-embed {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--background-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 129, 207, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    border: 4px solid var(--primary-blue);
    position: relative;
}

.video-embed::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue), var(--primary-blue));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.8;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Mobile responsive for CBT layout */
@media (max-width: 768px) {
    .cbt-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .cbt-video-section {
        order: -1; /* Video on top for mobile */
        margin-bottom: 1rem;
    }
    
    .cbt-conditions-list {
        padding: 1.5rem;
    }
    
    .video-embed {
        max-width: 100%;
    }
}

/* BWRT Page Specific Styles */
.bwrt-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.bwrt-conditions-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bwrt-conditions-list h3 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.bwrt-conditions-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.bwrt-conditions-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.bwrt-video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive for BWRT layout */
@media (max-width: 768px) {
    .bwrt-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .bwrt-video-section {
        order: -1; /* Video on top for mobile */
        margin-bottom: 1rem;
    }
    
    .bwrt-conditions-list {
        padding: 1.5rem;
    }
}

/* Physical Fitness Page Specific Styles */
.fitness-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.fitness-benefits-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fitness-benefits-list h3 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.fitness-benefits-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.fitness-benefits-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.fitness-video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive for Physical Fitness layout */
@media (max-width: 768px) {
    .fitness-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .fitness-video-section {
        order: -1; /* Video on top for mobile */
        margin-bottom: 1rem;
    }
    
    .fitness-benefits-list {
        padding: 1.5rem;
    }
}

/* Diet Page Specific Styles */
.diet-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.diet-nutrition-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.diet-nutrition-list h3 {
    color: #008e9b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.diet-nutrition-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.diet-nutrition-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.diet-video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive for Diet layout */
@media (max-width: 768px) {
    .diet-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .diet-video-section {
        order: -1; /* Video on top for mobile */
        margin-bottom: 1rem;
    }
    
    .diet-nutrition-list {
        padding: 1.5rem;
    }
}

/* Breathwork Page Specific Styles */
.breathwork-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.breathwork-benefits-list {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breathwork-benefits-list h3 {
    color: #0089ba;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.breathwork-benefits-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.breathwork-benefits-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.breathwork-video-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    background-color: rgba(0, 129, 207, 0.1);
    border: 2px dashed var(--primary-blue);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 450px;
    height: 253px; /* 16:9 aspect ratio equivalent */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder p {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin: 0;
}

/* Mobile responsive for Breathwork layout */
@media (max-width: 768px) {
    .breathwork-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .breathwork-video-section {
        order: -1; /* Video on top for mobile */
        margin-bottom: 1rem;
    }
    
    .breathwork-benefits-list {
        padding: 1.5rem;
    }
    
    .video-placeholder {
        height: 200px;
        padding: 2rem 1rem;
    }
}

/* Enhanced Performance and Smoothness */
/* Removed section hover effects for better performance on large elements */

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
    transform: translateZ(0); /* Hardware acceleration */
}

img[data-loaded="false"] {
    opacity: 0;
}

img[data-loaded="true"] {
    opacity: 1;
}

/* Enhanced scroll indicators */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section.animate-in::before {
    opacity: 0.3;
}

/* Performance optimizations */
* {
    will-change: auto;
}

.cta-button, .nav-link, .ryan-image img, .video-background video {
    will-change: transform;
}

/* Comprehensive Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        will-change: auto !important; /* Remove will-change for better performance */
    }
    
    .page-transition {
        transition: none !important;
    }
    
    .loading-spinner {
        display: none !important;
    }
    
    /* Disable hover effects for better performance */
    .therapy-card:hover,
    .condition-item:hover,
    .type-card:hover,
    .nav-link:hover {
        transform: none !important;
    }
    
    .therapy-card:hover .therapy-icon {
        transform: scale(1.05) !important;
        filter: none !important;
    }
}