/* Modern Home Page Styles */

/* Modern Hero Section */
.modern-hero {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(165deg, #f0f9ff 0%, #fff 45%, #f8fbff 100%);
    overflow: hidden;
}

.home-hero .hero-shape-bg {
    opacity: 0.08;
}

.hero-shape-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-shape-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: var(--primary-gradient);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    z-index: 0;
    animation: morphShape 15s infinite ease-in-out;
}

@keyframes morphShape {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-heading,
.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc,
.hero-text p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-cta-primary {
    padding: 16px 36px;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(0, 153, 204, 0.35);
    min-width: 220px;
}

.hero-cta-outline {
    padding: 16px 36px;
    border-width: 2px;
    font-weight: 600;
    min-width: 220px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 204, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hero-trust-item i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hero-trust-item i.fa-certificate {
    color: #d4a017;
}

.hero-trust-item i.fa-shield-alt {
    color: #27ae60;
}

.hero-trust-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hero-trust-item strong {
    font-size: 0.9rem;
    color: #1a1a2e;
}

.hero-trust-item span {
    font-size: 0.75rem;
    color: #666;
}

.hero-image-container {
    position: relative;
}

.hero-image-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hero-image-main {
    width: 100%;
    display: block;
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform 0.4s ease;
}

.hero-image-container:hover .hero-image-main {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-badge {
    position: absolute;
    background: #fff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: floatBadge 6s infinite ease-in-out;
    z-index: 2;
}

.floating-badge strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.floating-badge small {
    font-size: 0.75rem;
    color: #666;
}

.badge-1 {
    top: 12%;
    left: -16px;
}

.badge-2 {
    bottom: 22%;
    right: -16px;
    animation-delay: 2s;
}

.badge-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

@keyframes floatBadge {

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

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

/* Floating Booking Card */
.home-booking-wrap {
    margin-top: -64px;
    position: relative;
    z-index: 10;
}

.glass-booking-card {
    background: #fff;
    border: 1px solid rgba(0, 153, 204, 0.1);
    border-radius: 20px;
    padding: 28px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
}

.booking-strip-label {
    margin: 0 0 20px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-strip-label i {
    color: var(--primary-color);
}

.glass-booking-card .booking-form-inline .form-control {
    background: #f8fbff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.glass-booking-card .booking-form-inline .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.15);
}

.booking-submit {
    height: 55px;
    padding: 0 32px;
    border-radius: 12px;
    font-weight: 600;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    white-space: nowrap;
}

.booking-submit:hover {
    background: #0a1f38;
    color: #fff;
}

/* Modern Service Cards */
.modern-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.modern-service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: transparent;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.modern-service-card:hover .card-icon-wrapper {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.modern-service-card:hover .read-more-link {
    opacity: 1;
    transform: translateY(0);
}

/* Redesigned Creative About Section */
.creative-about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Reduced gap to prevent wrapping */
    align-items: center;
}

.about-content {
    order: 1;
}

.about-image-creative {
    order: 2;
    position: relative;
    padding: 20px;
}

.blob-image-mask {
    border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    animation: blob-pulse 8s infinite ease-in-out;
    border: 8px solid rgba(255, 255, 255, 0.5);
}

.blob-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Slight zoom for parallax feel */
}

@keyframes blob-pulse {
    0% {
        border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
    }

    25% {
        border-radius: 73% 27% 26% 74% / 64% 36% 64% 36%;
    }

    50% {
        border-radius: 28% 72% 44% 56% / 49% 62% 38% 51%;
    }

    75% {
        border-radius: 40% 60% 70% 30% / 47% 43% 57% 53%;
    }

    100% {
        border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
    }
}

.floating-experience-badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 153, 204, 0.15);
    text-align: center;
    color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    z-index: 10;
    min-width: 160px;
    animation: float-badge 4s infinite ease-in-out;
}

@keyframes float-badge {

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

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

.doctor-highlights-grid {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.pattern-dots {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
    z-index: -1;
}

.service-page {
    overflow-x: hidden;
}



.home-who-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #fff 0%, #f8fbff 100%);
}

.home-who-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.home-who-section::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 35, 66, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Home: Who We Are section — images left, content right; responsive stack */
/* Base Layout for Home Sections (Two Columns) */
.home-who-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* New Layout for Centered Simple Sections (Image-less) */
.home-who-centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-who-images {
    position: relative;
    order: 2;
}

.home-who-img-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-who-img-main {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-who-images:hover .home-who-img-main {
    transform: scale(1.02);
}

.home-who-img-offset {
    width: 82%;
    margin-top: -24px;
    margin-left: auto;
    margin-right: 0;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.home-who-badge {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 5px solid var(--primary-color);
    text-align: center;
    animation: floatBadgePremium 5s infinite ease-in-out;
    z-index: 5;
}

@keyframes floatBadgePremium {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-12px) translateX(5px); }
}

.home-who-badge-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.home-who-badge-text {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* base home-who-content has no specific overrides */

.home-who-centered-layout .home-who-content {
    width: 100%;
}

.home-who-label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.home-who-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 20px;
    line-height: 1.2;
}

.home-who-title-accent {
    color: var(--primary-color);
}

.home-who-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 24px;
}

.home-who-centered-layout .home-who-desc {
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 auto 32px;
    max-width: 800px;
}

.home-who-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-bottom: 28px;
}

.home-who-centered-layout .home-who-features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 32px;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}

