/* ==========================================
   Dr. Nikita Varun Agarwal Pain Clinic
   Premium Stylesheet (Vanilla CSS3)
   ========================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette */
    --color-primary: #1e293b;        /* Slate Blue (900) */
    --color-primary-light: #334155;  /* Slate (700) */
    --color-accent: #0d9488;         /* Primary Teal (600) */
    --color-accent-hover: #0f766e;   /* Darker Teal (700) */
    --color-accent-soft: #f0fdfa;    /* Teal Soft Background */
    --color-secondary: #0ea5e9;      /* Sky Blue (500) */
    --color-secondary-soft: #f0f9ff; /* Sky Blue Soft Background */
    --color-text-dark: #0f172a;      /* Dark body text (900) */
    --color-text-muted: #64748b;     /* Muted/grey text (500) */
    --color-bg-light: #f8fafc;       /* Body background */
    --color-white: #ffffff;
    
    /* Layout & Styling */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Typography System --- */
.section-subtitle {
    display: inline-block;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--color-accent);
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* --- Component: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-full {
    width: 100%;
}

/* --- Navigation Header --- */
.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    background-color: var(--color-bg-light);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo:hover .logo-avatar-img {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.logo-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary-light);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

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

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.mobile-nav-toggle .bar {
    width: 26px;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg-accent-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-bg-accent-2 {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-accent {
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.badge-secondary {
    background-color: var(--color-secondary-soft);
    color: var(--color-secondary);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(13, 148, 136, 0.12);
    z-index: -1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-primary-light);
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-quick-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.highlight-icon {
    width: 22px;
    height: 22px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 13px;
    height: 13px;
}

/* Hero Visual Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.clinic-location-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-illustration {
    height: 350px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.hero-avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatAnimation 4s ease-in-out infinite;
    z-index: 2;
}

.hero-doctor-avatar-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
    border: 4px solid var(--color-white);
    background-color: var(--color-white);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.hero-doctor-avatar-wrapper:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.35);
}

.hero-doctor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.25);
    animation: pulseRing 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
    z-index: 1;
}

.ring-2 {
    animation-delay: 1.5s;
}

.illustration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-stat {
    align-self: flex-start;
    background-color: var(--color-white);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
}

.floating-stat.stat-bottom {
    align-self: flex-end;
    border-left-color: var(--color-secondary);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseSpot {
    0%, 100% { fill-opacity: 0.2; transform: scale(1); transform-origin: center; }
    50% { fill-opacity: 0.5; transform: scale(1.08); transform-origin: center; }
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- Stats Counter Section --- */
.stats-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    z-index: 10;
}

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

.stat-card {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card h3 {
    font-size: 2.25rem;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* --- About Doctor Section --- */
.about-section {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .spec-slider-container {
        height: 480px !important;
    }
}

@media (max-width: 768px) {
    .spec-slider-container {
        height: 420px !important;
    }
}

.about-media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.doctor-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: visible;
}

.doctor-pattern-dots {
    position: absolute;
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(13, 148, 136, 0.25) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    z-index: 1;
}

.doctor-image-container {
    height: 540px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background-color: var(--color-primary);
    z-index: 2;
}

.spec-slider-container {
    position: relative;
}

.doctor-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.doctor-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.doctor-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.doctor-slide.active:hover .doctor-img {
    transform: scale(1.03);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Slider Indicators */
.slider-dots {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.15);
    width: 18px;
    border-radius: 4px;
}

.doctor-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    flex-direction: column;
    z-index: 3;
    pointer-events: none;
}

.doc-badge {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-white);
    max-width: 65%;
    line-height: 1.2;
}

.doc-subtitle-overlay {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 65%;
    line-height: 1.2;
}

.experience-badge-block {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
}

.exp-num {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Doctor Profile Details on Right */
.doctor-credential-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.cred-tag {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--color-primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.cred-tag:hover {
    border-color: rgba(13, 148, 136, 0.2);
    background-color: var(--color-white);
}

.cred-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Biography Bento Grid */
.bio-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.bio-bento-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-bento-card:hover {
    border-color: rgba(13, 148, 136, 0.15);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.bio-bento-card.highlight-accent-card {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(14, 165, 233, 0.03) 100%);
    border-left: 4px solid var(--color-accent);
}

.bio-bento-card.highlight-accent-card:hover {
    background-color: var(--color-white);
}

.bbc-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bbc-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbc-icon svg {
    width: 22px;
    height: 22px;
}

.bio-bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.bio-bento-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-primary-light);
    margin: 0;
    text-align: left;
}

.bio-bento-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .bio-bento-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.doctor-highlights-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    border-color: rgba(13, 148, 136, 0.15);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-white);
}

.pillar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    user-select: none;
}

.pillar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.pillar-icon svg {
    width: 18px;
    height: 18px;
}

.pillar-card-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    flex-grow: 1;
}

