:root {
    /* Hospital Green/Violet Branding (Logo Theme) */
    --primary-color: #16a34a;
    /* Vibrant Green */
    --primary-dark: #15803d;
    /* Deep Green */
    --primary-light: #dcfce7;
    --primary-gradient: linear-gradient(135deg, #dcfce7 0%, #ffffff 100%);

    --secondary-color: #4c1d95;
    /* Deep Violet */
    --secondary-light: #ede9fe;

    /* Neutral Tones */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --dark: #0f172a;
    --dark-blue-bg: #1e293b;

    /* Shadows for Depth - Very soft, premium */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(29, 78, 216, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(29, 78, 216, 0.12);

    /* Border Radius */
    --br-sm: 12px;
    --br-md: 20px;
    --br-lg: 32px;
    --br-full: 99px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body,
html {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--br-md);
    object-fit: cover;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--br-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge i {
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--br-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
    min-height: 44px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.3);
}

.btn-secondary:hover {
    background-color: #3b0b8c;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 25px rgba(76, 29, 149, 0.4);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px) scale(1.02);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-call:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

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

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


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

section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header-left {
    max-width: 600px;
}

.section-header-center {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* 1. Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(232, 249, 239, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 16px;
}

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

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    align-items: center;
    text-align: center;
}

.logo-text,
.header-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 750;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.logo-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 0.72rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-top: 2px;
}

.logo-tagline::before,
.logo-tagline::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background-color: var(--secondary-color);
    opacity: 0.85;
    border-radius: 1px;
}

.logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-menu-container {
    background: var(--bg-white);
    padding: 8px 24px;
    border-radius: var(--br-full);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    background-color: #f8fafc;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-contact .btn-whatsapp {
    height: 48px;
    padding: 0 16px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    border: 2px solid #fecaca;
    padding: 4px 16px 4px 4px;
    border-radius: var(--br-full);
    transition: all 0.3s ease;
    background: #FFF5F5;
    height: 48px;
    box-sizing: border-box;
}

.nav-phone:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px) scale(1.02);
}

.nav-phone i {
    font-size: 1.2rem;
    background: #fee2e2;
    padding: 10px;
    border-radius: 50%;
}

.phone-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.emergency-nav-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #dc2626;
}

.highlight-247 {
    font-size: 1.1em;
}

/* 2. Hero Section (CareWell) */

@keyframes heroImageLoad {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroTextSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-premium {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background: #fff;
    padding-top: 0;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('images/logo/subhi-logo.jpg') no-repeat center center / contain;
    opacity: 0.12;
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('images/hero/background.jpeg') no-repeat right bottom / contain;
    transform-origin: top right;
    transform: translate(40px, -15px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 45%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 45%, black 100%);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: right bottom;
    mask-position: right bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    height: 100%;
}

.hero-bg-gradient {
    display: none;
}

.placeholder-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 80px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 540px;
    padding: 40px 0;
    text-align: left;
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.15rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    text-shadow: 0px 2px 8px rgba(255, 255, 255, 0.9);
}

.hero-content h1 span {
    color: var(--secondary-color);
    display: inline-block;
    white-space: nowrap;
}

.hero-hospital-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 540px;
}

.hero-hospital-badge .hero-hospital-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 850;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    white-space: nowrap;
    transform: scaleY(1.18);
    transform-origin: center;
}

.hero-hospital-badge .hero-badge-line {
    flex: 1;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.75;
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 540px;
    line-height: 1.7;
    text-shadow: 0px 2px 8px rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 14px 0;
}

.btn-text:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: none;
}

/* Floating Features (CareWell) */
.floating-stats-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding: 0 24px;
}

.floating-stats-carewell {
    background: var(--bg-white);
    border-radius: var(--br-md);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.feature-block {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 10px;
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-block:hover {
    transform: translateY(-5px);
}

.feature-block:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.feature-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* 3. About Section */
.about {
    padding-bottom: 20px;
}

.about-header-center {
    text-align: center;
    margin-bottom: 24px;
}

.about-header-center .badge {
    display: inline-flex;
    margin: 0 auto;
}

.about-header-center .section-title {
    color: var(--dark);
    margin-top: 10px;
    text-align: center;
}

.services {
    padding-top: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch !important;
}

.about-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-img {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--br-lg);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-lg);
}