.home-who-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-who-feature-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-who-feature strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.home-who-feature span {
    font-size: 0.85rem;
    color: #666;
}

/* Home: Our Impact section — compact dark blue, two-column then 2x2 stats */
.home-impact {
    background: var(--secondary-color);
    color: #fff;
    padding: 48px 0 56px;
    position: relative;
    overflow-x: hidden;
}

.home-impact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-impact .container {
    position: relative;
    z-index: 2;
}

.home-impact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.home-impact-label {
    display: block;
    color: var(--accent-color, #00c6ff);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.home-impact-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.home-impact-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.home-impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-impact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.home-impact-check {
    color: var(--accent-color, #00c6ff);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.home-impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.home-impact-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.home-impact-stat:hover {
    border-color: rgba(0, 198, 255, 0.35);
    transform: translateY(-2px);
}

.home-impact-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color, #00c6ff);
    line-height: 1.1;
    margin-bottom: 4px;
}

.home-impact-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- REFINEMENTS --- */

/* 1. Horizontal Doctor Cards — compact on home */
.home-experts {
    padding-top: 48px;
    padding-bottom: 48px;
}

.home-experts-header {
    text-align: center;
    margin-bottom: 28px;
}

.home-experts-header span {
    display: block;
    margin-bottom: 6px;
}

.home-experts-header h2 {
    margin: 0;
    font-size: 1.65rem;
}

.home-experts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-experts-list .doctor-card-horizontal {
    margin-bottom: 0;
}

.doctor-card-horizontal {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.doctor-card-reverse {
    flex-direction: row-reverse;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    color: #fff !important;
    background: var(--primary-gradient);
    opacity: 1;
    text-decoration: none;
}

.doctor-img-side {
    width: 36%;
    min-height: 260px;
}

.doctor-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-content-side {
    width: 64%;
    padding: 24px 28px;
}

.doctor-content-side h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.doctor-content-side p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.doctor-content-side .text-muted {
    margin-bottom: 14px;
}

.doctor-content-side .cta-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* About Page Doctor Highlights */
.doctor-highlight-img {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.doctor-highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-highlight-item a:hover .doctor-highlight-img img {
    transform: scale(1.08);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}


@media (max-width: 768px) {
    .doctor-card-horizontal {
        flex-direction: column;
    }

    .doctor-img-side,
    .doctor-content-side {
        width: 100%;
    }

    .doctor-img-side {
        height: 300px;
        min-height: auto;
    }

    .doctor-img-side img {
        object-position: center top;
    }
}

/* 2. Testimonials — proper spacing */
.home-testimonials {
    padding-top: 56px;
    padding-bottom: 56px;
}

.home-testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-testimonials-header span {
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.home-testimonials-header h2 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.3;
}


.home-testimonials .testimonials-wrapper {
    max-width: 1400px;
    /* Increased to fit 4 cards */
    margin: 0 auto;
    padding: 0 20px 24px;
}

.home-testimonials .testimonial-slide {

    .testimonial-card {
        border-radius: var(--radius-md);
        border: none;
        box-shadow: var(--box-shadow);
        background: #fff;
        padding: 32px 36px;
    }

    .testimonial-stars {
        background: var(--primary-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: var(--primary-color);
        /* Fallback */
        font-size: 1rem;
        margin-bottom: 18px;
        letter-spacing: 0.1em;
        display: inline-block;
    }

    .testimonial-text {
        font-style: italic;
        color: #555;
        font-size: 1rem;
        line-height: 1.75;
        margin: 0 0 24px;
    }

    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.95rem;
    }

    .testimonial-author i {
        color: var(--secondary-color);
        opacity: 0.7;
    }

    .home-testimonials .slider-controls {
        margin-top: 28px;
        gap: 20px;
    }

    position: relative;
    max-width: 1400px;
    /* Ensure this matches or is removed if redundant */
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 50px;
}

/* ... existing styles ... */

.testimonial-slide {
    min-width: 0;
    /* Reset */
    width: 25%;
    /* Default for 4 cards */
    flex: 0 0 25%;
    box-sizing: border-box;
    padding: 0 15px;
}

@media (max-width: 1024px) {
    .testimonial-slide {
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 100%;
        flex: 0 0 100%;
    }
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* 3. Blog Grid Fix */
.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .blog-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* 4. Inline Booking Form Fix */
.booking-form-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.booking-form-inline .form-control {
    flex: 1;
    /* Equal width */
    height: 55px;
    /* Consistent height */
    padding: 0 20px;
    border-radius: var(--radius-md);
}

.booking-form-inline .btn {
    height: 55px;
    padding: 0 30px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    background: var(--secondary-color);
    /* Dark for contrast */
    color: white;
    font-weight: 600;
}

@media (max-width: 991px) {
    .booking-form-inline {
        flex-direction: column;
        width: 100%;
    }

    .booking-form-inline .form-control,
    .booking-form-inline .btn {
        width: 100%;
    }
}

/* --- RESPONSIVE & SCROLLBAR UPDATES --- */

@media (max-width: 991px) {
    .home-who-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .home-who-centered-layout {
        text-align: center;
        padding: 0 20px;
    }

    .home-who-centered-layout .home-who-features {
        max-width: 500px;
        margin: 0 auto 40px;
    }

    .home-who-title {
        font-size: 2rem;
    }
}
.doctor-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.doctor-icon-btn.call-btn {
    background: #f8fbff;
    color: var(--primary-color);
}

.doctor-icon-btn.whatsapp-btn {
    background: #f0fff4;
    color: #25d366;
}

.doctor-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-icon-btn.call-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.doctor-icon-btn.whatsapp-btn:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.doctor-action-btn {
    background: var(--primary-gradient);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 153, 204, 0.2);
}

.doctor-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.3);
    color: #fff;
}


/* 6. Responsive Header (Mobile Menu) - ENHANCED */
@media (max-width: 991px) {
    .hamburger {
        display: block;
        z-index: 1005;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--secondary-color);
        padding: 5px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        /* Arrow alignment */
        align-items: center;
        width: 100%;
        pointer-events: auto;
        /* Force clickable */
    }

    /* DROPDOWN LOGIC UPDATED */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
        /* Hidden by default */
        padding-left: 0;
        border: none;
        background: #f8f9fa;
        /* Slightly darker than white */
        border-left: 3px solid var(--primary-color);
        transition: none;
        /* Instant toggle on mobile */
        max-height: 250px;
        /* Limit height */
        overflow-y: auto;
        /* Add scrollbar */
    }

    /* Custom Scrollbar for Dropdown */
    .dropdown-menu::-webkit-scrollbar {
        width: 5px;
    }

    .dropdown-menu::-webkit-scrollbar-track {
        background: #eee;
    }

    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    .dropdown-menu.show {
        display: block;
        /* Toggled by JS */
    }

    .dropdown-menu li a {
        padding: 12px 20px;
        /* Larger touch target */
        font-size: 0.9rem;
        border-bottom: 1px solid #e9ecef;
        display: block;
        width: 100%;
        color: #555;
        pointer-events: auto;
        /* Force clickable */
    }

    .has-dropdown>a::after {
        display: none;
        /* Remove hover underline effect in mobile menu */
    }

    /* Center Contact Us Button text on mobile */
    .nav-links .cta-btn {
        justify-content: center;
        text-align: center;
    }

    /* Top Bar Mobile */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .top-info span {
        margin: 0;
        font-size: 0.85rem;
    }

    /* Hero Adjustments */
    .modern-hero {
        padding: 140px 0 60px;
        /* Reduced top padding */
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Smaller font */
    }

    .floating-badge {
        padding: 10px 15px;
        transform: scale(0.9);
    }
}

