@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

body {
  font-family: "DM Sans", sans-serif;
}

.container {
  max-width: 1440px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

select {
  accent-color: black !important; /* Changes arrow color */
}

@media (max-width: 1280px) {
  /* xl breakpoint */
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  /* lg breakpoint */
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  /* sm breakpoint */
  .container {
    padding: 0 16px;
  }
}

.common_btn {
  padding: 14px 24px;
  background-color: #a31d39;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.common_btn:focus-visible {
  outline: 3px solid #fbb6c2; /* light rose */
  outline-offset: 2px;
}

.service_section  .swiper-button-prev {
  color: black;
  border: 1px solid #d7d7d7;
  background-color: white;
  width: 46px;
  height: 46px;
  border-radius: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
}

.service_section  .swiper-button-prev:hover {
  background-color: #a31d39;
  color: white;
  border-color: #a31d39;
  transition: 0.3s ease-in-out;
}

.service_section  .swiper-button-prev:after {
  font-size: 15px;
}

.service_section  .swiper-button-next {
  color: black;
  border: 1px solid #d7d7d7;
  background-color: white;
  width: 46px;
  height: 46px;
  border-radius: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
}

.service_section  .swiper-button-next:hover {
  background-color: #a31d39;
  color: white;
  border-color: #a31d39;
  transition: 0.3s ease-in-out;
}

/* .tab-btn.active {
  background-color: #a31d39;
  color: white;
} */

.service_section  .swiper-button-next:after {
  font-size: 15px;
}

.service_slideouter .swiper-button-next {
  position: relative;
  left: unset;
  right: unset;
  top: unset;
  bottom: unset;
}

.testimonial_slider .swiper-slide:nth-child(even) .testimonial_box {
  background-color: #EEF7FF !important;
  height: 100%;
}



@media (min-width: 980.98px) {
  .testimonial_slider .swiper-slide:nth-child(even) {
    width: 440px !important; 
    height: auto !important;
    align-self: stretch;
  }
}

.service_slideouter .swiper-button-prev {
  position: relative;
  left: unset;
  right: unset;
  top: unset;
  bottom: unset;
}

/* AOS Smooth Animation Enhancements */
[data-aos] {
  transition-property: opacity, transform !important;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service_slideouter {
  display: flex;
  gap: 20px;
  position: absolute;
  top: 45px;
  right: 32px;

}

@media (max-width: 991.98px) {
  .service_slideouter {
    display: flex;
    gap: 20px;
    position: absolute;
    top: unset;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
  }
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.filter_banner select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-color: transparent;
  padding-right: 20px;
}

.filter_banner select::after {
  content: "∨";
}

.banner_wrapper .swiper-pagination {
  bottom: 50px !important;
  right: 30px !important;
  width: fit-content !important;
  margin-left: auto !important;
}

.banner_wrapper .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background-color: white !important;
}

.speciality_banner_shade {
  background: linear-gradient(90deg, #A31D39 0%, rgba(0, 0, 0, 0) 88.19%);
}

.banner_wrapper .swiper-pagination-bullet-active {
  width: 35px !important;
  border-radius: 12px !important;
}

@media (max-width: 991.98px) {
  .banner_wrapper .swiper-pagination {
    bottom: 20px !important;
    right: 20px !important;
  }

  .banner_wrapper .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }

  .banner_wrapper .swiper-pagination-bullet-active {
    width: 25px !important;
    height: 8px !important;
  }
}

@media (max-width: 580.98px) {
  .banner_wrapper .swiper-pagination-bullet {
    background-color: #a31d39 !important;
  }

  .banner_slider {
    padding-bottom: 60px !important;
  }
  .banner_wrapper .swiper-pagination {
    margin: auto !important;
  }
}

.common_btn {
  border: 1px solid #a31d39;
}

.common_btn:hover {
  background-color: white;
  border: 1px solid #a31d39;
  color: #a31d39;
  transition: 0.3s ease-in-out;
}

body {
  overflow-x: hidden;
}

.home_page {
  overflow-x: hidden !important;
}

.doctor_box {
  transition: transform 0.3s ease-out, background-color 0.3s ease-out !important;
  will-change: transform;
}

.doctor_box:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease-out, background-color 0.3s ease-out !important;
}

.doctor_image {
  transition: 0.5s ease-in-out !important;
}

.doctor_box:hover .doctor_image {
  scale: 1.1;
  transition: 0.5s ease-in-out !important;
}

.speciality_card {
  transition: transform 0.3s ease-out, background-color 0.3s ease-out !important;
  will-change: transform;
}

