/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    /* Medical Blue */
    --secondary-color: #0dcaf0;
    /* Teal/Light Blue */
    --dark-color: #212529;
    /* Dark Text */
    --light-color: #f8f9fa;
    /* Light Background */
    --whatsapp-color: #25d366;
    /* WhatsApp Green */
    --transition: all 0.3s ease;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* --- Navbar Styles --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- Hero & Slider Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 75px;
    /* Navbar height compensation */
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Dark overlay over background images for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Appointment / WhatsApp Button */
.appointment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wa-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-color);
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.about-header h2 span {
    color: var(--primary-color);
}

.about-header p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Mission & Vision Cards */
.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 35px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Founder Card */
.founder-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.founder-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.founder-info {
    padding: 30px;
}

.badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.founder-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
}

.bio {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #a0a0a0;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Single column layout for tablets */
    }

    .hero-content h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        /* Show burger menu icon */
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

    /* JavaScript will toggle this class */
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero {
        height: 85vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .container {
        padding: 40px 0;
    }
}

/* --- Why Choose Us Section --- */
.choose-us-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    align-items: center;
}

.choose-content h3 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.choose-content h3 span {
    color: var(--primary-color);
}

.choose-content p {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition, all 0.3s ease);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 600;
}

/* --- Modals Styling (Pop-ups) --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark semi-transparent background */
    z-index: 2000;
    /* High z-index to stay on top */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    /* Modern blur effect */
    padding: 20px;
}

/* When active, JavaScript will toggle flex */
.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.close-btn:hover {
    color: #ff4d4d;
}

.modal-body {
    padding: 0 0 30px 0;
    text-align: center;
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 24px;
    color: var(--dark-color);
    padding: 0 20px;
}

.modal-tagline {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.modal-body hr {
    border: 0;
    height: 1px;
    background: #eef0f2;
    margin: 15px 20px;
}

.modal-text {
    font-size: 14px;
    color: #6c757d;
    text-align: left;
    padding: 0 25px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Modal WhatsApp Button styling override if needed */
.modal-body .btn-whatsapp {
    margin-top: 10px;
    display: inline-flex;
    text-decoration: none;
}

/* --- Scroll Reveal Animation Placeholder --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .choose-us-container {
        grid-template-columns: 1fr;
        /* Single column layout for tablet/mobile */
        gap: 35px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        /* Grid items stack on very small screens */
    }

    .choose-content h3 {
        font-size: 26px;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-img {
        height: 200px;
    }
}

/* --- HR & Management Section --- */
.hr-section {
    background-color: #ffffff;
    /* White background to contrast with previous light section */
    padding: 60px 0;
}

.hr-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* HR Image Styling with Badge overlay */
.hr-image-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hr-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition, all 0.3s ease);
}

.hr-image-box:hover .hr-img {
    transform: scale(1.03);
    /* Subtle zoom effect on hover */
}

