/**
 * MM Hospital Custom CSS
 * Additional styles for the MM Hospital website
 */


/* .zauto-floating-btn{
  right: 2rem !important;
    bottom: 6rem !important;
} */

/* Language Switcher Styling */
.lang-dropdown .dropdown-toggle img {
  margin-right: 5px;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-dropdown .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lang-dropdown .dropdown-menu {
  min-width: 120px !important;
}

.lang-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
}

.lang-dropdown .dropdown-item img {
  margin-right: 8px;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

/* Fix for Google Translate elements */
#google_translate_element {
  position: absolute;
  top: -9999px;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-menu-value span,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-menu-frame {
  box-shadow: none !important;
}

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
}

body,
html.translated-ltr body {
  top: 0 !important;
}

/* Skip link for better accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #21cdc0;
  color: white;
  padding: 8px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Tamil language specific adjustments */
html[lang="ta"] .heading__title,
html[lang="ta"] .slide__title {
  line-height: 1.5;
  font-size: 90%; /* Slightly reduce font size for Tamil */
}

html[lang="ta"] .btn {
  line-height: 1.5;
}

/* Add some space around Tamil text in buttons */
html[lang="ta"] .btn span {
  padding: 0 5px;
}

/* Adjust font size for Tamil language in navigation */
html[lang="ta"] .nav__item-link {
  font-size: 94%;
}

/* Fix for right-to-left languages if Tamil needs it */
.rtl-fix {
  direction: ltr !important;
}

/* Logo responsive styling */
/* Navbar Logo */
.navbar-brand img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 60px;
  transition: all 0.3s ease;
}

/* Footer Logo */
.footer-widget-about img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 80px;
  transition: all 0.3s ease;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1200px) {
  .navbar-brand img {
    max-height: 55px;
  }
  
  .footer-widget-about img {
    max-height: 70px;
  }
}

@media (max-width: 992px) {
  .navbar-brand img {
    max-height: 50px;
  }
  
  .footer-widget-about img {
    max-height: 65px;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 45px;
  }
  
  .footer-widget-about img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    max-height: 40px;
  }
  
  .footer-widget-about img {
    max-height: 50px;
  }
}

/* Fixed Feature Items Styling - Improved */
.features-layout2 .feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  height: 350px; /* Fixed height for consistency */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.features-layout2 .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(9, 29, 62, 0.1);
}

