:root {
  --primary: #7b584f;
  --bg-light-yellow: #fcf5db;
  --yellow-dark: #edc447;
}

.hospital_main {
  padding-top: 40px;
}

.yellow-bg {
  background-color: var(--yellow-dark);
}

.yellow-bg-light,
.team_profile_main {
  background-color: var(--bg-light-yellow);
}

.brown-bg {
  background-color: var(--primary);
}

.post-slide {
  background: #fff;
  margin: 20px 15px 20px;
  border-radius: 15px;
  padding-top: 1px;
  /* box-shadow: 0px 14px 22px -9px #bbcbd8; */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-slider-main .post-slide {
  margin: 20px 5px 20px;
}

.post-slide:hover {
  transform: translateY(-6px); /* subtle upward move */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); /* soft depth */
}

.post-slide .post-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.post-slide .post-img img {
  width: 100%;
  height: auto;
  transform: scale(1, 1);
  transition: transform 0.2s linear;
}

.post-slide:hover .post-img img {
  transform: scale(1.1, 1.1);
}

.post-slide .post-content {
  background: #fff;
  padding: 10px 20px 0px;
  border-radius: 15px;
}

.post-slide .post-content h3 {
  font-size: 25px;
}

.post-slide .post-address {
  padding: 10px 20px 30px;
}

.owl-controls .owl-buttons {
  text-align: center;
  margin-top: 20px;
}

.owl-controls .owl-buttons .owl-prev {
  background: #fff;
  position: absolute;
  top: -13%;
  left: 15px;
  padding: 0 18px 0 15px;
  border-radius: 50px;
  box-shadow: 3px 14px 25px -10px #92b4d0;
  transition: background 0.5s ease 0s;
}

.owl-controls .owl-buttons .owl-next {
  background: #fff;
  position: absolute;
  top: -13%;
  right: 15px;
  padding: 0 15px 0 18px;
  border-radius: 50px;
  box-shadow: -3px 14px 25px -10px #92b4d0;
  transition: background 0.5s ease 0s;
}

.owl-controls .owl-buttons .owl-prev:after,
.owl-controls .owl-buttons .owl-next:after {
  content: "\f104";
  font-family: FontAwesome;
  color: #333;
  font-size: 30px;
}

.owl-controls .owl-buttons .owl-next:after {
  content: "\f105";
}

.teams-card-sec .team-card,
.team-slider-main .team-card {
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.teams-card-sec .team-card:hover {
  transform: translateY(6px); /* moves down slightly */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* optional soft shadow */
}

.cont_social li {
  /* background-color: var(--yellow-dark); */
  margin: 0px 5px;
  padding: 5px 10px;
  border-radius: 5px;
}

.team-card .cont_desig h5 {
  font-size: 18px;
}

.team-card .cont_desig p {
  font-size: 12px;
  line-height: 14px;
  margin-bottom: 0px;
}

/* Gallery Page */

.gallery_main .gallery_card {
  border-radius: 12px; /* adjust as needed */
  overflow: hidden; /* VERY IMPORTANT */
  position: relative;
}
.gallery_main .gallery-img {
  position: relative;
  overflow: hidden;
}

/* Image */
.gallery_main .gallery-img img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

/* Overlay */
.gallery_main .gallery-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #7b584f 0%, #7b584f54 50%);

  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;

  z-index: 1; /* BELOW title */
}

/* Title always visible */
.gallery_main .gallery_title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2; /* ABOVE overlay */
}

.gallery_main .gallery_title h3 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Hover effect */
.gallery_main .gallery_card .gallery-overlay {
  transform: translateY(0);
}

.gallery_main .gallery_card:hover .gallery-img img {
  transform: scale(1.05);
}

.single_gallery_page .sub_gallery_head h4 {
  background-color: var(--bg-light-yellow);
  width: fit-content;
  text-align: center;
  padding: 10px 20px;
  border-radius: 27px;
  margin-bottom: 20px;
}

.single_gallery_page .gallery_img_naad img {
  display: block;
  width: 100%;
  border-radius: 20px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* Hover Effect */
.single_gallery_page .gallery_img_naad:hover img {
  transform: translateY(-6px); /* Subtle upward movement */
}

.team_profile_main {
  padding-top: 200px;
  padding-bottom: 50px;
}

.team_profile_main .team_member_title h1 {
  font-size: 42px;
}

.team_cont_social ul li a {
  padding: 10px 10px;
  border: 1px solid var(--primary);
  margin: 0px 10px;
  border-radius: 10px;
  font-size: 20px;
  transition:
    background-color 0.3s ease,
    border 0.3s ease;
}

.team_cont_social ul li a i {
  color: #7b584f;
}

.team_cont_social ul li a:hover {
  background-color: var(--yellow-dark);
  border: 1px solid var(--yellow-dark);
}

.team_profile_main .team_member_img img {
  border-radius: 20px;
}

.footer_naad_main ul {
  list-style: none;
}

.footer_naad_main ul li a svg {
  width: 15px;
}

@media only screen and (max-width: 1280px) {
  .post-slide .post-content {
    padding: 0px 15px 0px 15px;
  }

  .post-slide .post-address {
    padding: 0px 15px;
  }
}
