@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #000000;
  background-color: #fefefe;
  overflow-x: hidden;
}

 .heading_right{
  display: none;
 }



/* Scrolling Images Animation */
.scrolling-images-section {
  overflow: hidden;
  width: 100%;
  height: 200px; /* Adjust height as needed */
  position: relative;
}

@media (max-width: 767px) {
  .scrolling-images-section {
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

.scrolling-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scrolling-images {
  display: flex;
  width: calc(170px * 20); /* 20 images, each ~170px (100px + 70px margin) */
  animation: scroll-left-to-right 50s linear infinite;
}

.scrolling-images img {
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 70px;
  width: 100px; /* Adjust image width */
  height: 50%;
  object-fit: cover;
  margin-right: 0; /* No gap between images */
}

@keyframes scroll-left-to-right {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.layout_padding {
  padding: 90px 0;
}

.layout_padding_small {
  padding: 0px ;
}

.layout_padding2 {
  padding: 75px 0;
}

.layout_padding2-top {
  padding-top: 75px;
}

.layout_padding2-bottom {
  padding-bottom: 75px;
}

.layout_padding-top {
  padding-top: 90px;
}

.layout_padding-bottom {
  padding-bottom: 90px;
}

.layout_margin-top {
  margin-top: 90px;
}

.layout_margin-bottom {
  margin-bottom: 90px;
}

.heading_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.heading_container h2 {
  position: relative;
  font-weight: bold;
  margin-bottom: 0;
  text-transform: uppercase;
}

.heading_container p {
  margin-top: 10px;
  margin-bottom: 0;
}

.heading_container.heading_center {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

a:hover,
a:focus {
  color: initial;
}

.btn,
.btn:focus {
  outline: none !important;
  -webkit-box-shadow: none;
          box-shadow: none;
}

/*header section*/
.hero_area {
  position: relative;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.hero_area .hero_bg_box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  overflow: hidden;
  z-index: -1;
}

.hero_area .hero_bg_box img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: bottom right;
     object-position: bottom right;
}


.sub_page .hero_area {
  min-height: auto;
  background-color: #178066;
}

.sub_page .hero_area .hero_bg_box {
  display: none;
}

.header_section {
  padding: 15px 0;
}

.header_section .container-fluid {
  padding-right: 25px;
  padding-left: 25px;
}

.navbar-brand span {
  font-weight: bold;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
}

.custom_nav-container {
  padding: 0;
}

.custom_nav-container .navbar-nav {
  margin-left: auto;
}

.custom_nav-container .navbar-nav .nav-item .nav-link {
  padding: 5px 20px;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.custom_nav-container .nav_search-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  border: none;
  color: #ffffff;
}

.custom_nav-container .nav_search-btn:hover {
  color: #62d2a2;
}

.custom_nav-container .navbar-toggler {
  outline: none;
}

.custom_nav-container .navbar-toggler {
  padding: 0;
  width: 37px;
  height: 42px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.custom_nav-container .navbar-toggler span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: #ffffff;
  margin: 7px 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  position: relative;
  border-radius: 5px;
  transition: all 0.3s;
}

.custom_nav-container .navbar-toggler span::before, .custom_nav-container .navbar-toggler span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #ffffff;
  top: -10px;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.custom_nav-container .navbar-toggler span::after {
  top: 10px;
}

.custom_nav-container .navbar-toggler[aria-expanded="true"] {
  -webkit-transform: rotate(360deg);
          transform: rotate(360deg);
}

.custom_nav-container .navbar-toggler[aria-expanded="true"] span {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.custom_nav-container .navbar-toggler[aria-expanded="true"] span::before, .custom_nav-container .navbar-toggler[aria-expanded="true"] span::after {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
  top: 0;
}

/*end header section*/
/* slider section */
.slider_section {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  padding: 45px 0 145px 0;
}

.slider_section .row {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.slider_section #customCarousel1 {
  width: 100%;
  position: unset;
}

.slider_section .detail-box {
  color: #1fab89;
}

.slider_section .detail-box h1 {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #ffffff;
}

.slider_section .detail-box h2 {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #ffffff;
}

.slider_section .detail-box p {
  color: #fefefe;
  font-size: 16px;
}

.slider_section .detail-box .btn-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 -5px;
  margin-top: 25px;
}

.slider_section .detail-box .btn-box a {
  margin: 5px;
  text-align: center;
  width: 165px;
}

.slider_section .detail-box .btn-box .btn1 {
  display: inline-block;
  padding: 10px 15px;
  background-color: #ffffff;
  color: #62d2a2;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #ffffff;
}

.slider_section .detail-box .btn-box .btn1:hover {
  background-color: transparent;
  color: #ffffff;
}

.slider_section .img-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.slider_section .img-box img {
  width: 100%;
  max-width: 375px;
}

.slider_section .carousel-indicators {
  position: unset;
  margin: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.slider_section .carousel-indicators li {
  background-color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  opacity: 1;
}

.slider_section .carousel-indicators li.active {
  width: 20px;
  height: 20px;
}

.department_section {
  position: relative;
}

.department_section .box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 45px;
  background-color: #f5f5f5;
  border-radius: 5px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.box-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.box-link:hover .box {
  background-color: #62d2a2;
  color: #ffffff;
}

.box-link:hover .box .img-box {
  background-color: #178066;
}

.box-link:hover .box .img-box img {
  filter: brightness(0) invert(1);
}

.box-link:hover .box .detail-box h5,
.box-link:hover .box .detail-box p {
  color: #ffffff;
}

.department_section .box .img-box {
  width: 63px;
  height: 63px;
  margin-bottom: 15px;
  
  background-color: #62d2a2;
  border-radius: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.department_section .box .img-box img {
  max-width: 39px;
  max-height: 39px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.department_section .box .detail-box h5 {
  font-weight: bold;
  text-transform: uppercase;
}

.department_section .box .detail-box a {
  color: #1fab89;
  font-weight: 600;
}

.department_section .box .detail-box a:hover {
  color: #62d2a2;
}

.department_section .btn-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 45px;
}

.department_section .btn-box a {
  display: inline-block;
  min-width: 100%;
  padding: 20px;
  background-color: #62d2a2;
  color: #ffffff;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #62d2a2;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.department_section .btn-box a:hover {
  background-color: #62d2a2;
  color: #ffffff;
}

.about_section .row {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.about_section .img-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.about_section .img-box img {
  width: 100%;
  border-radius: 15px;
}

.about_section .detail-box h3 {
  font-weight: bold;
}

.about_section .detail-box p {
  margin-top: 15px;
}

.about_section .detail-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #62d2a2;
  color: #ffffff;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #62d2a2;
  margin-top: 15px;
}

.about_section .detail-box a:hover {
  background-color: transparent;
  color: #62d2a2;
}

.doctor_section {
  background: #178066;
}

.doctor_section .heading_container {
  color: #ffffff;
}

.doctor_section .box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  margin-top: 45px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}



.doctor_section .box .img-box {
  width: 100%;
}

.doctor_section .box .img-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.doctor_section .box .detail-box {
  width: 100%;
  padding: 25px 15px;
  text-align: center;
  position: relative;
}

.doctor_section .box .detail-box .social_box {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 150%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 0;
  -webkit-transition: all .3s;
  transition: all .3s;
}

.doctor_section .box .detail-box .social_box a {
  color: #62d2a2;
  margin: 0 10px;
}

.doctor_section .box .detail-box .social_box a:hover {
  color: #1fab89;
}

.doctor_section .box:hover .social_box {
  top: 0;
  opacity: 1;
}

.doctor_section .btn-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 45px;
}

.doctor_section .btn-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #1fab89;
  color: #ffffff;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #1fab89;
}

.doctor_section .btn-box a:hover {
  background-color: transparent;
  color: #1fab89;
}

.contact_section {
  position: relative;
}

.contact_section .heading_container {
  margin-bottom: 25px;
}

.contact_section .heading_container h2 {
  text-transform: uppercase;
}

.contact_section .form_container input,
.contact_section .form_container textarea {
  width: 100%;
  border: none;
  height: 50px;
  margin-bottom: 15px;
  padding-left: 20px;
  outline: none;
  color: #101010;
  background: #eeeeee;
}

.contact_section .form_container input::-webkit-input-placeholder {
  color: #000000;
}

.contact_section .form_container input:-ms-input-placeholder {
  color: #000000;
}

.contact_section .form_container input::-ms-input-placeholder {
  color: #000000;
}

.contact_section .form_container input::placeholder {
  color: #000000;
}

.contact_section .form_container input.message-box,
.contact_section .form_container textarea.message-box {
  height: 175px;
}

.contact_section .form_container button {
  width: 100%;
  border: none;
  text-transform: uppercase;
  display: inline-block;
  padding: 12px 55px;
  background-color: #1fab89;
  color: #ffffff;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #1fab89;
  margin-top: 15px;
}

.contact_section .form_container button:hover {
  background-color: transparent;
  color: #1fab89;
}

.contact_section .map_container {
  height: 368px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  padding: 0;
}

.contact_section .map_container .map {
  height: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.contact_section .map_container .map #googleMap {
  height: 100%;
}

.client_section .heading_container {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.client_section .box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  margin: 45px;
  border-radius: 15px;
}

.client_section .box .img-box {
  margin-bottom: 15px;
  min-width: 145px;
  max-width: 145px;
  overflow: hidden;
}

.client_section .box .img-box img {
  width: 100%;
  border-radius: 100%;
  border: 7px solid rgba(255, 255, 255, 0.45);
}

.client_section .box .detail-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.client_section .box .detail-box .name img {
  width: 25px;
  margin-bottom: 5px;
}

.client_section .box .detail-box .name h6 {
  color: #62d2a2;
  font-size: 20px;
}

.client_section .carousel_btn-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.client_section .carousel-control-prev,
.client_section .carousel-control-next {
  position: unset;
  width: 45px;
  height: 45px;
  border: none;
  opacity: 1;
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: center;
  background-color: #62d2a2;
  background-position: center;
  border-radius: 5px;
  margin: 0 2.5px;
}

.client_section .carousel-control-prev:hover,
.client_section .carousel-control-next:hover {
  background-color: #1fab89;
}

.client_section .carousel-control-next {
  left: initial;
}

.footer_section {
  background: #178066;
  color: #ffffff;
  padding: 60px 0 0 0;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  overflow: hidden;
  height: auto !important;
  min-height: 0 !important;
}

.footer_section h4 {
  font-weight: 600;
  margin-bottom: 20px;
}

.footer_section .footer_col {
  margin-bottom: 30px;
}

.footer_section .footer_contact .contact_link_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.footer_section .footer_contact .contact_link_box a {
  margin: 5px 0;
  color: #ffffff;
}

.footer_section .footer_contact .contact_link_box a i {
  margin-right: 5px;
}

.footer_section .footer_contact .contact_link_box a:hover {
  color: #62d2a2;
}

/* Contact section mobile styles */
@media (max-width: 767px) {
  .contact_section .contact_link_box {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    padding: 20px 0;
  }

  .contact_section .contact_link_box a {
    padding-left: 0 !important;
    margin: 10px 0 !important;
    text-align: center !important;
  }

  .contact_section .contact_link_box .contact-phone,
  .contact_section .contact_link_box .contact-email {
    padding-left: 0 !important;
  }

  .contact_section .contact_link_box a i {
    margin-right: 10px;
  }
}

.footer_section .footer_social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 20px;
  margin-bottom: 10px;
}

.footer_section .footer_social a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #ffffff;
  border-radius: 100%;
  margin-right: 10px;
  font-size: 24px;
}

