* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    /* --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247,88,66,0.4);
    --color-white: #fff;
    --color-light: rgba(255,255,255,0.7);
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1:#2e3267;
    --color-bg2: #424890; */

--color-primary:  #48ccfc;
--color-success: #54eb72; /* Mint green for a fresh, healthy feel */
--color-warning:  #f7c94b; /* Soft yellow for gentle attention */
--color-danger: #2e7d32; /* Light coral to be less intense */
--color-danger-variant: rgba(247,88,66,0.4); /* Softer red variant */
--color-white: #fffefd; 
--color-light: rgba(255,255,255,0.9); /* Slightly more opaque for better contrast */
--color-light-black: #333333;
--color-black: #000000; /* Dark grey instead of black for a softer contrast */
--color-bg: #4A6BCC; /* Very light blue for a clean, airy background */
--color-bg1: #a4b6f5; /* Light pastel blue for additional background elements */
--color-bg2: #a1b0ff; /* Slightly darker pastel blue for contrast */

    --container-width-lg: 76%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: linear-gradient(to right, #8aaadc, #6a90c7, #64c2b4, #8ce1d4);
}


.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}
h1,h2,h3,h4,h5 {
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
   font-size: 1.6rem; 
}

h4 {
    font-size: 1.3rem;
}

a {
    color: var(--color-white);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 5px; 
}
.header__left {
    width: 100%; /* Ensure it uses full width */
}


.btn1 {
    display: block; 
    padding: 12px 24px; 
    background-color: var(--color-danger); 
    color: #fffefd; 
    text-align: center; 
    border-radius: 5px; 
    font-size: 16px; 
    cursor: pointer; 
    margin: 20px auto; 
    transition: background-color 0.3s; 
    max-width: 200px; 
    width: 100%; 
}
.btn1:hover {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}



.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary {
    background-color: #234a7d;
    color: var(--color-white);
}

