/* Wellsun Medicity - responsive fixes
   Upload to: httpdocs/assets/css/responsive-fix.css
   Loaded AFTER style.css, so it only adds/overrides; desktop look stays the same. */

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

/* Doctor and blog photos: no stretching */
.book-doctor { object-fit: cover; object-position: top; }
.blog-image img { object-fit: cover; }
.features-img img { width: 100%; height: auto; }

/* Slick sliders: never wider than the screen */
.slick-list { overflow: hidden; }
.slick-slide { box-sizing: border-box; }
.doctor-profile-widget, .browse-widget { max-width: 100%; }

/* YouTube testimonials: were fixed at 400px wide */
.section-specialities iframe {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Tablet and below */
@media (max-width: 991px) {
  .header-top { flex-wrap: wrap; }
  .header-top .left-top ul,
  .header-top .right-top ul { flex-wrap: wrap; }
  .header .brandlogo-image img,
  .menu-logo img { width: auto !important; max-width: 220px; height: auto; }
  .footer-widget { margin-bottom: 24px; }
}

/* Large phones */
@media (max-width: 767px) {
  .header-top .left-top li { display: block; margin: 2px 0; font-size: 13px; word-break: break-word; }
  .section-features .section-header p { font-size: 16px !important; text-align: left !important; }
  .copyright-text, .copyright-menu { text-align: center; }
  .policy-menu { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; }

  /* Side "Book Appointment" tab becomes a bottom bar */
  .icon-bar { top: auto; bottom: 0; left: 0; right: 0; transform: none; }
  .icon-bar a { font-size: 0 !important; padding: 12px; }
  .icon-bar a::after { content: "Book Appointment"; font-size: 16px; font-weight: 600; }
  body { padding-bottom: 50px; }
  #tidio-chat-iframe { bottom: 56px !important; }
}

/* Phones */
@media (max-width: 575px) {
  .section { padding: 40px 0; }
  .section-header h2, .sec-header h2 { font-size: 24px; }
  .header .brandlogo-image img,
  .menu-logo img { max-width: 170px; }

  /* Blue icon strip under the slider */
  section > .container-fluid[style*="14558d"] { min-height: 0 !important; padding-bottom: 12px; }
  section > .container-fluid[style*="14558d"] .mt-4 { margin-top: 12px !important; }
  section > .container-fluid[style*="14558d"] img { height: 32px !important; width: auto !important; }
  section > .container-fluid[style*="14558d"] span { font-size: 11px !important; line-height: 1.2; display: inline-block; }

  .book-doctor { height: 300px !important; }
  .blog-image img { height: 180px !important; }
}
