html, body {
    overflow-x: hidden;
}



/*===============================================
Hero section
===============================================*/

.banner-container {
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    margin: 50px 0;
    padding: 60px 20px;
    /* This uses your existing bg image */
    background-image: url('/home-page/herobg.png');
    background-size: cover;
    background-position: center;
}

.banner-card {
    max-width: 1100px;
    margin: 50px auto;
    background: linear-gradient(90deg, #410068 57%, #8208c9 100%);
    border-radius: 40px;
    padding: 60px;
    position: relative;
    color: white;
    /* Remove max-height to let content breathe, or set to a taller value */
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* IMPORTANT: This allows the image and buttons to "hang" outside the bottom */
    overflow: visible;
}

.banner-content {
    z-index: 2;
    max-width: 550px;
}

.banner-content h1 {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 130%;
    font-weight: bold;
}

.banner-content p {
    font-size: 24px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Positioning the Buttons at the bottom left INSIDE the card */
.banner-actions {
    position: absolute;
    bottom: -80px;
    /* This makes them half-in, half-out of the purple box */
    left: 0px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    min-width: 180px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Positioning the Image at the bottom right INSIDE the card */
.banner-image {
    position: absolute;
    right: 0px;
    /* Adjust to move her further left or right */
    bottom: 0px;
    /* This makes the image overlap the bottom of the purple card */
    height: 110%;
    /* Makes her slightly taller than the box */
    z-index: 5;
    pointer-events: none;
    /* Allows clicks to pass through to the card if needed */
}

.banner-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.btn-whatsapp {
    background-color: #6D3091;
    color: azure;
}

.btn-call {
    background-color: #1B75BB;
    color: aliceblue;
}


/* ===============================================
Second Section - Diagnostic Care
=============================================== */

.diagnostic-section {
    padding: 100px 20px;
    background: #f5f5f5;
}

.diagnostic-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* Image Style */

.diagnostic-image {
    flex: 1;
    min-width: 320px;
    position: relative;
    max-width: 420px;
}

.diagnostic-image img {
    width: 100%;
    display: block;
    border-radius: 47px;
}

/* Overlay */
.diagnostic-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(65, 0, 104, 0.32);
    /* #410068 at 61% opacity */
    border-radius: 47px;
}

/* Content Style */

.diagnostic-content {
    flex: 1;
    min-width: 320px;
}

.diagnostic-content h2 {
    font-size: 44px;
    font-weight: bold;
    color: #410068;
    margin-bottom: 25px;
    line-height: 130%;
}

.diagnostic-content p {
    font-size: 24px;
    color: #641991;
    line-height: 130%;
    margin-bottom: 35px;
    max-width: 470px;
}

/* Button */

.diagnostic-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #6D3091;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.diagnostic-btn:hover {
    background: #410068;
}



/* ===============================================
Most Popular Health Checkups
=============================================== */

.popular-tests {
    position: relative;
    padding: 100px 20px;
    background-image: url("/home-page/3rdsec-bg.png");
    /* Your BG image */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Soft purple overlay */
.popular-overlay {
    position: absolute;
    inset: 0;
}

.popular-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    z-index: 2;
}

/* Heading */

.popular-heading h2 {
    font-size: 44px;
    color: #410068;
    margin-bottom: 10px;
    font-weight: bold;
}

.popular-heading p {
    color: #641991;
    font-size: 24px;
    margin-bottom: 50px;
}

/* Grid */

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card */

.popular-card {
    background: rgba(150, 38, 173, 0.300);
    padding: 25px 10px 15px 30px;
    border-radius: 18px;
    position: relative;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(65, 0, 104, 0.08);
    width: 278px;
    height: 268px;
}

.popular-card:hover {
    transform: translateY(-6px);
}

/* Icon box */

.card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #410068;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 22px;
    height: 22px;
}

/* Card text */

.popular-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #410068;
    line-height: 130%;
    margin-bottom: 15px;
    margin-top: 10px;
    max-width: 180px;
}

.popular-card p {
    font-size: 18px;
    color: #140020;
    line-height: 130%;
}



