/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00c8ff;
    --secondary: #7b2dff;
    --accent: #ff2d7b;
    --dark: #0a0e17;
    --darker: #030609;
    --light: #f8fbff;
    --gray: #7a8da9;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', 'Arial Narrow', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --membrane-medium: rgba(123, 45, 255, 0.3);
    --hover-blueish-black: rgba(3, 6, 9, 0.95);
    --white: #ffffff;
    --glow: 0 0 15px rgba(0, 200, 255, 0.5);
    --clinic-teal: #00e6c3;
    --clinic-teal-dark: #00b39d;
    --clinic-teal-light: #00f7d6;
}

/* ===== ENHANCED CONTAINER GLOW EFFECTS ===== */
.treatments-carousel, .search-bar input, 
#cookie-banner,
.cookie-item, .cookie-list, .popup-header, .popup-actions {
    box-shadow: 0 0 6px rgba(123, 45, 255, 0.15), 0 0 10px rgba(0, 200, 255, 0.1);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0, 100, 255, 0.4);
    border-radius: var(--border-radius);
}

.main-container:hover, .treatments-carousel:hover {
    box-shadow: 0 0 10px rgba(123, 45, 255, 0.25), 0 0 15px rgba(0, 200, 255, 0.15);
    border-color: rgba(0, 150, 255, 0.7);
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.technical {
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
}

.layman {
    color: var(--gray);
}

.lazy-load-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f5f5f5;
}

img[data-src] {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

img.lazyloaded {
    opacity: 1;
}

.info-text {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.5;
    z-index: 10;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.desktop-content-container {
    display: none;
}

/* ===== SECTION HEADER ===== */
.section-header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 0.5rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    box-sizing: border-box;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
    padding-bottom: 6px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    padding: 0 0.5rem;
}

/* ===== HERO SECTIONS ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: #0a3d62;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 14, 23, 0.3) 0%, var(--darker) 70%);
    z-index: 0;
}

.hero-container {
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.title-part {
    display: block;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 200, 255, 0.3);
    z-index: -1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-section {
    margin-top: 0;
    padding-top: 40px;
}

/* ===== IMAGE HOLDER COMPONENTS ===== */
.image-holders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-holder {
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--membrane-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    width: 100%;
    margin: 0;
    padding: 0;
}

.image-holder:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 200, 255, 0.3);
    background: var(--hover-blueish-black);
}

.image-holder__media {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.image-holder__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition);
}

.image-holder:hover .image-holder__img {
    filter: grayscale(0%) contrast(120%);
    transform: scale(1.05);
}

.image-holder__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    margin: 0;
}

.image-holder__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    position: relative;
    padding: 0;
}

.image-holder__title:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #4FD1C5;
    margin: 8px auto 0;
}

.image-holder__title:hover {
    color: #4C51BF;
    transition: 0.2s;
}

.image-holder__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    padding: 0;
}

/* ===== CONDITION LINKS STYLES ===== */
.condition-links {
    margin-bottom: 15px;
    background: rgba(6, 5, 17, 0.3);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(37, 45, 205, 0.2);
}

.condition-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-sm);
    background: rgba(9, 3, 73, 0.3);
    transition: var(--transition);
    border-left: 3px solid var(--clinic-teal);
}

.condition-item:hover {
    background: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateX(5px);
}

.condition-item a {
    display: block;
    text-decoration: none;
    color: var(--clinic-teal-light);
    font-weight: 500;
    font-family: var(--font-main);
    transition: var(--transition);
}

.condition-item a:hover {
    color: var(--white);
}

.condition-item span {
    float: right;
    color: var(--clinic-teal);
    font-weight: 600;
}

/* ===== MSC BENEFITS GRID SECTION ===== */
.msc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.25rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0;
}

.msc-card {
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid var(--membrane-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0;
}

.msc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
    background-color: var(--hover-blueish-black);
}

.msc-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 200, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.msc-card:hover .msc-icon {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.1);
}

.msc-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.msc-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.msc-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.msc-link:hover {
    gap: 0.5rem;
    background: rgba(0, 200, 255, 0.1);
}

.benefit-list {
    text-align: left;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    list-style: none;
    padding-left: 0;
}

.benefit-list li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.3;
}

.benefit-list li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* ===== THERAPY INTEGRATION SECTION ===== */
.therapy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.25rem;
    padding: 0;
}