.footer_section .footer_social a:hover {
  color: #62d2a2;
}

.footer_section .footer_links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.footer_section .footer_links a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-right: 15px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer_section .footer_links a:hover {
  color: #62d2a2;
}

.footer_section form input {
  border: none;
  background-color: #fefefe;
  width: 100%;
  height: 45px;
  color: #000000;
  outline: none;
  border-radius: 5px;
  padding: 0 15px;
}

.footer_section form input::-webkit-input-placeholder {
  color: #777;
}

.footer_section form input:-ms-input-placeholder {
  color: #777;
}

.footer_section form input::-ms-input-placeholder {
  color: #777;
}

.footer_section form input::placeholder {
  color: #777;
}

.footer_section form button {
  width: 100%;
  text-align: center;
  display: inline-block;
  padding: 10px 55px;
  background-color: #62d2a2;
  color: #ffffff;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #62d2a2;
  margin-top: 15px;
}

.footer_section form button:hover {
  background-color: transparent;
  color: #62d2a2;
}

.footer_section .footer-info {
  text-align: center;
}

.footer_section .footer-info p {
  color: #ffffff;
  padding: 25px 0;
  margin: 0;
}

.footer_section .footer-info p a {
  color: inherit;
}
.department-image {
  text-align: left;
  padding: 0;
  margin: 0;
  margin-left: -100px;
  margin-top: 40px;
}

