  
.navbar-brand img {
    height: 40px; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo and toggler */
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 100vh; /* Full viewport height */
}

/* Dark overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

/* Content inside the container */
.hero .container {
    position: relative;
    z-index: 2;
    padding: 0 15px; /* Add padding for responsiveness */
}

/* Heading and text adjustments */
.hero h1,
.hero p {
    margin: 0;
    padding: 0;
}

/* Text styling */
.hero h1 {
    font-size: 3rem; /* Default size for large screens */
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.hero .lead {
    font-size: 1.25rem;
    color: #fff;
}

/* Adjust text sizes and layout on smaller screens */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem; /* Reduce font size for tablet screens */
    }

    .hero .lead {
        font-size: 1.1rem; /* Adjust lead text size */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem; /* Further reduce font size for mobile screens */
    }

    .hero .lead {
        font-size: 1rem; /* Adjust lead text for smaller screens */
    }

    /* Ensure padding is added for responsiveness */
    .hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.5rem; /* Smaller font for extra small screens */
    }

    .hero .lead {
        font-size: 0.9rem; /* Adjust lead text for mobile */
    }

    /* Adjust container padding for extra small screens */
    .hero .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.navbar {
    top: 0;
    width: 100%;
    transition: top 0.3s;
  }

  .error-message {
    color: red;
    font-size: 0.875em;
    margin-top: 5px;
    display: none; /* Hide error messages by default */
  }

  #appointment {
    background-color: #f9f9f9;
    padding-top: 30px;
    padding-bottom: 30px;
}

#appointment .form-group {
    margin-bottom: 15px;
}

#appointment button {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#appointment button:hover {
    background-color: #0056b3;
}

.carousel-container{
    max-width: 60%;
    margin: 0 auto;
    border-radius: 2px;
    height: auto;
}

