
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
    transition: background-color 0.3s ease; 
}


.navbar {
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: sticky; 
    top: 0;
    z-index: 999;
    padding: 15px 30px; 
}

.navbar:hover {
    background-color: #e9ecef;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}


.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: #0056b3;
    transition: color 0.3s ease, transform 0.3s ease-out;
}

.navbar-brand:hover {
    color: #003d80;
    transform: scale(1.1); 
}


.navbar-toggler {
    border: none;
    outline: none;
    padding: 0.6rem;
    transition: transform 0.3s ease, background-color 0.3s ease-in-out;
}

.navbar-toggler-icon {
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: transform 0.3s ease-in-out;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    transform: rotate(0deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(180deg);
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-size: 1rem;
    color: #0056b3;
    transition: color 0.4s ease, transform 0.3s ease-in-out;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: #003d80;
    transform: translateY(-5px); 
}


.dropdown-menu {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    display: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}


.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    padding: 12px 24px;
    border-radius: 10px;
}

.btn-primary:hover {
    background-color: #003d80;
    transform: translateY(-4px); 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); 
}

/* Hero Section */
.hero-section {
    background-color: #007bff;
    color: white;
    position: relative;
}

.hero-image {
    object-fit: cover;
    height: 60vh;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px; 
    width: 90%; 
}


.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.carousel-caption .btn-primary {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: #28a745;
    border: none;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.carousel-caption .btn-primary:hover {
    background-color: #218838;
}


@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-caption .btn-primary {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .carousel-caption {
        padding: 15px;
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    color: white; /* Control color */
    font-size: 2rem;
    width: 5%; /* Adjust width of controls */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: rgba(255, 255, 255, 0.8); /* Hover effect */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Make arrows white */
}


/* About Us Section */
#about {
    background-color: #f9f9f9;
    padding-top: 20px;
    padding-bottom: 20px;
}

#about .container {
    max-width: 100%;
}

#about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

#about .col-lg-6 {
    padding: 20px;
}

#about img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-out;
}


@media (max-width: 991px) {
    #about h2 {
        font-size: 2rem;
    }
    
    #about p {
        font-size: 1rem;
    }

    #about img {
        border-radius: 10px;
    }
}

@media (max-width: 767px) {
    #about {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    #about .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #about .row {
        flex-direction: column;
        align-items: center;
    }

    #about img {
        width: 90%;
    }

    #about h2 {
        text-align: center;
        font-size: 1.8rem;
    }
    
    #about p {
        text-align: center;
        font-size: 1rem;
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Services Section */
#services h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    padding: 20px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #services h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #services h2 {
        font-size: 1.6rem;
    }
}

#services {
    background-color: #f4f4f4;
    padding: 20px 0;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 20px;
    text-align: center;
    position: relative;
}

.card-body i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 20px;
}

.card-body .btn {
    background-color: #fff;
    color: #ff7e5f;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.card-body .btn:hover {
    background-color: #ff7e5f;
    color: white;
}

.service-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-md-4 {
    flex: 1 1 18%;
    margin-bottom: 30px;
    padding: 10px;
}

@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .col-md-4 {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .col-md-4 {
        flex: 1 1 100%;
    }
}


/* Collaboration Section */
.gradient-container {
    background: 
        linear-gradient(to right, rgba(50, 93, 201, 0.7), rgba(13, 152, 203, 0.7)),
        url('images/slider1.avif');
    background-size: cover;
    background-position: center;
    padding: 10px 0;
    overflow: hidden;
}

.collaboration-slider {
    display: flex;
    gap: 30px;
    animation: scroll-right-to-left 40s linear infinite;
}

.collab-item {
    flex: 0 0 auto;
    text-align: center;
    color: white;
    width: 80px;
}

.collab-logo {
    width: 100%;
    height: auto;
}

.collab-name {
    font-size: 0.7rem;
    margin-top: 3px;
}

@keyframes scroll-right-to-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .gradient-container {
        padding: 5px 0;
    }

    .collaboration-slider {
        gap: 15px;
        animation: scroll-right-to-left 50s linear infinite;
    }

    .collab-item {
        width: 60px;
    }

    .collab-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .collaboration-slider {
        gap: 10px;
        animation: scroll-right-to-left 60s linear infinite;
    }

    .collab-item {
        width: 50px;
    }

    .collab-name {
        font-size: 0.5rem;
    }
}


.doctors-section {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.doctors-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    width: 100%;
}

.doctor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 45%;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.doctor-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 30px;
}

.doctor-info {
    text-align: left;
    padding: 20px;
    max-width: 60%;
}

.doctor-info h3 {
    font-size: 1.9em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.doctor-info p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.doctor-info p strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .doctor-info {
        text-align: center;
        max-width: 100%;
    }

    .doctor-card img {
        margin-bottom: 20px;
    }
}


/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;  /* Lighter background for a cleaner look */
    color: #333;  /* Darker text for better contrast */
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 90%; /* Reduce the width for smaller screens */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping of testimonials */
}

.testimonial {
    margin: 10px; /* Add spacing between testimonials */
    padding: 20px;
    background-color: #ffffff;  /* White background for individual testimonials */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block; /* Allow inline layout for horizontal scrolling */
    vertical-align: top;
    min-width: 300px; /* Set a minimum width for testimonials */
}

.testimonial p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #555;  /* Slightly softer text color */
}

.testimonial h4 {
    margin: 0;
    font-size: 1em;
    text-align: left;
    font-weight: bold;
    opacity: 0.9;
    color: #333;
}

.testimonial .rating {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.testimonial .rating span {
    font-size: 1.2em;
    color: #f39c12;  /* Gold color for stars */
}

.testimonial .rating span.empty {
    color: #ddd;  /* Gray color for empty stars */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 20px 10px;
    }

    .testimonial {
        text-align: center;
        min-width: 250px; /* Slightly reduce minimum width for smaller screens */
    }

    .testimonial .rating {
        justify-content: center;
    }
}


/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background-color: #1ebe57;
}

.whatsapp-button i {
    font-size: 20px;
    margin-right: 8px;
}