.pillar-arrow {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    transition: transform var(--transition-smooth);
}

.pillar-card.open .pillar-arrow {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.pillar-card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    padding: 0 18px;
}

.pillar-card.open .pillar-card-content {
    max-height: 250px;
    opacity: 1;
    padding: 0 18px 18px 18px;
}

.pillar-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-card-content li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
    text-align: left;
}

.pillar-card-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}


.mission-quote {
    background-color: var(--color-accent-soft);
    border-left: 4px solid var(--color-accent);
    padding: 24px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-top: 36px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    color: rgba(13, 148, 136, 0.08);
}

.mission-quote p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-accent-hover);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* --- Services Tabs Section --- */
.services-section {
    background-color: var(--color-bg-light);
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-primary-light);
    padding: 14px 28px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.tab-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.25);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.card-bullets {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.card-bullets li {
    font-size: 0.9rem;
    color: var(--color-primary-light);
    font-weight: 600;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

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


.card-bullets li.expanded-bullets-container {
    padding-left: 0;
    margin-bottom: 0;
}

.card-bullets li.expanded-bullets-container::before {
    display: none;
}

.expanded-bullets-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.expanded-bullets-container.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 10px;
}

.expanded-bullets-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.expanded-bullets-container ul li {
    margin-bottom: 10px;
}

.expand-bullets-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.expand-bullets-btn:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* --- Conditions tag list section --- */
.conditions-section {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.condition-item {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 18px 24px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
}

.condition-item:hover {
    background-color: var(--color-accent-soft);
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateX(3px);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.condition-item span {
    font-weight: 600;
    color: var(--color-primary-light);
    font-size: 0.95rem;
}

/* --- Advanced Procedures Section --- */
.procedures-section {
    background-color: var(--color-bg-light);
}

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

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

.procedure-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.procedure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.15);
}

.proc-head {
    margin-bottom: 20px;
}

.proc-badge {
    display: inline-block;
    background-color: var(--color-secondary-soft);
    color: var(--color-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.procedure-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.procedure-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.proc-details-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.proc-details-wrapper.open {
    max-height: 250px;
    opacity: 1;
}

.proc-details {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 18px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.expand-proc-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.expand-proc-btn:hover {
    color: var(--color-accent-hover);
}

.proc-btn-arrow {
    transition: transform var(--transition-smooth);
}

.expand-proc-btn.active .proc-btn-arrow {
    transform: rotate(180deg);
}


/* --- Comparison Section --- */
.comparison-section {
    background-color: var(--color-white);
}

.comparison-header-split {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

.comparison-intro-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.comparison-intro-card:last-child {
    margin-bottom: 0;
}

.comparison-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.comparison-intro-card.risk-card {
    border-left: 4px solid var(--color-secondary);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.comparison-intro-card.risk-card .cic-icon {
    color: var(--color-secondary);
}

.comparison-intro-card.solution-card {
    border-left: 4px solid var(--color-accent);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.comparison-intro-card.solution-card .cic-icon {
    color: var(--color-accent);
}

.cic-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.cic-icon svg {
    width: 24px;
    height: 24px;
}

.cic-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-align: left;
}

.cic-content p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-primary-light);
    margin: 0;
    text-align: left;
}.comparison-table-container {
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.comparison-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.benefit-theme-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.benefit-theme-card:nth-child(2) {
    border-top-color: var(--color-primary);
}

.benefit-theme-card:nth-child(3) {
    border-top-color: var(--color-secondary);
}

.benefit-theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.15);
}

.benefit-theme-card:nth-child(2):hover {
    border-color: rgba(15, 23, 42, 0.15);
}

.benefit-theme-card:nth-child(3):hover {
    border-color: rgba(225, 29, 72, 0.15);
}

.btc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.btc-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.b-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-theme-card:nth-child(2) .b-icon {
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--color-primary);
}

.benefit-theme-card:nth-child(3) .b-icon {
    background-color: var(--color-secondary-soft);
    color: var(--color-secondary);
}

.b-icon svg {
    width: 18px;
    height: 18px;
}

.benefit-theme-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.benefit-theme-card li {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 20px;
    line-height: 1.45;
}

.benefit-theme-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 800;
}

.benefit-theme-card:nth-child(2) li::before {
    color: var(--color-primary);
}

.benefit-theme-card:nth-child(3) li::before {
    color: var(--color-secondary);
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table th, 
.comparison-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.comparison-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.tbl-feature {
    font-weight: 700;
    color: var(--color-primary-light);
}

.comparison-table td:not(.tbl-feature) {
    color: var(--color-text-muted);
}

.comparison-table .table-highlight {
    background-color: rgba(13, 148, 136, 0.02);
    color: var(--color-accent-hover) !important;
    font-weight: 600;
}

.comparison-table th.table-highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%) !important;
    color: var(--color-white) !important;
}