.department-image-left {
  text-align: left;
  padding: 0;
  margin: 0;
  margin-left: -50px;
  max-width: 120%;
  height: auto;
  margin-top: 30px;
}

.department-image-left img {
  width: 120%;
  height: auto;
  max-width: 120%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .department-image {
    display: none;
  }
}

/* New styles for departments.html new boxes */
.new-dept-box {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 5px;
  margin: 30px 0;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: 'Nunito', sans-serif;
  color: #000000;
  position: relative;
  transition: max-height 0.5s ease, padding 0.5s ease;
  overflow: hidden;
  max-height: 400px; /* default collapsed height */
}

.new-dept-box.expanded {
  max-height: 600px; /* expanded height */
  padding-bottom: 40px;
}

.new-img-left {
  order: 1;
  flex: 1 1 40%;
  padding-right: 20px;
  display: flex;
  justify-content: flex-start;
}

.new-img-right {
  order: 2;
  flex: 1 1 40%;
  padding-left: 20px;
  display: flex;
  justify-content: flex-end;
}

.new-img-left img,
.new-img-right img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.new-detail-left {
  order: 2;
  flex: 1 1 60%;
  padding-left: 20px;
}

.new-detail-right {
  order: 1;
  flex: 1 1 60%;
  padding-right: 20px;
}