/* 7. About Section Mobile Fix */
@media (max-width: 768px) {
    .modern-hero {
        padding: 120px 0 50px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .about-images-stack {
        height: auto;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 480px;
        /* Ensure space */
    }

    .img-main {
        position: relative;
        width: 100%;
        height: 250px;
        margin-bottom: -40px;
    }

    .img-offset {
        position: relative;
        width: 85%;
        height: 200px;
        bottom: auto;
        right: auto;
        margin-left: auto;
        /* Push to right */
        z-index: 2;
    }

    .exp-badge-circle {
        top: 50%;
        /* Center vertically in the stack area */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 110px;
        height: 110px;
        border-width: 5px;
    }

    .exp-badge-circle span:first-child {
        font-size: 2rem !important;
    }

    .exp-badge-circle span:last-child {
        font-size: 0.75rem !important;
        line-height: 1.1;
    }

    /* Booking Form Mobile */
    .glass-booking-card {
        padding: 25px;
        margin-top: -40px;
    }

    .booking-form-inline {
        gap: 10px;
    }

    .booking-form-inline .form-control {
        height: 50px;
    }

    /* Global Section Padding */
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn,
    .hero-btns .cta-btn-outline {
        width: 100%;
        text-align: center;
    }

    .modern-service-card {
        padding: 25px 20px;
    }

    .doctor-img-side {
        height: 220px;
    }
}

/* --- SERVICE DETAIL PAGE REFINEMENTS --- */
.page-banner {
    background: var(--secondary-color);
    padding: 100px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: 0;
}

.page-banner .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-banner-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.page-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.cta-btn,
.cta-btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 16px 36px !important;
    min-width: 220px !important;
}

