/*
=========================================
Shamli Physiotherapy Osteo Chiro Clinic
Professional Medical Website Stylesheet
=========================================
*/

/* ===================
   CSS Variables & Reset
   =================== */
:root {
    /* Color Palette - Healing & Professional */
    --primary-color: #2C6B5F;
    --primary-dark: #1F4D43;
    --primary-light: #3D8A78;
    --secondary-color: #D4A574;
    --accent-color: #E8955E;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --text-dark: #212529;

    /* Semantic Colors */
    --success: #28A745;
    --info: #17A2B8;
    --warning: #FFC107;
    --danger: #DC3545;

    /* Typography */
    --font-primary: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Crimson Pro', Georgia, serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(44, 107, 95, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 107, 95, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 107, 95, 0.16);
    --border-radius: 12px;

    /* Animation System */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --anim-duration-fast: 0.25s;
    --anim-duration: 0.4s;
    --anim-duration-slow: 0.6s;
    --perspective: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--off-white);
    overflow-x: hidden;
}

.page-wrapper {
    animation: pageEnter var(--anim-duration-slow) var(--ease-spring) forwards;
}

body.page-exit .page-wrapper {
    animation: pageExit 0.35s var(--ease-in-expo) forwards;
    pointer-events: none;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   Typography
   =================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D4940A;
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* ===================
   Buttons
   =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

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

.btn-primary-light {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-youtube {
    background: #FF0000;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

/* ===================
   Header & Navigation
   =================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.header-hidden {
    top: -200px !important;
}

.header .top-bar {
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.header.top-bar-hidden .top-bar {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.top-bar-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    white-space: nowrap;
}

.top-bar-hours i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

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

.nav-menu a {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
}

.nav-menu a:not(.btn-appointment):hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:not(.btn-appointment)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:not(.btn-appointment):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-appointment {
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================
   Hero Section
   =================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #2C6B5F 0%, #3D8A78 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 149, 94, 0.12) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 L 90 10 L 90 90 L 10 90 Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 1;
}

/* Cursor dots canvas */
#dotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 42%;
    gap: 3%;
    align-items: center;
}

.hero-text {
    max-width: 100%;
}

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

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.hero-image-placeholder i {
    font-size: 2.5rem;
}

.hero-image-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.hero-image-placeholder span {
    font-size: 0.8rem;
}

/* Hero Logo */
.hero-logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.hero-logo-text {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Hero CTA — Amber/Gold for contrast against green */
.hero .btn-primary {
    background: linear-gradient(135deg, #D4A574, #E8955E);
    color: #1a1a1a;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #E8955E, #D4A574);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.5);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===================
   Page Hero
   =================== */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Shared texture overlay */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 85%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L60 60M60 0L0 60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    pointer-events: none;
    z-index: 0;
}

/* Animated shimmer sweep */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    animation: heroShimmer 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroShimmer {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(500%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Bottom accent border */
.page-hero .page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    display: inline-flex;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 8px 20px;
    border-radius: 50px;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Hero CTA Button */
.page-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 10px 24px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.page-hero-cta:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-hero-cta i {
    font-size: 0.85rem;
}

/* ---- Page-Specific Motifs ---- */

/* About: Concentric circle rings — growth & legacy */
.page-hero-about::before {
    background:
        radial-gradient(circle at 15% 85%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

/* Animated ripple rings — About page hero */
.ripple-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    top: 60%;
    left: 50%;
    z-index: 0;
    pointer-events: none;
    animation: rippleExpand 4s ease-out infinite;
}

.ripple-ring-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.ripple-ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 1s;
}

.ripple-ring-3 {
    width: 120px;
    height: 120px;
    animation-delay: 2s;
}

.ripple-ring-4 {
    width: 120px;
    height: 120px;
    animation-delay: 3s;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}

/* Services: Diagonal stripe pattern — structure & precision */
/* REPLACE WITH */
.page-hero-services::before {
    background:
        radial-gradient(circle at 15% 85%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

/* Services page — heartbeat line animation */
.heartbeat-svg {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 0;
    pointer-events: none;
}

.hb-path-1 {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: heartbeatDraw 3s ease-in-out infinite;
}

.hb-path-2 {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: heartbeatDraw 3s ease-in-out infinite;
    animation-delay: 0.05s;
}

@keyframes heartbeatDraw {
    0% {
        stroke-dashoffset: 1600;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    60% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }

    85% {
        stroke-dashoffset: 0;
        opacity: 0;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Team: Dot grid pattern — clean, clinical, professional */

.page-hero-team::before {
    background:
        radial-gradient(circle at 15% 85%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

/* Doctors page — floating name cards */
.doctor-card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 10px 18px 10px 10px;
    pointer-events: none;
    z-index: 1;
}

.doctor-card-float-1 {
    top: 35%;
    right: 78%;
    animation: cardFloat1 4s ease-in-out infinite;
}

.doctor-card-float-2 {
    bottom: 15%;
    right: 12%;
    animation: cardFloat2 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes cardFloat1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardFloat2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}


.dcf-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.doctor-card-float-1 .dcf-avatar {
    background: linear-gradient(135deg, #D4940A, #f0b030);
}

.doctor-card-float-2 .dcf-avatar {
    background: linear-gradient(135deg, #2C6B5F, #5dbaa5);
}

.dcf-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dcf-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.dcf-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Hide cards on mobile — not enough space */
@media (max-width: 768px) {
    .doctor-card-float {
        display: none;
    }
}

/* Contact: Wave pattern — welcoming & inviting */
.page-hero-contact::before {
    background:
        radial-gradient(circle at 15% 85%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

/* Contact page animated waves */
/* REPLACE WITH — taller waves, stronger motion */
.contact-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
    pointer-events: none;
}

.contact-wave-1 {
    animation: waveSlide 6s ease-in-out infinite;
}

.contact-wave-2 {
    animation: waveSlide 6s ease-in-out infinite reverse;
    animation-delay: -2s;
}

.contact-wave-3 {
    animation: waveSlide 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes waveSlide {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-120px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===================
   Why Choose Us
   =================== */
.why-choose-us {
    padding: var(--section-padding);
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================
   Services Preview & Cards
   =================== */
.services-preview {
    padding: var(--section-padding);
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.service-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.03), rgba(212, 165, 116, 0.03));
    border-top: 4px solid var(--secondary-color);
    min-height: 380px;
}

.service-link-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.service-link-featured:hover {
    background: var(--primary-dark);
    gap: 0.75rem;
    color: var(--white) !important;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #D4940A;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card>p {
    margin-bottom: 1.5rem;
}

.service-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.service-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

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

/* ===================
   Testimonials
   =================== */
.testimonials {
    padding: var(--section-padding);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='28' fill='none' stroke='%232C6B5F' stroke-width='.4' opacity='.06'/%3E%3Ccircle cx='40' cy='40' r='18' fill='none' stroke='%232C6B5F' stroke-width='.3' opacity='.04'/%3E%3C/svg%3E")
        repeat,
        linear-gradient(180deg, var(--white) 0%, rgba(44, 107, 95, 0.03) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '\201C';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-display);
    font-size: 12rem;
    line-height: 1;
    color: rgba(44, 107, 95, 0.04);
    pointer-events: none;
    z-index: 0;
}

.testimonials > .container {
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
    margin-bottom: 3rem;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonials-slider .testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
}

.testimonial-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #FFB800;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.author-avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.testimonial-source {
    display: block;
    font-size: 0.75rem !important;
    color: var(--dark-gray) !important;
    opacity: 0.6;
    margin-top: 0.15rem;
}

.testimonial-source i {
    color: #4285F4;
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Ratings Badge Strip */
.ratings-strip {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.8rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
}

.rating-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rating-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.google-badge .rating-badge-icon {
    background: #f0f4ff;
    color: #4285F4;
}

.justdial-badge .rating-badge-icon {
    background: #fff4e6;
}

.jd-icon {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a6dcd;
    font-family: var(--font-primary);
}

.rating-badge-platform {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-badge-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #f5a623;
    font-size: 0.85rem;
}

.rating-badge-cta {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.rating-badge-cta i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.rating-badge:hover .rating-badge-cta i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 85%;
    }

    .ratings-strip {
        flex-direction: column;
        align-items: center;
    }

    .rating-badge {
        min-width: auto;
        width: 100%;
        max-width: 360px;
    }
}

/* ===================
   YouTube Section
   =================== */
.youtube-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.05), rgba(212, 165, 116, 0.05));
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.youtube-text h2 {
    margin-bottom: 0.5rem;
}

.channel-name {
    color: #FF0000;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.youtube-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.youtube-benefits li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.youtube-benefits i {
    color: var(--success);
    font-size: 1.2rem;
}

.youtube-embed {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
}

/* YouTube Facade (click-to-load) */
.youtube-facade {
    cursor: pointer;
    position: relative;
}

.youtube-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YouTube Thumbnail Fallback (for file:// protocol) */
.yt-thumbnail-fallback {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.yt-thumbnail-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.yt-thumbnail-fallback:hover img {
    transform: scale(1.05);
}

.yt-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: background 0.3s ease;
}

.yt-thumbnail-fallback:hover .yt-play-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.yt-play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.yt-play-btn i {
    margin-left: 4px;
}

.yt-thumbnail-fallback:hover .yt-play-btn {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
}

.yt-play-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ===================
   FAQ Section
   =================== */
/* FAQ Numbering - matches Why Patients Choose Us style */
.faq-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 45px;
    line-height: 1;
}

.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.faq-cta p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.faq-item {
    background: var(--off-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    line-height: 1.8;
}

/* ===================
   CTA Section
   =================== */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================
   Skip-to-Content Link (Accessibility)
   =================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===================
   Testimonial Avatar Colors
   =================== */
.author-avatar-initials {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.avatar-green {
    background: #2C6B5F;
}

.avatar-blue {
    background: #4A90A4;
}

.avatar-orange {
    background: #E07B39;
}

.avatar-purple {
    background: #7B4F9D;
}

.avatar-teal {
    background: #2A9D8F;
}

.avatar-red {
    background: #C0392B;
}

.avatar-indigo {
    background: #3F51B5;
}

.privacy-note {
    display: block;
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-top: 0.2rem;
}

/* ===================
   Footer
   =================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-logo-wrapper h3 {
    margin: 0;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

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

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-col ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.25s ease, margin-right 0.25s ease;
}

.footer-col ul li a:hover::before {
    content: '→';
    width: 14px;
    opacity: 1;
    margin-right: 4px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===================
   About Page Styles
   =================== */
.our-story {
    padding: var(--section-padding);
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.story-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.highlight-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.95rem;
    margin: 0;
}

.story-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.1), rgba(212, 165, 116, 0.1));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 3rem;
}

.image-placeholder p {
    font-size: 1rem;
    margin-top: 1rem;
}

.mission-vision {
    padding: var(--section-padding);
    background: var(--off-white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.mv-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.mv-card.mission {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.mv-card.vision {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
}

.mv-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.our-values {
    padding: var(--section-padding);
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.value-card:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.why-choose-about {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.03), rgba(212, 165, 116, 0.03));
}

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

.choose-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.choose-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.choose-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.choose-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    min-width: 60px;
}

.choose-text h3 {
    margin-bottom: 0.75rem;
}

.choose-text p {
    margin: 0;
}

.certifications {
    padding: var(--section-padding);
    background: var(--off-white);
}

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

.cert-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.cert-placeholder {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--medium-gray);
}

.cert-placeholder i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.cert-placeholder p {
    font-weight: 600;
    margin: 0;
}

.cert-placeholder span {
    font-size: 0.875rem;
}

.cert-note {
    text-align: center;
    font-style: italic;
    color: var(--medium-gray);
    margin: 0;
}

/* ===================
   Services Page Styles
   =================== */
.services-intro {
    padding: var(--section-padding);
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: sticky;
    top: 90px;
    z-index: 100;
    background: var(--white);
    padding: 1rem 0;
    margin: -1rem 0 0;
    box-shadow: 0 2px 8px rgba(44, 107, 95, 0);
    transition: box-shadow 0.3s ease;
}

.services-nav.is-stuck {
    box-shadow: 0 4px 12px rgba(44, 107, 95, 0.1);
}

.service-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 150px;
}

.service-nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.service-nav-btn.active i {
    color: var(--white);
}

.service-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-nav-btn i {
    font-size: 2rem;
}

.service-nav-btn span {
    font-weight: 600;
}

.service-section {
    padding: var(--section-padding);
    background: var(--off-white);
    position: relative;
}

.service-section:nth-child(even) {
    background: var(--white);
}

/* Wave divider between service sections */
.service-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin: 0;
    line-height: 0;
}

.service-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.service-divider--white-to-gray svg path {
    fill: var(--off-white);
}

.service-divider--gray-to-white svg path {
    fill: var(--white);
}

.service-divider--white-to-gray {
    background: var(--white);
}

.service-divider--gray-to-white {
    background: var(--off-white);
}

@media (max-width: 768px) {
    .service-divider {
        height: 50px;
    }
}

.service-header {
    margin-bottom: 3rem;
}

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

.service-header-content p {
    font-size: 1.1rem;
    text-align: left;
}

.service-benefits {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.service-section:nth-child(even) .service-benefits {
    background: var(--off-white);
}

.service-benefits h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-benefits h3 i {
    color: var(--success);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.conditions-grid {
    margin-bottom: 3rem;
}

.conditions-title {
    text-align: center;
    margin-bottom: 2rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.condition-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-section:nth-child(even) .condition-card {
    background: var(--off-white);
}

.condition-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.condition-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.condition-card h4 {
    margin-bottom: 0.75rem;
}

.condition-card p {
    font-size: 0.95rem;
    margin: 0;
}

.when-to-consult {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(44, 107, 95, 0.07);
    border-radius: var(--border-radius);
    border-left: 4px solid #2C6B5F;
}

.when-to-consult h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2C6B5F;
}

.when-to-consult h3 i {
    color: #2C6B5F;
}

.when-to-consult p {
    margin: 0;
    line-height: 1.8;
}

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

/* ===================
   Doctors Page Styles
   =================== */
.team-intro {
    padding: var(--section-padding);
    background: var(--white);
}

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

.doctors-section {
    padding: var(--section-padding);
    background: var(--off-white);
}

.doctor-profile {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: start;
}

.doctor-profile.reverse {
    grid-template-columns: 1fr 400px;
}

.doctor-profile.reverse .doctor-image {
    order: 2;
}

.doctor-profile.reverse .doctor-info {
    order: 1;
}

.doctor-image {
    position: relative;
}

.doctor-image .image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
}

.doctor-image .image-placeholder p {
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.doctor-header {
    margin-bottom: 2rem;
}

.doctor-header h2 {
    margin-bottom: 0.5rem;
}

.doctor-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.doctor-bio p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.doctor-specializations,
.doctor-certifications {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.doctor-specializations h3,
.doctor-certifications h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.doctor-specializations ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.doctor-specializations li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.doctor-specializations i {
    color: var(--primary-color);
}

.cert-placeholders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.cert-item span {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

.doctor-cta {
    margin-top: 2rem;
}

.team-philosophy {
    padding: var(--section-padding);
    background: var(--white);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.philosophy-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.philosophy-item h3 {
    margin-bottom: 0.75rem;
}

.philosophy-item p {
    font-size: 0.95rem;
    margin: 0;
}

.youtube-section-doctors {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.05), rgba(212, 165, 116, 0.05));
}

.youtube-doctors-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.youtube-features {
    margin-bottom: 2rem;
}

.youtube-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.youtube-feature i {
    font-size: 1.5rem;
    color: #FF0000;
    margin-top: 0.25rem;
}

.youtube-feature h4 {
    margin-bottom: 0.25rem;
}

.youtube-feature p {
    font-size: 0.95rem;
    margin: 0;
}

.youtube-embed-doctors {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.youtube-embed-doctors iframe {
    width: 100%;
    height: 400px;
}

/* ===================
   Contact Page Styles
   =================== */
.contact-info-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card a {
    color: var(--primary-color);
    transition: var(--transition);
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.contact-note {
    display: block;
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

.contact-main {
    padding: var(--section-padding);
    background: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.appointment-form-section {
    background: linear-gradient(135deg, var(--white) 0%, rgba(44, 107, 95, 0.02) 50%, rgba(212, 165, 116, 0.03) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.appointment-form-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(44, 107, 95, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.appointment-form-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    margin-bottom: 0.75rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 107, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-notice i {
    color: var(--info);
    margin-top: 0.25rem;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Field-level error styling */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.field-valid,
.form-group select.field-valid,
.form-group textarea.field-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.field-error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* ===================
   2-Step Form — Progress Indicator
   =================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-spring);
    position: relative;
    z-index: 1;
}

.step-item.active .step-dot {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(44, 107, 95, 0.15);
    transform: scale(1.1);
}

.step-item.completed .step-dot {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary-dark);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--light-gray);
    min-width: 40px;
    max-width: 80px;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--success);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-connector.completed::after {
    transform: scaleX(1);
}

/* ===================
   2-Step Form — Step Panels
   =================== */
.form-step {
    animation: stepSlideIn 0.35s var(--ease-spring) both;
}

.form-step-hidden {
    display: none;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes stepSlideInReverse {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step.slide-reverse {
    animation: stepSlideInReverse 0.35s var(--ease-spring) both;
}

/* ===================
   2-Step Form — Navigation Buttons
   =================== */
.step-nav {
    margin-top: 0.5rem;
}

.step-nav-split {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.step-next-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.05rem;
}

.step-back-btn {
    padding: 0.9rem 1.4rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-nav-split .btn-submit {
    flex: 1;
    justify-content: center;
}

.map-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-header h3 {
    margin-bottom: 0.5rem;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.map-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.emergency-contact {
    padding: var(--section-padding);
    background: var(--white);
}

.emergency-box {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #1a4a3f, #2C6B5F);
    border-left: 6px solid #D4940A;
    color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.emergency-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 148, 10, 0.25);
    border-radius: 50%;
    font-size: 2.5rem;
}

.emergency-content h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.emergency-content p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.emergency-numbers {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: #1a4a3f;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-connect {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.05), rgba(212, 165, 116, 0.05));
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Branded icon circles */
.social-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.social-btn.facebook .social-icon-circle {
    background: #1877F2;
}

.social-btn.instagram .social-icon-circle {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

.social-btn.youtube .social-icon-circle {
    background: #FF0000;
}

.social-info {
    flex: 1;
    min-width: 0;
}

.social-platform {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.social-handle {
    display: block;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.social-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    line-height: 1.3;
}

.social-cta {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-cta i {
    font-size: 0.7rem;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.social-btn:hover .social-cta i {
    transform: translateX(3px);
}

.social-btn.facebook .social-cta {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.08);
}

.social-btn.instagram .social-cta {
    color: #DD2A7B;
    background: rgba(221, 42, 123, 0.08);
}

.social-btn.youtube .social-cta {
    color: #FF0000;
    background: rgba(255, 0, 0, 0.08);
}

.social-btn.facebook:hover .social-cta {
    background: #1877F2;
    color: white;
}

.social-btn.instagram:hover .social-cta {
    background: linear-gradient(135deg, #F58529, #DD2A7B);
    color: white;
}

.social-btn.youtube:hover .social-cta {
    background: #FF0000;
    color: white;
}

/* ===================
   Image Slideshow (Hero & About)
   =================== */
.clinic-slideshow {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    aspect-ratio: 4/3;
    user-select: none;
    -webkit-user-select: none;
}

.slideshow-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.slideshow-track.dragging {
    transition: none;
}

.slideshow-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Slideshow navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 50px;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 4px;
}

/* Slideshow prev/next arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.clinic-slideshow:hover .slideshow-arrow {
    opacity: 1;
}

.slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-arrow.prev {
    left: 10px;
}

.slideshow-arrow.next {
    right: 10px;
}

/* About page slideshow variant */
.story-image .clinic-slideshow {
    max-width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ===================
   Lightbox Popup
   =================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease forwards;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
    left: -60px;
}

.lightbox-nav.next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ===================
   Horizontal Carousel (Awards & Certificates)
   =================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.awards-gallery,
.cert-gallery {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.awards-gallery::-webkit-scrollbar,
.cert-gallery::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(44, 107, 95, 0.35);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.carousel-arrow:hover {
    background: var(--primary-dark);
    transform: translateY(-60%) scale(1.1);
    opacity: 1;
}

.carousel-arrow.prev {
    left: -18px;
}

.carousel-arrow.next {
    right: -18px;
}

/* Scroll progress indicator */
.carousel-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.75rem;
}

.carousel-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-progress-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ===================
   Award Cards (About Page Carousel)
   =================== */
.award-img-card {
    flex: 0 0 calc(25% - 0.94rem);
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--white);
    scroll-snap-align: start;
}

.award-img-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.award-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.award-img-card::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(44, 107, 95, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.award-img-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ===================
   Certificate Cards (Doctors Page Carousel)
   =================== */
.cert-img-card {
    flex: 0 0 calc(25% - 0.94rem);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--white);
    border: 2px solid transparent;
    scroll-snap-align: start;
}

.cert-img-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.cert-img-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.cert-img-card:hover img {
    transform: scale(1.03);
}

/* Keyboard focus ring — visible to keyboard users, invisible to mouse users */
.cert-img-card:focus,
.award-img-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.cert-img-card::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(44, 107, 95, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.cert-img-card:hover::after {
    opacity: 1;
}

/* Qualification certificate — highlighted border */
.cert-img-card.qualification {
    border-color: var(--secondary-color);
}

/* ===================
   Doctor Photo (Replaces placeholder)
   =================== */
.doctor-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.doctor-image:hover .doctor-photo {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(44, 107, 95, 0.25);
}

/* ===================
   Responsive Design
   =================== */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 600px;
    }

    .youtube-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .youtube-doctors-content {
        grid-template-columns: 1fr;
    }

    .doctor-profile,
    .doctor-profile.reverse {
        grid-template-columns: 1fr;
    }

    .doctor-profile.reverse .doctor-image,
    .doctor-profile.reverse .doctor-info {
        order: initial;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Raise header above floating buttons (z-index 1050) so nav dropdown isn't obscured */
    .header {
        z-index: 1200;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* === FIXED: Mobile Nav Menu (Bug A — spacious & polished) === */
    .navbar {
        position: relative;
    }

    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 0;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
        z-index: 9999;
        border-radius: 0 0 12px 12px;
        animation: menuSlideDown 0.25s ease-out;
        max-height: 80vh;
        overflow-y: auto;
    }

    @keyframes menuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex !important;
    }

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

    .nav-menu a {
        padding: 1.1rem 1.75rem;
        width: 100%;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-color);
        letter-spacing: 0.01em;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(44, 107, 95, 0.06);
        color: var(--primary-color);
        padding-left: 2rem;
    }

    .nav-menu a.active {
        color: var(--primary-color);
        font-weight: 600;
        border-left: 3px solid var(--primary-color);
        background: rgba(44, 107, 95, 0.04);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:not(.btn-appointment)::after {
        display: none;
    }

    .nav-menu .btn-appointment {
        margin: 0.75rem 1.25rem 1rem;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: var(--white) !important;
        border-radius: 50px;
        padding: 1rem 1.5rem;
        border: none;
        font-weight: 600;
        font-size: 1rem;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 14px rgba(44, 107, 95, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative;
        z-index: 10000;
    }

    .nav-menu .btn-appointment:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(44, 107, 95, 0.4);
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        padding-left: 1.5rem;
    }

    /* === FIXED: Hero Padding === */
    .hero {
        min-height: 70vh;
        padding: 250px 0 60px;
    }

    .page-hero {
        padding: 250px 0 40px;
    }

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

    .hero-image {
        display: flex;
        justify-content: center;
    }

    /* === Slideshow: Full-width snapping === */
    .clinic-slideshow {
        max-width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
    }

    .slideshow-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .slideshow-arrow {
        opacity: 1;
    }

    .hero-logo-section {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-logo-img {
        width: 70px;
        height: 70px;
        padding: 4px;
    }

    .hero-logo-text {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 85%;
    }

    .hero-stats {
        gap: 2rem;
    }

    /* === Doctor Profile: Prevent clipping === */
    .doctor-profile,
    .doctor-profile.reverse {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .doctor-image {
        width: 100%;
        max-width: 100%;
    }

    .doctor-photo {
        width: 100%;
        height: auto;
        border-radius: var(--border-radius);
    }

    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 0.75rem 1rem;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .doctor-info {
        padding: 0 10px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .doctor-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .doctor-specializations ul {
        grid-template-columns: 1fr;
    }

    /* === Awards & Cert Gallery: Bigger on mobile === */
    .award-img-card {
        flex: 0 0 calc(70% - 0.5rem);
        min-height: 180px;
    }

    .cert-img-card {
        flex: 0 0 calc(75% - 0.5rem);
    }

    .carousel-arrow.prev {
        left: 0;
    }

    .carousel-arrow.next {
        right: 0;
    }

    /* === Contact Form: Prevent overflow === */
    .appointment-form-section {
        padding: 1.5rem 1rem;
        overflow: visible;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-progress {
        overflow-x: auto;
        padding: 0 0.5rem;
    }

    .step-progress-bar {
        min-width: 100%;
    }

    /* === Floating Buttons: Smaller on mobile, prevent overlap === */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        right: 15px;
        bottom: 15px;
        font-size: 1.4rem;
        z-index: 1000;
    }

    /* Hide the tooltip on mobile — prevents horizontal overflow */
    .whatsapp-float::after {
        display: none;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 15px;
        bottom: 72px;
        font-size: 0.95rem;
        z-index: 1000;
    }

    /* Extra bottom breathing room on form submit area */
    .step-nav-split {
        padding-bottom: 70px;
    }

    .benefits-grid,
    .services-cards,
    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .emergency-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .emergency-numbers {
        justify-content: center;
    }

    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

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

    .hero-description {
        font-size: 1.05rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-nav {
        flex-direction: column;
    }

    .service-nav-btn {
        width: 100%;
    }

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

    .choose-item {
        flex-direction: column;
        text-align: center;
    }

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

    /* Override: Make gallery cards bigger on small screens, not smaller */
    .awards-gallery .award-img-card {
        flex: 0 0 calc(85% - 0.5rem);
        min-height: 200px;
    }

    .cert-gallery .cert-img-card {
        flex: 0 0 calc(90% - 0.5rem);
    }

    .carousel-arrow.prev {
        left: -10px;
    }

    .carousel-arrow.next {
        right: -10px;
    }

    .lightbox-content img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ===================
   Utility Classes
   =================== */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   PREMIUM ANIMATION SYSTEM
   Apple-style subtle & refined interactions
   ============================================ */

/* --- Page Transition Keyframes --- */
@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: perspective(var(--perspective)) rotateY(3deg) translateX(40px) scale(0.98);
    }
}

/* --- Scroll Entrance Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered entrance classes */
.anim-ready {
    opacity: 0;
    transform: translateY(30px);
}

.anim-visible {
    animation: fadeUp var(--anim-duration-slow) var(--ease-spring) forwards;
}

.anim-visible-delay-1 {
    animation-delay: 0.1s;
}

.anim-visible-delay-2 {
    animation-delay: 0.2s;
}

.anim-visible-delay-3 {
    animation-delay: 0.3s;
}

.anim-visible-delay-4 {
    animation-delay: 0.4s;
}

/* --- Shine/Gloss Sweep Effect --- */
@keyframes shineSweep {
    from {
        transform: translateX(-100%) rotate(25deg);
    }

    to {
        transform: translateX(200%) rotate(25deg);
    }
}

/* --- Floating Animation (Hero Badge) --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(0.5deg);
    }
}

/* --- Pulse Glow (Featured Card) --- */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(44, 107, 95, 0.15);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(44, 107, 95, 0);
    }
}

/* --- Icon Bounce --- */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* --- YouTube Play Button Pulse --- */
@keyframes playPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
    }
}

.yt-play-btn {
    animation: playPulse 2s ease-in-out infinite;
}

/* --- 3D Tilt Card System --- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform var(--anim-duration) var(--ease-spring),
        box-shadow var(--anim-duration) var(--ease-spring);
}

.tilt-card:hover {
    box-shadow: 0 20px 40px rgba(44, 107, 95, 0.15);
}

/* Shine overlay for tilt cards */
.tilt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--anim-duration) ease;
    z-index: 1;
}

.tilt-card:hover::after {
    opacity: 1;
    animation: shineSweep 0.8s var(--ease-out-expo) forwards;
}

/* --- Card Hover Enhancements --- */
.benefit-card,
.service-card,
.condition-card,
.testimonial-card,
.value-card,
.philosophy-item,
.contact-card,
.social-btn,
.choose-item,
.service-nav-btn {
    position: relative;
    overflow: hidden;
    transition: transform var(--anim-duration) var(--ease-spring),
        box-shadow var(--anim-duration) var(--ease-spring);
}

/* Subtle shine on hover for all interactive cards */
.benefit-card::before,
.service-card::before,
.condition-card::before,
.value-card::before,
.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 60%);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.benefit-card:hover::before,
.service-card:hover::before,
.condition-card:hover::before,
.value-card:hover::before,
.philosophy-item:hover::before {
    animation: shineSweep 0.6s var(--ease-out-expo) forwards;
}

/* --- Icon Hover Effects --- */
.benefit-icon,
.condition-icon,
.mv-icon,
.value-icon,
.contact-icon {
    transition: transform var(--anim-duration) var(--ease-spring),
        box-shadow var(--anim-duration) var(--ease-spring);
}

.benefit-card:hover .benefit-icon,
.condition-card:hover .condition-icon,
.value-card:hover .value-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(44, 107, 95, 0.25);
}

.contact-card:hover .contact-icon {
    animation: iconBounce 0.5s var(--ease-spring);
}

/* --- Service Featured Card Glow --- */
.service-card.featured {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Fix: When featured card enters via scroll, run both animations */
.service-card.featured.anim-visible {
    animation: fadeUp var(--anim-duration-slow) var(--ease-spring) forwards,
        pulseGlow 3s ease-in-out 0.7s infinite;
}

/* --- Button Enhancements --- */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform var(--anim-duration-fast) var(--ease-spring),
        box-shadow var(--anim-duration-fast) var(--ease-spring),
        background var(--anim-duration-fast) ease,
        color var(--anim-duration-fast) ease;
}

/* Ripple effect container */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Social Media Icons Pop --- */
.social-links a,
.footer-social a {
    transition: transform var(--anim-duration-fast) var(--ease-spring),
        color var(--anim-duration-fast) ease;
}

.social-links a:hover,
.footer-social a:hover {
    transform: scale(1.2) translateY(-2px);
}

/* --- Hero Badge Float --- */
.hero-badge {
    animation: float 4s ease-in-out infinite;
}

/* --- FAQ Enhanced Accordion --- */
.faq-answer {
    transition: max-height var(--anim-duration) var(--ease-spring),
        opacity var(--anim-duration-fast) ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-question {
    transition: color var(--anim-duration-fast) ease,
        background var(--anim-duration-fast) ease;
}

.faq-question:hover {
    background: rgba(44, 107, 95, 0.03);
}

.faq-question i {
    transition: transform var(--anim-duration) var(--ease-spring);
}

/* --- Section Header Entrance --- */
.section-header,
.service-header-content {
    transition: opacity var(--anim-duration-slow) ease,
        transform var(--anim-duration-slow) var(--ease-spring);
}

/* --- Testimonial Star Shimmer --- */
.testimonial-rating {
    transition: transform var(--anim-duration-fast) ease;
}

.testimonial-card:hover .testimonial-rating {
    transform: scale(1.05);
}

/* --- MV Card (Mission/Vision) Depth --- */
.mv-card {
    transition: transform var(--anim-duration) var(--ease-spring),
        box-shadow var(--anim-duration) var(--ease-spring);
}

.mv-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* --- Doctor Profile Image Depth --- */
.doctor-image .image-placeholder {
    transition: transform var(--anim-duration) var(--ease-spring),
        box-shadow var(--anim-duration) var(--ease-spring);
}

.doctor-image:hover .image-placeholder {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(44, 107, 95, 0.25);
}

/* --- Experience Badge Pop --- */
.experience-badge {
    transition: transform var(--anim-duration) var(--ease-spring);
}

.doctor-image:hover .experience-badge {
    transform: scale(1.08) translateY(-4px);
}

/* --- Emergency Button Hover --- */
.emergency-btn {
    transition: transform var(--anim-duration-fast) var(--ease-spring),
        box-shadow var(--anim-duration-fast) ease;
}

@media (max-width: 768px) {

    /* === Step Indicator: Fit mobile width === */
    .step-indicator {
        gap: 0;
        padding: 1rem 0;
        overflow-x: auto;
    }

    .step-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-connector {
        min-width: 20px;
        max-width: 40px;
    }

    /* Reduce 3D tilt intensity on mobile */
    .tilt-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Simpler card hover — just lift, no tilt */
    .benefit-card:hover,
    .service-card:hover,
    .condition-card:hover,
    .testimonial-card:hover {
        transform: translateY(-4px) !important;
    }

    /* Reduce floating animation */
    .hero-badge {
        animation-duration: 5s;
    }

    /* Simpler page transitions on mobile */
    @keyframes pageEnter {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes pageExit {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    /* Smaller entrance movement */
    .anim-ready {
        transform: translateY(20px);
    }

    /* Disable shine sweep (performance) */
    .benefit-card::before,
    .service-card::before,
    .condition-card::before,
    .value-card::before,
    .philosophy-item::before,
    .tilt-card::after {
        display: none;
    }

    /* Layout containment */
    body {
        overflow-x: hidden;
    }

    .page-wrapper {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* ============================================
   ACCESSIBILITY: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }

    body {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none !important;
    }

    body.page-exit {
        animation: none !important;
    }

    .anim-ready {
        opacity: 1;
        transform: none;
    }

    .hero-badge {
        animation: none;
    }

    .ripple-ring {
        animation: none;
    }

    .contact-wave-1,
    .contact-wave-2,
    .contact-wave-3 {
        animation: none;
    }

    .hb-path-1,
    .hb-path-2 {
        animation: none;
    }

    .doctor-card-float-1,
    .doctor-card-float-2 {
        animation: none;
    }

    .testimonials-slider {
        scroll-behavior: auto;
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .whatsapp-float,
    .back-to-top {
        display: none;
    }

    .header,
    .footer,
    .cta-section,
    .btn {
        display: none;
    }
}

.condition-card.condition-more {
    background: linear-gradient(135deg, rgba(44, 107, 95, 0.08), rgba(212, 148, 10, 0.08));
    border: 2px dashed var(--primary-color);
    text-align: center;
}

.condition-card.condition-more .condition-icon i {
    color: #D4940A;
}

.condition-card.condition-more h4 {
    color: var(--primary-color);
}

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    color: white;
    animation: none;
}

/* WhatsApp number tooltip badge */
.whatsapp-float::after {
    content: '+91 81714 16965';
    position: absolute;
    right: 64px;
    white-space: nowrap;
    background: #25D366;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===================
   Floating Button Positioning
   Position is fully CSS-controlled (inline style no longer sets position/bottom/right).
   WhatsApp: bottom 90px. Back-to-top: bottom 155px (above WhatsApp).
   =================== */
.back-to-top {
    position: fixed;
    bottom: 155px;
    right: 24px;
    z-index: 1100;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(44, 107, 95, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Testimonials pause button */
.testimonials-pause-btn {
    display: block;
    margin: -1.5rem auto 1rem;
    /* centered below slider */
    position: static;
    /* no longer floating */
    background: rgba(44, 107, 95, 0.15);
    border: 1px solid rgba(44, 107, 95, 0.25);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 3px 7px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    transition: background 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.testimonials:hover .testimonials-pause-btn {
    opacity: 0;
    pointer-events: auto;
}

.testimonials-pause-btn:hover,
.testimonials-pause-btn[aria-pressed="true"] {
    background: rgba(44, 107, 95, 0.3);
}

.testimonials-pause-btn[aria-pressed="true"] {
    opacity: 0;
    pointer-events: auto;
}

.testimonials-pause-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    opacity: 0;
    pointer-events: auto;
}

.testimonials {
    position: relative;
}

@media (max-width: 480px) {
    .top-bar-hours {
        display: none;
    }
}

/* ===================
   Toast Notifications
   =================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backdrop-filter: blur(12px);
    max-width: 400px;
}

.toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toast.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.toast.info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0 0 0.5rem;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--white);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ===================
   Textarea Character Counter
   =================== */
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.35rem;
    transition: color 0.2s ease;
}

.char-counter.near-limit {
    color: var(--warning);
}

.char-counter.at-limit {
    color: var(--danger);
    font-weight: 600;
}

/* ===================
   Privacy / Legal Content Page
   =================== */
.legal-section {
    padding: 4rem 0;
}

.legal-container {
    max-width: 800px;
}

.legal-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-body h2 {
    margin-top: 2.5rem;
    color: var(--primary-color);
}

.legal-body h3 {
    margin-top: 1.5rem;
}

.legal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.legal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-body a:hover {
    color: var(--primary-dark);
}

/* ===================
   Thank You Page — Supplementary Styles
   =================== */
.thankyou-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 10;
}

.thankyou-logo img {
    border-radius: 8px;
}

.thankyou-logo span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.thankyou-review {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-align: center;
}

.thankyou-review p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.thankyou-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.thankyou-review-btn:hover {
    transform: translateY(-2px);
}

.thankyou-review-btn i {
    color: #4285F4;
}

.thankyou-address {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.thankyou-address h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.thankyou-address p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.thankyou-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #81E6D9;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.thankyou-directions:hover {
    color: var(--white);
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.7);
}

.footer-privacy-link:hover {
    color: var(--white);
}

/* WhatsApp form CTA */
.whatsapp-form-cta {
    text-align: center;
    margin-top: 0.75rem;
}

.whatsapp-form-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.whatsapp-form-link {
    color: #25D366;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.35rem;
}

.whatsapp-form-link:hover {
    color: #128C7E;
}

/* ========================================
   Error Page (404)
   ======================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: -1rem;
    letter-spacing: -0.04em;
}

.error-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.error-content h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
}

.error-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 180px;
}

.error-contact {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.error-contact a {
    color: var(--white);
    font-weight: 600;
}

.error-contact a:hover {
    text-decoration: underline;
}

/* ========================================
   Thank You Page
   ======================================== */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.thankyou-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.thankyou-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.thankyou-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: #28a745;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thankyou-content h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
}

.thankyou-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.thankyou-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.thankyou-details h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.thankyou-details ul {
    list-style: none;
    padding: 0;
}

.thankyou-details ul li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.thankyou-details ul li i {
    color: #28a745;
    margin-right: 0.75rem;
    width: 18px;
}

.thankyou-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.thankyou-actions .btn {
    min-width: 180px;
}

.thankyou-contact {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.thankyou-contact a {
    color: var(--white);
    font-weight: 600;
}

.thankyou-contact a:hover {
    text-decoration: underline;
}

/* ========================================
   Last Reviewed Badge (Services & Doctors)
   ======================================== */
.page-last-reviewed {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.page-last-reviewed i {
    margin-right: 0.4rem;
    font-size: 0.75rem;
}

/* ============================================================
   Responsive Floating Buttons Override (Precedence Correction)
   Ensures floating elements stack neatly in the bottom right corner
   on tablet/mobile screens (<= 768px) and don't overlap image slider arrows.
   ============================================================ */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        z-index: 1100;
    }

    .back-to-top {
        bottom: 72px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
        z-index: 1100;
    }
}