/* ===============================================
Modern Diagnostics Section
=============================================== */

.modern-section {
    padding: 100px 20px;
    background: #f4f4f6;
}

.modern-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

/* Left Content */

.modern-content {
    flex: 1;
    min-width: 320px;
}

.modern-content h2 {
    font-size: 44px;
    font-weight: bold;
    color: #410068;
    line-height: 130%;
    margin-bottom: 25px;
}

.modern-content p {
    font-size: 24px;
    color: #410068;
    line-height: 130%;
    margin-bottom: 35px;
    max-width: 600px;
}

/* Button */

.modern-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #6D3091;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.modern-btn:hover {
    background: #410068;
}

/* Right Image */

.modern-image {
    flex: 1;
    min-width: 320px;
    position: relative;
    max-width: 450px;
}

.modern-image img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Optional Purple Overlay */

.modern-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(65, 0, 104, 0.35);
    border-radius: 30px;
}


/* ===============================================
Take Control Section
=============================================== */

.cta-section {
    background: #6D3091;
    /* main purple bg */
    padding: 20px 20px;
}

.cta-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

/* Image */

.cta-image {
    flex: 1;
    min-width: 320px;
    max-width: 520px;
    position: relative;
}

.cta-image img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Purple overlay on image */

.cta-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(65, 0, 104, 0.15);
    border-radius: 30px;
}

/* Content */

.cta-content {
    flex: 1;
    min-width: 320px;
    color: #fff;
}

.cta-content h2 {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 24px;
    line-height: 130%;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Button */

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #ffffff;
    color: #6D3091;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #f2f2f2;
}

/* ===============================================
Home Sample Collection
=============================================== */

.home-sample-section {
    padding: 50px 20px;
    background: #f4f4f6;
}

.home-sample-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

/* Left Content */

.home-sample-content {
    flex: 1;
    min-width: 320px;
}

.home-sample-content h2 {
    font-size: 44px;
    font-weight: bold;
    color: #410068;
    margin-bottom: 25px;
}

.home-sample-content p {
    font-size: 24px;
    color: #410068;
    line-height: 1.3;
    margin-bottom: 18px;
    max-width: 500px;
}

.home-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #6D3091;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.home-btn:hover {
    background: #410068;
}

/* Right Form Card */

.home-form-card {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
    background: #7c4aa5;
    padding: 40px;
    border-radius: 25px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.home-form-card h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.form-sub {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
    text-align: center;
}

/* Inputs */

.home-form-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
}

.home-form-card input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Submit Button */

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #6D3091;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background: #f1f1f1;
}

.home-form-card small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}





/* =====================================================
FULL RESPONSIVE SYSTEM (EXCLUDING NAVBAR & FOOTER)
===================================================== */