/*==========NAVBAR==========*/
nav {
    background: transparent;
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

/* change navbar styles on scroll using js */
.window-scroll {
    background: linear-gradient(to right, #8aaadc, #6a90c7, #64c2b4, #8ce1d4);

    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav__menu a:hover {
    color: blueviolet;
}

/*==========HEADER==========*/

header {
    position: relative;
    top: 5rem;
    overflow: hidden;
    height: 70vh;
    margin-bottom: 5rem;
}

.header__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}

.header__left p {
    margin: 1rem 0 2.4rem;
}

/*==========SECTION==========*/

.specialities {
    background: white;
    
    height: auto;
}

.specialities h1 {
    line-height: 1;
    margin-bottom: 3rem;
}

.specialities__container {
    display: grid;
    grid-template-columns: 40% 60%;
   
} 

.specialities__left {
    margin-right: 4rem;
    color: var(--color-black);
    font-weight: 500;
}
.specialities__left .btn {
    background-color: #234a7d;
    color: white;
    font-weight: 700;
}
.specialities__left .btn:hover {
    background: transparent;
    color: black;
    font-weight: 700;
    border: 1px solid var(--color-black);
}
.specialities__left p {
    margin: 1rem 0 3rem;
} 

.specialities__right {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.2rem;
    
}

.speciality {
    background: #48cfcb;
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}  

.speciality:hover {
    box-shadow: 0 3rem 3rem rgba(0,0,0,0.3);
    z-index: 1;
}

.speciality:nth-child(2) .category__icon{
    background: var(--color-danger);
}
.speciality:nth-child(3) .category__icon{
    background: var(--color-warning);
}
.speciality:nth-child(4) .category__icon{
    background: var(--color-success);
}
.speciality:nth-child(5) .category__icon{
    background: var(--color-black);
}
.speciality:nth-child(6) .category__icon{
    background: var(--color-danger-variant);
}

.category__icon {
    background: var(--color-primary);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.speciality h5 {
    margin: 2rem 0 1rem;
}

.speciality p {
    font-size: 0.85rem;
}

/* ========POPULAR TREATMENTS ========= */
.services {
    margin-top: 2rem;
    
}

.services__container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.service {
    background: #487cab;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
   
}


.service:hover {
    background: transparent;
   border: 1px solid var(--color-white);
    
    
}

.service__info {
    padding: 2rem;
}

.service__info p {
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
    
}

/* =========Our Partners===========*/

.partnership-section { 
    padding: 50px 20px;
    margin: auto;
    text-align: center;
    overflow: hidden; 
    position: relative;
    background: linear-gradient(to right, #8aaadc, #6a90c7, #64c2b4, #8ce1d4);
    

}

.partnership-section h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

/* Scrolling container */
.scrolling-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Ensure smooth scrolling with duplicated elements */
.partners {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px; /* Adjust spacing between partners */
    width: max-content; /* Ensures smooth animation */
    animation: scroll-left 50s linear infinite; /* Adjust speed as needed */
}

/* Partner Styles */
.partner {
    width: 200px;  
    height: 170px; 
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

/* Infinite scrolling effect */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Moves half of the duplicated content */
    }
}

/* Background images */
.partner:nth-child(1), .partner:nth-child(6),.partner:nth-child(11),.partner:nth-child(16)  { background-image: url('media/sparsh.png'); }
.partner:nth-child(2), .partner:nth-child(7), .partner:nth-child(12),.partner:nth-child(17){ background-image: url('media/pinnacle.png'); }
.partner:nth-child(3), .partner:nth-child(8),.partner:nth-child(13),.partner:nth-child(18) { background-image: url('media/citius.jpg'); }
.partner:nth-child(4), .partner:nth-child(9),.partner:nth-child(14), .partner:nth-child(19) { background-image: url('media/icici.jpg'); }
.partner:nth-child(5), .partner:nth-child(10),.partner:nth-child(15),.partner:nth-child(20){ background-image: url('media/seva.png'); }

/* Pause on hover */
.scrolling-wrapper:hover .partners {
    animation-play-state: paused;
}

/* Hover effect */
.partner:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .partner {
        width: 150px; 
        height: 120px; 
    }
}




/* =========FAQ QUESTIONS========== */

/* .faqs {
    background: linear-gradient(to right, #f9fbff, #eef5ff);
    box-shadow: inset 0 0 3rem rgba(0,0,0,0.5rem);
}

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: #48ccfc;
    cursor: pointer;
}

.faq h4 {
    font-size: 1rem;
    line-height: 2.2;
}

.faq__icon {
    align-self: flex-start;
    font-size: 1.2rem;
}

.faq p {
    margin-top: 0.8rem;
    display: none;
}

.faq.open p {
   display: block; 
} */
/* Second FAQ  */

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  
}

/* Initial box style */
.faq {
    background: #48ccfc;
    padding: 2rem;
    cursor: pointer;
    transition: height 0.4s ease, padding 0.4s ease;
    overflow: hidden;
    position: relative;
    height: 120px; /* Initial small height */
}

/* Title styling */
.faq h4 {
    font-size: 1rem;
    line-height: 1.5;
}

/* Icon styling */
.faq__icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
}

/* Hidden answer initially */
.faq p {
    display: none;
    margin-top: 1rem;
}

/* On open, show text */
.faq.open p {
    display: block;
}
.faqs {
    background: linear-gradient(to right, #f9fbff, #eef5ff);
    box-shadow: inset 0 0 3rem rgba(0,0,0,0.5rem);
}


/* ========TESTIMONIALS ======== */
.testimonials__container {
    overflow-x: hidden;
    position: relative;
    margin-bottom: 5rem;
}

.testimonial {
    padding-top: 2rem;
}

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 1rem solid var(--color-primary);
}

.testimonial__info {
    text-align: center;
}