/* About Carousel Styles */
.about-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeEffect 1.5s;
    position: absolute;
    top: 0;
    left: 0;
}

.about-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
}

.carousel-btn {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
}

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

.about-img .carousel-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.about-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.about-dot.active,
.about-dot:hover {
    background-color: var(--primary-color);
}


.about-content {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.about-content .badge {
    margin: 0 0 20px 0;
    width: max-content;
    display: flex;
}

.kural-box {
    border: 1px solid var(--secondary-color);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0 25px 0;
    text-align: center;
    background: #f0f9ff;
    color: var(--secondary-color);
    position: relative;
    box-shadow: 4px 4px 0px rgba(76, 29, 149, 0.15), 2px 2px 0px rgba(76, 29, 149, 0.1);
}

.kural-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 15px;
}

.kural-author {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.feature-item i {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.3;
}

/* 4. Services Section (Anaverse Style Cards) */
.services {
    background: var(--bg-white);
}

.bg-soft-gradient {
    background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
}

.hidden-service {
    display: none !important;
}

.filter-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.filter-tag {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--br-full);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background: #f1f5f9;
    color: var(--dark);
}

.filter-tag.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--br-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--secondary-color);
    text-align: center;
    padding: 20px 15px;
    /* Reduced from 30px 20px */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.service-watermark {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 7rem;
    color: var(--primary-color);
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}

.service-card:hover .service-watermark {
    transform: scale(1.1) rotate(-10deg);
    opacity: 0.15;
}

.service-card:hover {
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.15);
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
}

.service-card:hover .service-icon-wrapper i {
    color: white;
}

.service-icon-wrapper {
    width: 60px;
    /* Reduced from 70px */
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    /* Reduced from 20px */
    transition: var(--transition);
}

.service-icon-wrapper i {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 15px;
    margin-bottom: 5px;
}

.service-badge {
    background: #e0f2f1;
    color: #00796b;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--br-full);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    /* Reduced from 15px */
    padding: 0 10px;
    flex-grow: 1;
}

.service-cta {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-bottom: 5px;
}

.service-cta i {
    font-size: 0.85rem;
    transition: var(--transition);
}

.service-cta:hover {
    color: var(--secondary-color);
}

.service-cta:hover i {
    transform: translateX(4px);
}

/* 5. Doctors Section */
.doctors {
    background: var(--bg-light);
    padding-bottom: 20px;
}

.doctors-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 20px;
}

@media (max-width: 1024px) {
    .doctors-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .doctors-carousel {
        grid-template-columns: 1fr;
    }
}

.doctors-carousel::-webkit-scrollbar {
    display: none;
}

.doctor-card {
    min-width: 250px;
    background: var(--bg-white);
    border-radius: var(--br-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    padding-bottom: 20px;
}

.doc-img-wrapper {
    background: #e2e8f0;
    height: 320px;
    overflow: hidden;
}

.doc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
}

.doctor-info {
    padding: 20px 15px 0;
}

.doctor-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.doctor-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.doc-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fffbeb;
    color: #d97706;
    padding: 4px 12px;
    border-radius: var(--br-full);
    font-size: 0.85rem;
    font-weight: 700;
}

/* 6. Facilities Section (Dark Bg) */
.facilities {
    background: var(--dark-blue-bg);
    color: white;
    border-radius: var(--br-lg);
    margin: 0 24px;
    padding: 60px 40px;
}

.facilities .section-title {
    color: white;
}

.facilities .section-desc {
    color: #94a3b8;
}

.facilities-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.facilities-grid::-webkit-scrollbar {
    display: none;
}

