/* ================= Popup Banner ================= */
#popup-banner {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  padding: 20px;
  background-color: #d7f8f0;
  color: #1c6272;
  font-size: 16px;
  text-align: center;
  border: 2px solid #a9f8f0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: block;
}

#popup-banner .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #1c6272;
  cursor: pointer;
}

.image-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 6px;
}

.rotating-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #d7f8f0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rotating-image.active {
  opacity: 1;
  z-index: 1;
}

/* ================= Fixed Left Banner ================= */
.fixed-left-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 10vw;
  height: 100vh;
  background-color: transparent;
  z-index: 9999;
  overflow-y: auto;
}

.fixed-left-banner img {
  width: 100%;
  height: calc(100vh / 3);
  object-fit: contain;
  display: block;
}

.page-content {
  margin-left: 10vw;
  padding: 0;
}

@media (max-width: 768px), (max-width: 576px) {
  .fixed-left-banner {
    display: none;
  }
  .page-content {
    margin-left: 0;
  }
}

/* ================= Slider ================= */
.slider-detail {
  width: 100vw;
  overflow: hidden; 
	margin-top: 0 !important;
  background-color: transparent;
}

.slider-detail .carousel-inner {
  width: 100%;
  height: auto;
}

.slider-detail .carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .slider-detail .carousel-item img {
    height: 280px;
  }
}

/* ================= Testimonials ================= */
.testimonial-card {
  transition: all 0.4s ease;
  transform: scale(1);
  z-index: 1;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  max-height: 420px;
  overflow: visible;
}

.testimonial-card:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  background-color: #ffffffee;
  border: 1px solid #0d6efd33;
}

.testimonial-card img {
  transition: transform 0.3s ease-in-out;
}

.testimonial-card:hover img {
  transform: scale(1.1);
}

.testimonial-card .card-body {
  transition: all 0.3s ease;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================= Gallery Slider ================= */
.gallery-swiper .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.gallery-swiper .swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-swiper .swiper-slide img:hover {
  transform: scale(1.05);
}

/* Lightbox Styles */
#lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  border: 3px solid #fff;
}

/* ================= Back to Top ================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 15px;
  font-size: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #0a58ca;
  cursor: pointer;
}

/* ================= Tooltip for Testimonials ================= */
.photo-tooltip-wrapper {
  position: relative;
}

.chat-tooltip-bubble-right {
  display: none;
  position: absolute;
  top: 0;
  left: 110%;
  background: #f1f9ff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 240px;
  max-width: 280px;
  border: 1px solid #cce5ff;
  font-size: 0.9rem;
  white-space: normal;
}

.chat-tooltip-bubble-right::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent #f1f9ff transparent transparent;
}

.photo-tooltip-wrapper:hover .chat-tooltip-bubble-right {
  display: block;
}

/* ================= Navigation Menu ================= */
.main-menu,
.main-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-menu {
  background-color: #1c6272;
  display: flex;
  flex-wrap: wrap;
}

.main-menu > li {
  position: relative;
  display: inline-block;
  margin-right: 0;
}

.main-menu li a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  background-color: #1c6272;
  border-right: 1px solid #0d4d5c;
}

.main-menu li:last-child a {
  border-right: none;
}

.main-menu li a:hover {
  background-color: #0d4d5c;
  color: #ffeb3b;
}

.main-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: #0d4d5c;
  z-index: 999;
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.main-menu li:hover > ul {
  display: block;
}

.main-menu li ul li {
  display: block;
}

.main-menu li ul li a {
  color: #ffffff;
  padding: 10px 15px;
}

.main-menu li ul li a:hover {
  background-color: #197b8c;
  color: #fff;
}

/* =========== Mobile Menu Toggle =========== */
.main-navbar {
  background-color: #1c6272;
  padding: 10px 20px;
  position: relative;
	 margin-bottom: 0 !important;
}

.menu-toggle {
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

@media (max-width: 991.98px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    background-color: #1c6272;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  .main-menu.show {
    display: flex;
  }

  .main-menu > li {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-menu li ul {
    position: static;
    display: none;
    background-color: #0d4d5c;
  }

  .main-menu li:hover > ul {
    display: block;
  }

  .page-content {
    margin-left: 0;
  }
}

/* ================= Key Features Enhancements ================= */
.key-features .single-key {
  min-height: auto;
  max-height: 360px;
  padding: 20px !important;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.key-features .single-key:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.key-features i {
  font-size: 1.8rem !important;
  margin-bottom: 8px;
}

.key-features h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.key-features .text-maroon {
  color: #800000;
}

.tip-ticker-wrapper,
.news-ticker-wrapper {
  max-height: 100px;
  overflow: hidden;
}

.tip-ticker li,
.clinic-list li {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.key-features .clinic-schedule {
  max-height: 150px;
  overflow-y: auto;
}

.key-features .clinic-schedule .day-nav button {
  background-color: #d2691e;
  color: white;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  margin: 2px;
  cursor: pointer;
  font-size: 0.9rem;
}

.key-features .clinic-schedule .day-nav .active {
  background-color: #a0522d;
  font-weight: bold;
}

.img-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}


/* Health Tips auto-scroll */
.tip-ticker {
  list-style: none;
  animation: ticker 10s linear infinite;
  padding-left: 0;
  margin: 0;
}

@keyframes ticker {
  0% { transform: translateY(0%); }
  100% { transform: translateY(-100%); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