.testimonial__body {
    background: var(--color-primary);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial__body::before {
    content: "";
    display: block;
    background: linear-gradient(transparent,var(--color-primary),var(--color-primary),var(--color-primary));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: rotate(45deg);

}
/* second Testimonial */
.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.testimonial__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-height: 220px;
  box-sizing: border-box;
}

/* Optional: Improve responsiveness */
@media (max-width: 767px) {
  .testimonial__body {
    min-height: auto;
    padding: 1.5rem;
  }

  .testimonial {
    padding: 1rem;
  }
}



/*========Whatsapp=========*/
.whatsapp-float {
    position: fixed;
    bottom: 7rem;
    /* Increased distance from bottom for better spacing */
    right: 20px;
    /* Distance from right */
    z-index: 1000;
    border-radius: 50%;
    padding: 0px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 60px;
    /* Default size for the logo */
    height: 60px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 7rem;
        /* Increased spacing for smaller screens */
        right: 2rem;
        padding: 6px;
        /* Adjust padding */
    }

    .whatsapp-float img {
        width: 55px;
        /* Smaller logo for mobile */
        height: 55px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 7rem;
        /* Increased spacing for very small screens */
        right: 10px;
        padding: 2px;
    }

    .whatsapp-float img {
        width: 40px;
        /* Adjust logo size */
        height: 40px;
    }
}
/* ========FOOTER======== */
footer {
    background: var(--color-light-black);
    padding-top: 5rem;
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5rem;
}

.footer__container > div h4 {
    margin-bottom: 1.2rem;
}

.footer__1 p {
    margin: 0 0 2rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

 .footer__copyright {
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--color-bg2);
} 

 
/* hover effect */
/* Footer Copyright Section Styles (CRITICAL FIX for 320px and ALL Mobile Sizes) */
/* ======================================= */

.footer__copyright {
    text-align: center;
    margin-top: 4rem;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the small text and the logo/text combo horizontally */
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #0b2545; /* Dark background color */
    color: #ffffff; /* Ensure text is white for contrast */
    font-family: 'Poppins', sans-serif; /* Consistent font */
}

/* Ensure image aligns properly with text */
.xl-logo-link {
    display: flex; /* Makes this a flex container */
    align-items: center; /* Vertically align logo and text */
    text-decoration: none;
    color: inherit; /* Inherit color from parent (.footer__copyright) */
    position: relative;
    padding-bottom: 4px; /* Space for underline */
    overflow: hidden; /* Important for containing the underline animation and preventing overflow */

    /* This allows the flex container to center its content */
    justify-content: center; /* Centers the logo and text horizontally within its own flex container */

    /* IMPORTANT: By default, keep logo and text side-by-side */
    flex-direction: row; /* Ensure items are in a row */
    flex-wrap: nowrap; /* Prevent items from wrapping to the next line by default */

    /* Default text styling for the link content */
    white-space: nowrap; /* Try to keep the text on a single line by default */
    font-size: 1em; /* Default font size for the link text */
    /* Removed min-width here for default, let it be controlled by content & flex-shrink on logo */
    box-sizing: border-box; /* Include padding in width calculations */
    padding: 0 5px; /* Add slight horizontal padding to prevent touching edges */
}

.xl-logo {
    height: 30px; /* Default height */
    width: auto;
    margin-right: 10px; /* Space between logo and text */
    vertical-align: middle;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents logo from shrinking, it must maintain its size unless explicitly scaled */
}

.xl-logo-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%; /* Underline covers the entire xl-logo-link */
    background-color: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.xl-logo-link:hover::after {
    transform: scaleX(1);
}

/* ================================================= */
/* Responsive Adjustments for ALL Mobile Versions */
/* ================================================= */