.service-details-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.service-main-content {
    flex: 1;
    min-width: 0;
}

.service-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    z-index: 10;
}

.service-featured-img {
    margin-bottom: 35px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-featured-img img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.service-featured-img:hover img {
    transform: scale(1.05);
}

/* Scannable Content Styles */
.detailed-prose h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detailed-prose h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #4a5568;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.icon-list li:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.icon-list li i {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .service-details-layout {
        gap: 35px;
    }

    .service-sidebar {
        width: 300px;
    }
}

@media (max-width: 991px) {
    .service-details-layout {
        display: block;
    }

    .service-sidebar {
        width: 100%;
        margin-top: 50px;
        margin-bottom: 0;
        position: static !important;
    }
}

/* Service CTA Box centering */
.service-cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 60px 40px;
    border-radius: 30px;
}

.service-cta-box h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.service-cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.service-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {

    .service-cta-btns .cta-btn,
    .service-cta-btns .cta-btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* Sidebar Widgets Refinement */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.sidebar-widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #f0f4f8;
}

/* Services List Navigation */
.sidebar-services-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-services-nav li {
    margin-bottom: 10px;
}

.sidebar-services-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f9fbff;
    border: 1px solid #f0f4f8;
    border-radius: 12px;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    word-break: break-word;
    gap: 8px;
}

.sidebar-services-nav li a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-services-nav li a:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.1);
}

.sidebar-services-nav li.active a {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 153, 204, 0.2);
}

.sidebar-services-nav li.active a i {
    color: #fff;
}

/* Sidebar Inquiry Card */
.sidebar-inquiry-card {
    background: var(--secondary-color) !important;
    color: #fff;
    border: none;
    padding: 30px 25px;
}