.speciality_card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease-out, background-color 0.3s ease-out !important;
}

.tab_sccroller::-webkit-scrollbar {
  background-color: #dda1ae;
  height: 2px;
}

.tab_sccroller::-webkit-scrollbar-thumb {
  background-color: #a31d39;
  height: 2px;
}

@media (max-width: 580.98px) {
  .tab_sccroller {
    padding-bottom: 10px;
  }
}

.menu_wrapper ul li a {
    position: relative;
}



.menu_wrapper ul li a:after {
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: "";
  color: transparent;
  background: #a31d39;
  height: 1px;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}


.menu_wrapper ul li a:hover svg path {
    stroke: #a31d39 !important;
    transition: 0.3s ease;
}

.menu_wrapper ul li a:hover::after {
    width: 100%;
    transition: 0.3s ease;
}

.awards_slider .swiper-slide {
  align-self: stretch;
  height: auto !important;
}

.awards_slider .swiper-slide .single_award  {
  height: 100%;
}

.mobile_hiddenmenu {
  display: none;
}

.mobile_hiddenmenu.show_mobilemenu {
  display: block;
}

.location_megamenu {
  overflow: hidden;
}
.location_megamenu ul {
  max-height: 430px;
  overflow-y: auto;
}

.location_megamenu ul li a {
  padding: 12px 16px;
}

.department_megamenu ul li a {
  padding: 12px 16px !important;
}

.doctor_megamenu ul li a {
  padding: 12px 16px !important;
}

.location_megamenu ul li:hover {
  background-color: #EFF1F3;
}

.location_megamenu ul::-webkit-scrollbar {
  width: 2px;
  background-color: #d3a0ab;
}

.location_megamenu ul::-webkit-scrollbar-thumb {
  width: 2px;
  background-color: #a31d39;
}
.department_megamenu {
  overflow: hidden;
}

.department_megamenu ul {
  max-height: 430px;
  overflow-y: auto;
}


.department_megamenu ul li:hover {
  background-color: #EFF1F3;
}

.department_megamenu ul::-webkit-scrollbar {
  width: 2px;
  background-color: #d3a0ab;
}

.department_megamenu ul::-webkit-scrollbar-thumb {
  width: 2px;
  background-color: #a31d39;
}



.doctor_megamenu {
  overflow: hidden;
}

.doctor_megamenu ul {
  max-height: 430px;
  overflow-y: auto;
}


.doctor_megamenu ul li:hover {
  background-color: #EFF1F3;
}

.doctor_megamenu ul::-webkit-scrollbar {
  width: 2px;
  background-color: #d3a0ab;
}

.doctor_megamenu ul::-webkit-scrollbar-thumb {
  width: 2px;
  background-color: #a31d39;
}


.service_container {
  padding-right: 0;
}


@media (min-width: 1440.98px) {
  .service_container {
    padding-right: 40px;
  }
}


.mobile_serachwrapper .close_btn svg  {
  fill: black;
}

/* .mobile_departmentlist {
  height: 400px;
  overflow-y: auto;
} */

.mobile_listwrap {
  max-height: calc(100vh - 160px) !important;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
  border-radius: 20px;
}

.mobile_listwrap::-webkit-scrollbar {
  width: 2px;
  background-color: #f0a2b3;
}

.mobile_listwrap::-webkit-scrollbar-thumb {
  width: 2px;
  background-color: #a31d39;
}