.therapy-card {
    padding: 1.25rem;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--membrane-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
}

.therapy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--hover-blueish-black);
}

.therapy-card.physical {
    border-color: rgba(255, 45, 123, 0.3);
}

.therapy-card.occupational {
    border-color: rgba(0, 200, 255, 0.3);
}

.therapy-card.speech {
    border-color: rgba(123, 45, 255, 0.3);
}

.therapy-card:hover.physical {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(255, 45, 123, 0.2);
}

.therapy-card:hover.occupational {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 200, 255, 0.2);
}

.therapy-card:hover.speech {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(123, 45, 255, 0.2);
}

.therapy-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 45, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.therapy-card.physical .therapy-icon {
    color: var(--accent);
    background: rgba(255, 45, 123, 0.1);
}

.therapy-card.occupational .therapy-icon {
    color: var(--primary);
    background: rgba(0, 200, 255, 0.1);
}

.therapy-card.speech .therapy-icon {
    color: var(--secondary);
    background: rgba(123, 45, 255, 0.1);
}

.therapy-card:hover .therapy-icon {
    transform: scale(1.1);
}

.therapy-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.therapy-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.therapy-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--membrane-medium);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    height: 3.5px;
    background: linear-gradient(to right, transparent, #3498db, transparent );
    margin: 20px 0;
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    height: 10px;
    width: 10px;
    background-color: #3498db;
    border-radius: 50%;
    top: 50%;
}

.divider::before {
    left: 30%;
}

.divider::after {
    right: 30%;
}

/* ===== TEAM SECTION ===== */
.team-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.team-card {
    background: var(--dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.team-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(8, 11, 18, 0.9), transparent);
    padding: 1.5rem;
    padding-top: 3rem;
}

.card-overlay h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.card-overlay .specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
    cursor: pointer;
}

.card-overlay .credentials {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    cursor: pointer;
}

.image-holder__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--clinic-teal);
    color: var(--dark);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-main);
}

.image-holder__btn:hover {
    background: var(--clinic-teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 230, 195, 0.3);
}

.card-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-main);
}

.card-button:hover {
    background-color: #00b4e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-process-cta, .book-appointment-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    font-family: var(--font-main);
}


/* ===== MOBILE CAROUSEL STYLES ===== */
.mobile-carousel {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.7rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.mobile-carousel .image-holder {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 0 0.5rem;
    margin-top: 0.1rem;
}

.mobile-carousel .image-holder__media {
    height: 170px;
    flex-shrink: 0;
    object-fit: cover;
    width: 100%;
}

.mobile-carousel .image-holder__content {
    padding: 6px 2px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-carousel .image-holder__btn {
    margin-top: 8px;
    align-self: flex-start;
}


/* ===== COOKIE CONSENT STYLES ===== */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-banner.visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#cookie-banner .popup-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cookie-banner .popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-family: var(--font-main);
}

#cookie-banner .cookie-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 15px;
}

#cookie-banner .cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

#cookie-banner .cookie-name {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-main);
}

#cookie-banner .toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

#cookie-banner .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookie-banner .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 20px;
}

#cookie-banner .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#cookie-banner input:checked + .slider {
    background-color: #2ecc71;
}

#cookie-banner input:checked + .slider:before {
    transform: translateX(20px);
}

#cookie-banner .popup-actions {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
}

#cookie-banner .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

#cookie-banner .btn-primary {
    background: #2ecc71;
    color: white;
}

#cookie-banner .btn-primary:hover {
    background: #27ae60;
}

#cookie-banner .btn-secondary {
    background: #95a5a6;
    color: white;
}

#cookie-banner .btn-secondary:hover {
    background: #7f8c8d;
}

#cookie-banner .btn-accept-all {
    background: #3498db;
    color: white;
}

#cookie-banner .btn-accept-all:hover {
    background: #2980b9;
}

#cookie-banner .cookie-policy-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

#cookie-banner .cookie-policy-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 769px) {
    .mobile-search {
        display: none;
    }
    
    .search-bar {
        display: flex;
    }

    .mobile-carousel {
        display: none !important;
    }
    
    .desktop-carousel {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-carousel {
        display: block !important;
    }
    
    .desktop-carousel {
        display: none !important;
    }
    
    .image-holders {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .therapy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .msc-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 1600px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .therapy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        width: 95%;
        padding: 1rem;
        margin: 30px auto;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }
    
    .team-section {
        padding: 3rem 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        margin-top: 2rem;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }

    .cta-button {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .divider {
        margin: 30px 0;
    }
}

@media (min-width: 1401px) {
    .main-container {
        max-width: 1600px;
    }
}

/* Performance optimizations */
@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;
    }
}

