:root {
    --brand-blue: #005698;
    --brand-green: #28a745;
    --brand-light: #f0f9ff;
    --brand-dark: #1e293b;
    --text-main: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
    --container-width: 1200px;
}

/* Enable Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f9fafb;
    overflow-x: hidden;
    /* Safety for horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-blue {
    background-color: var(--brand-blue);
    color: white;
}

.btn-blue:hover {
    background-color: #00447a;
}

.btn-green {
    background-color: var(--brand-green);
    color: white;
}

.btn-green:hover {
    background-color: #218838;
}

.btn-outline {
    border: 2px solid currentColor;
    background: transparent;
}

.btn-outline:hover {
    color: white !important;
}

/* --- Header / Top Bar --- */
.top-bar {
    background-color: var(--brand-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar-links a {
    margin-left: 20px;
}

.top-bar-links a:hover {
    color: var(--brand-green);
}

/* --- Navbar --- */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-main);
}

.nav-menu a:hover {
    color: var(--brand-blue);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--brand-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #eee;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu.active {
    display: block;
}

/* --- MODERN HERO SECTION --- */
.hero {
    /* REPLACED with a new, high-reliability image of a medical facility */
    background-color: #f0f9ff;
    background-image: linear-gradient(90deg, #f0f9ff 0%, #f0f9ff 35%, rgba(240, 249, 255, 0.85) 60%, rgba(240, 249, 255, 0) 100%), url('../images/hero1.jpg');
    background-size: cover;
    background-position: center center;
    padding: 100px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #e0f2fe;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.text-blue {
    color: var(--brand-blue);
}

.text-green {
    color: var(--brand-green);
}

.hero-desc {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
}

/* Hero Features Strip */
.hero-features {
    display: flex;
    gap: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.hf-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hf-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hf-text {
    display: flex;
    flex-direction: column;
}

.hf-title {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.2;
}

.hf-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: 0.3s;
}

.icon-green {
    background: #dcfce7;
    color: var(--brand-green);
}

.service-card:hover .icon-green {
    background: var(--brand-green);
    color: white;
}

.icon-blue {
    background: #e0f2fe;
    color: var(--brand-blue);
}

.service-card:hover .icon-blue {
    background: var(--brand-blue);
    color: white;
}

.icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.service-card:hover .icon-purple {
    background: #9333ea;
    color: white;
}

.badge-popular {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-bottom-left-radius: 8px;
}

/* --- Doctors --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #e5e7eb;
    text-align: center;
    padding: 30px 20px;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.doctor-img-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-light);
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-name {
    color: var(--brand-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.doc-spec {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.doc-qual {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.doc-time {
    background: var(--brand-light);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--brand-blue);
    display: inline-block;
    font-weight: 600;
}

/* --- Mid Banner --- */
.cta-banner {
    background-color: var(--brand-blue);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    gap: 15px;
}

.btn-white {
    background: white;
    color: var(--brand-blue);
}

.btn-white:hover {
    background: #f3f4f6;
}

/* --- Packages --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.package-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #ddd;
}

.pkg-blue {
    border-color: var(--brand-blue);
}

.pkg-green {
    border-color: var(--brand-green);
}

.pkg-purple {
    border-color: #9333ea;
}

.pkg-orange {
    border-color: #f97316;
}

.package-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--brand-dark);
}

.package-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.check-item {
    display: flex;
    align-items: center;
    color: var(--brand-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.check-item i {
    margin-right: 8px;
}

.btn-full {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: block;
    border: 1px solid;
    transition: 0.3s;
}

.btn-full.blue {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-full.blue:hover {
    background: var(--brand-blue);
    color: white;
}

.btn-full.green {
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-full.green:hover {
    background: var(--brand-green);
    color: white;
}

.btn-full.purple {
    color: #9333ea;
    border-color: #9333ea;
}

.btn-full.purple:hover {
    background: #9333ea;
    color: white;
}

.btn-full.orange {
    color: #f97316;
    border-color: #f97316;
}

.btn-full.orange:hover {
    background: #f97316;
    color: white;
}


/* --- Why Us --- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-item {
    display: flex;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    margin-right: 20px;
}

.bg-blue {
    background-color: var(--brand-blue);
}

.bg-green {
    background-color: var(--brand-green);
}

.bg-orange {
    background-color: #f97316;
}

.image-frame {
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 4px solid white;
}

/* --- How it Works --- */
.bg-light {
    background-color: var(--brand-light);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-arrow {
    color: #d1d5db;
    font-size: 1.5rem;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.contact-item i {
    width: 30px;
    color: var(--brand-blue);
    font-size: 1.25rem;
    margin-top: 4px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-block {
    flex: 1;
}

.map-placeholder {
    background: #e5e7eb;
    height: 350px;
    border-radius: 12px;
    height: 400px;
    padding-top: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
.footer {
    background-color: var(--brand-dark);
    color: #9ca3af;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Little underline accent for headers */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--brand-green);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    transition: 0.3s;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--brand-green);
    transform: translateX(5px);
}

/* --- White Logo Class --- */
.white-logo {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* --- Floating WhatsApp --- */
.float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    animation: bounce 3s infinite;
}

.float-wa:hover {
    background-color: #128c7e;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero adjustments for tablet */
    .hero {
        background: linear-gradient(to right, rgba(240, 249, 255, 0.95) 60%, rgba(240, 249, 255, 0.4) 100%), url('https://images.unsplash.com/photo-1516549655169-df83a092fc14?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
        background-size: cover;
        background-position: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid img {
        order: 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Hero */
    .hero {
        /* Adjusted gradient transparency and position for better visibility */
        background: linear-gradient(to bottom, rgba(240, 249, 255, 0.9) 0%, rgba(240, 249, 255, 0.7) 50%, rgba(240, 249, 255, 0.2) 100%), url('../images/hero1.jpg');
        background-size: cover;
        background-position: center right;
        padding: 80px 0 60px;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .services-grid,
    .why-grid,
    .contact-grid,
    .packages-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-btns {
        width: 100%;
        flex-direction: column;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}