.facility-card {
    min-width: 280px;
    height: 180px;
    border-radius: var(--br-md);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.facility-overlay h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* 7. Bottom Contact Banner */
.contact-banner {
    margin: 80px 24px;
    background: var(--primary-color);
    border-radius: var(--br-lg);
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-banner-left h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-banner-left p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-features {
    display: flex;
    gap: 24px;
}

.contact-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-features i {
    color: var(--secondary-color);
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.contact-banner-right {
    background: white;
    padding: 30px 40px;
    border-radius: var(--br-md);
    text-align: center;
    color: var(--dark);
    min-width: 350px;
}

.contact-banner-right p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.phone-number i {
    font-size: 1.8rem;
}

.contact-banner-right .btn {
    width: 100%;
    justify-content: space-between;
    padding: 16px 24px;
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    margin-bottom: 20px;
    gap: 25px;
}

.footer-col p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 2. Premium Hero */
.hero-premium {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

/* duplicate hero-bg-wrapper removed */

.hero-bg-image {
    position: absolute;
    inset: 0;
}



.hero-bg-pattern {
    display: none;
}

/* removed duplicate hero-bg-gradient */

.hero-premium .hero-content-wrapper {
    position: relative;
    z-index: 3;
}

/* 2.5 Quick Actions */
.quick-actions-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-action-card {
    background: white;
    padding: 20px 25px;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 4px solid var(--primary-color);
    transition: var(--transition);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

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

.qa-icon.qa-whatsapp {
    background: #e8f9ef;
    color: #25d366;
}

.qa-text h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.qa-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* 2.5 Social Proof */
.social-proof-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.social-proof-text {
    position: relative;
    padding-bottom: 8px;
}

.social-proof-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.ring-animation {
    animation: ring 1.5s infinite ease-in-out;
    display: inline-block;
    transform-origin: center;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }

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

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-left: -15px;
    box-shadow: var(--shadow-sm);
}

.avatar-group img:first-child {
    margin-left: 0;
}

.social-proof-text strong {
    display: block;
    font-size: 1.6rem;
    color: #2e1065;
    font-weight: 900;
    margin-bottom: 2px;
}

.social-proof-text>span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Counters Premium (Hero Compact) */
.counters-wrapper {
    margin-top: 450px;
    /* Adjusted by 20px (approx 5mm) */
    transform: translateX(-60px);
    /* Shifted left by approx 15mm total */
    padding-bottom: 20px;
    max-width: 950px;
    /* Limits the stretch to prevent overlapping with extreme right widgets */
    width: 100%;
}

.counters-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
}

.counter-item {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.counter-item:last-child {
    border-right: none;
}

.counter-item:hover {
    transform: translateY(-2px);
}

.counter-icon {
    font-size: 1.8rem;
    /* Increased icon size */
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.counter-item h2,
.counter-item h3 {
    font-size: 1.25rem;
    /* Reduced number size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.counter-item p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

/* 6. Infrastructure Showcase */
.infrastructure-wrapper {
    background: var(--dark-green-bg);
    padding: 80px 0;
    border-radius: var(--br-lg);
    margin: 0 24px;
}

.text-white {
    color: white !important;
}

.text-light {
    color: #a7f3d0 !important;
}

.badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.infrastructure-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 180px);
    gap: 15px;
    scroll-snap-align: start;
}

.infra-item-large {
    position: relative;
    border-radius: var(--br-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.infra-item-large.left {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.infra-item-large.right {
    grid-column: 3 / 5;
    grid-row: 2 / 4;
}

.infra-item-small {
    position: relative;
    border-radius: var(--br-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.infra-item-small img,
.infra-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.infra-item-small:hover img,
.infra-item-large:hover img {
    transform: scale(1.08);
}

.infra-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 25px 15px 15px;
    font-weight: 600;
    font-size: 1rem;
}

.infra-item-large .infra-label {
    font-size: 1.25rem;
    padding: 40px 20px 20px;
}

/* Carousels */
.center-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    padding: 0 40px;
    margin: 0 -15px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 15px 30px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--text-main);
    transition: var(--transition);
}

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

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 10px;
}

/* Gallery Filters & Grid */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--primary-light);
    background: transparent;
    border-radius: var(--br-full);
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--br-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    color: white;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-text {
    transform: translateY(0);
}

.gallery-overlay-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
}

.gallery-overlay-text span {
    font-size: 0.85rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.gallery-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.lightbox-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-counter {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Video Slides */
.video-slide {
    min-width: calc(33.333% - 16px);
    border-radius: var(--br-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

.video-thumbnail {
    position: relative;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

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

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--dark);
}

/* Patient Feeds & Smile Journey */
.patient-feeds-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.feed-container {
    margin-bottom: 30px;
}

.feed-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.feed-header {
    margin-bottom: 20px;
}

.feed-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.feed-row {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: feed-scroll 35s linear infinite;
    padding-bottom: 15px;
}

.feed-row.scroll-right {
    animation-name: feed-scroll-right;
}

.feed-row:hover {
    animation-play-state: paused;
}

@keyframes feed-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

@keyframes feed-scroll-right {
    0% {
        transform: translateX(calc(-50% - 10px));
    }

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

.feed-item-img {
    flex: 0 0 auto;
    width: 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}

.feed-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.feed-item-img:hover img {
    transform: scale(1.05);
}

.feed-item-video {
    flex: 0 0 auto;
    width: 200px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.feed-item-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.feed-item-video:hover img {
    transform: scale(1.05);
}

.feed-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

/* Testimonials */
.testimonial-slide {
    min-width: calc(50% - 12px);
    background: white;
    padding: 40px;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

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

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.6;
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testi-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.author-info h4 {
    margin: 0;
    font-size: 1.05rem;
}

/* Reviews */
.review-slide {
    min-width: calc(33.333% - 16px);
    background: white;
    padding: 30px;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-name h4 {
    margin: 0;
    font-size: 1rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

.google-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: white;
    padding: 50px;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.contact-info-card .badge {
    display: flex;
    width: max-content;
    margin: 0 auto 20px auto;
}

.contact-info-card h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-item i {
    width: 30px;
    height: auto;
    background: transparent;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-item strong {
    display: block;
    color: var(--dark);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.contact-info-card>p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-map-card {
    position: relative;
    border-radius: var(--br-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    transition: var(--transition);
}

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

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: var(--br-full);
    box-shadow: var(--shadow-lg);
}

/* Premium Footer */
.footer-premium {
    background: var(--primary-light);
    color: var(--text-main);
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.08) 0%, transparent 70%);
}

.footer-premium .container {
    max-width: 95%;
    /* Expand container to edge of screen */
    padding: 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr auto;
    gap: 60px;
    /* More breathing room */
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

.footer-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.footer-logo-tagline {
    font-size: 0.82rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-top: 3px;
}

.footer-about {
    margin-left: -20px;
    /* Extra shift to the left */
}

.footer-about p,
.footer-about .footer-actions {
    margin-left: 81px;
}

.footer-col h3 {
    color: var(--dark);
    font-size: 1.15rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-contact ul li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

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

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.call {
    background: var(--primary-color);
}

.social-icon.google {
    background: white;
    color: #4285F4;
    border: 1px solid var(--border-color);
}

.social-icon.google:hover {
    color: #4285F4;
}

.social-icon.mail {
    background: #EA4335;
}

.footer-bottom-bar {
    background: transparent;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-legal a {
    color: var(--text-light);
}

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

.separator {
    margin: 0 10px;
    color: var(--border-color);
}

.developed-by {
    color: var(--text-light);
}


.separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.developed-by {
    color: rgba(255, 255, 255, 0.6);
}

/* Doctor Card Hover Bump Effect */
.doctor-card {
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.doc-img-wrapper {
    overflow: hidden;
    border-radius: var(--br-md) var(--br-md) 0 0;
    /* Add rounded corners on top if needed */
}

.doc-img-wrapper img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
}

.doctor-card:hover .doc-img-wrapper img {
    transform: scale(1.1);
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.fab-whatsapp {
    background: #25d366;
}

.fab-call {
    background: var(--primary-color);
}

.fab-location {
    background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

    .hero-content {
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-stats {
        flex-wrap: wrap;
        border-radius: var(--br-md);
        gap: 20px;
        padding: 20px;
    }

    .stat-divider {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .about-left-col,
    .about-content {
        min-width: 0;
        width: 100%;
    }

    .about-img {
        width: 100%;
        min-width: 0;
    }

    .thirukkural-container {
        padding: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: block;
        text-align: center;
    }

    .thirukkural-container .kural-text {
        font-size: clamp(10px, 3vw, 14px);
        /* Smaller font size to guarantee fit */
        white-space: nowrap;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        display: block;
    }

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

    .contact-banner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 40px 24px;
    }

    .contact-features {
        justify-content: center;
        flex-wrap: wrap;
    }
}

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

    /* Touch target for buttons on mobile */
    .btn,
    button,
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .kural-box {
        padding: 15px 10px;
        margin-bottom: 5px;
    }

    .kural-text {
        font-size: min(3.2vw, 0.85rem);
        white-space: nowrap;
    }

    .counters-wrapper {
        margin-top: 10px;
        transform: none;
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .counters-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px 10px;
    }

    .counter-item {
        margin: 0;
        padding: 8px 5px;
    }

    .counter-icon {
        font-size: 1.5rem;
        /* Increased for mobile */
        margin-bottom: 4px;
    }

    .counter-item h2,
    .counter-item h3 {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }

    .counter-item p {
        font-size: 0.75rem;
    }

    .infrastructure-wrapper {
        margin: 0;
        padding: 45px 0;
        border-radius: 0;
    }

    .infrastructure-wrapper .container {
        padding: 0 16px;
    }

    .infra-secondary {
        grid-template-columns: 1fr;
    }

    .infrastructure-slide {
        display: contents;
    }

    .carousel-container {
        padding: 0;
        margin: 0;
    }

    .carousel-btn {
        display: none;
    }

    .infra-item-large,
    .infra-item-small {
        flex: 0 0 calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        width: calc(100vw - 44px);
        height: 395px;
        border-radius: 18px;
        overflow: hidden;
        scroll-snap-align: center;
    }

    .infra-label,
    .infra-item-large .infra-label,
    .infra-item-small .infra-label {
        font-size: 1.25rem;
        font-weight: 700;
        padding: 35px 20px 20px;
        text-align: left;
        letter-spacing: 0.3px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    }

    .gallery-slide,
    .video-slide,
    .testimonial-slide {
        flex: 0 0 calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        height: 380px;
        scroll-snap-align: center;
    }

    .google-reviews-section {
        padding: 45px 0 25px 0;
    }

    .review-slide {
        flex: 0 0 calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        width: calc(100vw - 44px);
        height: auto;
        padding: 24px 20px 20px;
        border-radius: 18px;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    .review-text {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 0;
    }

    .career-section {
        padding: 45px 0 !important;
    }

    .feed-row,
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .footer-premium .container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-about {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-about p {
        margin-left: 0;
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-light);
        margin-bottom: 20px;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
        margin-bottom: 16px;
        width: 100%;
    }

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

    .footer-logo-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: auto;
    }

    .footer-logo-text {
        white-space: nowrap;
        font-size: clamp(13px, 4vw, 1.15rem);
        line-height: 1.2;
    }

    .footer-logo-tagline {
        font-size: clamp(10px, 2.8vw, 0.85rem);
        letter-spacing: 0.6px;
        font-weight: 650;
        white-space: nowrap;
        margin-top: 3px;
    }

    .footer-about .footer-actions {
        margin-left: 0;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
    }

    .footer-about .footer-actions .btn {
        flex: 1;
        padding: 12px 14px;
        font-size: 0.9rem;
        font-weight: 600;
        justify-content: center;
        border-radius: 50px;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .footer-col:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col:last-child h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    .social-links-grid .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        position: relative;
        z-index: 1001;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        color: var(--primary-color);
        background: white;
    }

    .nav-menu-container {
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Overrides desktop center */
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        height: 90vh;
        background: white;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 15px;
        border: none;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links a {
        padding: 12px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.95rem;
    }

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

    .nav-contact {
        display: none;
        /* Hide nav contact on mobile to free space for hamburger menu */
    }

    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .navbar .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .navbar .logo-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: 1;
        min-width: 0;
        padding: 0 4px;
        margin: 0 auto;
    }

    .navbar .header-logo-text {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(13.5px, 4vw, 16.5px);
        font-weight: 750;
        color: var(--primary-color);
        white-space: nowrap;
        line-height: 1.3;
        text-align: center;
        display: block;
        width: 100%;
        letter-spacing: 0.2px;
    }

    .navbar .logo-tagline {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: clamp(8px, 2.3vw, 9.8px);
        font-weight: 700;
        color: var(--secondary-color);
        letter-spacing: 0.5px;
        white-space: nowrap;
        margin-top: 3px;
    }

    .navbar .logo-tagline::before,
    .navbar .logo-tagline::after {
        content: '';
        width: 22px;
        flex: 0 0 22px;
        height: 1.5px;
        background-color: var(--secondary-color);
        opacity: 0.85;
        border-radius: 1px;
    }

    .navbar .logo img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--primary-color);
        object-fit: cover;
        flex-shrink: 0;
    }

    .hero-bg-image {
        background-image: url('images/hero/mobile-background.jpeg');
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
        transform: none;
        /* Reset desktop offset */
        -webkit-mask-image: none;
        /* Remove desktop gradient mask if any */
        mask-image: none;
    }

    .hero-watermark {
        width: 300px;
        height: 300px;
        left: 50%;
        top: 30%;
    }

    .hero-premium {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
        min-height: auto;
    }

    .hero-content-wrapper {
        padding: 0 20px;
        margin-top: calc(50vw + 10px);
        background: transparent;
        border-radius: 0;
    }

    .hero-content {
        padding: 10px 0 20px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
        text-align: center;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .hero-hospital-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 6px auto 14px auto;
    }

    .hero-hospital-badge .hero-hospital-title {
        font-size: clamp(0.75rem, 2.5vw, 0.92rem);
        font-weight: 800;
        color: var(--secondary-color);
        letter-spacing: 1px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .hero-hospital-badge .hero-badge-line {
        width: 22px;
        flex: 0 0 22px;
        height: 1.5px;
        background: var(--secondary-color);
        opacity: 0.75;
        border-radius: 1px;
    }

    .hero-content p {
        font-size: 0.86rem;
        text-align: center;
        line-height: 1.55;
        color: #4b5563;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
        /* Center the buttons */
    }

    .hero-buttons .btn {
        width: 80%;
        /* Reduced from 100% */
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .floating-stats-wrapper {
        margin-top: 20px;
        transform: none;
    }

    .social-proof-wrapper {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        padding: 15px;
    }

    .stat-item {
        width: 45%;
    }

    .facilities {
        margin: 0;
        border-radius: 0;
        padding: 40px 20px;
    }

    .contact-banner {
        margin: 40px 0;
        border-radius: 0;
    }

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

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

    .contact-section {
        padding: 40px 16px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-info-card {
        padding: 24px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .contact-item i {
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
    }

    .contact-item p {
        word-break: break-word;
    }

    .contact-map-card {
        min-height: auto;
        height: 300px;
    }

    .map-overlay {
        bottom: 15px;
        padding: 5px;
        width: 90%;
        /* prevent overflow on small screens */
        max-width: 250px;
    }

    .map-overlay .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
        width: 100%;
        /* scale down and fit inside overlay */
    }

    .emergency-spotlight {
        padding: 10px 15px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .emergency-ambulance-icon,
    .emergency-call-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }

    .emergency-spotlight-title {
        font-size: 1rem !important;
        margin-bottom: 0;
        white-space: normal !important;
        flex-direction: column !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .emergency-text {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .emergency-spotlight-desc {
        display: none;
    }

    .emergency-spotlight-wrapper {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-actions .btn {
        width: 100%;
    }
}

/* --- Refactored Inline Styles --- */

/* Logo */
.header-logo-img {
    border-radius: 50%;
    object-fit: cover;
}

.header-logo-text {
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Emergency Spotlight Banner */
.emergency-spotlight-wrapper {
    max-width: 1300px;
    margin: 40px auto -20px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.emergency-spotlight {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
    text-align: center;
}

.emergency-spotlight-header {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
}

.emergency-ambulance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    color: #dc2626;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-right: 10px;
    animation: drive-animation 2s ease-in-out infinite;
}

.emergency-spotlight-title {
    margin: 0;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.emergency-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    color: #dc2626;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

.emergency-call-icon:hover {
    transform: scale(1.1);
}

.emergency-spotlight-desc {
    color: #F8F9FA;
    line-height: 1.6;
    margin: 0;
    font-size: 1.05rem;
}

@keyframes ring-animation {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }

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

.ring-animation {
    animation: ring-animation 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes drive-animation {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(3px) translateY(-2px);
    }

    50% {
        transform: translateX(5px) translateY(0);
    }

    75% {
        transform: translateX(3px) translateY(2px);
    }

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

/* About Section */
.about-content .section-title {
    color: #0F766E !important;
}

.about-text-content {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-highlight-box {
    margin: 20px 0;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 0 8px 8px 0;
}

.about-highlight-title {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-highlight-text {
    line-height: 1.5;
    color: var(--text-main);
    font-size: 0.95rem;
}

.about-approach-wrapper {
    margin-top: auto;
    margin-bottom: 0;
}

.about-approach-title {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-approach-text {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Enhanced Thirukkural Highlight Container */
.thirukkural-container {
    background-color: #e6f4f1;
    /* Soft navigation green theme */
    border: 1px solid #b2dfdb;
    border-left: 5px solid #0f766e;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

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

.kural-label {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.kural-explanation-box {
    margin-top: 15px;
    border-top: 1px dashed var(--primary-light);
    padding-top: 15px;
}

.kural-explanation-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
}

.kural-explanation-text {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.kural-text {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Vision/Mission Cards */
.approach-subsections {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vm-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    border-left: 5px solid var(--secondary-color);
}

.vm-icon {
    color: var(--secondary-color);
    font-size: 1.9rem;
    flex-shrink: 0;
}

.vm-title {
    color: var(--primary-dark);
    margin-bottom: 2px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.vm-desc {
    color: var(--text-main);
    font-size: 0.93rem;
    margin: 0;
}

/* Vision Container - Single Line Subtitle */
.vision-card .subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mission Container - Up to 2 Lines */
.mission-card .subtitle {
    max-height: 2.8em;
    overflow: hidden;
    display: block;
}

/* Search Inputs & View All Buttons */
.search-input-wrapper {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: 50px;
    border: 2px solid transparent;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.search-input::placeholder {
    color: #94a3b8;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Feeds & Testimonials Headers */
.center-header-padded {
    margin-bottom: 40px;
}

.section-title-large {
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 800;
}

.feed-title-flex {
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feed-container-spaced {
    margin-top: 50px;
}

/* Google Reviews & Contact Map */
.google-review-btn-wrapper {
    margin-top: 15px;
}

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

/* Footer Developer Credit */
.developer-link {
    display: inline-block;
    padding: 10px 0;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    position: relative;
    z-index: 10;
}

.developed-by-dark {
    color: var(--dark);
}

@keyframes text-blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.text-blink-animation .emergency-text {
    animation: text-blink 1.3s ease-in-out infinite;
}

/* About Section Heading Responsive Control */
.mobile-only-title {
    display: none;
}

.desktop-only-title {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-only-title {
        display: block;
        text-align: center;
        margin-bottom: 25px;
        color: #0F766E !important;
    }

    .desktop-only-title {
        display: none;
    }
}

/* --- Doctors Section Enhanced UI --- */
#doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px auto 0;
}

.doctor-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.15);
}

.doc-img-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.doc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

@media (min-width: 769px) {
    .doc-img-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .doc-img-wrapper img {
        object-fit: cover;
        object-position: top center;
    }
}

.doctor-card:hover .doc-img-wrapper img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
    position: relative;
    z-index: 2;
    justify-content: space-between;
}

.doctor-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Appointment Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 550px;
    border-radius: var(--br-md);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.modal-form .required {
    color: #ef4444;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--br-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    font-size: 1.05rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 15px 20px;
    transition: bottom 0.5s ease-in-out;
    border-top: 2px solid var(--primary-color);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 24/7 Emergency Floating Action Button (Round) --- */
.floating-emergency-btn {
    position: fixed;
    bottom: 92px;
    right: 30px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.45);
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: emergency-pulse 2.5s infinite;
}

.floating-emergency-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    color: #ffffff;
}

.floating-emergency-btn i {
    font-size: 1.2rem;
    color: #ffffff;
}

.emergency-floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #dc2626;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1.5px 4px;
    border-radius: 6px;
    border: 1.5px solid #dc2626;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

@keyframes emergency-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--dark-color, #0a5c55);
}

@media (max-width: 768px) {
    .floating-emergency-btn {
        bottom: 76px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .floating-emergency-btn i {
        font-size: 1.05rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* --- Leadership & Career Cards --- */
.leadership-grid {
    display: flex;
    gap: 36px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.leadership-card {
    width: 340px;
    max-width: 100%;
    text-align: center;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.12);
}

.leadership-img-wrapper {
    position: relative;
    padding: 14px 14px 0 14px;
}

.leadership-img-box {
    width: 100%;
    height: 315px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.leadership-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.leadership-img-box img.prasanna-img {
    object-position: 48% 6%;
    transform: scale(1.36);
    transform-origin: 48% 14%;
}

.leadership-card:hover .leadership-img-box img.prasanna-img {
    transform: scale(1.41);
}

.leadership-img-box img.karpagam-img {
    object-position: 50% 2%;
    transform: scale(1.04);
    transform-origin: 50% 14%;
}

.leadership-card:hover .leadership-img-box img.karpagam-img {
    transform: scale(1.10);
}

.leadership-info {
    padding: 22px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.leadership-info h3,
.leadership-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
    white-space: nowrap;
}

.leadership-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

/* --- Career Section & Openings --- */
.career-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.career-bg-deco-circle {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.03);
    z-index: 0;
    pointer-events: none;
}

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

.career-section-desc {
    max-width: 650px;
}

.career-openings-wrapper {
    margin-top: 60px;
}

.career-openings-heading-box {
    text-align: center;
    margin-bottom: 35px;
}

.career-openings-title {
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 700;
}

.career-openings-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.career-openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
}

.career-opening-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.career-opening-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.career-opening-icon-box {
    background: rgba(30, 60, 114, 0.06);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.career-opening-name {
    font-size: 1.15rem;
    margin: 0 0 4px 0;
    color: var(--dark);
    font-weight: 700;
}

.career-opening-type {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.career-cta-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 48px 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.career-cta-deco-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.career-cta-deco-2 {
    position: absolute;
    bottom: -50px;
    right: 150px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.career-cta-content {
    flex: 1 1 300px;
    max-width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.career-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.2;
    word-wrap: break-word;
}

.career-cta-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 550px;
    word-wrap: break-word;
}

.career-cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
}

.career-cta-email-btn {
    background: #ffffff;
    color: var(--primary-dark);
    border: none;
    padding: 14px 26px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.career-cta-email-btn i {
    color: var(--primary-color);
}

.career-cta-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.career-cta-whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.career-cta-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Mobile & Tablet responsiveness for Career Section & CTA Banner */
@media (max-width: 768px) {
    .career-cta-banner {
        padding: 35px 24px;
        border-radius: 20px;
        text-align: center;
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
    }

    .career-cta-content {
        flex: 1 1 100%;
        width: 100%;
    }

    .career-cta-title {
        font-size: 1.8rem;
    }

    .career-cta-desc {
        font-size: 0.98rem;
        max-width: 100%;
    }

    .career-cta-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .career-cta-email-btn,
    .career-cta-whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .leadership-card {
        width: 100%;
        max-width: 330px;
    }
}

@media (max-width: 480px) {
    .career-section {
        padding: 50px 0;
    }

    .career-cta-banner {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .career-cta-title {
        font-size: 1.55rem;
    }

    .career-cta-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .career-openings-grid {
        grid-template-columns: 1fr;
    }
}

/* --- High-Performance Rendering & Fast Loading Enhancements --- */
.services-section,
.doctors-section,
.infrastructure-section,
.gallery-section,
.patient-feeds-section,
.reviews-section,
.career-section,
.contact-section,
.footer-premium {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

/* Hardware accelerated smooth transforms */
.doctor-card,
.service-card,
.facility-card,
.gallery-item,
.leadership-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Common Layout & Extracted Utility Classes */
.section-header-column {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.search-bar-center-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.search-bar-center-wrapper.mt-20 {
    margin-top: 20px;
}

.footer-copyright-nowrap {
    white-space: nowrap;
}

/* Dynamic JS Component Classes */
.doc-no-results {
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    color: var(--text-light);
    padding: 40px;
}

.doc-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.doc-book-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 0.9rem;
}

.reviewer-rating-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.reviewer-google-badge {
    color: #4285F4;
    font-size: 1.5rem;
}