/* ================================
LARGE LAPTOP (1200px ↓)
================================ */
@media (max-width: 1200px) {

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .popular-card {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .diagnostic-container,
    .modern-container,
    .cta-container,
    .home-sample-container {
        gap: 60px;
    }
}


/* ================================
TABLET (992px ↓)
================================ */
@media (max-width: 992px) {

    /* Stack sections */
    .diagnostic-container,
    .modern-container,
    .cta-container,
    .home-sample-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .diagnostic-content p,
    .modern-content p,
    .cta-content p,
    .home-sample-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .diagnostic-image,
    .modern-image,
    .cta-image {
        max-width: 100%;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-form-card {
        max-width: 100%;
    }
}


/* ================================
MOBILE HERO (768px ↓)
================================ */
@media (max-width: 768px) {

    /* Global text scaling */
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* Section spacing */
    .banner-container,
    .diagnostic-section,
    .modern-section,
    .cta-section,
    .home-sample-section,
    .popular-tests {
        padding: 60px 15px;
    }


    /* ================= GRID ================= */

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .popular-card {
        width: 100%;
        height: auto;
        padding: 25px;
    }

    /* ================= BUTTONS ================= */

    .diagnostic-btn,
    .modern-btn,
    .cta-btn,
    .home-btn {
        width: 100%;
        text-align: center;
    }

    /* ================= FORM ================= */

    .home-form-card {
        width: 100%;
        padding: 30px 20px;
        border-radius: 20px;
    }
}


/* ================================
SMALL PHONES (480px ↓)
================================ */
@media (max-width: 480px) {

    .banner-card {
        padding: 20px 15px 90px 15px;
    }

    .diagnostic-image img,
    .modern-image img,
    .cta-image img {
        border-radius: 20px;
    }

    .home-form-card {
        padding: 25px 15px;
    }

    .popular-heading p {
        font-size: 14px !important;
    }
}


@media (max-width: 720px){
    .banner-image{
        z-index: 1;
        height: 330px;
        opacity: 0.5;
        right: 0;
    }
}

@media (max-width:900px){
    .banner-image{
        z-index: 1;
        height: 350px;
        opacity: 0.5;
        right: 0;
    }
       /* Text Styling */
    .banner-content {
        max-width: 100% !important;
    }

    .banner-content h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px;
        color: #fff;
    }

    .banner-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #fff;
        opacity: 0.9;
    }

    /* Buttons inside card */
    .banner-actions {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;

        display: flex !important;
        gap: 10px !important;
    }

    .banner-actions .btn {
        flex: 1 !important;
        padding: 12px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        min-width: auto !important;
        justify-content: center;
    }

    .banner-actions img {
        width: 18px !important;
        margin-right: 6px !important;
    }

    /* Button Colors */
    .btn-whatsapp {
        background: #25D366 !important;
    }

    .btn-call {
        background: #1B75BB !important;
    }
}




/* --- MODERN POPUP FIXES --- */
.medical-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Cover full width */
    height: 100%; /* Cover full height */
    background: rgba(20, 0, 32, 0.85); /* Deep brand purple transparent */
    backdrop-filter: blur(8px);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

/* Container that holds both the Image stage and Form stage */
.offer-image-container, .form-card {
    position: relative;
    max-width: 450px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popupScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offer-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* THE HOTSPOT: Transparent button over the image */
.image-button-hotspot {
    position: absolute;
    bottom: 25px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0); /* Keep it 0 to see the image button */
    z-index: 10;
}

/* CLOSE BUTTON: Pinned to the top right of the white container */
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFF100; /* Brand Yellow */
    color: #410068;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.popup-close-btn:hover {
    transform: scale(1.1);
}

/* ==============================
ENHANCED POPUP FORM UI
============================== */

.form-card {
    padding: 45px 35px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f2ff 100%);
    border-radius: 24px;
}

/* Title */
.form-card h3 {
    color: #410068;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-card p {
    font-size: 14px;
    color: #6d3091;
    margin-bottom: 25px;
}

/* Input Wrapper */
.pop-input {
    text-align: left;
    margin-bottom: 18px;
}

/* Label */
.pop-input label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #410068;
    letter-spacing: 0.5px;
}

/* Inputs */
.pop-input input,
.pop-input select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e4d6f5;
    background: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

/* Focus Effect */
.pop-input input:focus,
.pop-input select:focus {
    border-color: #6d3091;
    box-shadow: 0 0 0 3px rgba(109, 48, 145, 0.15);
}

/* Submit Button */
.btn-pop-submit {
    width: 100%;
    background: linear-gradient(90deg, #410068, #8208c9);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Button Hover */
.btn-pop-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(65, 0, 104, 0.3);
    color: #410068;
}

/* Button Active */
.btn-pop-submit:active {
    transform: scale(0.98);
}

/* Success & Error Messages */
.form-message {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 12px;
}

.form-message.success {
    background: rgba(0, 200, 100, 0.1);
    color: #008f4c;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.08);
    color: #d40000;
}

/* Prevent Background Scroll */
body.no-scroll {
    overflow: hidden;
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .offer-image-container, .form-card {
        width: 95%;
    }
}












/* ===========================================
SCROLL REVEAL ANIMATION
=========================================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional Variations */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.9s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.9s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}