.sidebar-inquiry-card .sidebar-widget-title {
    color: #fff;
}

.sidebar-inquiry-card .sidebar-widget-title::after {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-inquiry-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.inquiry-sidebar-form .form-group {
    margin-bottom: 15px;
}

.inquiry-sidebar-form .form-control {
    background: #fff !important;
    border: 1px solid #e2e8f0;
    color: var(--secondary-color) !important;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.inquiry-sidebar-form .form-control:focus {
    background: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.inquiry-sidebar-form .submit-sidebar-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.inquiry-sidebar-form .submit-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3);
}

/* Sidebar Call Widget (Emergency) */
.sidebar-call-widget {
    background: #dc3545 !important;
    padding: 35px 25px !important;
    border-radius: 20px !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3) !important;
    margin-bottom: 30px;
}

.sidebar-call-widget .hotline-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar-call-widget .hotline-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 5px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse-white 2s infinite;
}

.sidebar-call-widget span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-call-widget .hotline-number {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-decoration: none !important;
    display: block;
    margin-top: -5px;
}

@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Main Content Refinement */
.service-details-content-inner {
    padding-left: 20px;
}

@media (max-width: 991px) {
    .service-details-content-inner {
        padding-left: 0;
    }
}

.service-featured-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-featured-img img {
    width: 100%;
    display: block;
}

.detailed-prose h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin: 35px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detailed-prose h3 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.detailed-prose p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 576px) {
    .icon-list {
        grid-template-columns: 1fr;
    }
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f8fbff;
    border-radius: 10px;
    font-weight: 500;
    color: var(--secondary-color);
}

.icon-list li i {
    color: var(--primary-color);
}

/* --- ABOUT US PAGE ENHANCEMENTS --- */

/* 8. Feature List (Checkmarks) */
.feature-list {
    padding: 0;
    list-style: none;
}

.feature-list li {
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
}

.feature-list li i {
    font-size: 1.1rem;
}

/* 9. Vision & Mission Icons */
.icon-box-circle {
    transition: var(--transition);
}

.modern-service-card:hover .icon-box-circle {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Fix for "Call 24/7 Support" visibility on light background (Global) */
.modern-hero .cta-btn-outline {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
}

.modern-hero .cta-btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* 10. Expertise Grid (Infrastructure) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.expertise-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.expertise-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.expertise-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* 11. Stats Grid (Achievements) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.stat-count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

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

/* 12. Feature Ticks (Community) */
.feature-ticks {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-ticks li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #555;
}

.feature-ticks li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 4px;
    /* Optical alignment */
}

/* 13. Philosophy Card */
.philosophy-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

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

.philosophy-card:hover .philosophy-icon {
    background: var(--primary-gradient);
    color: #fff;
}

.philosophy-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.philosophy-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Home: Book Your Visit section (below Who We Are) */
.home-book-section {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    padding: 56px 0 64px;
}

.home-book-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 153, 204, 0.1);
    padding: 40px 36px;
}

.home-book-header {
    text-align: center;
    margin-bottom: 32px;
}

.home-book-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.home-book-title {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 1.75rem;
    font-weight: 700;
}

.home-book-desc {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-book-form {
    margin: 0;
}

.home-book-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.home-book-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-book-errors li {
    margin-bottom: 4px;
}

.home-book-errors li:last-child {
    margin-bottom: 0;
}

.home-book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .home-book-grid {
        grid-template-columns: 1fr;
    }
}

.home-book-field label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #444;
    margin-bottom: 8px;
}

.home-book-field label small {
    font-weight: 500;
    text-transform: none;
    color: #888;
}

.home-book-field input,
.home-book-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e6eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-book-field input:focus,
.home-book-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.12);
}

.home-book-error {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 6px;
}

.home-book-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 16px;
}

.home-book-recaptcha {
    flex: 1;
    min-width: 200px;
}

.home-book-submit {
    padding: 16px 36px;
    background: var(--secondary-color);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.25);
}

.home-book-submit:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 153, 204, 0.3);
}