.hr-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color, #0d6efd);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* HR Content & Typography */
.hr-content h3 {
    font-size: 32px;
    color: var(--dark-color, #212529);
    margin-bottom: 20px;
    font-weight: 700;
}

.hr-content h3 span {
    color: var(--secondary-color, #0dcaf0);
}

.hr-content p {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Statistics Counter Grid */
.hr-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.stat h4 {
    font-size: 36px;
    color: var(--primary-color, #0d6efd);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Join Our Team Button */
.btn-hr {
    display: inline-block;
    background-color: var(--primary-color, #0d6efd);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    transition: var(--transition, all 0.3s ease);
}

.btn-hr:hover {
    background-color: #0b5ed7;
    /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hr-container {
        grid-template-columns: 1fr;
        /* Stack image and content on tablets */
        gap: 35px;
    }

    .hr-img {
        height: 320px;
        /* Adjust image height for medium screens */
    }

    .hr-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hr-stats {
        flex-direction: column;
        /* Stack stats vertically on small mobiles */
        gap: 20px;
    }

    .stat h4 {
        font-size: 30px;
    }
}

/* ==========================================================================
   PMJAY (Ayushman Bharat) Section
   ========================================================================== */
.pmjay-section {
    background-color: #fcfdfd;
    padding: 80px 0;
    border-bottom: 1px solid #f0f4f8;
}

.pmjay-container {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.pmjay-content {
    flex: 1.2;
}

.pmjay-logo-box {
    margin-bottom: 20px;
}

.pmjay-logo {
    height: 70px;
    object-fit: contain;
}

.pmjay-content h2 {
    font-size: 34px;
    color: var(--dark-color, #212529);
    margin-bottom: 15px;
    font-weight: 700;
}

.pmjay-content h2 span {
    color: #ff6f00;
    /* National PMJAY Orange Accent */
}

.pmjay-intro {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
}

.benefit i {
    color: #2e7d32;
    /* Success Green */
    font-size: 18px;
}

.benefit span {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color, #212529);
}

/* Required Documents List */
.docs-needed {
    background: rgba(13, 110, 253, 0.03);
    border-left: 4px solid var(--primary-color, #0d6efd);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 35px;
}

.docs-needed h4 {
    font-size: 16px;
    color: var(--dark-color, #212529);
    margin-bottom: 12px;
    font-weight: 600;
}

.docs-needed ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.docs-needed li {
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.docs-needed li i {
    color: var(--primary-color, #0d6efd);
}

/* PMJAY Button */
.btn-pmjay {
    display: inline-block;
    background-color: #ff6f00;
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-pmjay:hover {
    background-color: #e06200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}

/* PMJAY Image Side */
.pmjay-image {
    flex: 0.8;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.desk-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.help-desk-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

/* ==========================================================================
   24/7 Ambulance Support Section
   ========================================================================== */
.ambulance-section {
    background-color: #fff5f5;
    /* Light Red Emergency Tint */
    padding: 80px 0;
}

.ambulance-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ambulance Pulse Animation Side */
.ambulance-icon-box {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    width: 180px;
    height: 180px;
    background: #dc3545;
    /* Emergency Red */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 70px;
    position: relative;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 35px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulse-circle i {
    animation: ambWobble 3s infinite ease-in-out;
}

@keyframes ambWobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-5deg);
    }

    20% {
        transform: rotate(5deg);
    }

    30% {
        transform: rotate(-3deg);
    }

    40% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* Ambulance Content Side */
.ambulance-content {
    flex: 1.2;
}

.emergency-tag {
    display: inline-block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.ambulance-content h2 {
    font-size: 36px;
    color: var(--dark-color, #212529);
    margin-bottom: 20px;
    font-weight: 700;
}

.ambulance-content h2 span {
    color: #dc3545;
}

.ambulance-content p {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ambulance-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.amb-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
}

.amb-feat i {
    color: #dc3545;
    font-size: 16px;
    width: 20px;
}

/* Call and Booking Actions Box */
.call-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #ffebeb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.call-box p {
    width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color, #212529);
    font-size: 15px;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #dc3545;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-call:hover {
    background-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.or-text {
    font-size: 14px;
    font-weight: 700;
    color: #a0aec0;
}

.btn-wa-amb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp-color, #25d366);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa-amb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {

    .pmjay-container,
    .ambulance-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

/* ==========================================================================
   Medical Services Section
   ========================================================================== */
.services-section {
    background-color: var(--light-color, #f8f9fa);
    padding: 80px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.services-header h2 {
    font-size: 36px;
    color: var(--dark-color, #212529);
    margin-bottom: 15px;
    font-weight: 700;
}

.services-header h2 span {
    color: var(--primary-color, #0d6efd);
}

.services-header p {
    color: #6c757d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Responsive Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Desktop standard 5 columns */
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Card Design */
.service-card {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.12);
    border-color: var(--primary-color, #0d6efd);
}

.service-card i {
    font-size: 38px;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 16px;
    color: var(--dark-color, #212529);
    font-weight: 600;
    margin: 0;
}

/* --- Dynamic Service Modal Structure --- */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    /* stays on top of everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.service-modal.show {
    display: flex;
}

.service-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: serviceModalPop 0.35s ease-out;
}

@keyframes serviceModalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button for Service Modal */
.service-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
}

.service-close-btn:hover {
    color: #ff4d4d;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns for small desktops */
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for tablets */
        gap: 20px;
    }

    .services-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for smaller tablets/large mobiles */
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column layout for typical mobile screens */
        gap: 15px;
    }

    .service-card {
        padding: 25px 15px;
    }
}

/* ==========================================================================
   Our Expert Doctors Section
   ========================================================================== */
.doctors-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color, #212529);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header h2 span {
    color: var(--primary-color, #0d6efd);
}

.section-header p {
    color: #6c757d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Doctors Dynamic Grid (Supports up to 9+ cards smoothly) */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cards per row on desktop */
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Doctor Card Base Styling */
.doctor-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.12);
    border-color: var(--primary-color, #0d6efd);
}

/* Rounded Profile Frame */
.doc-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid #eef2f7;
    transition: all 0.3s ease;
}

.doctor-card:hover .doc-img-container {
    border-color: var(--primary-color, #0d6efd);
}

.doc-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Text Elements */
.doc-info h4 {
    font-size: 20px;
    color: var(--dark-color, #212529);
    margin-bottom: 5px;
    font-weight: 600;
}

.doc-post {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.doc-special {
    display: inline-block;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-color, #0d6efd);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Doctor Profile Modal Box Custom Layout
   ========================================================================== */
.doctor-modal-content {
    max-width: 650px;
    /* Thoda wide layout doctor bio ke liye */
    border-radius: 20px;
}

.doc-modal-flex {
    display: flex;
    align-items: stretch;
}

#docModalImg {
    width: 40%;
    object-fit: cover;
    min-height: 320px;
}

.doc-details {
    width: 60%;
    padding: 40px 30px;
    text-align: left;
}

#docName {
    font-size: 26px;
    color: var(--dark-color, #212529);
    margin-bottom: 5px;
}

.post-tag {
    color: var(--primary-color, #0d6efd);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-details hr {
    border: 0;
    height: 1px;
    background: #eef0f2;
    margin: 15px 0 20px 0;
}

.doc-details p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 10px;
}

.doc-details p strong {
    color: var(--dark-color, #212529);
    font-weight: 600;
    display: inline-block;
    width: 120px;
    /* Perfectly aligns data labels */
}

/* Reusing your standard modal logic with higher priority */
#docModal.show {
    display: flex;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablets par 2 cards per row */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .doc-modal-flex {
        flex-direction: column;
        /* Mobile screens par photo upar aur text neeche stack ho jayega */
    }

    #docModalImg {
        width: 100%;
        height: 250px;
    }

    .doc-details {
        width: 100%;
        padding: 30px 20px;
    }

    .doc-details p strong {
        width: auto;
        display: block;
        /* Info labels separate lines par mobile optimization ke liye */
        margin-bottom: 2px;
    }
}

@media (max-width: 576px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        /* Mobiles par single column architecture */
    }

    .section-header h2 {
        font-size: 30px;
    }
}
/* ==========================================================================
   Contact Us Section Styling
   ========================================================================== */
.contact-section {
    background-color: var(--light-color, #f8f9fa);
    padding: 80px 0;
}

.contact-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2-Column Responsive Layout Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

/* --- Left Side: Feedback Form Box --- */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.contact-form h3 {
    font-size: 24px;
    color: var(--dark-color, #212529);
    margin-bottom: 25px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background-color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

/* Textarea specifically stretching adjustment */
.input-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Input Fields Focus State Trigger Animation */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background-color: #fff;
}

/* Send Message Button Styling */
.btn-send {
    width: 100%;
    background-color: var(--primary-color, #0d6efd);
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-send:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

/* --- Right Side: Map & Contact Info Box --- */
.contact-map-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 3D Glass Style Map Wrapper */
.map-container {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 4px solid #ffffff;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Text Details Section */
.info-details {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.info-details h3 {
    font-size: 26px;
    color: var(--dark-color, #212529);
    margin-bottom: 20px;
    font-weight: 700;
}

.info-details p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.info-details p i {
    color: var(--primary-color, #0d6efd);
    font-size: 16px;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.info-details p strong {
    color: var(--dark-color, #212529);
}

/* Get Directions Accent Button */
.btn-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--dark-color, #212529);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-direction:hover {
    background-color: var(--primary-color, #0d6efd);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints for Form & Map Elements
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacks column grids into single layout */
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 20px;
    }
    
    .info-details {
        padding: 25px 20px;
    }
    
    .contact-form h3 {
        font-size: 20px;
    }
    
    .info-details h3 {
        font-size: 22px;
    }
}
/* ==========================================================================
   Appointment Section Styling
   ========================================================================== */
.appointment-container {
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    margin: 60px auto;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--dark-color, #212529);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header h2 span {
    color: var(--primary-color, #0d6efd);
}

.form-header p {
    color: #718096;
    font-size: 15px;
}

/* Form Layout Grid (2 Columns on Desktop) */
.apt-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Individual Input Box Wrapper */
.input-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-box label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.3s ease;
}

/* Input/Textarea Active State Animation */
.input-box input:focus,
.input-box textarea:focus {
    border-color: var(--primary-color, #0d6efd);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.input-box textarea {
    resize: vertical;
    font-family: inherit;
}

/* WhatsApp Appointment Button */
.btn-submit-apt {
    width: 100%;
    background-color: #25d366; /* WhatsApp official color */
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-submit-apt:hover {
    background-color: #20ba56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-submit-apt i {
    font-size: 18px;
}

/* ==========================================================================
   Responsive Settings for Form Architecture
   ========================================================================== */
@media (max-width: 768px) {
    .appointment-container {
        padding: 30px 20px;
        margin: 40px auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr; /* 1 row stack structure on tablets and mobile phones */
        gap: 20px;
    }
    
    .form-header h2 {
        font-size: 26px;
    }
}
/* ==========================================================================
   Main Footer Section Styling
   ========================================================================== */
.main-footer {
    background-color: #1a202c; /* Deep Dark Blue-Grey Theme */
    color: #e2e8f0;
    padding: 60px 0 20px 0;
    font-family: inherit;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Brand column is slightly wider */
    gap: 40px;
}

/* --- Column 1: Brand & Logo --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.footer-logo h3 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.footer-logo h3 span {
    color: var(--primary-color, #0d6efd); /* Hospital Primary Accent */
}

.footer-col p {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Media Circular Buttons */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background-color: #2d3748;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color, #0d6efd);
    transform: translateY(-3px);
}

/* --- Column 2 & 3 Headers --- */
.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

/* Bottom Short Decorative Underline */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color, #0d6efd);
}

/* --- Column 2: Quick Links List --- */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(5px); /* Moves slightly right on hover */
}

/* --- Column 3: Contact Info Links --- */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-links p {
    font-size: 14px;
    color: #a0aec0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.contact-links p i {
    color: var(--primary-color, #0d6efd);
    font-size: 15px;
    margin-top: 3px;
    width: 15px;
    text-align: center;
}

/* --- Footer Bottom Copyright Line --- */
.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints for Footer Elements
   ========================================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 Columns for tablets */
        gap: 35px;
    }
    
    /* Makes brand column occupy full width on top when wrapping */
    .footer-col:first-child {
        grid-column: span 2;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr; /* Single column stack on mobile screens */
        gap: 30px;
    }
    
    .footer-col:first-child {
        grid-column: span 1;
    }
    
    .footer-bottom {
        margin-top: 35px;
    }
}