/* ----------------------------------------------------
   GLOBAL THEME — MAX HOSPITAL STYLE
----------------------------------------------------- */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f9fb;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #0a3d62; /* Deep medical navy */
}

a {
    text-decoration: none;
}

/* ----------------------------------------------------
   COLOR PALETTE
   Teal: #009688
   Navy: #0a3d62
   Light Gray: #f7f9fb
----------------------------------------------------- */
:root {
    --primary-teal: #009688;
    --primary-navy: #0a3d62;
    --light-bg: #f7f9fb;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ----------------------------------------------------
   NAVBAR
----------------------------------------------------- */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
}

/*.navbar-brand img {
    height: 48px;
}
*/
.navbar-dark .nav-link,
.navbar .nav-link {
    color: #0a3d62 !important;
    font-weight: 600;
    padding: 10px 16px;
}

    .navbar .nav-link:hover {
        color: var(--primary-teal) !important;
    }

.navbar .btn-primary {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    font-weight: 600;
}

/* ----------------------------------------------------
   HERO BANNER
----------------------------------------------------- */
.hero-banner {
    background: linear-gradient( rgba(0, 150, 136, 0.55), rgba(0, 150, 136, 0.55) ), url('/images/hospital-hero.jpg') center/cover no-repeat;
    min-height: 70vh;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    border-bottom: 6px solid var(--primary-teal);
}

    .hero-banner h1 {
        font-size: 3.2rem;
        font-weight: 800;
    }

    .hero-banner p {
        font-size: 1.25rem;
        opacity: 0.95;
    }

    .hero-banner .btn-primary {
        background-color: #ffffff;
        color: var(--primary-teal);
        border: none;
        font-weight: 700;
        padding: 12px 28px;
        border-radius: 6px;
    }

        .hero-banner .btn-primary:hover {
            background-color: #e3f7f5;
        }