#crousel-section {
    margin-bottom: 5px;
    padding-bottom: 5px;
}


  
  /* Styling the images inside the carousel */
  #carouselExampleCaptions .carousel-inner img {
    border-radius: 10px; /* Rounded corners for the images */
    object-fit: cover; /* Ensures the images fill the carousel container without distortion */
    height: auto; /* Fixed height for the carousel images */
    width: 100%; /* Makes the images responsive */
  }
  
  /* Carousel caption styles */
  
  #our-team{
    max-width: 1200px;
    width: 90%;
    margin: 80px auto;
}
.our-team-heading{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.our-team-heading h3{
    font-size: 2.4rem;
    color: #122853;
}
.our-team-heading p{
    color: #535353;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}
/* Base styles for team box container */
/* Base styles for team box container */
.team-box-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping of team boxes on smaller screens */
}

/* Styles for individual team boxes */
.team-box {
    max-width: 100%; /* Ensure team boxes are fluid */
    width: 300px; /* Set a base width for team boxes */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Team image container */
.team-img {
    background-color: #f5f7fb;
    padding: 10px 10px 0px 10px;
    border-radius: 10px;
    height: 300px; /* Maintain a consistent height */
    display: flex;
    align-items: center; /* Vertically center the image */
    justify-content: center; /* Center image horizontally */
    overflow: hidden;
    width: 100%; /* Make sure it fills the box */
}

/* Image inside team box */
.team-img img {
    width: 100%; /* Make image scale to container width */
    height: 100%; /* Maintain aspect ratio */
    object-fit: contain; /* Prevent cropping by fitting the image inside the container */
    object-position: center center; /* Center the image */
}

/* Team text container */
.team-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
}

/* Text style for name */
.team-text strong {
    color: #122853;
    font-size: 1.2rem;
}

/* Text style for role */
.team-text span {
    color: #303030;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Mobile view: Stacking team boxes and adjusting image sizes */
@media (max-width: 768px) {
    .team-box-container {
        justify-content: center;
        gap: 15px; /* Reduce gap between team boxes */
    }

    .team-box {
        width: 45%; /* Two team boxes per row on tablets */
    }

    .team-img {
        height: 220px; /* Reduce image height for better proportion on smaller screens */
        object-fit: contain; /* Prevent cropping by fitting the image inside the container */
       object-position: center center;  
    }

    .team-text strong {
        font-size: 1rem; /* Smaller font size for name */
    }

    .team-text span {
        font-size: 0.85rem; /* Smaller font size for role */
    }
}

/* Small mobile view (less than 480px) */
@media (max-width: 480px) {
    .team-box-container {
        justify-content: center;
        gap: 10px; /* Further reduce gap */
    }

    .team-box {
        width: 60%; /* Stack team boxes in a single column */
    }

    .team-img {
        height: 200px; /* Further reduce image height */
        object-fit: contain; /* Prevent cropping by fitting the image inside the container */
       object-position: center center;  
    }
    
    
    .team-text strong {
        font-size: 1rem; /* Keep the name font size readable */
    }

    .team-text span {
        font-size: 0.8rem; /* Slightly smaller font for role */
    }
}


/*---------------------------- Footer----------------------- */
.footer {
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background: #152538;
    position: relative;
    z-index: 0;
}
.footer .footer_top {
    padding-top: 70px;
    padding-bottom: 70px;
}
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.footer .footer_top .footer_widget {
    overflow: hidden; 
}
.footer .footer_top .footer_widget .footer_title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 38px;
    font-family: "Work Sans", sans-serif;
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 28px;
}
.footer .footer_top .footer_widget .footer_title::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 30px;
    height: 2px;
    background: #fff;
    z-index: 1;
}
  ::before {
    box-sizing: border-box;
}
h3{
    line-height: 1.2em;
}
.footer .footer_top .footer_widget .links {
    position: relative;
}
.footer .footer_top .footer_widget .links li {
    width: 50%;
    float: left;
}
.footer .footer_top .footer_widget ul li {
    color: #b8bdc3;
    font-size: 16px;
    line-height: 40px;
}
.footer .footer_top .footer_widget .footer_logo {
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 35px;
}
.footer .footer_top .footer_widget .address_text {
    font-size: 16px;
    font-weight: 400;
    color: #b8bdc3;
    line-height: 30px;
}
.footer .socail_links {
    margin-top: 26px;
}
.col-xl-4,.col-md-6,.col-lg-4{
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
ul {
   
    margin: 0px;
    padding: 0px !important;
   
}
a {
    color: #007bff;
    text-decoration: none !important ;
    background-color: transparent;
}
 a:hover {
    text-decoration: none;
    color: #0056b3 !important;
}
li {
    list-style: none;
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}
.footer .footer_top .footer_widget ul li a {
    color: #b8bdc3;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
}
.footer .socail_links ul li a {
    font-size: 15px;
    color: #C3B2F0;
    width: 30px;
    display: inline-block;
    text-align: center;
    background: transparent;
    margin-right: 7px;
    color: #FFFFFF;
    line-height: 40px !important;
    color: #E8E8E8;
    
}
[class^="ti-"], [class*=" ti-"] {
    font-family: 'themify';
    /* speak: none; */
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.socail_links ul{
    display: flex;
}

.fade-in {
    opacity: 0;
    animation: fadeInEffect 1s forwards;
  }
  
  @keyframes fadeInEffect {
    to {
      opacity: 1;
    }
  }

  .team-box ,.col-lg-6{
    opacity: 0; /* Initially, the element is invisible */
    transform: translateY(20px); /* Start from a position below */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  }
  
  /* This class will be added when the element is in view */
  .team-box.in-view ,.col-lg-6{
    opacity: 1; /* Make it visible */
    transform: translateY(0); /* Move to the original position */
  }

.img-fluid{
    opacity: 0;
    transform: translateY(50px);  /* Slide in from below */
    transition: opacity 1s ease-out, transform 0.5s ease-out;  /* 1 second for smooth fade & slide */
  }
  
  /* State when the element is in view */
  .img-fluid.in-view {
    opacity: 1;
    transform: translateY(0); /* Move to its original position */
  }

  .custom-hover:hover {
    background-color: #0072c6; /* Bootstrap primary color */
    color: #fff;              /* White text on hover */
    border-color: #0072c6;    /* Match the border to background */
    transition: all 0.3s ease; /* Smooth transition effect */
  }

  #services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#services .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28vw, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: left;
    display: flex;
    align-items: center;
}

.service-card:hover {
    background-color: #007bff; /* Blue on hover */
    color: white;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.service-card:hover p {
    color: white;
}

.service-card .icon-container {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    margin-bottom: 15px;
}

.service-card:hover .icon-container {
    background-color: white;
}

.service-card .icon-container img {
    width: auto;
    height: 20vh;
}

.service-card .read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.service-card:hover .read-more {
    color: white;
}
.service-card .service-content {
    display: flex;
    align-items: center; /* Vertically center-align */
    justify-content: space-between; /* Space between text and icon */
}


.contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: #152538;
    padding-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.contact-item i {
    font-size: 1.2rem; /* Icon size */
}

.contact-item span {
    font-size: 1rem; /* Text size */
}

/* Media Query for small screens */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column; /* Stack items vertically */
        padding: 20px 0; /* Add padding for smaller screens */
    }

    .contact-item {
        margin-bottom: 15px; /* Add space between stacked items */
    }
}

