/* 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;
}

/* Philosophy Interactive Video Gallery Styles */
.philosophy-list .video-wrap {
  cursor: pointer !important;
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease !important;
  overflow: hidden !important;
}

.philosophy-list .video-wrap:hover {
  transform: scale(1.02) !important;
  border-color: rgba(43, 13, 57, 0.4) !important;
  /* Soft brand purple glow on hover */
}

.philosophy-list .video-wrap.active-card {
  border-color: #2b0d39 !important;
  /* Highlight brand purple border for the active/selected video */
  box-shadow: 0 8px 24px rgba(43, 13, 57, 0.15) !important;
}

/* Play button custom SVG container reset */
.video-play-btn {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
}

/* Disable the old pseudo-element play button styling from style.css */
.video-play-btn::before,
.video-play-btn::after {
  display: none !important;
  content: none !important;
}

/* Style the inline SVG play icon */
.video-play-btn svg {
  width: 70px;
  height: 70px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.video-play-btn:hover svg {
  transform: scale(1.1);
}

/* Right-side desktop selectors are not players — hide their play overlays */
.desktop-post .philosophy-list .video-play-btn {
  display: none !important;
}

/* Custom sizing for SVG play buttons on smaller playlist cards */
.philosophy-list .video-play-btn svg {
  width: 48px !important;
  height: 48px !important;
}

/* Hidden state for the play overlay (must beat the !important flex rule above) */
.video-play-btn.is-hidden {
  display: none !important;
}

/* Plyr player fills the fixed-ratio video thumb */
.video-thumb .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  --plyr-color-main: #7b2d8b;
}

.video-thumb .plyr__video-wrapper {
  height: 100%;
  padding-bottom: 0 !important;
}

.video-thumb .plyr__video-wrapper video,
.video-thumb .plyr video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure Inner Page Banner displays clear and rectangular without circle/oval clipping on mobile or desktop */
.innerpage-banner,
.innerpage-banner .img-wrap,
.innerpage-banner picture,
.innerpage-banner img {
  border-radius: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  box-shadow: none !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* Philosophy Section 2-Column (Left/Right) Layout */
@media screen and (min-width: 992px) {
  .philosophy-container .desktop-post {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 25px !important;
    align-items: start !important;
  }

  .philosophy-container .philosophy-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}