﻿/* ========== Default (Home) Dark Theme (Adjusted Vertical Rhythm v1.1) ========== */
:root {
    --bg: #0b0f19;
    --bg2: #101524;
    --panel: #141b2f;
    --panel2: #18223a;
    --border: #2d3447;
    --text: #eaf1fa;
    --muted: #a3b7d8;
    --accent: #31c5f8;
    --primary: #33e27c;
    --warn: #f7c948;
    --error: #f76e6e;
    --shadow: 0 8px 32px rgba(49,197,248,.07),0 1.5px 6px rgba(30,41,59,.08);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --transition: all .23s cubic-bezier(.2,.8,.3,1);
    /* NEW: Vertical spacing scale (used to even out section distances) */
    --space-xs: 12px;
    --space-sm: 24px;
    --space-md: 40px;
    --space-lg: 64px;
    --space-xl: 88px;
    --space-xxl: 112px;
    --space-hero: 120px;
}

/* Global vertical rhythm helpers (if needed later) */
.vspace-top-lg {
    padding-top: var(--space-lg) !important;
}

.vspace-bottom-lg {
    padding-bottom: var(--space-lg) !important;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter,system-ui;
}

.only-mobile {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 26px;
}

    .section-header h2 {
        font-weight: 800;
        margin: 0;
        background: linear-gradient(90deg,var(--accent),var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .section-header p {
        color: var(--muted);
    }

/* ===== HERO ===== */
/* Increased top & bottom spacing to establish base rhythm */
.hero-dark {
    position: relative;
    padding: 25px 0 0 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: -20% -10% 0 -10%;
    background: radial-gradient(1200px 600px at 0% 0%, rgba(49,197,248,.22), transparent 50%), radial-gradient(1200px 600px at 100% 0%, rgba(51,226,124,.18), transparent 50%), linear-gradient(180deg, rgba(21,28,44,.95), rgba(11,15,25,.95));
}

.hero-noise {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .07;
    mix-blend: screen;
}

.hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#heroParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dna-helix {
    position: absolute;
    top: 6%;
    left: -6%;
    width: 36%;
    height: 60%;
    opacity: .14;
    filter: blur(.2px);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='640' viewBox='0 0 320 640'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%2331c5f8'/><stop offset='1' stop-color='%2333e27c'/></linearGradient></defs><g fill='none' stroke='url(%23g)' stroke-width='2' stroke-opacity='0.9'><path d='M40 0 C 160 80, 160 80, 280 0 M40 80 C 160 160, 160 160, 280 80 M40 160 C 160 240, 160 240, 280 160 M40 240 C 160 320, 160 320, 280 240 M40 320 C 160 400, 160 400, 280 320 M40 400 C 160 480, 160 480, 280 400 M40 480 C 160 560, 160 560, 280 480 M40 560 C 160 640, 160 640, 280 560'/><g stroke-opacity='0.35'><line x1='40' y1='0' x2='280' y2='0'/><line x1='40' y1='80' x2='280' y2='80'/><line x1='40' y1='160' x2='280' y2='160'/><line x1='40' y1='240' x2='280' y2='240'/><line x1='40' y1='320' x2='280' y2='320'/><line x1='40' y1='400' x2='280' y2='400'/><line x1='40' y1='480' x2='280' y2='480'/><line x1='40' y1='560' x2='280' y2='560'/></g></g></svg>");
    background-size: 60% auto;
    background-repeat: repeat-y;
    background-position: 0 0;
    animation: dnaScroll 16s linear infinite;
}

@keyframes dnaScroll {
    to {
        background-position-y: -640px;
    }
}

.hero-ecg, .doc-sheen {
    display: none !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    contain: layout paint;
}

.hero-left {
    flex: 1 1 0;
}

.hero-right {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}

.hero-title {
    font-size: clamp(28px,4.2vw,46px);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 10px 0;
}

    .hero-title span {
        background: linear-gradient(90deg,var(--accent),#79ffce);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-subtitle {
    max-width: 680px;
    color: #cbdaf7;
    font-size: clamp(14px,1.4vw,18px);
    margin: 0 0 18px 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn.dark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px 18px;
    text-decoration: none;
    transition: var(--transition);
}

    .btn.dark.primary {
        background: linear-gradient(90deg,var(--accent),var(--primary));
        color: #0b1220;
        border: 1px solid #2e7;
    }

        .btn.dark.primary:hover {
            filter: brightness(1.06);
            transform: translateY(-1px);
        }

    .btn.dark.outline {
        background: transparent;
        color: var(--accent);
        border: 1.5px solid var(--accent);
    }

        .btn.dark.outline:hover {
            background: var(--accent);
            color: #0b1220;
            transform: translateY(-1px);
        }

    .btn.dark i {
        font-size: 14px;
    }

.hero-cta-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cta-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #19243b;
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 40px;
    color: #cde1ff;
    font-weight: 700;
}

    .cta-badge i {
        color: var(--primary);
    }

.doctor-frame {
    position: relative;
    max-width: 460px;
    width: 100%;
}

    .doctor-frame img {
        width: 100%;
        height: auto;
        display: block;
        filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
    }

.doc-card {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 88%;
    background: rgba(25,30,46,.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

    .doc-card .stars {
        display: inline-block;
        height: 22px;
        margin-bottom: 6px;
    }

        .doc-card .stars img {
            height: 22px;
            width: auto;
        }

    .doc-card .doc-name {
        margin: 0;
        font-weight: 800;
        color: #fff;
    }

    .doc-card .doc-title {
        margin: 2px 0;
        color: #cfe2ff;
        font-weight: 600;
    }

    .doc-card .doc-des {
        margin: 8px 0 0 0;
        color: #b6c8ea;
        font-size: 14px;
    }

.mobile-navigate-box.dark {
    margin: 22px 20px 0;
    background: #121a2e;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    display: none;
}

    .mobile-navigate-box.dark h3 {
        font-size: 16px;
        line-height: 1.4;
        margin: 0 0 58px 0;
    }

    .mobile-navigate-box.dark .arrow-ghost {
        position: absolute;
        left: 18px;
        bottom: 46px;
        width: 42px;
        height: 24px;
        background: url('../Images/long-arrow-smooth-gray.svg') no-repeat center/contain;
        opacity: .9;
    }

    .mobile-navigate-box.dark a {
        position: absolute;
        right: 16px;
        bottom: 16px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--accent) url('../Images/appointment-icon-white.svg') no-repeat center/28px;
        border: none;
    }

    .mobile-navigate-box.dark span:nth-of-type(2) {
        position: absolute;
        left: 18px;
        bottom: 22px;
        font-size: 11px;
        color: #9fb4da;
    }









/* Hero FX restoration */
.hero-dark {
    position: relative;
}

    .hero-dark .hero-bg {
        z-index: 0;
    }
    /* raise from -1 */
    .hero-dark .hero-container {
        position: relative;
        z-index: 2;
    }

    .hero-dark .hero-fx {
        z-index: 1;
    }

#heroParticles {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Optional subtle line grid layer (static fallback) */
.hero-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( 90deg, rgba(49,197,248,0.06) 0 1px, transparent 1px 80px ), repeating-linear-gradient( 180deg, rgba(51,226,124,0.05) 0 1px, transparent 1px 80px );
    pointer-events: none;
    z-index: 1;
    animation: heroGridShift 26s linear infinite;
    will-change: background-position;
}

@keyframes heroGridShift {
    to {
        background-position: 80px 80px, 80px 80px;
    }
}


















/* ===== ABOUT ===== */
/* Increased for consistency */
.section-dark {
    padding: var(--space-xl) 0 var(--space-lg);
    background: linear-gradient(180deg,#0b0f19,#0e1321);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.about-text p {
    color: #cfe2ff;
    margin: 0 0 14px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.stat {
    background: #151c2c;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-weight: 900;
    font-size: clamp(24px,4vw,34px);
    color: var(--primary);
}

.stat-label {
    color: #b8c7e6;
    font-weight: 600;
}

.about-note {
    margin-top: 12px;
    background: #141b2f;
    border: 1px dashed var(--border);
    padding: 14px;
    border-radius: 12px;
    color: #d5e6ff;
    font-style: italic;
}

/* ===== SERVICES (AI style) ===== */
.services-dark {
    padding: var(--space-xl) 0 var(--space-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.service-card {
    background: #141b2f;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(49,197,248,.13);
    }

    .service-card .icon img {
        width: 66px;
        height: auto;
    }

    .service-card h3 {
        margin: 10px 0 6px 0;
    }

    .service-card p {
        color: #cde1ff;
    }

/* AI accents */
.ai-card {
    --ai-accent: var(--accent);
    --ai-primary: var(--ai-accent);
    --ai-accent-soft: color-mix(in oklab, var(--ai-accent) 30%, transparent);
    --ai-glow: drop-shadow(0 0 10px color-mix(in oklab, var(--ai-accent) 35%, transparent)) drop-shadow(0 6px 22px rgba(0,0,0,.35));
}

    .ai-card .ai-border {
        position: absolute;
        inset: -1px;
        border-radius: 14px;
        pointer-events: none;
        z-index: 1;
        background: conic-gradient(from 0deg at 50% 50%, color-mix(in oklab, var(--ai-primary) 70%, #fff 0%) 0deg, transparent 100deg, transparent 260deg, color-mix(in oklab, var(--ai-primary) 70%, #fff 0%) 360deg);
        filter: blur(.6px) saturate(120%);
        animation: aiSpin 8s linear infinite;
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        padding: 1px;
    }

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

.ai-card .ai-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .22;
    background-image: radial-gradient(circle at 20% 10%, var(--ai-accent-soft) 0%, transparent 40%), radial-gradient(circle at 80% 0%, var(--ai-accent-soft) 0%, transparent 45%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='180' viewBox='0 0 280 180'><g stroke='%23698aac' stroke-opacity='0.35' stroke-width='0.5'><path d='M0 90 Q70 60 140 90 T280 90' fill='none'/><path d='M0 120 Q70 90 140 120 T280 120' fill='none'/><path d='M0 60 Q70 30 140 60 T280 60' fill='none'/></g></svg>");
    background-size: cover,cover,280px 180px;
    mix-blend-mode: screen;
}

.ai-card .ai-icon-orbit {
    position: relative;
    margin-bottom: 10px;
    filter: var(--ai-glow);
}

    .ai-card .ai-icon-orbit .icon {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background: radial-gradient(120px 120px at 30% 20%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
        border: 1px solid color-mix(in oklab, var(--ai-accent) 45%, transparent);
        box-shadow: inset 0 0 18px rgba(255,255,255,.06);
    }

        .ai-card .ai-icon-orbit .icon img {
            width: 38px;
            height: auto;
            transform: translateZ(0);
        }

.ai-card .orbit-dot,
.ai-card .orbit-dot.second {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ai-accent);
    box-shadow: 0 0 10px var(--ai-accent);
    transform-origin: 38px 38px;
    z-index: 1;
    animation: orbit 6s linear infinite;
}

    .ai-card .orbit-dot.second {
        width: 6px;
        height: 6px;
        opacity: .7;
        animation-duration: 9s;
        transform-origin: 46px 46px;
    }

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

.ai-card .ai-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--ai-accent) 0%, transparent 70%);
    opacity: .45;
    filter: blur(6px);
}

    .ai-card .ai-corner::after {
        content: '+';
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: var(--ai-accent);
        font-weight: 900;
        font-size: 12px;
        opacity: .85;
    }

.ai-card .ai-scan {
    position: absolute;
    left: -50%;
    right: -50%;
    top: -120%;
    bottom: -120%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(220px 220px at var(--mx, -40px) var(--my, -40px), color-mix(in oklab, var(--ai-accent) 18%, transparent) 0%, transparent 60%);
    transition: background .12s ease;
}

.ai-card:hover .ai-scan {
    background: radial-gradient(260px 260px at var(--mx, -40px) var(--my, -40px), color-mix(in oklab, var(--ai-accent) 26%, transparent) 0%, transparent 64%);
}

.ai-card .ai-ripple {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--ai-accent) 40%, #fff);
    transform: translate(-50%,-50%) scale(1);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
    animation: ripple .9s ease-out forwards;
}

@keyframes ripple {
    to {
        transform: translate(-50%,-50%) scale(16);
        opacity: 0;
    }
}

.ai-card h3 {
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
    background: linear-gradient(90deg, var(--ai-accent), #7ff0d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-card p {
    color: #cfe2ff;
}

/* ===== NEW: AI Suite section ===== */
.ai-suite {
    position: relative;
    padding: var(--space-lg) 0 var(--space-lg);
    background: linear-gradient(180deg,#0b0f19,#0e1321);
    overflow: hidden;
}

.ai-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
    background: repeating-linear-gradient(90deg, #31c5f8 0, #31c5f8 1px, transparent 1px, transparent 60px), repeating-linear-gradient(180deg, #33e27c 0, #33e27c 1px, transparent 1px, transparent 60px);
    animation: aiGridMove 12s linear infinite;
    will-change: background-position;
}

@keyframes aiGridMove {
    to {
        background-position: 60px 60px, 60px 60px;
    }
}

.ai-modules {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-top: 6px;
}

.ai-mod {
    position: relative;
    background: #141b2f;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .ai-mod:before {
        content: "";
        position: absolute;
        inset: -1px;
        padding: 1px;
        border-radius: 14px;
        background: conic-gradient(from 0deg, rgba(49,197,248,.22), rgba(51,226,124,.2), rgba(155,81,224,.2), rgba(49,197,248,.22));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        filter: blur(.6px);
        pointer-events: none;
    }

    .ai-mod:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(49,197,248,.12);
    }

.ai-mod-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #16213a;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

    .ai-mod-icon svg {
        width: 30px;
        height: 30px;
        color: #bfe9ff;
        filter: drop-shadow(0 0 10px rgba(49,197,248,.35));
    }

.ai-mod h3 {
    margin: 0 0 6px 0;
    font-weight: 900;
}

.ai-mod p {
    margin: 0;
    color: #cfe2ff;
}

.ai-suite-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* ===== TEAM ===== */
.team-dark {
    padding: var(--space-xl) 0 var(--space-lg);
}

.medical-team-slider-wrapper.in-dark .splide__slide {
    background: #141b2f;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.staff-image-container {
    width: 180px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 4px solid #223350;
    background: #0f1426;
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    font-weight: 800;
    text-align: center;
    margin: 6px 0;
}

.staff-title {
    color: #b8c7e6;
    text-align: center;
    margin: 0 0 6px 0;
}

.stars {
    display: block;
    height: 22px;
    margin: 6px auto;
}

/* ===== EXCELLENCE ===== */
.excellence-dark {
    padding: var(--space-xl) 0 var(--space-md);
}

.excellence-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center;
}

.excellence-media {
    position: relative;
}

    .excellence-media img {
        width: 100%;
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

.btn.floating {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

.excellence-content h2 {
    margin: 0 0 10px 0;
    font-weight: 900;
}

.excellence-content p {
    color: #cfe2ff;
    margin: 0 0 10px 0;
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .features li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: #d7e8ff;
    }

    .features i {
        color: var(--accent);
        margin-top: 3px;
    }

/* ===== WELLNESS ===== */
.wellness-dark {
    padding: var(--space-xl) 0 var(--space-sm);
}

.wellness-head {
    text-align: center;
}

    .wellness-head h2 {
        font-weight: 900;
        margin: 0 0 8px 0;
    }

    .wellness-head p {
        color: #b8c7e6;
        margin: 0 0 14px 0;
    }

.wellness-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.wellness-sub h3 {
    margin: 0 0 6px 0;
}

/* ===== TESTIMONIALS ===== */
/* Added padding to integrate with global spacing */
.testimonials-dark {
    padding: 0;
}

/* Mobile chips */
.mobile-chips {
    padding: 8px 20px 32px 20px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #141b2f;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 40px;
}

    .chip img {
        width: 26px;
        height: auto;
    }

    .chip span {
        font-weight: 700;
        color: #cde1ff;
    }

/* Reveal-on-scroll */
.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* Mobile testimonials */
.testimonials-mobile {
    padding: var(--space-md) 0 var(--space-lg);
    position: relative;
    display: none;
}

    .testimonials-mobile .container {
        position: relative;
        z-index: 2;
    }

.mt-bg {
    position: absolute;
    inset: -10% -20% -20% -20%;
    z-index: 1;
    background: radial-gradient(600px 280px at 10% 10%, rgba(49,197,248,.18), transparent 55%), radial-gradient(520px 240px at 90% 0%, rgba(51,226,124,.14), transparent 60%), radial-gradient(420px 220px at 50% 90%, rgba(49,197,248,.14), transparent 60%);
    filter: blur(10px);
    opacity: .9;
}

.mt-header {
    text-align: center;
    margin-bottom: 10px;
}

    .mt-header h2 {
        margin: 0;
        font-weight: 900;
        background: linear-gradient(90deg,var(--accent),var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .mt-header p {
        margin: 6px 0 0 0;
        color: #b8c7e6;
    }

.mt-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.mt-track {
    display: flex;
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
    touch-action: pan-y;
}

.mt-slide {
    flex: 0 0 100%;
    padding: 10px 6px;
}

.mt-card {
    position: relative;
    background: linear-gradient(180deg, rgba(21,28,44,.9), rgba(17,23,38,.86));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .mt-card::before {
        content: '“';
        position: absolute;
        left: 12px;
        top: -14px;
        font-size: 44px;
        color: rgba(255,255,255,.09);
        font-weight: 900;
        line-height: 1;
    }

.mt-stars {
    height: 20px;
    width: auto;
    display: block;
    margin: 2px 0 8px 0;
}

.mt-text {
    font-size: clamp(16px, 4.6vw, 18px);
    line-height: 1.6;
    color: #eaf1fa;
    margin: 0 0 12px 0;
    text-wrap: balance;
}

.mt-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.mt-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    background: #0f1426;
    box-shadow: 0 6px 18px rgba(0,0,0,.36);
}

.mt-meta h3 {
    margin: 0;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.mt-meta span {
    display: block;
    margin-top: 2px;
    color: #9fb4da;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Compassionate link ===== */
.compassionate-link {
    padding: var(--space-lg) 0 var(--space-lg);
    background: linear-gradient(180deg, #0b0f19, #0e1321);
}

.cpl-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: center;
}

.cpl-media {
    position: relative;
}

    .cpl-media img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .cpl-media .cpl-glow {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 16px;
        pointer-events: none;
        background: radial-gradient(380px 220px at 20% 20%, rgba(49,197,248,.20), transparent 60%), radial-gradient(360px 200px at 80% 80%, rgba(51,226,124,.16), transparent 60%);
        filter: blur(18px);
        opacity: .85;
        mix-blend-mode: screen;
        animation: cplPulse 6s ease-in-out infinite;
    }

@keyframes cplPulse {
    0%,100% {
        transform: scale(1);
        opacity: .85;
    }

    50% {
        transform: scale(1.03);
        opacity: .95;
    }
}

.cpl-content h2 {
    margin: 0 0 8px 0;
    font-weight: 900;
}

.cpl-content p {
    margin: 0 0 10px 0;
    color: #cfe2ff;
}

.cpl-points {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #d7e8ff;
}

    .cpl-points li::before {
        content: "• ";
        color: var(--accent);
    }

/* Responsive adjustments for vertical spacing (shrink on smaller screens) */
@media (max-width: 992px) {
    :root {
        --space-hero: 96px;
        --space-xl: 72px;
        --space-lg: 54px;
        --space-md: 36px;
        --space-sm: 22px;
    }

    .hero-container {
        flex-direction: column;
        gap: 14px;
    }

    .doctor-frame {
        max-width: 560px;
    }

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

    .excellence-wrap {
        grid-template-columns: 1fr;
    }

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

    .cpl-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .only-mobile {
        display: block;
    }

    .mobile-navigate-box.dark {
        display: block;
    }
}

@media (max-width:700px) {
    .testimonials-dark {
        display: none !important;
    }

    .testimonials-mobile {
        display: block;
    }
    /* further reduce vertical distances slightly */
    :root {
        --space-hero: 84px;
        --space-xl: 60px;
        --space-lg: 46px;
        --space-md: 32px;
        --space-sm: 20px;
    }
}

@media (min-width:701px) {
    .testimonials-mobile {
        display: none !important;
    }
}

/* PageStudio Viewer Styles (unchanged aside from color fix) */
.psv-wrap {
    padding: 28px 0;
    background: none !important;
    font-family: "Poppins",sans-serif;
}

.psv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: none !important;
}

.psv-wrap .ps-sec-controls,
.psv-wrap .ps-img-btn {
    display: none !important;
}

.psv-wrap [contenteditable="true"] {
    pointer-events: none;
    caret-color: transparent;
    outline: none;
}

.psv-wrap .ps-section {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 32px 0;
    box-shadow: none !important;
    font-family: "Poppins",sans-serif;
}

.psv-wrap .ps-sec-title {
    color: #283958;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0 0 8px 0;
    background: linear-gradient(90deg, var(--accent, #31c5f8), var(--primary, #33e27c));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Poppins",sans-serif;
}

    .psv-wrap .ps-sec-title.ps-sec-title-big {
        font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    }

.psv-wrap .ps-sec-text {
    color: #26324a;
    line-height: 1.7;
    font-size: 1.07em;
    font-family: "Poppins",sans-serif;
}

.psv-wrap .ps-grid-2x2,
.psv-wrap .ps-grid-3x2,
.psv-wrap .ps-grid-2,
.psv-wrap .ps-grid-3,
.psv-wrap .ps-sec-media-col {
    display: grid;
    gap: 14px !important;
}

.psv-wrap .ps-grid-2x2 {
    grid-template-columns: 1fr 1fr;
}

.psv-wrap .ps-grid-3x2 {
    grid-template-columns: repeat(3,1fr);
}

.psv-wrap .ps-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.psv-wrap .ps-grid-3 {
    grid-template-columns: repeat(3,1fr);
}

.psv-wrap .ps-sec-media-col {
    grid-template-columns: 1fr;
}

    .psv-wrap .ps-grid-2x2 .ps-sec-media,
    .psv-wrap .ps-grid-3x2 .ps-sec-media,
    .psv-wrap .ps-sec-media-col .ps-sec-media,
    .psv-wrap .ps-sec-media-col .ps-sec-media.small {
        aspect-ratio: 1/1;
        margin: 0 !important;
    }

.psv-wrap .ps-sec-media,
.psv-wrap .ps-sec-media.small {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eaeaea;
    border: 1px solid #d0d4de;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    min-height: 120px;
}

.psv-wrap .ps-sec-media-left .ps-sec-inner,
.psv-wrap .ps-sec-media-right .ps-sec-inner,
.psv-wrap .ps-sec-two-media .ps-sec-inner,
.psv-wrap .ps-sec-two-media-right .ps-sec-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px !important;
    align-items: center;
}

.psv-wrap .ps-sec-two-media .ps-sec-media-col,
.psv-wrap .ps-sec-two-media-right .ps-sec-media-col {
    gap: 14px !important;
}

.psv-wrap .ps-sec-media.has-image,
.psv-wrap .ps-sec-media.small.has-image {
    background-size: cover;
    background-position: center;
    border-style: solid;
}

.psv-wrap .ps-sec-title-text .ps-sec-inner,
.psv-wrap .ps-sec-just-text .ps-sec-inner {
    display: block;
}

.psv-wrap .ps-feature {
    background: #f3f7fb;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    padding: 12px;
    font-family: "Poppins",sans-serif;
}

.psv-wrap .ps-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #f3f7fb;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    padding: 14px;
}

.psv-wrap .ps-cta-btn {
    background: linear-gradient(90deg, var(--accent, #31c5f8), var(--primary, #33e27c));
    color: #0b1220;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-family: "Poppins",sans-serif;
}

.psv-wrap .reveal,
.psv-wrap .reveal.in-view,
.psv-wrap .ps-section.reveal,
.psv-wrap .ps-section.reveal.in-view {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

.psv-wrap .ps-sec-text {
    color: #eaf1fa !important;
}

@media (max-width: 900px) {
    .psv-wrap .ps-sec-media-left .ps-sec-inner,
    .psv-wrap .ps-sec-media-right .ps-sec-inner,
    .psv-wrap .ps-sec-two-media .ps-sec-inner,
    .psv-wrap .ps-sec-two-media-right .ps-sec-inner,
    .psv-wrap .ps-grid-2 {
        grid-template-columns: 1fr;
    }

    .psv-wrap .ps-grid-2x2,
    .psv-wrap .ps-grid-3x2 {
        grid-template-columns: 1fr;
    }
}



















/* === FANTASY BACKGROUND FOR TESTIMONIALS (Safe Minimal v2) ==================
   - One wrapper (.tfx) behind MasterSlider content
   - Pure CSS animated gradients + subtle grid + optional spark shimmer
   - No per-slide pseudo elements, no mix-blend, no mask-composite
   - Canvas layer (optional) kept under content; safe to remove
============================================================================= */

.testimonials-dark.fancy-bg {
    position: relative;
    overflow: hidden; /* clip background decor only */
    background: #0c111d; /* fallback base */
}

    /* Decorative container */
    .testimonials-dark.fancy-bg .tfx {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        /* Layered gradients (nebula style) */
        background: radial-gradient(900px 600px at 18% 25%, rgba(49,197,248,0.28), transparent 70%), radial-gradient(1000px 680px at 82% 72%, rgba(155,81,224,0.24), transparent 75%), radial-gradient(760px 520px at 58% 32%, rgba(51,226,124,0.25), transparent 72%), linear-gradient(180deg,#0b0f19 0%, #0d1423 55%, #0b0f19 100%);
        animation: tfxNebula 36s ease-in-out infinite;
        filter: saturate(115%);
    }

        /* Subtle moving grid overlay (kept very soft) */
        .testimonials-dark.fancy-bg .tfx::before {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 140px), repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 140px);
            opacity: .22;
            animation: tfxGrid 80s linear infinite;
        }

        /* Soft vignette to keep edges dark for contrast */
        .testimonials-dark.fancy-bg .tfx::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
            pointer-events: none;
            mix-blend-mode: normal;
        }

    /* Optional: Canvas star particles (if JS added). If canvas omitted, leave rule harmless */
    .testimonials-dark.fancy-bg .tfx-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 0;
        opacity: .55;
    }

    /* Raise slider above background */
    .testimonials-dark.fancy-bg #P_masterslider,
    .testimonials-dark.fancy-bg #masterslider,
    .testimonials-dark.fancy-bg #masterslider .ms-view {
        position: relative;
        z-index: 2;
        background: transparent !important;
    }

        /* Ensure layers always on top */
        .testimonials-dark.fancy-bg #masterslider .ms-layer {
            position: relative;
            z-index: 3;
            text-shadow: 0 2px 4px rgba(0,0,0,.55);
        }

            /* Enhance arrows + social icons hover */
            .testimonials-dark.fancy-bg #masterslider .ms-layer[data-action],
            .testimonials-dark.fancy-bg #masterslider .ms-layer[data-src*="testimonial2-icon"] {
                transition: filter .35s ease, transform .35s ease, opacity .35s ease;
                filter: drop-shadow(0 0 6px rgba(49,197,248,.35));
            }

                .testimonials-dark.fancy-bg #masterslider .ms-layer[data-action]:hover,
                .testimonials-dark.fancy-bg #masterslider .ms-layer[data-src*="testimonial2-icon"]:hover {
                    filter: drop-shadow(0 0 14px rgba(49,197,248,.8));
                    transform: translateY(-2px) scale(1.05);
                    opacity: 1;
                }

/* Keyframes */
@keyframes tfxNebula {
    0%,100% {
        transform: translate3d(-3%, -2%,0) scale(1);
    }

    50% {
        transform: translate3d(4%, 3%,0) scale(1.06);
    }
}

@keyframes tfxGrid {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 140px 160px, 0 160px;
    }
}

/* Reduce animation intensity on very small screens (desktop slider hidden anyway under 700px) */
@media (max-width: 700px) {
    .testimonials-dark.fancy-bg .tfx {
        animation: none;
    }

        .testimonials-dark.fancy-bg .tfx::before {
            animation: none;
            opacity: .16;
        }
}