/* ===== CONTENT CONTAINER STYLES ===== */
.content-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Transparent Version */
.content-container.transparent {
    background-color: transparent;
}

/* Blurry Version */
.content-container.blurry {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(5, 8, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Blurry with Border */
.content-container.blurry-border {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* ===== PARTICLE NETWORK STYLES ===== */
.particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Push desktop main content down below fixed header */
@media (min-width: 769px) {
    .hero-section {
        padding-top: 120px !important;
    }
}

/* ===== HERO CONTENT STYLES ===== */
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.video-holder {
    flex: 1;
    position: relative;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-holder video {
    width: 100%;
    height: auto;
    display: block;
}
/* ===== DYNAMIC IMAGE HOLDER COMPONENTS ===== */
.dynamic-image-holder {
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--membrane-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    width: 100%;
    margin: 0;
    padding: 0;
}

.dynamic-image-holder:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 200, 255, 0.3);
    background: var(--hover-blueish-black);
}

.dynamic-image-holder__media {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(123, 45, 255, 0.1));
    margin: 0;
    padding: 0;
}

.dynamic-image-holder__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition);
}

.dynamic-image-holder:hover .dynamic-image-holder__img {
    filter: grayscale(0%) contrast(120%);
    transform: scale(1.05);
}

/* Fallback for missing images */
.dynamic-image-holder__media:has(.dynamic-image-holder__img[src=""])::before,
.dynamic-image-holder__media:not(:has(.dynamic-image-holder__img))::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
}

.dynamic-image-holder__media:has(.dynamic-image-holder__img[src=""])::after,
.dynamic-image-holder__media:not(:has(.dynamic-image-holder__img))::after {
    content: '🧬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
}

.dynamic-image-holder__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    margin: 0;
}

.dynamic-image-holder__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.dynamic-image-holder__title:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--clinic-teal);
    margin: 8px auto 0;
    transition: var(--transition);
}

.dynamic-image-holder:hover .dynamic-image-holder__title:after {
    width: 100px;
    background: var(--primary);
}

.dynamic-image-holder__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    padding: 0;
}

/* ===== ENHANCED MSC BENEFITS GRID ===== */
.msc-benefits-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1rem 0 0 0;
    padding: 0;
}

.msc-card-enhanced {
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--membrane-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.msc-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    transition: var(--transition);
}

.msc-card-enhanced:hover::before {
    left: 100%;
}

.msc-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .msc-benefits-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0.5rem 0 0 0;
    }
    
    .dynamic-image-holder {
        min-height: 350px;
        margin: 0;
    }
    
    .dynamic-image-holder__media {
        height: 160px;
        margin: 0;
    }
    
    .dynamic-image-holder__content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .dynamic-image-holder__title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .dynamic-image-holder__title:after {
        margin: 6px auto 0;
        width: 50px;
        height: 2px;
    }
    
    .dynamic-image-holder__desc {
        font-size: 0.875rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .msc-card-enhanced {
        padding: 1.25rem;
        margin: 0;
    }
    
    .benefit-list {
        margin: 0.5rem 0;
        padding: 0;
    }
    
    .benefit-list li {
        margin-bottom: 0.5rem;
        padding: 0;
        font-size: 0.8rem;
    }
    
    .msc-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.75rem;
    }
    
    .msc-link {
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .msc-benefits-grid-enhanced {
        gap: 0.75rem;
        margin: 0.25rem 0 0 0;
    }
    
    .dynamic-image-holder {
        min-height: 320px;
    }
    
    .dynamic-image-holder__media {
        height: 140px;
    }
    
    .dynamic-image-holder__content {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .dynamic-image-holder__title {
        font-size: 1.1rem;
    }
    
    .dynamic-image-holder__desc {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .msc-card-enhanced {
        padding: 1rem;
    }
    
    .benefit-list li {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
        padding-left: 1rem;
    }
    
    .msc-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 0.5rem;
        font-size: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .msc-benefits-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem 0 0 0;
    }
}