.new-detail-left h3,
.new-detail-right h3 {
  font-weight: 700;
  text-transform: uppercase;
  color: #178066;
  margin-bottom: 15px;
}

.new-detail-left p,
.new-detail-right p {
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.new-dept-box.expanded .expandable-content {
  max-height: 400px;
  margin-top: 15px;
}

.additional-images {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.additional-images img {
  margin-right: 10px;
  border-radius: 5px;
  object-fit: cover;
  width: 100px;
  height: 100px;
}

/* Expand button styles */
.expand-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #178066;
  transition: transform 0.3s ease;
}

.new-dept-box.expanded .expand-btn i {
  transform: rotate(180deg);
}

/* Responsive for tablets */
@media (max-width: 1024px) {
  .new-dept-box {
    padding: 15px;
    margin: 20px 0;
    max-height: 350px;
  }

  .new-dept-box.expanded {
    max-height: 550px;
  }

  .new-img-left img,
  .new-img-right img {
    max-width: 250px;
  }

  .new-detail-left h3,
  .new-detail-right h3 {
    font-size: 18px;
  }

  .new-detail-left p,
  .new-detail-right p {
    font-size: 14px;
  }
}

/* Responsive for small tablets and large phones */
@media (max-width: 768px) {
  .new-dept-box {
    flex-direction: column;
    text-align: center;
    max-height: 300px; /* Maintain expandable functionality on mobile */
    padding: 15px;
    margin: 15px 0;
    overflow: hidden;
  }

  .new-dept-box.expanded {
    max-height: 800px; /* Allow expansion on mobile */
    padding-bottom: 30px;
  }

  /* Specific for Ortodonzia section with two images */
  #dept-pediatric-dentistry {
    max-height: 500px;
  }

  #dept-pediatric-dentistry.expanded {
    max-height: 1200px;
  }

  .new-detail-left,
  .new-detail-right {
    order: 1 !important;
  }

  .new-img-left,
  .new-img-right {
    order: 2 !important;
  }

  .new-img-left,
  .new-img-right,
  .new-detail-left,
  .new-detail-right {
    padding: 0;
    flex: unset;
  }

  .new-img-left img,
  .new-img-right img {
    max-width: 100%;
    margin-bottom: 15px;
  }

  .new-detail-left h3,
  .new-detail-right h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .new-detail-left p,
  .new-detail-right p {
    font-size: 14px;
    line-height: 1.4;
  }

  .expand-btn {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 15px;
    font-size: 18px;
  }

  .expandable-content {
    max-height: none !important;
    overflow: visible !important;
  }

  .additional-images {
    justify-content: center;
    flex-wrap: wrap;
  }

  .additional-images img {
    margin: 5px;
    width: 80px;
    height: 80px;
  }
}

