/* Clinic Interactive Slider CSS */
:root {
    --cs-bg-dark: #0f172a;
    --cs-bg-card: #1e293b;
    --cs-text-main: #f8fafc;
    --cs-text-muted: #94a3b8;
    --cs-primary: #38bdf8;
    --cs-accent: #2A8CA6;
}

.clinic-slider-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    color: var(--cs-text-main);
    overflow: hidden;
}

/* Ambient Background Motion */
.cs-ambient-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cs-ambient-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: csFloat 20s infinite ease-in-out;
}

.cs-shape-1 {
    width: 600px;
    height: 600px;
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.cs-shape-2 {
    width: 800px;
    height: 800px;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(42, 140, 166, 0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes csFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Slider Container */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px 120px;
    /* Increased bottom padding for controls */
    z-index: 10;
    min-height: 700px;
    /* Increased min-height */
    display: flex;
    align-items: center;
}

/* ... (lines 76-367) ... */

/* Navigation & Progress */
.cs-controls {
    position: absolute;
    bottom: 50px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

/* ... (lines 378-424) ... */

/* Responsiveness */
@media (max-width: 900px) {
    .cs-slide-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-title {
        font-size: 2rem;
    }

    .cs-container {
        min-height: auto;
        padding: 40px 24px 140px;
        /* Increased bottom padding for mobile */
    }

    .cs-controls {
        left: 24px;
        bottom: 50px;
        /* Kept consistent */
    }

    .cs-card-grid.cols-3,
    .cs-card-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Slides Wrapper */
.cs-track {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.cs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(50px) scale(0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    position: relative;
    /* Take up space when active */
}

/* Slide Content Layout */
.cs-slide-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.cs-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-visual-col {
    position: relative;
}

/* Typography & Elements */
.cs-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cs-primary);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.cs-title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
}

.cs-body {
    font-size: 1.15rem;
    color: var(--cs-text-muted);
    line-height: 1.7;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.cs-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cs-text-main);
}

/* Staggered Bullet Lists */
.cs-bullets {
    list-style: none;
    margin-top: 20px;
}

.cs-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-10px);
}

.cs-bullets li i {
    color: var(--cs-primary);
    margin-top: 5px;
}

/* Mini Cards (Pillars / Modules) */
.cs-card-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.cs-card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cs-card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cs-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.cs-mini-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cs-primary);
    transform: translateY(-5px);
}

.cs-mini-card h4 {
    color: var(--cs-text-main);
    font-size: 1rem;
    margin-bottom: 8px;
}

.cs-mini-card p {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    line-height: 1.4;
}

/* WhatsApp Preview Panel */
.cs-wa-preview {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    opacity: 0;
    transform: scale(0.95);
}

.cs-wa-header {
    background: #075e54;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
}

.cs-wa-body {
    padding: 20px;
    background: #0d1418;
    /* Dark WA theme */
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 20px 20px;
}

.cs-wa-msg {
    background: #005c4b;
    color: #e9edef;
    padding: 10px 14px;
    border-radius: 8px 0 8px 8px;
    font-family: monospace;
    font-size: 0.9rem;
    max-width: 90%;
    margin-left: auto;
    position: relative;
}

.cs-wa-msg::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    border: 8px solid transparent;
    border-top-color: #005c4b;
}

/* Animations Trigger */
.cs-slide.active .cs-eyebrow {
    animation: csFadeUp 0.6s forwards 0.2s;
}

.cs-slide.active .cs-title {
    animation: csFadeUp 0.6s forwards 0.3s;
}

.cs-slide.active .cs-body {
    animation: csFadeUp 0.6s forwards 0.4s;
}

.cs-slide.active .cs-tags {
    animation: csFadeUp 0.6s forwards 0.5s;
}

.cs-slide.active .cs-bullets li {
    animation: csSlideIn 0.5s forwards;
}

.cs-slide.active .cs-bullets li:nth-child(1) {
    animation-delay: 0.5s;
}

.cs-slide.active .cs-bullets li:nth-child(2) {
    animation-delay: 0.6s;
}

.cs-slide.active .cs-bullets li:nth-child(3) {
    animation-delay: 0.7s;
}

.cs-slide.active .cs-bullets li:nth-child(4) {
    animation-delay: 0.8s;
}

.cs-slide.active .cs-mini-card {
    animation: csFadeUp 0.6s forwards;
}

.cs-slide.active .cs-mini-card:nth-child(1) {
    animation-delay: 0.5s;
}

.cs-slide.active .cs-mini-card:nth-child(2) {
    animation-delay: 0.6s;
}

.cs-slide.active .cs-mini-card:nth-child(3) {
    animation-delay: 0.7s;
}

.cs-slide.active .cs-wa-preview {
    animation: csPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s;
}

@keyframes csFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes csSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes csPopIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation & Progress */
.cs-controls {
    position: absolute;
    bottom: 50px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

.cs-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-nav-btn:hover {
    background: white;
    color: var(--cs-bg-dark);
}

.cs-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: monospace;
    font-size: 1rem;
    color: var(--cs-primary);
}

.cs-progress-bar {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cs-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--cs-primary);
    width: 0%;
    transition: width 0.5s ease;
}

/* Responsiveness */
@media (max-width: 900px) {
    .cs-slide-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-title {
        font-size: 2rem;
    }

    .cs-container {
        min-height: auto;
        padding: 40px 24px 100px;
    }

    .cs-controls {
        left: 24px;
        bottom: 30px;
    }

    .cs-card-grid.cols-3,
    .cs-card-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Visual Metaphors */
/* Slide 1: Abstract Dashboard */
.cs-visual-dashboard {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cs-dash-header {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
}

.cs-dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.cs-dash-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cs-dash-block {
    background: rgba(255, 255, 255, 0.05);
    height: 80px;
    border-radius: 8px;
    animation: pulseBlock 3s infinite;
}

.cs-dash-block:nth-child(2) {
    animation-delay: 1s;
}

.cs-dash-block:nth-child(3) {
    grid-column: span 2;
    height: 100px;
    animation-delay: 2s;
}

@keyframes pulseBlock {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Slide 2: Fragmented Nodes */
.cs-visual-fragmented {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-frag-node {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-primary);
    font-size: 1.2rem;
    animation: floatNode 6s infinite ease-in-out;
}

.cs-frag-node:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.cs-frag-node:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: -2s;
}

.cs-frag-node:nth-child(3) {
    top: 30%;
    left: 60%;
    animation-delay: -4s;
}

.cs-frag-node:nth-child(4) {
    top: 70%;
    left: 30%;
    animation-delay: -1s;
}

.cs-frag-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cs-primary), transparent);
    width: 100px;
    opacity: 0.3;
    transform-origin: center;
}

@keyframes floatNode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Slide 7: Success Trend */
.cs-visual-success {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.cs-success-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--cs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cs-primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}