* Mobile Search Wrapper Animation Styles */
.mobile_serachwrapper {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.mobile_serachwrapper.active {
    transform: translateY(0);
}

/* Body overflow hidden */
body.overflow-hidden {
    overflow: hidden;
    height: 100vh;
}

/* Optional: Add backdrop blur effect when active */
.mobile_serachwrapper.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: -1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth transitions for inner content */
.mobile_serachwrapper .wrapper,
.mobile_serachwrapper .mobile_listwrap {
    transition: opacity 0.3s ease-in-out 0.1s;
}

.mobile_serachwrapper:not(.active) .wrapper,
.mobile_serachwrapper:not(.active) .mobile_listwrap {
    opacity: 0;
}

.mobile_serachwrapper.active .wrapper,
.mobile_serachwrapper.active .mobile_listwrap {
    opacity: 1;
}

.blog_section .active_tab {
  background-color: #a31d39;
  color: white;
}

.location-tab.active-tab {
  border: 1px solid #a31d39;
}

.testimonials_section  .swiper-button-disabled {
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

@media (max-width: 570.98px) {
  .testimonials_section .service_slideouter {
    bottom: 0;
    left: 0;
    transform: unset;
    position: relative;
    justify-content: center;
  }

  .testimonial_slider  {
    padding-bottom: 60px !important;
  }
}

/* History Timeline Styles */
.history_timeline {
  position: relative;
}

.timeline_line {
  padding: 0 20px;
}

.timeline_progress {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline_dot {
  transition: all 0.3s ease;
}

.timeline_dot.active .dot {
  background-color: #A31D39;
  transform: scale(1.5);
  border-color: #A31D39;
  margin-top: 20px !important;
  box-shadow: 0 0 0 4px rgba(163, 29, 57, 0.2);
}

.timeline_dot.active .dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #A31D39;
  border-radius: 50%;
  z-index: 1;
}

.timeline_dot.active .year_text {
  font-weight: 600;
}

.timeline_dot.active .event_text {
  font-weight: 500;
  color: #A31D39;
}

.timeline_dot:hover .dot {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.timeline_dot .dot {
  transition: all 0.3s ease;
  margin-top: 20px !important;
  position: relative;
}

.timeline_dot .dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background-color: #A31D39;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.timeline_dot.active .dot::before {
  width: 8px;
  height: 8px;
}

.history_content_slider {
  overflow: hidden;
}

.history_content_slider .swiper-slide {
  height: auto;
}

.history_prev,
.history_next {
  cursor: pointer;
  transition: all 0.3s ease;
}

.history_prev:disabled,
.history_next:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.history_prev svg,
.history_next svg {
  transition: all 0.3s ease;
}

.history_prev:hover:not(:disabled) svg path {
  stroke: white;
}

.history_next:hover:not(:disabled) svg path {
  stroke: white;
}

.history_prev:hover:not(:disabled) {
  background-color: #A31D39;
  border-color: #A31D39;
}

.history_prev:hover:not(:disabled) svg path {
  stroke: white;
}

.history_next:hover:not(:disabled) {
  background-color: #A31D39;
  border-color: #A31D39;
}

@media (max-width: 768px) {
  .timeline_dots {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .timeline_line .absolute {
    display: none;
  }

  .timeline_dot {
    position: relative;
    padding-left: 40px;
    width: 100%;
  }

  .timeline_line {
    position: relative;
  }

  .timeline_line::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #121212;
    z-index: 1;
  }

  .timeline_dot .dot {
    position: absolute;
    left: 7px;
    top: 8px;
    z-index: 10;
  }

  .timeline_dot .year_text {
    margin-bottom: 8px;
  }

  .timeline_dot .event_text {
    margin-top: 8px;
    text-align: left;
    max-width: 100%;
  }
}

/* Related Blog Pagination Styles */
.related_pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.related_pagination .pagination-btn,
.related_pagination .pagination-number {
  min-width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #E5E5E5;
  background-color: white;
  color: #121212;
}

.related_pagination .pagination-number.pagination-active {
  background-color: #A31D39;
  color: white;
  border: none;
}

.related_pagination .pagination-btn:hover:not(:disabled),
.related_pagination .pagination-number:hover:not(.pagination-active) {
  background-color: #A31D39;
  border-color: #A31D39;
  color: white;
}

.related_pagination .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .related_pagination {
    gap: 8px;
  }
  
  .related_pagination .pagination-btn,
  .related_pagination .pagination-number {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* 
.scroll_changemenu {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
} */

.active_scrolledmenu {
  color: #A31D39 !important;
  font-weight: 700 !important;
  position: relative;
}

.active_scrolledmenu:after {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  content: "";
  background: #a31d39;
  height: 2px;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}


/* Accordion Icon Transitions */
.plus-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.minus-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
  position: absolute;
 display: none;
  transform: rotate(-90deg);
}

[aria-expanded="true"] .plus-icon {
  display: none;
  transform: rotate(90deg);
}

[aria-expanded="true"] .minus-icon {
  display: block;
  transform: rotate(0deg);
}

/* Accordion Body Smooth Transitions */
#accordion-collapse > div[id*="accordion-collapse-body"] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#accordion-collapse > div[id*="accordion-collapse-body"]:not(.hidden) {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.1s, padding 0.5s ease;
}

#accordion-collapse > div[id*="accordion-collapse-body"] > div {
  transition: padding 0.4s ease;
}

/* Smooth button hover effect */
[data-accordion-target] {
  transition: background-color 0.2s ease;
}


.advanced_services .swiper-button-prev:hover {
  background-color: #c94561 !important;
}


.advanced_services .swiper-button-next:hover {
  background-color: #c94561 !important;
}