/* Fix overlap between emergency (108) button and floating share button */
.sticky-btn {
  top: calc(35% + 110px) !important;
}

/* Professional slide-in and fade transition for sticky social icons (from Left side) */
.sticky-icon {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  left: 0 !important;
  right: auto !important;
  top: 50% !important;
  width: 220px;
  flex-direction: column;
  transform: translate(-100%, 0) !important;
  /* Slide out to the left */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.sticky-icon.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(0, 0) !important;
  /* Slide in from the left */
}

/* Adjust border radius for left-side alignment */
.sticky-icon a {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.sticky-icon a:first-child {
  border-top-right-radius: 15px !important;
}

.sticky-icon a:last-child {
  border-bottom-right-radius: 15px !important;
}

/* Increase SVG icon size inside the social menu for better visibility */
.sticky-icon a svg {
  height: 28px !important;
  width: 28px !important;
  margin-right: 12px !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
}

/* Reduce extra top space and balance padding on About Suryoday Section */
.about-suryoday-section {
  padding: 60px 0 !important;
}

/* Style footer contact block and cards globally to prevent text overflow and look professional in dark mode */
#site-footer .download-app-button {
  width: 100% !important;
  max-width: 310px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  float: none !important;
  background-color: rgba(255, 255, 255, 0.03) !important; /* Premium semi-transparent dark background */
  border: 1px solid rgba(255, 255, 255, 0.15) !important; /* Elegant thin border */
  box-shadow: none !important; /* Remove heavy shadow */
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

#site-footer .download-app-button:hover {
  background-color: rgba(255, 255, 255, 0.08) !important; /* Hover glow */
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#site-footer .download-app-button span {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  color: #ffffff !important; /* Pure white text for legibility */
}

@media (min-width: 768px) {
  /* Distribute footer block widths: first 4 are 18%, 5th (Get in Touch) is 28% to fit in one row */
  #site-footer .footer-block {
    width: 18% !important;
    flex: 0 0 18% !important;
  }
  
  #site-footer .footer-block.add-download-block {
    width: 28% !important;
    flex: 0 0 28% !important;
    text-align: left !important;
    display: block !important;
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  #site-footer .footer-block.add-download-block .app-download-header {
    margin-bottom: 15px !important;
  }

  #site-footer .download-app-button {
    margin: 8px 0 0 0 !important; /* Stacked, left-aligned on desktop */
  }
}

@media (max-width: 767px) {
  .about-suryoday-section {
    padding: 30px 0 !important;
  }

  #site-footer .footer-block.add-download-block {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #site-footer .download-app-button {
    margin: 8px auto 0 auto !important; /* Centered on mobile */
  }

  /* Hide duplicate small social icons at the bottom in mobile view */
  #site-footer .footer-bottom .social-links {
    display: none !important;
  }
}

/* Hide duplicate emergency call button from the footer */
#site-footer .emergency-call-button {
  display: none !important;
}

/* Hide the small duplicate social links globally in all views */
#site-footer .social-links,
#site-footer .footer-bottom .social-links {
  display: none !important;
}

/* Reduce excessive top padding on Our Hospital section */
.hospital-section.py-50 {
  padding-top: 15px !important;
}

@media (max-width: 767px) {
  .hospital-section.py-50 {
    padding-top: 5px !important;
  }
}

/* Premium Dark Footer in Brand Theme Colors */
#site-footer {
  background-color: #2b0d39 !important; /* Deep brand purple */
  color: rgba(255, 255, 255, 0.8) !important;
  border-top: 4px solid #a35cc4 !important; /* Brand purple separator line */
  padding-top: 60px !important;
}

#site-footer .footer-block .block-title {
  color: #ffffff !important;
}

#site-footer .footer-links li {
  color: rgba(255, 255, 255, 0.8) !important;
}

#site-footer .footer-links li a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease !important;
}

#site-footer .footer-links li a:hover {
  color: #faa404 !important; /* Brand gold hover */
}

#site-footer .add-download-block p {
  color: rgba(255, 255, 255, 0.8) !important;
}

#site-footer .app-download-header h4 {
  color: #ffffff !important;
}

/* Footer bottom copyright and links */
#site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 25px !important;
  margin-top: 40px !important;
}

#site-footer .copyright {
  color: rgba(255, 255, 255, 0.6) !important;
}

#site-footer .copyright p {
  color: rgba(255, 255, 255, 0.6) !important;
}

@media (max-width: 991px) {
  #site-footer .footer-block .block-title {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }
  #site-footer .footer-block .block-title:after {
    border-color: #ffffff !important;
  }
}

/* Homepage Testimonial Slider Styles */
.homepage-testimonials-section {
  padding: 20px 0 10px 0 !important;
  background-color: #f6f6f6 !important;
}

.homepage-testimonial .testimonial-box {
  position: relative !important;
  border: 1px solid #eee !important;
  border-radius: 20px !important;
  background-color: #fff !important;
  padding: 30px !important;
  margin: 15px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.homepage-testimonial .testimonial-box::before {
  content: "“" !important;
  position: absolute !important;
  top: 15px !important;
  right: 25px !important;
  font-size: 80px !important;
  font-family: Georgia, serif !important;
  color: rgba(163, 92, 196, 0.15) !important; /* Elegant semi-transparent brand purple */
  line-height: 1 !important;
}

.homepage-testimonial .testimonial-box:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.homepage-testimonial .testimonial-box .rating-stars {
  font-size: 20px !important;
  margin-bottom: 15px !important;
  letter-spacing: 2px !important;
}

.homepage-testimonial .testimonial-box .testimonial-text {
  font-size: 16px !important;
  color: #58595b !important;
  line-height: 1.6 !important;
  font-style: italic !important;
  margin-bottom: 25px !important;
}

.homepage-testimonial .testimonial-box .avatar {
  display: flex !important;
  align-items: center !important;
}

.homepage-testimonial .testimonial-box .avatar img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #a35cc4 !important; /* Brand purple border */
}

.homepage-testimonial .testimonial-box .avatar .avatar-caption {
  padding-left: 20px !important;
}

.homepage-testimonial .testimonial-box .avatar .avatar-caption h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #2b0d39 !important; /* Brand deep purple */
  margin: 0 0 5px 0 !important;
}

.homepage-testimonial .testimonial-box .avatar .avatar-caption span {
  font-size: 14px !important;
  color: #a35cc4 !important; /* Brand lighter purple */
  font-weight: 500 !important;
}

/* Slick Custom Arrows matching home styles */
.homepage-testimonials-section .slick-custom-arrow {
  margin-top: 20px !important;
  text-align: center !important;
}

.homepage-testimonials-section .slick-custom-arrow button {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  width: 45px !important;
  height: 45px !important;
  margin: 0 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
}

.homepage-testimonials-section .slick-custom-arrow button:hover {
  background: #2b0d39 !important;
  border-color: #2b0d39 !important;
}

.homepage-testimonials-section .slick-custom-arrow button:hover svg path {
  fill: #fff !important;
}

/* Equal-height sliders flex-shrink fix to prevent slides from squeezing/shrinking */
.eqslides-height .slick-track .slick-slide {
  flex-shrink: 0 !important;
}