/* ----------------------------------------------------
   SECTION HEADINGS
----------------------------------------------------- */
section h2 {
    color: var(--primary-navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ----------------------------------------------------
   SERVICES CARDS
----------------------------------------------------- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    background-color: #ffffff;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .card h4 {
        color: var(--primary-teal);
        font-weight: 700;
    }

/* ----------------------------------------------------
   WHY CHOOSE US
----------------------------------------------------- */
.bg-light {
    background-color: #eef5f7 !important;
}

    .bg-light h5 {
        color: var(--primary-navy);
        font-weight: 600;
    }

    .bg-light p {
        color: #555;
    }

/* ----------------------------------------------------
   TESTIMONIALS
----------------------------------------------------- */
.card strong {
    color: var(--primary-teal);
}

/* ----------------------------------------------------
   CTA SECTION
----------------------------------------------------- */
.bg-primary {
    background-color: var(--primary-teal) !important;
}

    .bg-primary h2 {
        font-size: 2rem;
        font-weight: 700;
    }

/* ----------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
    background-color: #0a3d62;
    color: #dfe6e9;
}

    footer p, footer small {
        color: #dfe6e9;
    }
    
    /*------------Spacing */

.section-title-space {
    margin-bottom: 2.5rem !important; /* Adjust as needed */
}

/*.section-divider {
    width: 800px;
    height: 4px;
    background-color: #009688;*/ /* teal */
    /*border-radius: 4px;
    margin-bottom: 2.5rem;
}*/

.section-divider {
    width: 100%;
    max-width: 800px;
    height: 4px;
    background-color: #009688;
    border-radius: 4px;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}



.mega-cta-section {
    background: #f1f5f7;
    border-top: 4px solid #009688;
}

    .mega-cta-section h5 {
        font-size: 1.1rem;
    }

.cta-link {
    color: #0a3d62;
    display: block;
    padding: 4px 0;
    font-size: 0.95rem;
}

    .cta-link:hover {
        color: #009688;
        text-decoration: underline;
    }

.mega-cta-section {
    background: #f1f5f7;
    border-top: 3px solid #009688;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

    .mega-cta-section h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

.cta-link {
    color: #0a3d62;
    display: block;
    padding: 2px 0;
    font-size: 0.9rem;
}

    .cta-link:hover {
        color: #009688;
        text-decoration: underline;
    }

.patient-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

.patient-form-card {
    width: 100%;
    max-width: 600px; /* controls how narrow the form is */
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.booked-slot {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.service-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

.service-desc {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

    .service-desc.expanded {
        max-height: none;
    }

.view-more-btn {
    color: #0d6efd;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}





.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 6px solid #0d6efd;
    padding-left: 12px;
    color: #0d6efd;
}

/* Card styling */
.service-card {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

/* Icon styling */
.icon-box {
    font-size: 2.2rem;
    color: #0d6efd;
    margin-bottom: 12px;
}

/* Background colors per category */
.bg-diabetes {
    background: #e8f7ff;
}

.bg-obesity {
    background: #fff4e6;
}

.bg-thyroid {
    background: #f3e8ff;
}

.bg-metabolic {
    background: #e8fff3;
}

.bg-mental {
    background: #ffe8f3;
}

.bg-lifestyle {
    background: #f0fff4;
}

.bg-prevention {
    background: #fffbe6;
}

.bg-women {
    background: #ffe6f7;
}

.bg-community {
    background: #e6f7ff;
}

.bg-digital {
    background: #f2f2ff;
}

.bg-education {
    background: #e6fff9;
}

.bg-research {
    background: #f9e6ff;
}

/* Expandable text */
.service-desc {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

    .service-desc.expanded {
        max-height: none;
    }

.view-more-btn {
    color: #0d6efd;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}

/* Accomplishments */
.accomplishment-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Carousel */
.doctor-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    min-height: 450px;
    height: auto;
    width: 100%
}

.doctor-carousel-track {
    /*display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;*/
    display: flex;
    transition: transform 0.5s ease;
    /*width:100%*/
}

.doctor-carousel-slide {
flex: 0 0 100%;
/*    height: 100%;*/
max-width:100%;
    /*min-width: 100vw;*/
    padding: 0;
    box-sizing: border-box;
    /*flex-shrink:0*/
}

    .doctor-carousel-slide img {
        width: 100%;
        height: auto;
        max-height: 420px; /* adjust as needed */
        object-fit: contain !important;
        background: #000; /* optional: gives letterbox effect */
        border-radius: 10px;
    }


/* Arrows */
    .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 22px;
}

    .carousel-btn:hover {
        background: rgba(0,0,0,0.7);
    }

.prev {
    left: 15px;
}

.next {
    right: 15px;
}



.calendar-strip-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.calendar-strip {
    display: flex;
    gap: 12px;
}

.calendar-day {
    min-width: 90px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: #f1f1f1;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

    .calendar-day.selected {
        background: #007bff;
        color: white;
    }

    .calendar-day.disabled {
        background: #ddd;
        color: #888;
        cursor: not-allowed;
    }


.calendar-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .calendar-icon i {
        color: #007bff;
    }


.date-selector-container {
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 10px;
    background: #fafafa;
}

.date-strip-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow-btn {
    border: none;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

    .arrow-btn:hover {
        background: #0056b3;
    }

.date-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-grow: 1;
    padding: 5px 0;
}

.date-item {
    min-width: 90px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: #f1f1f1;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

    .date-item.selected {
        background: #007bff;
        color: white;
    }

    .date-item.disabled {
        background: #ddd;
        color: #888;
        cursor: not-allowed;
    }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-calendar {
    background: white;
    width: 350px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.2s ease-in-out;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #007bff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
}

    .calendar-day:hover {
        background: #e6f0ff;
    }

    .calendar-day.disabled {
        color: #aaa;
        background: #f2f2f2;
        cursor: not-allowed;
    }

    .calendar-day.selected {
        background: #007bff;
        color: white;
    }

.close-btn {
    margin-top: 15px;
    width: 100%;
    padding: 8px;
    background: #007bff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
}

/* Desktop logo size */
.hospital-logo .logo-icon img {
    height: 80px;
    width: auto;
}

/* Mobile fix: shrink logo so it doesn't overflow */
/*@media (max-width: 768px) {
    .hospital-logo .logo-icon img {
        height: 50px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .logo-subtitle {
        font-size: 0.75rem;
        line-height: 1.1;
    }
}*/



.hospital-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /*white-space: nowrap;*/
    flex-wrap: nowrap;
}

    .hospital-logo .logo-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }


.logo-text {
    white-space: normal;
    max-width: 100%;
}

.logo-subtitle {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
    word-break: break-word;
}

.accomplishment-list {
    /*border-left: 3px solid #28a745;*/
    padding-left: 12px;
}

.slot-disabled {
    pointer-events: none;
    opacity: 0.5;
}


/* FINAL LOGO FIX */
.logo-img {
    height: 80px; /* desktop */
    width: auto;
    display:block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px; /* mobile */
    }
}

/* Ensure navbar doesn't shrink the logo */
.navbar-brand img {
    max-height: none !important;
}


/* --- Premium Doctor Navbar Override --- */
.navbar {
    background: #ffffff !important;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: nowrap !important;
}

    .navbar .nav-link {
        color: #1a1a1a !important;
        font-weight: 500;
        padding: 10px 18px !important;
        border-bottom: 2px solid transparent;
        transition: all .25s ease;
    }

        .navbar .nav-link:hover {
            color: #0d6efd !important;
            border-bottom: 2px solid #0d6efd;
        }

.navbar-brand img,
.logo-img {
    height: 70px !important;
}


/* --- Premium Top Bar --- */
.top-bar {
    background: #0d6efd;
    color: white;
    font-size: 14px;
    padding: 6px 0;
}

/* --- Premium Typography --- */
body {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600;
    color: #0d3b66;
}

/* --- Premium Footer --- */
footer {
    background: #f8f9fa !important;
    color: #444 !important;
    padding: 40px 0 !important;
    border-top: 1px solid #e5e5e5;
}

    footer p, footer small {
        color: #555 !important;
    }


/* --- Premium Hero Banner --- */
.hero-banner {
    background: linear-gradient(rgba(13, 110, 253, 0.45), rgba(13, 110, 253, 0.45)), url('/images/hospital-hero.jpg') center/cover no-repeat !important;
    min-height: 65vh;
    padding: 120px 20px;
    color: white;
    text-align: center;
}

/* Why Choose Us Icons */
.icon-box {
    font-size: 2rem;
    color: #0d6efd;
    min-width: 40px;
}



/* --- Premium Doctor Footer --- */
footer {
    background: #f8f9fa !important; /* light grey/white */
    color: #444 !important;
    padding: 40px 0 !important;
    border-top: 1px solid #e5e5e5;
}

    footer p,
    footer small {
        color: #555 !important;
    }

    footer a {
        color: #0d6efd;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }



.contact-icon {
    font-size: 1.3rem;
    color: #0d6efd;
}


.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 90px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .whatsapp-float:hover {
        background-color: #1ebe5d;
    }



.callnow-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show only on mobile */
@media (min-width: 768px) {
    .callnow-float {
        display: none;
    }
}

.follow-us-section .social-box {
    transition: 0.25s ease;
    background: #ffffff;
}

    .follow-us-section .social-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }



.service-info-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: default;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .service-info-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.service-img-wrapper {
    position: relative;
}

    .service-img-wrapper img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-radius: 12px;
    }

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    border-radius: 12px;
}

    .service-overlay h4 {
        margin: 0;
        font-weight: 700;
        font-size: 1.3rem;
    }

/* Add clean border + rounded corners */
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    /* Hover lift effect */
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

/* Image wrapper for zoom effect */
.image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Zoom on hover */
.service-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}


/* Main section title (H2) */
h2.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0a3d62;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    position: relative;
}

    h2.section-title::after {
        content: "";
        width: 80px;
        height: 4px;
        background: #0a3d62;
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* Category title (H3) */
.category-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #145da0;
    margin-bottom: 1.8rem;
    position: relative;
}

    .category-title::after {
        content: "";
        width: 60px;
        height: 3px;
        background: #145da0;
        position: absolute;
        bottom: -8px;
        left: 0;
        border-radius: 2px;
    }

/* Card heading (H4) */
.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a3d62;
    margin-bottom: 1rem;
    position: relative;
}

    .service-card h4::after {
        content: "";
        width: 40px;
        height: 3px;
        background: #0a3d62;
        position: absolute;
        bottom: -6px;
        left: 0;
        border-radius: 2px;
    }