.home-book-trust {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-book-trust i {
    color: #27ae60;
}

/* Testimonial Slider Responsive Widths */
/* Testimonial Slider Responsive Widths */
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-slide {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    box-sizing: border-box;
    padding: 0 15px;
    height: auto;
    display: flex;
}

.testimonial-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.testimonial-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.testimonial-stars {
    color: #ff5722;
    /* Orange stars */
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

@media (max-width: 991px) {
    .testimonial-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Testimonial Controls */
.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    /* Hide overflow for the track */
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff5722;
    /* Orange background */
    border: none;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.slider-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.5);
}

/* --- SERVICE PAGE COMPONENT STYLES --- */

/* Service Expert Section */
.service-expert-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.service-expert-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
}

.service-expert-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-expert-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.service-expert-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-expert-content h2 {
    font-size: 2.25rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.service-expert-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #4a5568 !important;
    /* Ensure visibility */
    border-left: 4px solid var(--primary-color);
    padding-left: 25px;
    margin: 30px 0;
    line-height: 1.7;
    position: relative;
    background: transparent;
}

.service-expert-content p {
    font-size: 1.05rem;
    color: #4a5568 !important;
    /* Ensure visibility */
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-expert-cta {
    margin-top: 10px;
}

/* Service FAQ Section */
.service-faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.service-section-title {
    margin-bottom: 50px;
}

.service-section-title span {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.service-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-faq-question {
    padding: 20px 25px;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

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

.accordion-chevron {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.service-faq-item.open {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.08);
}

.service-faq-item.open .accordion-chevron {
    transform: rotate(90deg);
}

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

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

.service-faq-answer-inner {
    padding: 0 25px 25px;
}

.service-faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #4a5568;
    font-size: 1rem;
}

/* Service CTA Section */
.service-cta-section {
    padding: 100px 0;
    background: #f8fbff;
}

.service-cta-box {
    background: var(--secondary-color);
    border-radius: 30px;
    padding: 70px 50px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(10, 35, 66, 0.2);
}

.service-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
}

.service-cta-box h2 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-cta-box p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.service-cta-btns {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 991px) {
    .service-expert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .service-expert-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .service-expert-content blockquote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        padding: 25px 0;
    }

    .service-cta-box {
        padding: 50px 30px;
    }

    .service-cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .service-cta-btns {
        flex-direction: column;
    }

    .service-section-title h2 {
        font-size: 1.85rem;
    }
}

/* --- ENHANCED VIDEO SECTION --- */
.video-section-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 20px;
}

.video-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 30px;
    padding: 20px 0 50px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for clean look */
}

.video-scroll-container::-webkit-scrollbar {
    display: none;
}

.video-card-item {
    flex: 0 0 85%;
    max-width: 400px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 16 / 9;
}

.video-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 153, 204, 0.2);
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #000;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-card-item:hover .video-thumb-wrapper img {
    opacity: 0.7;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 2;
}

.video-card-item:hover .video-play-btn {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 1px solid rgba(0, 153, 204, 0.1);
}

.video-nav-btn:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.video-nav-btn.prev {
    left: -5px;
}

.video-nav-btn.next {
    right: -5px;
}