/* Fix image display issues */
.features-layout2 .feature__img {
  height: 160px; /* Reduced height */
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.features-layout2 .feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix content area */
.features-layout2 .feature__content {
  padding: 60px 15px 15px;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fix icon display */
.features-layout2 .feature__icon {
  width: 70px;
  height: 70px;
  background-color: #0e3d85;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 5px 10px rgba(9, 29, 62, 0.2);
}

.features-layout2 .feature__icon i {
  font-size: 32px;
  color: #ffffff;
}

/* Title styling */
.features-layout2 .feature__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0e3d85;
}

/* Description styling - make more compact */
.features-layout2 .feature__desc {
  font-size: 14px;
  color: #5d6789;
  margin-bottom: 15px;
  line-height: 1.5;
  overflow: hidden;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Fix button styling */
.features-layout2 .btn__link {
  position: relative;
  display: inline-block;
  color: #0e3d85;
  font-weight: 600;
  font-size: 15px;
  padding: 5px 0;
  margin-top: auto;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.features-layout2 .btn__link:hover {
  color: #0e3d85;
  border-bottom: 2px solid #0e3d85;
}

.features-layout2 .btn__link i {
  width: 22px;
  height: 22px;
  background-color: #0e3d85;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 10px;
}

/* Page Title Feature Items Fix */
.page-title .features-list {
  margin-top: 30px;
  width: 100%;
}

.page-title .feature-item {
  position: relative;
  margin-bottom: 15px;
  margin-right: 10px;
  flex-basis: calc(25% - 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-title .feature__icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: #fff;
  color: #0e3d85;
  font-size: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(40, 40, 40, 0.1);
  transition: all 0.3s ease;
}

.custom-feature-icon{
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: #0e3d85;
  color: #ffffff ;
  font-size: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  translate: 0 !important;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(40, 40, 40, 0.1);
}

.page-title .feature-item:hover .feature__icon {
  background-color: #0e3d85;
  color: #ffffff;
}

.page-title .feature__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
  color: #0e3d85;
}

/* Equal height feature cards */
.features-layout1 .feature-item {
  height: auto; /* Fixed height for all feature cards */
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0px 5px 83px 0px rgba(9, 29, 62, 0.05);
  transition: all 0.3s ease;
  flex-grow: 1;
}

/* Services Carousel Equal Heights */
.services-carousel .slick-track {
  display: flex !important;
}

.services-carousel .slick-slide {
  height: inherit !important;
  display: flex !important;
}

.services-carousel .service-item {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  margin: 0 10px;
  background-color: #fff;
  box-shadow: 0 5px 83px 0 rgba(9, 29, 62, 0.05);
}

.services-carousel .service__img {
  position: relative;
  overflow: hidden;
}

.services-carousel .service__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.services-carousel .service__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services-carousel .service__title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.services-carousel .service__desc {
  margin-bottom: 22px;
  flex-grow: 1;
}

.services-carousel .btn {
  margin-top: auto;
}

/* Improved Carousel Arrows */
.carousel-arrows-light .slick-arrow {
  position: absolute;
  top: -10%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 0;
  z-index: 3;
  border: 0;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-arrows-light .slick-arrow:hover {
  background-color: #0e3d85;
}

.carousel-arrows-light .slick-arrow:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}

.carousel-arrows-light .slick-prev {
  left: -45px;
}

.carousel-arrows-light .slick-prev:before {
  content: "\f104";
}

.carousel-arrows-light .slick-next {
  right: -45px;
}

.carousel-arrows-light .slick-next:before {
  content: "\f105";
}

/* Make arrows visible on smaller screens */
@media (max-width: 1200px) {
  .carousel-arrows-light .slick-prev {
    left: 0;
  }
  
  .carousel-arrows-light .slick-next {
    right: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .page-title .feature-item {
    flex-basis: calc(50% - 15px);
  }
  
  .page-title .feature__icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 35px;
  }
}

@media (max-width: 576px) {
  .page-title .feature-item {
    flex-basis: calc(50% - 10px);
    margin-right: 5px;
  }
  
  .page-title .feature__icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 28px;
  }
  
  .page-title .feature__title {
    font-size: 14px;
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .features-layout2 .feature-item {
    height: 330px;
  }
  .features-layout2 .feature__img {
    height: 150px;
  }
}

@media (max-width: 767px) {
  .features-layout2 .feature-item {
    height: 310px;
  }
  .features-layout2 .feature__img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .features-layout2 .feature-item {
    height: 300px;
  }
}

/* Reduce Footer Secondary Height */
.footer-secondary {
  padding: 15px 0 !important; /* Reduce padding */
}

.footer-secondary .row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.footer-secondary .fz-14 {
  line-height: 1.3;
  margin-bottom: 0;
}

.footer-secondary ul.footer__copyright-links {
  line-height: 1.3;
  margin-bottom: 0;
}

.footer-secondary ul.footer__copyright-links li {
  margin-left: 15px;
}

@media (max-width: 767px) {
  .footer-secondary {
    padding: 12px 0 !important;
  }
  
  .footer-secondary .col-sm-12 {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  
  .footer-secondary ul.footer__copyright-links {
    justify-content: center !important;
    margin-top: 5px;
  }
  
  .footer-secondary .fz-14,
  .footer-secondary .col-sm-12:first-child {
    text-align: center;
  }
}

/* Custom slider styles */
.slider .slide-item.bg-overlay:before {
    z-index: 1;
    opacity: 0.7;
    height: 100%;
}

.slider .slide-item .container {
    position: relative;
    z-index: 2;
}

.slider .slide-item .slide__title,
.slider .slide-item .slide__desc {
    color: #ffffff;
}

/* Custom styles for slider with content overlay */
.slider .slide__content.content-with-overlay {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    z-index: 2;
}

.slider .slide__content.content-with-overlay:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(6, 23, 51, 0.8);
    border-radius: 10px;
    z-index: -1;
}

.slider .slide__content.content-with-overlay .slide__title,
.slider .slide__content.content-with-overlay .slide__desc {
    color: #ffffff;
}

.slider .slide-item .bg-img {
    z-index: 1;
}

/* Custom styles for slider with gradient overlay */
.slider .slide-item {
    position: relative;
    overflow: hidden;
}

.slider .slide-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, 
                rgba(14, 61, 133, 0.85) 0%, 
                rgba(14, 61, 133, 0.8) 20%, 
                rgba(14, 61, 133, 0.7) 40%, 
                rgba(14, 61, 133, 0.3) 60%, 
                rgba(14, 61, 133, 0) 80%);
    z-index: 1;
}

.slider .container {
    position: relative;
    z-index: 2;
}

.slider .slide__content {
    position: relative;
    padding-right: 20px;
}

.slider .slide__title {
    color: #ffffff;
    margin-bottom: 20px;
}

.slider .slide__desc {
    color: #ffffff;
    margin-bottom: 30px;
}

.slider .bg-img {
    z-index: 0;
}

/* Make sure buttons are visible */
.slider .btn__white {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #384782;
}

.slider .btn__primary {
    background-color: #1170BB;
    border-color: #1170BB;
    color: #ffffff;
}

.slider .btn__white:hover {
    background-color: #384782;
    border-color: #384782;
    color: #ffffff;
}

/* Modern Slider Dots/Indicators */
.slider-custom-dots-wrapper {
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 5;
}

.slider-custom-dots {
    display: flex;
    align-items: center;
}

.slider-custom-dots .slick-dots {
    position: relative;
    bottom: 0;
    display: flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.slider-custom-dots .slick-dots li {
    margin: 0 6px;
    padding: 0;
    width: auto;
    height: auto;
}

.slider-custom-dots .slick-dots li:first-child {
    margin-left: 0;
}

.slider-custom-dots .slick-dots .slider-dot {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Add box-shadow for better visibility */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.slider-custom-dots .slick-dots .slider-dot:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1170BB;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.slider-custom-dots .slick-dots li.slick-active .slider-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-custom-dots .slick-dots li.slick-active .slider-dot:after {
    width: 100%;
    transition: width 5s ease; /* Timing for the active slide */
}

/* Improved mobile responsiveness */
@media (max-width: 991px) {
    .slider .slick-prev, 
    .slider .slick-next {
        display: none !important;
    }
    
    /* Adjust position for better visibility */
    .slider-custom-dots-wrapper {
        bottom: 20px;
    }
    
    /* Move dots to center on mobile */
    .slider-custom-dots-wrapper .row {
        justify-content: center;
    }
    
    .slider-custom-dots-wrapper .col-xl-7 {
        width: auto;
        max-width: 100%;
        flex: 0 0 auto;
    }
    
    .slider-custom-dots .slick-dots {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .slider-custom-dots-wrapper {
        bottom: 15px;
    }
    
    .slider-custom-dots .slick-dots .slider-dot {
        width: 25px;
        height: 5px; /* Make slightly taller for better touch targets */
        background-color: rgba(255, 255, 255, 0.7); /* Higher contrast */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    }
    
    .slider-custom-dots .slick-dots li {
        margin: 0 5px;
    }
    
    /* Increase contrast for active indicator */
    .slider-custom-dots .slick-dots li.slick-active .slider-dot:after {
        background-color: #ffffff; /* Full white for better visibility */
    }
}

@media (max-width: 575px) {
    .slider-custom-dots-wrapper {
        bottom: 10px;
    }
    
    .slider-custom-dots .slick-dots .slider-dot {
        width: 20px;
        height: 5px;
    }
    
    .slider-custom-dots .slick-dots li {
        margin: 0 4px;
    }
}

/* Improve slider arrow navigation */
.slider .slick-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider .slick-arrow:hover {
    background-color: #1170BB;
}

.slider .slick-arrow:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
    opacity: 1;
}

.slider .slick-prev {
    left: 20px;
}

.slider .slick-next {
    right: 20px;
}

.slider .slick-prev:before {
    content: '\f104';
}

.slider .slick-next:before {
    content: '\f105';
}

/* Ensure slide gradient overlay works on all pages */
.page-title .slide-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, 
                rgba(14, 61, 133, 0.85) 0%, 
                rgba(14, 61, 133, 0.8) 20%, 
                rgba(14, 61, 133, 0.7) 40%, 
                rgba(14, 61, 133, 0.3) 60%, 
                rgba(14, 61, 133, 0) 80%);
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title .pagetitle__heading,
.page-title .pagetitle__desc {
    color: #ffffff;
    position: relative;
}

/* Fix for container positioning in page title */
.page-title .bg-img {
    z-index: 0;
}

/* Process Items Equal Heights */
.work-process-carousel .slick-track {
  display: flex !important;
}

.work-process-carousel .slick-slide {
  height: inherit !important;
  display: flex !important;
}

.work-process-carousel .slick-slide > div {
  display: flex;
  width: 100%;
}

.work-process-carousel .process-item {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  margin: 10px; /* Reduced margin for better fit */
  background-color: #fff;
  padding: 35px 20px; /* Reduced padding for more content space */
  border-radius: 5px;
  box-shadow: 0px 5px 83px 0px rgba(9, 29, 62, 0.15);
  position: relative;
  overflow: visible; /* Allow for number badge overflow */
}

.work-process-carousel .process__number {
  position: absolute;
  top: -25px; /* Adjust to sit higher */
  left: 20px;
  width: 50px; /* Smaller width */
  height: 50px; /* Smaller height */
  font-size: 20px; /* Smaller font size */
  font-weight: 500;
  color: #ffffff;
  background-color: #0e3d85;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5; /* Ensure it stays above content */
}

.work-process-carousel .process__icon {
  color: #0e3d85;
  font-size: 60px; /* Slightly smaller icon */
  line-height: 1;
  margin-bottom: 20px;
}

.work-process-carousel .process__title {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.work-process-carousel .process__desc {
  flex-grow: 1;
  margin-bottom: 15px;
  font-size: 14px; /* Smaller font for better fit */
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines of text */
  -webkit-box-orient: vertical;
}

.work-process-carousel .btn__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px; /* Smaller button text */
}

/* Responsive adjustments for process items */
@media (max-width: 1200px) {
  .work-process-carousel .process-item {
    padding: 30px 20px;
  }
  
  .work-process-carousel .process__icon {
    font-size: 60px;
    margin-bottom: 20px;
  }
  
  .work-process-carousel .process__number {
    top: -25px;
    left: 20px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .work-process-carousel .process-item {
    margin: 10px;
  }
}

@media (max-width: 767px) {
  .work-process-carousel .process-item {
    padding: 25px 20px;
  }
  
  .work-process-carousel .process__icon {
    font-size: 55px;
    margin-bottom: 20px;
  }
  
  .work-process-carousel .process__title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .work-process-carousel .process-item {
    margin: 8px;
    padding: 20px 15px;
  }
  
  .work-process-carousel .process__icon {
    font-size: 50px;
    margin-bottom: 15px;
  }
  
  .work-process-carousel .process__number {
    top: -20px;
    left: 15px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
}

/* Milestone Container - Non-Carousel Version */
.milestone-container {
  margin: 0 auto;
  max-width: 1400px;
}

.milestone-row {
  margin: 0 -15px;
}

.milestone-container .process-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  padding: 35px 25px;
  border-radius: 5px;
  box-shadow: 0px 5px 83px 0px rgba(9, 29, 62, 0.15);
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
}

.milestone-container .process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px 0px rgba(9, 29, 62, 0.2);
}

.milestone-container .process__number {
  position: absolute;
  top: -25px;
  left: 25px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  background-color: #0e3d85;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

.milestone-container .process__icon {
  color: #0e3d85;
  font-size: 60px;
  line-height: 1;
  margin-bottom: 20px;
}

.milestone-container .process__title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.milestone-container .process__desc {
  flex-grow: 1;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.milestone-container .btn__link {
  margin-top: auto;
  align-self: flex-start;
}

/* Responsive adjustments for milestones */
@media (max-width: 1200px) {
  .milestone-container .process__icon {
    font-size: 50px;
  }
}

@media (max-width: 991px) {
  .milestone-container .col-lg-3 {
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .milestone-container .process-item {
    padding: 30px 20px;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .milestone-container .process__number {
    left: 20px;
  }
}

/* Equal Height Specialty Service Cards */
.services-layout2 .service-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0px 5px 83px 0px rgba(9, 29, 62, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.services-layout2 .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px 0px rgba(9, 29, 62, 0.09);
}

.services-layout2 .service__img {
  height: 220px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.services-layout2 .service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.services-layout2 .service-item:hover .service__img img {
  transform: scale(1.05);
}

.services-layout2 .service__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services-layout2 .service__title {
  font-size: 20px;
  margin-bottom: 15px;
}

.services-layout2 .service__desc {
  margin-bottom: 20px;
  flex-grow: 1;
}

.services-layout2 .btn {
  align-self: flex-start;
  margin-top: auto;
}

.custom-row-gap{
  row-gap: 30px !important;
}

/* Responsive adjustments for specialty cards */
@media (max-width: 991px) {
  .services-layout2 .service__img {
    height: 180px;
  }
  
  .services-layout2 .service__content {
    padding: 25px;
  }
  
  .services-layout2 .service__title {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .services-layout2 .service__img {
    height: 160px;
  }
  
  .services-layout2 .service__content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .services-layout2 .service__img {
    height: 140px;
  }
}

/* Static Process Grid Styling */
.process-grid {
  margin-bottom: 50px;
}

.process-grid .process-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 30px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0px 5px 83px 0px rgba(9, 29, 62, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.process-grid .process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px 0px rgba(9, 29, 62, 0.09);
}

.process-grid .process__desc {
  flex-grow: 1;
  margin-bottom: 20px;
}

.process-grid .btn__link {
  align-self: flex-start;
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .process-grid .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .process-grid [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .process-grid .process-item {
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .process-grid .process-item {
    height: auto;
    margin-bottom: 20px;
  }
  
  .process-grid .process__desc {
    margin-bottom: 15px;
  }
}

/* Doctor Select Styling Fixes */
#doctorSelect {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: 60px;
    border: 1px solid #e7ebef;
    border-radius: 4px;
    padding-left: 45px;
    color: #848e9f;
    font-size: 14px;
    padding-right: 20px;
    background-color: #fff;
}

/* Fix for parent containers that might be hiding the select */
#doctorSelect, 
#doctorSelect + .nice-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Select Elements Consistent Display with Nice Select Plugin */
.nice-select.form-control {
    line-height: 58px;
    height: 60px;
    display: block !important;
}

/* Calendar view styling */
.calendar-view-input {
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

/* Ensure calendar icon is always shown */
.calendar-view-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 1;
  cursor: pointer;
}

/* Override browser-specific styles to ensure calendar view */
.calendar-view-input::-webkit-datetime-edit {
  padding: 0 10px;
}

/* Make the date input appear as a button to ensure click opens calendar */
input[type="date"].calendar-view-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  padding-right: 35px; /* Space for the calendar icon */
}

/* Style the date input for better visibility */
input[type="date"].calendar-view-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom styles to ensure display is consistent across browsers */
@supports (-ms-ime-align:auto) {
  /* Edge-specific styles */
  input[type="date"].calendar-view-input {
    position: relative;
  }
  input[type="date"].calendar-view-input:after {
    content: "\f073"; /* Calendar icon using FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

/* Custom Calendar View Styling */
.calendar-view-input {
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

/* Make the calendar input stand out */
input[type="date"].calendar-view-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23007bff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 40px; /* Space for the calendar icon */
}

/* Make sure the calendar shows on click */
input[type="date"].calendar-view-input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Highlight the date input when it has a value */
input[type="date"].calendar-view-input.has-value {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Styling for form groups with available dates */
.form-group-date.has-available-dates {
  position: relative;
}

.form-group-date.has-available-dates:after {
  content: "Select from available dates";
  position: absolute;
  bottom: -20px;
  left: 30px;
  font-size: 11px;
  color: #007bff;
}

/* Patient confirmation modal styles */
#patientConfirmModal .patient-info {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
}

#patientConfirmModal .patient-info p {
  margin-bottom: 5px;
}

#patientConfirmModal .modal-footer {
  justify-content: space-between;
}

#patientConfirmModal .modal-content {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#patientConfirmModal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

#patientConfirmModal .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

#patientConfirmModal .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Appointment Modal Styles */
.appointment-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.appointment-modal.show {
  display: block;
  opacity: 1;
}

.appointment-modal__content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  width: 80%;
  max-width: 800px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.appointment-modal.show .appointment-modal__content {
  transform: translateY(0);
}

.appointment-modal__close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 1;
}

.appointment-modal__close:hover,
.appointment-modal__close:focus {
  color: #21cdc0;
  text-decoration: none;
}

.appointment-modal__header {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.appointment-modal__header h2 {
  margin: 0;
  color: #0e204d;
  font-size: 24px;
}

.appointment-modal__body {
  padding: 10px 0;
}

.modal-contact-result {
  margin-top: 15px;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .appointment-modal__content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }
}

/* Add this to ensure select elements are styled properly */
.appointment-modal select {
  width: 100%;
  height: 50px;
  color: #848e9f;
  background-color: transparent;
  border: 1px solid #eaeaea;
  font-size: 14px;
  padding: 0 20px;
  border-radius: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.appointment-modal .form-group-icon select {
  padding-left: 40px;
}

.appointment-modal .nice-select {
  line-height: 50px;
}

.appointment-modal .form-group {
  margin-bottom: 20px;
  position: relative;
}

.appointment-modal .form-group-icon .form-group-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
}