/* Responsive for phones */
@media (max-width: 480px) {
  .new-dept-box {
    max-height: 250px; /* Maintain expandable functionality on phones */
    padding: 10px;
    margin: 10px 0;
    overflow: hidden;
  }

  .new-dept-box.expanded {
    max-height: 700px; /* Allow expansion on phones */
  }

  .new-detail-left h3,
  .new-detail-right h3 {
    font-size: 14px;
  }

  .new-detail-left p,
  .new-detail-right p {
    font-size: 13px;
  }

  .additional-images img {
    width: 70px;
    height: 70px;
  }
}



/* Additional styling for right aligned images to be closer to right border - removed for consistency */

/* Gallery section styles */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.main-image {
  flex: 0 0 100%;
  text-align: center;
  margin-bottom: 20px;
}

.main-image img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

.surrounding-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

.box {
  text-align: center;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.box p {
  margin: 5px 0 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #178066;
}

/* Responsive for gallery */
@media (max-width: 767px) {
  .surrounding-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-image img {
    max-width: 100%;
  }
}

/* Mobile image container */
.mobile-image-container {
  display: none;
  width: 50%;
  float: right;
  padding: 0;
}

.mobile-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}



.mobile-left-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.heading_image_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
}

.heading_left {
  flex: 1;
  text-align: center;
}

.heading_left h2 {
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
}

.heading_right {
  width: 50%; float: left;
}

@media (max-width: 768px) {
  .mobile-image-container {
    display: block;
    width: 100%;
  }
  .heading_image_container {
    flex-direction: row;
    align-items: stretch;
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .heading_left_mobile_image {
    display: block;
    flex: 1;
  }
  .mobile-left-image {
    height: 100%;
    width: auto;
    display: block;
  }
  .heading_right {
    flex: 1;
  }
  .heading_left {
    display: block;
  }
  .department_section {
    padding-top: 30px;
  }
  .department_section.layout_padding {
    padding-bottom: 0;
  }
  .department_section .box {
    margin-top: 20px;
  }
}

/* Text justification class */
.text-justify {
  text-align: justify;
}



.mobile-half-section {
  display: none;
}

.mobile-container {
  display: flex;
}

.left-half, .right-half {
  flex: 1;
  padding: 10px;
}

.left-half img, .right-half img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-scrolling-images-section {
  display: none;
}

@media (max-width: 768px) {
  .mobile-half-section {
    display: block;
  }
  .scrolling-images-section {
    display: none;
  }
  .mobile-scrolling-images-section {
    display: block;
    height: 200px;
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .heading_image_container {
    justify-content: center;
  }
  .heading_left {
    text-align: center;
    flex: none;
  }
  .heading_right {
    display: none;
  }
  .heading_left_mobile_image {
    display: none;
  }
}