.highlight-check {
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 2px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .comparison-header-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .comparison-pillars-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .treatment-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .treatment-text-col {
        position: relative;
        top: 0;
    }
}

/* --- Patient Pathway Section --- */
.pathway-section {
    background-color: var(--color-bg-light);
}

.pathway-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.pathway-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: rgba(13, 148, 136, 0.15);
    z-index: 1;
}

.pathway-step {
    text-align: center;
    position: relative;
    z-index: 5;
}

.step-num {
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    border: 3px solid rgba(13, 148, 136, 0.2);
    border-radius: 50%;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.pathway-step:hover .step-num {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.25);
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}


/* --- Personalized Treatment Section --- */
.personalized-treatment-section {
    background-color: var(--color-white);
}

.treatment-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.treatment-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.treatment-interactive-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.treatment-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.treatment-pill {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-primary-light);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.treatment-pill svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    transition: color var(--transition-smooth);
    flex-shrink: 0;
}

.treatment-pill:hover {
    background-color: var(--color-white);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.treatment-pill.active {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.treatment-pill.active svg {
    color: var(--color-white);
}

/* Detail Panel Styling */
.treatment-detail-panel {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--color-accent);
}

.treatment-detail-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.treatment-detail-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.treatment-detail-pane h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: left;
}

.treatment-detail-pane p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* --- Clinic Facility Gallery Section --- */
.clinic-showcase-section {
    background-color: var(--color-bg-light);
}

.clinic-gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 24px;
    margin-top: 50px;
}

.gallery-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--color-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.gallery-card.main-card {
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15, 23, 42, 0.95) 100%);
    color: var(--color-white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    text-align: left;
}

.gallery-card-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-white);
}

.gallery-card-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1024px) {
    .clinic-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-card.main-card {
        grid-row: span 1;
        height: 350px;
    }
    
    .gallery-card {
        height: 250px;
    }
}

/* --- Neighborhood Areas Served Section --- */
.areas-section {
    background-color: var(--color-white);
}

.search-box-container {
    margin: 40px auto 20px;
    max-width: 550px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

#areaSearchInput {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border-radius: 30px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

#areaSearchInput:focus {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

.areas-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg-light);
}

.area-item {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-light);
    transition: var(--transition-fast);
}

.area-item:hover {
    background-color: var(--color-secondary-soft);
    color: var(--color-secondary);
    border-color: rgba(14, 165, 233, 0.25);
}

.area-item.hidden {
    display: none;
}

.area-item.highlight {
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.no-results-msg {
    display: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* --- FAQs Section --- */
.faqs-section {
    background-color: var(--color-bg-light);
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(13, 148, 136, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.faq-toggle-icon svg {
    transition: transform var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.faq-item.active .faq-toggle-icon svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
    padding: 0 30px 24px 30px;
    color: var(--color-primary-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Contact & Booking Section --- */
.contact-section {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-details-list {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.cd-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-icon svg {
    width: 22px;
    height: 22px;
}

.cd-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.cd-text p {
    font-size: 0.95rem;
    color: var(--color-primary-light);
}

.phone-link, .social-link {
    color: var(--color-accent);
    font-weight: 600;
}

.phone-link:hover, .social-link:hover {
    text-decoration: underline;
}

.maps-integration {
    margin-top: 10px;
}

.map-btn-w {
    border-radius: var(--border-radius-sm);
    padding: 14px 24px;
}

/* Booking Form */
.contact-form-wrapper {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.form-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.05);
}

textarea {
    resize: vertical;
}

/* --- Footer --- */
.main-footer {
    background: #070a12;
    color: var(--color-white);
    padding: 90px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-title {
    color: var(--color-white);
}

.footer-logo .logo-subtitle {
    color: var(--color-accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-icon-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-accent);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    text-align: left;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.contact-info-item p strong {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.design-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animation Classes --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.95);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* --- Modal Overlay & Dialog --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon svg {
    width: 36px;
    height: 36px;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- Responsive Breakpoints --- */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .badge-container,
    .hero-cta,
    .hero-quick-highlights {
        justify-content: center;
    }
    
    .about-grid,
    .comparison-grid,
    .treatment-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-media {
        display: flex;
        justify-content: center;
    }
    
    .doctor-image-wrapper {
        width: 100%;
        max-width: 440px;
    }
    
    .pathway-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .pathway-timeline::before {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        border-right: none;
    }
    
    .stat-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Navigation drawer for mobile */
    .mobile-nav-toggle {
        display: flex;
        z-index: 1010;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 1005;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }
    
    .stat-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .doctor-image-placeholder {
        height: 380px;
    }
    
    .experience-badge-block {
        right: -10px;
        padding: 14px 20px;
    }
    
    .pathway-timeline {
        grid-template-columns: 1fr;
    }
    
    .treatment-pills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