/* For extra small screens (e.g., 320px - 400px) */
@media (max-width: 400px) {
    .footer__copyright {
        margin-top: 1rem; /* Even smaller top margin */
        padding: 5px 0px; /* Minimal vertical padding, no horizontal padding here */
        gap: 2px;
    }

    .footer__copyright small {
        font-size: 0.6em; /* Even smaller copyright text */
    }

    .xl-logo-link {
        font-size: 0.6em; /* EXTREMELY SMALL font size for "Designed & Developed" text to fit */
        line-height: 1.1;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap; /* Force text to stay on one line */
        /* IMPORTANT: Allow the link itself to shrink significantly, but clip content */
        max-width: 100%; /* Ensure it doesn't exceed its parent */
        overflow: hidden; /* Hide any content that still overflows */
        text-overflow: ellipsis; /* Add ellipsis if text is clipped */
        padding: 0 2px; /* Minimal padding inside the link */
    }

    .xl-logo {
        height: 14px; /* Smallest logo size */
        margin-right: 2px; /* Minimal space */
        flex-shrink: 0;
    }

    .xl-logo-link::after {
        height: 0.5px; /* Thinnest underline */
    }
}

/* For small mobile phones (401px to 575px) */
@media (min-width: 401px) and (max-width: 575px) {
    .footer__copyright {
        margin-top: 1.5rem;
        padding: 6px 5px;
        gap: 3px;
    }

    .footer__copyright small {
        font-size: 0.7em;
    }

    .xl-logo-link {
        font-size: 0.75em;
        line-height: 1.2;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 5px;
    }

    .xl-logo {
        height: 18px;
        margin-right: 4px;
    }

    .xl-logo-link::after {
        height: 1px;
    }
}


/* For larger mobiles and small tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .footer__copyright {
        margin-top: 2rem;
        padding: 10px 10px;
        gap: 4px;
    }

    .footer__copyright small {
        font-size: 0.8em;
    }

    .xl-logo-link {
        font-size: 0.85em;
        line-height: 1.3;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 8px;
    }

    .xl-logo {
        height: 22px;
        margin-right: 6px;
    }

    .xl-logo-link::after {
        height: 1.5px;
    }
}

/* Tablets and small desktops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .footer__copyright {
        margin-top: 3rem;
        padding: 12px 15px;
    }

    .footer__copyright small {
        font-size: 0.9em;
    }

    .xl-logo-link {
        font-size: 0.9em;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 10px;
    }

    .xl-logo {
        height: 26px;
        margin-right: 8px;
    }
    .xl-logo-link::after {
        height: 2px;
    }
}

/* Larger screens (992px and up) - Default styles should handle this well */
@media (min-width: 992px) {
    .footer__copyright {
        margin-top: 4rem;
        padding: 12px 16px;
    }
    .footer__copyright small {
        font-size: 1em;
    }
    .xl-logo-link {
        font-size: 1em; /* Default font size */
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        white-space: nowrap;
        max-width: none; /* Allow it to take natural width */
        overflow: visible; /* Don't hide overflow on large screens */
        text-overflow: clip; /* Don't add ellipsis on large screens */
        padding: 0 5px; /* Default padding for xl-logo-link */
    }
    .xl-logo {
        height: 30px;
        margin-right: 10px;
    }
    .xl-logo-link::after {
        height: 2px;
    }
}
/*======Service-dropdown=======*/
.nav__menu .dropdown {
    position: relative;
    display: inline-block;
}

.nav__menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 2rem;
    left: 0;
    background-color: var(--color-primary);
   
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 0;
    list-style: none;
    margin: 0;
    
    

    height: fit-content;
    width: 13.5rem;
    flex-direction: column;
    gap: 0;
        
}


.nav__menu .dropdown-item {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-white);
    display: block;
}
.nav__menu .dropdown-item {
    border-bottom: 1px solid white;
}



.nav__menu .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu.show {
    display: block;
}

/* =====(tablets)===== */