@media (max-width: 991px) {
    .video-card-item {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .video-section-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 600px) {
    .video-card-item {
        flex: 0 0 100%;
    }

    .video-section-wrapper {
        padding: 0 10px;
    }

    .video-nav-btn {
        display: none;
        /* Hide nav buttons on mobile for better touch scroll */
    }
}

/* Consolidated Home Page Responsive Overrides (After Base Styles) */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0 !important;
    }

    .modern-hero {
        padding: 110px 0 50px !important;
    }

    .hero-wrapper {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .home-who-wrapper {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 24px !important;
    }

    .home-who-images {
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .home-who-img-main {
        width: 100% !important;
        max-width: 400px !important;
    }

    .home-who-img-offset {
        width: 90% !important;
        max-width: 300px !important;
        margin-top: -40px !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .home-who-badge {
        position: relative !important;
        display: inline-block !important;
        margin: 20px auto 0 !important;
        left: auto !important;
        transform: none !important;
        bottom: 0 !important;
        z-index: 10 !important;
    }

    .home-who-content {
        text-align: left !important;
    }

    .home-impact-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .home-impact-stats {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .hero-heading {
        font-size: 2.2rem !important;
    }

    .home-impact-title {
        font-size: 1.5rem !important;
    }

    .doctor-highlights-grid {
        justify-content: center !important;
    }
}

/* Home Contact & Map Section */
.home-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-contact-item {
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.home-contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-contact-item h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.home-contact-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.home-contact-map-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.home-contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .home-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-contact-map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .home-contact-item {
        gap: 15px;
    }

    .home-contact-item i {
        font-size: 1.3rem;
    }

    .home-contact-item h4 {
        font-size: 1rem;
    }

    .home-contact-map-container {
        height: 300px;
    }
}

/* ============================================================
   ROBOTIC KNEE REPLACEMENT PAGE – Full-Width Subsection Grid
   Two-column card layout, placed OUTSIDE the sidebar layout
   so the full container width is used on all desktop screens.
   ============================================================ */

.rkr-subsection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.rkr-subsection-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    height: 100%;
}

.rkr-sub-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rkr-sub-heading i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rkr-sub-para {
    color: #4a5568;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Tablet: single column */
@media (max-width: 900px) {
    .rkr-subsection-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: tighten card padding */
@media (max-width: 576px) {
    .rkr-subsection-card {
        padding: 24px 20px;
    }

    .rkr-sub-heading {
        font-size: 1.2rem;
    }
}

/* ============================================================
   CONVENTIONAL vs ROBOTIC – Comparison Section
   Replaces the old Bootstrap <table> with a responsive
   CSS-Grid card layout that works on all screen sizes.
   ============================================================ */

.rkr-compare-section {
    padding: 70px 0;
    background: linear-gradient(160deg, #f0f7ff 0%, #fafcff 100%);
    position: relative;
}

/* Centered Header */
.rkr-compare-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.rkr-compare-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.rkr-compare-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.rkr-compare-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

/* Column Label Bar */
.rkr-compare-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.rkr-compare-label {
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.rkr-label-conventional {
    background: #fff1f0;
    color: #c0392b;
    border: 2px solid #fdd;
}

.rkr-label-robotic {
    background: #e8f7ff;
    color: var(--primary-dark, #0066a1);
    border: 2px solid #bee3f8;
}

/* Each comparison row */
.rkr-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

/* Each cell */
.rkr-compare-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 0.97rem;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rkr-compare-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Conventional cell – warm off-white, red-left border */
.rkr-cell-con {
    background: #fff8f8;
    border: 1px solid #fde8e8;
    border-left: 4px solid #e74c3c;
    color: #4a4a4a;
}

/* Robotic cell – light blue, brand-left border */
.rkr-cell-rob {
    background: #f0f9ff;
    border: 1px solid #bee3f8;
    border-left: 4px solid var(--primary-color);
    color: #1a2a3a;
}

/* Icons */
.rkr-icon-bad {
    font-size: 1.2rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.rkr-icon-good {
    font-size: 1.2rem;
    color: #00c6ff;
    flex-shrink: 0;
}

/* ── Tablet (641px – 900px): shrink font/padding ── */
@media (max-width: 900px) {
    .rkr-compare-header h2 {
        font-size: 1.7rem;
    }

    .rkr-compare-cell {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .rkr-compare-label {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

/* ── Mobile (≤ 640px): stack each row vertically ── */
@media (max-width: 640px) {
    .rkr-compare-labels {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rkr-compare-row {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 16px;
        position: relative;
    }

    /* VS divider between stacked cells */
    .rkr-compare-row::after {
        content: 'VS';
        display: block;
        order: 1;
        text-align: center;
        font-size: 0.75rem;
        font-weight: 800;
        color: #aaa;
        letter-spacing: 0.1em;
        padding: 2px 0;
    }

    .rkr-cell-con {
        order: 0;
    }

    .rkr-cell-rob {
        order: 2;
    }

    .rkr-compare-header h2 {
        font-size: 1.4rem;
    }

    .rkr-compare-cell {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .rkr-compare-section {
        padding: 50px 0;
    }
}
.card-icon-wrapper{
    color:#1478a3c7;
    transition:0.3s;
}

.modern-service-card:hover .card-icon-wrapper{
    color:#ffffff;
}