﻿/* =============================================
   HEALTH CARE HOSPITAL - Main Stylesheet
   Theme: Medical Blue & Teal Green
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --primary-light: #e8f4ff;
    --secondary: #20C997;
    --sec-dark: #17a47d;
    --accent: #FF6B35;
    --dark: #0d1b2a;
    --dark2: #1a2d42;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --white: #ebf5ff;
    /* Deeply tinted Medical Sky instead of "Pearl" */
    --light-bg: #d6eaff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 123, 255, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 123, 255, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(135deg, #007BFF 0%, #20C997 100%);
    --gradient-dark: linear-gradient(135deg, #0d1b2a 0%, #1a2d42 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #eef7ff;
    /* Bold Medical Sky Tint */
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.4);
    color: var(--white);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 13px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 123, 255, 0.3);
}

/* ===== SECTION TITLES & SEPARATORS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title span {
    color: var(--primary);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Backgrounds - Professional "Colorful Light" Overhaul (Gradients & Borders) */
.features-section {
    background: linear-gradient(180deg, #bbdeff 0%, #d6ebff 100%);
    padding: 110px 0;
    border-top: 5px solid var(--primary);
}

.stats-section {
    background: linear-gradient(180deg, #a2f0e3 0%, #c4f7ee 100%);
    padding: 85px 0;
    color: var(--dark);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-section .count {
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.stats-section .stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stats-section .stat-icon {
    color: var(--secondary);
    opacity: 1;
    filter: drop-shadow(0 2px 5px rgba(32, 201, 151, 0.2));
}

.departments-section {
    background: linear-gradient(180deg, #badfff 0%, #e1f0ff 100%);
    padding: 110px 0;
    border-top: 5px solid #3498db;
}

.about-snippet-section {
    background: linear-gradient(180deg, #d0bcff 0%, #e8daff 100%);
    color: var(--text);
    padding: 120px 0;
    border-top: 5px solid #8e44ad;
}

.about-snippet-section .section-title {
    color: var(--dark);
}

.about-snippet-section .section-subtitle {
    color: var(--text-muted);
}

.about-snippet-section .value-text h5 {
    color: var(--dark);
}

.about-snippet-section .value-text p {
    color: var(--text-muted);
}

.about-snippet-section .value-icon {
    background: rgba(0, 123, 255, 0.1);
    /* Subtle blue tint */
    color: var(--primary);
}

.doctors-section {
    background: linear-gradient(180deg, #bcf7c9 0%, #dcfce7 100%);
    padding: 110px 0;
    border-top: 5px solid var(--secondary);
}

.appointment-section {
    background: linear-gradient(135deg, #e1f0ff 0%, #d0e7ff 100%);
    padding: 110px 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--secondary);
}

/* appointment-section moved and consolidated below */

.testimonials-section {
    background: linear-gradient(180deg, #ffd6d6 0%, #ffe5e5 100%);
    padding: 110px 0;
    border-top: 5px solid var(--accent);
}

.blog-section {
    background: linear-gradient(180deg, #d9e2ec 0%, #f0f4f8 100%);
    padding: 110px 0;
    border-top: 5px solid var(--dark);
}

.packages-section {
    background: linear-gradient(180deg, #ffefc2 0%, #fff9e6 100%);
    /* Golden Sand Gradient */
    padding: 110px 0;
    border-top: 5px solid #f39c12;
}



/* ===== HEADER / NAVBAR ===== */
.navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

.navbar-main.scrolled {
    background: rgba(13, 27, 42, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.top-bar {
    background: var(--dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.75);
}

.top-bar a:hover {
    color: var(--secondary);
}

.top-bar .emergency-badge {
    background: #dc3545;
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* New Restructured Header Styles */
.main-nav-restructured {
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.brand-row {
    padding: 15px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-logo {
    width: 280px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.brand-text .name {
    color: var(--dark);
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0px;
}

.brand-text .tagline {
    color: var(--secondary);
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.brand-contact-info {
    display: flex;
    gap: 30px;
}

.brand-contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.brand-contact-info .info-item div {
    display: flex;
    flex-direction: column;
}

.brand-contact-info .info-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.brand-contact-info .info-item strong {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.nav-row {
    background: var(--dark2);
    padding: 0;
}

.nav-links-centered {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-wrap: nowrap;
    /* Force one row on PC */
}

.nav-links-centered li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 16px 16px;
    /* Increased for a more substantial button feel */
    display: block;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-links-centered li a:hover,
.nav-links-centered li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    /* Increased prominence */
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-links-centered li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--secondary);
    border-radius: 4px 4px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links-centered li a:hover::after,
.nav-links-centered li a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #00a8ff 100%) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    /* Reduced for requested balance */
    margin-left: 10px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.82rem !important;
    /* Reduced size */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #00d2ff 0%, var(--primary) 100%) !important;
}

.nav-admin-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    /* Increased size as requested */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    margin-left: 12px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    /* Bolder weighted text */
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-admin-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-links-centered li a:hover,
.nav-links-centered li a.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links-centered li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-links-centered li a:hover::after,
.nav-links-centered li a.active::after {
    transform: scaleX(1);
}

/* Mobile Styling for Restructured Header */
.mobile-menu-restructured {
    display: none;
    background: var(--dark);
    border-top: 3px solid var(--secondary);
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
}

.mobile-menu-restructured.open {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li a {
    display: block;
    padding: 18px 25px;
    /* Slightly increased padding */
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: var(--dark2);
    border: none;
    border-radius: 4px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }

    .brand-row {
        padding: 10px 0;
    }

    .brand-logo {
        width: 180px;
        height: 80px;
    }

    .brand-text .name {
        font-size: 1.2rem;
    }

    .brand-text .tagline {
        font-size: 0.65rem;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 200px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.88) 40%, rgba(0, 123, 255, 0.25) 100%);
}

/* Slider Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

@media (max-width: 767px) {
    .slider-nav {
        display: none;
        /* Hide buttons on mobile to avoid clutter */
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(32, 201, 151, 0.15);
    border: 1px solid rgba(32, 201, 151, 0.4);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--secondary);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 18px 24px;
    backdrop-filter: blur(10px);
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    display: block;
}

.hero-image-section {
    position: relative;
    z-index: 2;
}

.hero-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    object-fit: cover;
    height: 500px;
}

.hero-floating-card {
    position: absolute;
    background: #fdfdff;
    /* Pearl Tint */
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    animation: float-card 3s ease-in-out infinite;
}

.hero-fc-1 {
    bottom: 40px;
    left: -30px;
    animation-delay: 0s;
}

.hero-fc-2 {
    top: 50px;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-floating-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-floating-card .info .title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.hero-floating-card .info .sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--secondary);
}

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
    background: linear-gradient(135deg, #dc3545, #c0392b);
    color: white;
    padding: 14px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 40px);
}

.emergency-number {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff200;
}

/* ===== SERVICES / QUICK FEATURES ===== */
/* Consolidated Sections Already Defined Above - Removing Overrides */

.feature-card {
    background: #ffe5e5;
    /* Contrasting Soft Rose/Peach for Blue Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), var(--shadow);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== STATS COUNTER ===== */
/* Consolidating Stats Section Redundant definition */

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.stat-item .count {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    display: block;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.stat-item .count span {
    color: var(--secondary);
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 16px;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== DEPARTMENTS ===== */
/* Departments already defined above */

.dept-card {
    background: #d2f9e1;
    /* Contrasting Soft Mint for Azure Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 20px rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--gradient);
    transition: var(--transition);
    z-index: 0;
}

.dept-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.2);
    border-color: var(--primary);
}

.dept-card .dept-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.dept-card:hover .dept-icon {
    transform: scale(1.15);
}

.dept-card h5 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.dept-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    line-height: 1.5;
}

.dept-card .dept-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 14px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* ===== DOCTORS ===== */
/* Doctors already defined above */

.doctor-card {
    background: #e8daff;
    /* Contrasting Soft Lavender for Mint Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), var(--shadow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.doctor-img-wrap {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-wrap img {
    transform: scale(1.08);
}

.doctor-img-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img-overlay {
    opacity: 0.92;
}

.doctor-img-overlay a {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.doctor-img-overlay a:hover {
    background: white;
    color: var(--primary);
}

.doctor-dept-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.doctor-info {
    padding: 22px;
}

.doctor-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.doctor-designation {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.doctor-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.doctor-meta span i {
    color: var(--primary);
    width: 14px;
}

/* ===== APPOINTMENT SECTION (Consolidated) ===== */
.appointment-section {
    background: linear-gradient(135deg, #e1f0ff 0%, #daedff 100%);
    padding: 110px 0;
    position: relative;
    border-top: 5px solid var(--secondary);
}

.appt-card {
    background: #fdfdff;
    /* Pearl Tint */
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.08);
    border: 1px solid var(--border);
}

.appt-card h2,
.appt-card h3,
.appt-card h4,
.appt-card h5 {
    color: var(--dark) !important;
    font-weight: 800 !important;
}

.appt-card p,
.appt-card span {
    color: var(--text-muted) !important;
}

.appt-card .section-badge {
    background: var(--primary-light);
    color: var(--primary);
}

.appt-form .form-label {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px;
    display: block;
}

.appt-form .form-control,
.appt-form .form-select {
    background: #ffffff !important;
    border: 2px solid var(--border);
    color: #000000 !important;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.appt-form .form-control:focus,
.appt-form .form-select:focus {
    background: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    color: #000000 !important;
    outline: none;
}

.appt-form .form-control::placeholder {
    color: #000000 !important;
    opacity: 0.8 !important;
}

.appt-form .form-select {
    color: #000000 !important;
}

.appt-form .form-select option {
    background: #ffffff;
    color: #000000;
}

.appt-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 5px;
}

/* ===== TESTIMONIALS ===== */
/* Consolidated Testimonials Redundant Definition */

.testimonial-card {
    background: #d4efff;
    /* Contrasting Soft Azure for Rose Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), var(--shadow);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    height: 100%;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.testimonial-dept {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

/* ===== BLOG ===== */
/* Consolidated Blog Redundant Definition */

.blog-card {
    background: #fff4e0;
    /* Contrasting Soft Gold/Cream for Slate Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), var(--shadow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-img-wrap {
    overflow: hidden;
}

.blog-card-body {
    padding: 24px;
}

.blog-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.5;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #0d1b2a 0%, #162a3f 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 85px 0 0;
    border-top: 5px solid var(--primary);
}

.footer-brand .name {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-brand .tagline {
    color: var(--secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-top: 14px;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.footer-links li a i {
    color: var(--secondary);
    font-size: 0.78rem;
    width: 14px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.footer-contact-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item .text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact-item .text strong {
    color: white;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

/* footer-bottom already defined above */

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2d42 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.08);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(32, 201, 151, 0.08);
}

.page-hero h1 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb-custom a {
    color: var(--secondary);
}

.breadcrumb-custom span {
    color: white;
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 90px 0;
}

.about-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 480px;
}

.about-img-grid .img-main {
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.about-img-grid .img-sm {
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.about-badge-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-badge-card .num {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

.about-badge-card .text {
    font-size: 0.78rem;
    opacity: 0.85;
}

.value-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.1);
    /* Subtle blue tint */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.value-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.value-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 90px 0;
    background: #d2fcf5;
    /* Vibrant Light Cyan */
}

.contact-form-card {
    background: #fdfdff;
    /* Pearl Tint */
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-card .form-control,
.contact-form-card textarea {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.contact-info-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h6 {
    color: var(--secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== SERVICES PAGE ===== */
.services-section {
    padding: 90px 0;
    background: #f5f9ff;
    /* Ultra-Light Blue */
}

/* Removing Redundant/Incorrect Selector Override */

.service-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: block;
}

.service-card h5 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== HEALTH PACKAGES ===== */
.package-card {
    background: #d6ebff;
    /* Contrasting Azure/Blue for Golden Sand Section */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), var(--shadow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border);
    height: 100%;
}

.package-card.featured {
    border-color: var(--primary);
    transform: scale(1.03);
}

.package-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.package-card.featured:hover {
    transform: scale(1.05);
}

.package-header {
    background: var(--gradient);
    padding: 24px;
    text-align: center;
    color: white;
}

.package-featured-badge {
    background: #fdfdff;
    /* Pearl Tint */
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.package-price {
    font-size: 2rem;
    font-weight: 900;
}

.package-price sup,
.package-price small {
    font-size: 0.9rem;
    font-weight: 400;
}

.package-body {
    padding: 24px;
}

.package-features {
    list-style: none;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features li:last-child {
    border: none;
}

.package-features li i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate] {
    opacity: 0;
}

[data-animate="fade-up"] {
    animation: fadeInUp 0.7s ease forwards;
}

[data-animate="fade-left"] {
    animation: fadeInLeft 0.7s ease forwards;
}

[data-animate="fade-right"] {
    animation: fadeInRight 0.7s ease forwards;
}

/* Lazy loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
}

/* WhatsApp floating */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    color: white;
}

/* ===== UTILITIES ===== */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.bg-primary-custom {
    background: var(--gradient) !important;
}

.bg-dark-custom {
    background: var(--dark) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 110px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 16px;
    }

    .hero-stat {
        padding: 14px 18px;
    }

    .hero-image-section {
        display: none;
    }

    .hero-fc-1,
    .hero-fc-2 {
        display: none;
    }

    .appt-card {
        padding: 28px 20px;
    }

    .about-img-grid {
        height: 280px;
    }

    .contact-info-card {
        margin-top: 30px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .footer {
        padding-top: 50px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* ===== FLOATING ACTION BUTTONS  (side-by-side row) ===== */
.float-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: row;
    /* Side by side */
    gap: 12px;
    z-index: 999;
    align-items: center;
}

/* Both icons: same round shape, same 60Ã—60 size */
.whatsapp-float,
.message-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
}

/* WhatsApp â€” keep signature green */
.whatsapp-float {
    background: #25D366;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.13) translateY(-3px);
    color: #fff;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Message icon â€” brand blue gradient, pulsing */
.message-float {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    animation: pulse-msgfloat 2.5s infinite;
}

.message-float:hover {
    transform: scale(1.13) translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.5);
    animation: none;
}

@keyframes pulse-msgfloat {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(0, 123, 255, 0.3);
    }

    50% {
        box-shadow: 0 6px 36px rgba(0, 123, 255, 0.6);
    }
}

/* Tooltip on hover */
.whatsapp-float::before,
.message-float::before {
    content: attr(title);
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 27, 42, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover::before,
.message-float:hover::before {
    opacity: 1;
}

/* ==================================================================
   PATIENT MESSAGE SECTION  â€”  colorful, professional, before footer
   ================================================================== */
.patient-msg-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #003580 45%, #007BFF 75%, #20C997 100%);
    overflow: hidden;
    border-top: 5px solid #20C997;
}

/* Decorative blobs */
.pmsg-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(60px);
    pointer-events: none;
}

.pmsg-blob-1 {
    width: 500px;
    height: 500px;
    background: #20C997;
    top: -120px;
    left: -120px;
}

.pmsg-blob-2 {
    width: 400px;
    height: 400px;
    background: #007BFF;
    bottom: -100px;
    right: -80px;
}

/* Feature bullets */
.pmsg-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.pmsg-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pmsg-feat-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #20C997;
    font-size: 1.1rem;
}

.pmsg-feat>div:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.6;
}

.pmsg-feat>div:last-child strong {
    color: #fff;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

/* WhatsApp link */
.pmsg-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25D366;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 20px;
    border-radius: 50px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.pmsg-wa-link i {
    font-size: 1.3rem;
}

.pmsg-wa-link:hover {
    background: rgba(37, 211, 102, 0.28);
    color: #25D366;
    text-decoration: none;
}

/* Card */
.pmsg-card {
    background: #fff;
    border-radius: 24px;
    padding: 42px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.pmsg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007BFF, #20C997);
}

/* Card header */
.pmsg-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8f0fa;
}

.pmsg-card-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #007BFF, #20C997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.pmsg-card-header h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0d1b2a;
    margin: 0 0 3px;
}

.pmsg-card-header p {
    font-size: 0.83rem;
    color: #6c757d;
    margin: 0;
}

/* Form rows */
.pmsg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media(max-width:576px) {
    .pmsg-row {
        grid-template-columns: 1fr;
    }
}

.pmsg-field {
    margin-bottom: 16px;
}

.pmsg-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 7px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmsg-field label i {
    color: #007BFF;
    font-size: 0.78rem;
}

.pmsg-field label span {
    color: #dc3545;
}

.pmsg-field input,
.pmsg-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #0d1b2a;
    background: #f8faff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    resize: vertical;
}

.pmsg-field input:focus,
.pmsg-field textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background: #fff;
}

.pmsg-field input::placeholder,
.pmsg-field textarea::placeholder {
    color: #a0aec0;
}

/* Error text */
.pmsg-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.83rem;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

/* Submit button */
.pmsg-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007BFF 0%, #20C997 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(0, 123, 255, 0.35);
    letter-spacing: 0.3px;
}

.pmsg-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 123, 255, 0.45);
}

.pmsg-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success state */
.pmsg-success {
    text-align: center;
    padding: 40px 20px;
}

.pmsg-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #20C997, #17a47d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 12px 32px rgba(32, 201, 151, 0.4);
    animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pmsg-success h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #0d1b2a;
    margin-bottom: 10px;
}

.pmsg-success>p {
    font-size: 0.92rem;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.7;
}

.pmsg-success .pmsg-submit {
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive tweaks */
@media(max-width:991px) {
    .patient-msg-section {
        padding: 70px 0;
    }

    .pmsg-card {
        padding: 30px 24px;
    }
}

@media(max-width:576px) {
    .float-actions {
        bottom: 18px;
        right: 16px;
        gap: 8px;
    }

    .whatsapp-float,
    .message-float {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .pmsg-card {
        padding: 24px 16px;
    }

    .pmsg-section {
        padding: 60px 0;
    }
}

/* FINAL HEADER FIXES - Overriding all previous rules */
.main-nav .container,
.main-nav-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Reclaim full width */
    padding: 0 15px !important;
    margin: 0 auto;
    gap: 8px !important;
}

.navbar-brand-custom {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    /* Professional gap between logo and name */
    flex-shrink: 0 !important;
}

.brand-logo {
    width: 70px !important;
    /* Shrink the container to fit the logo */
    height: 70px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    flex-shrink: 1 !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    gap: 1px !important;
    /* Items are tight */
}

.nav-admin-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffd700 !important;
    /* Golden for visibility */
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    margin-left: 4px !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.nav-admin-btn:hover {
    background: #ffd700 !important;
    color: #000 !important;
}

.nav-links li {
    margin: 0 !important;
}