/* Media Query for extra small screens */
@media (max-width: 480px) {
    .contact-info{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact-item {
        margin-bottom: 0px !important;
        font-size: 0.7rem !important; /* Make text slightly smaller on very small screens */
    }

    .contact-item i {
        font-size: 1rem; /* Adjust icon size */
    }
}

.navbar {
    position: fixed;  /* Fixes the navbar to the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it's above other elements */
    background-color: #fff;
    transition: background-color 0.3s ease-in-out;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #fff;
}

.contact-item i {
    font-size: 20px;
    color: #007bff;
}
.navbar-brand img {
    height: 26vh; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    max-width: 180px; /* Prevent it from being too large */
    margin-right: 15px; /* Add spacing from navbar text */
    margin-top: -5vh;
    margin-bottom: -7vh;
}
.footer_logo a img{
    width:auto;
    height: 44vh;
}



@media (max-width: 768px) {
    .service-card {
        flex-direction: column-reverse;  /* Stack cards vertically */
        gap: 20px;  /* Maintain some gap between cards */
    }

}

@media (max-width: 480px) {
    .service-card {
        flex-direction: column-reverse;  /* Stack cards vertically */
        gap: 20px;  /* Maintain some gap between cards */
    }

}

/* Style for the feature section */
.feature {
    padding-left: 15px;
    padding-right: 15px;
}

.feature-text {
    padding-left: 0;
}

.feature .row {
    display: flex;
    flex-wrap: wrap;
}

.feature .col-lg-6 {
    flex: 1;
}
.mainservice{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 1.5rem !important;
}
.mainservicep{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 1.5rem !important;
}

.feature .feature-text {
    padding-top: 40px;
}

/* For small screens, adjust padding */
@media (max-width: 768px) {
    .feature .col-lg-6 {
        flex: 0 0 100%; /* Stack items vertically */
    }

    .feature .feature-text {
        padding-top: 20px; /* Reduce padding */
    }

    /* Adjust icon size and text alignment for mobile screens */
    .feature .col-6 {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 20px; /* Space between items */
    }

    .feature .d-flex {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust icon size */
    .feature .d-flex .bg-light {
        width: 45px;
        height: 45px;
    }

    /* Reduce font sizes for mobile */
    .feature .text-white {
        font-size: 0.9rem;
    }
    .footer .footer_top {
        padding-top: 13px;
        padding-bottom: 70px;
    }


}

/* For very small screens */
@media (max-width: 480px) {
    /* Adjust font sizes further for very small screens */
    .feature .text-white {
        font-size: 0.8rem;
    }

    .feature .col-6 .ms-4 h5 {
        font-size: 1rem;
    }
    .mainservice{
        margin-top: 7px !important;
        margin-left: 0rem !important ;
    }
    .mainservicep{
        margin-top: 7px !important;
        margin-left: 0rem !important;
    }
    /* Reduce the image height */
    .feature .col-lg-6 img {
        object-position: center;
        height: auto;
    }
}


@media (max-width: 480px) {
    .services-grid{
        grid-template-columns: repeat(auto-fit, minmax(43vw, 1fr)) !important;
        gap: 20px !important;
    }
    .contact-item span{
        font-size: 0.8rem;
    }

  .navbar-brand img{
    width: 100px !important; 
    margin-left: -8px !important;
  }

    .service-text{
        display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-content: center; */
    align-items: center;
    }
    .service-card h3{
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    .footer .footer_top {
        padding-top: 13px;
        padding-bottom: 22px;
    }
    .footer_logo{
        margin-top: -9vh;
    }
    .footer-mobile{
        margin-top: -11vh !important;
    }
    .footer-widget-mobile{
        padding-top: 6vh;
    }
    .footer_logo{
        display: flex;
            /* align-items: center; */
            justify-content: center;
    }
    .main{
        font-size: x-large;
    }
    .main_health{
    font-size: large !important;
    }
}