@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font: 1.7rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.2rem;
    }
   
    nav button {
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close-menu-btn {
        display: none;
    }
   
    .nav__menu {
        position: fixed;
        top: 5rem;
        right: 5%;
        height: fit-content;
        width: 18rem;
        flex-direction: column;
        gap: 0;
        display: none;
        
    }
    .nav__menu li {
        width: 100%;
        height: 3.5rem;
        animation: animateNavItems 400ms linear forwards;
        transform-origin: top right;   
        opacity: 0;
     }
     .nav__menu li:nth-child(2) {
        animation-delay: 200ms;
     }
     .nav__menu li:nth-child(3) {
        animation-delay: 400ms;
     }
     .nav__menu li:nth-child(4) {
        animation-delay: 600ms;
        
     }

    @keyframes animateNavItems {
        0% {
            transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
        }
        100% {
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;
        }
    }
    .nav__menu li a {
        background: var(--color-primary);
        box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }

    .nav__menu li a:hover {
        background: var(--color-bg2);
        color: var(--color-white);
    }

  

.nav__menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 0;
    list-style: none;
    width: 18rem;
    display: none;
}

/* Adjust dropdown menu appearance */
.nav__menu .dropdown-menu.show {
    display: block;
}


    header {
        height: 56vh;
        margin-bottom: 4rem;
    }
    .header__container {
        gap: 0;
        padding-bottom: 4rem;
    }

    .specialities {
        height: auto;
    }
    .specialities__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .specialities__left {
        margin-right: 0;
    }

    .services {
        margin-top: 0;
    }
    .services__container {
        grid-template-columns: 1fr ;
    }

    .faqs__container {
        grid-template-columns: 1fr;
    }
    .faq {
        padding: 1.5rem;
    }
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ======(PHONES)====== */
@media screen and (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }

    .nav__menu {
        right: 3%;
    }
    .nav__menu .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-primary);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 0;
        list-style: none;
        width: 18rem;
        display: none;
    }
   
    /* Adjust dropdown menu appearance */
    .nav__menu .dropdown-menu.show {
        display: block;
    }
    header {
        height: 100vh;
    }

    .header__container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top:1rem
        
    }
   
    .header__left p {
        margin-bottom: 1.3rem;
      
    }

    .header__right-image img {
        margin-left: 1rem;
    }

    .specialities__right {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .speciality {
        padding: 1rem;
        border-radius: 1rem;
    }

    .category__icon {
        margin-top: 4px;
        display: inline-block;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .testimonial__body {
        padding: 1.2rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__1 p {
        margin: 1rem auto;
    }

    .footer__socials {
        justify-content: center;
    }
  
}
/* Matching SPARC Physio aesthetic */
#scrollTopBtn {
  position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A90E2 0%, #50C9C3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #3A7BD5 0%, #40B5A8 100%);
}

#scrollTopBtn.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:active{
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    #scrollTopBtn {
        bottom: 45px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup box */
.popup {
  background: #429ed2; /* change to your brand color */
  padding: 40px;
  border-radius: 12px;
  max-width: 1040px;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

/* Left text section */
.popup-content {
  flex: 1;
  min-width: 250px;
  margin-right: 20px;
}

.popup-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.popup-content p {
  margin-bottom: 10px;
  font-size: 16px;
}

/* CTA button */
.popup-content button {
  padding: 12px 25px;
  background: #fff;
  color: #2da9ef;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.popup-content button:hover {
  background: #f0f0f0;
}

/* Right image section */
.popup-img {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

  popup-img img {
    max-width: 270px;
    border-radius: 10px;
    margin-left: 90px;
}
@media (max-width: 768px) {
    .popup {
        flex-direction: column;
        text-align: center;
        max-height: 90vh;
        /* Prevents it from taking the full screen */
        overflow-y: auto;
        /* Makes content scrollable if it exceeds */
        padding: 20px;
        /* Optional: keep spacing neat */
    }

    .popup-content {
        margin-right: 0;
        margin-bottom: 20px;
    }
}