.linkedin-icon {
    color: #0A66C2; /* Official LinkedIn blue */
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .linkedin-icon:hover {
        color: #004182; /* Darker LinkedIn hover shade */
        transform: scale(1.15);
    }

.media-card {
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .media-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

.media-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a3d62;
    position: relative;
}

    .section-title::after {
        content: "";
        width: 80px;
        height: 4px;
        background: #0a3d62;
        position: absolute;
        bottom: -10px;
        left: 0;
        border-radius: 2px;
    }

.testimonial-card {
    border-radius: 12px;
    background: #fff;
}

.stars {
    color: #f4b400;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: #555;
}

.star {
    font-size: 1.3rem;
    color: #ccc;
    transition: opacity 0.3s ease;
}

    .star.filled {
        color: #f4b400;
    }
.filter-btn {
    border-radius: 8px;
    font-size: 0.9rem;
}

.filter-menu {
    position: absolute;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 0;
    width: 200px;
    display: none;
    z-index: 1000;
}

.filter-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .filter-option:hover {
        background: #f5f5f5;
    }


.google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4285F4;
    font-weight: 600;
}


.google-g {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: conic-gradient( from 45deg, #4285F4 0deg 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg );
    border-radius: 50%;
    position: relative;
}

    .google-g::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
    }
.divider-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

    .divider-dot span {
        width: 60px;
        height: 2px;
        background: #007bff;
    }

    .divider-dot i {
        width: 10px;
        height: 10px;
        background: #007bff;
        border-radius: 50%;
        margin: 0 10px;
    }

.testimonial-controls {
    margin-top: -10px;
}

