/* ==========================================
   COMPLETE MOBILE RESPONSIVE FIX
   File: public/assets/css/responsive.css
   ========================================== */


/* Global Overflow Fix */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}


/* Bootstrap Row Fix */
.row {
  margin-left: -12px;
  margin-right: -12px;
}


/* Large Screens */
@media (max-width:1199.98px) {

  .hero-content h1 {
    font-size: 3rem;
  }

}


/* Tablet */
@media (max-width:991.98px) {


  /* Navbar */
  .navbar-collapse {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    margin-top: 15px;
  }


  .nav-link {
    padding: 10px 15px !important;
  }

  .navbar-brand {
    font-size: 1.15rem !important;
    gap: 6px !important;
  }

  .navbar-brand img {
    height: 50px !important;
  }


  /* Hero */
  .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }


  .hero-content h1 {
    font-size: 2.6rem;
  }


  .hero-image-wrapper {
    display: block;
    max-width: 450px;
    margin: auto;
  }

  /* Floating Badges */
  .floating-badge {
    display: none;
  }


  /* About */
  .about-image-showcase {
    margin-bottom: 40px;
  }

  /* Clinic section on About Page */
  .about-clinic-image-col,
  .about-clinic-img {
    min-height: 280px !important;
    height: 280px !important;
  }

  .about-clinic-content-col {
    padding: 30px 24px !important;
  }


  /* Appointment */
  .appointment-cta {
    text-align: center;
  }


  .appointment-cta .text-lg-end {
    text-align: left;
    margin-top: 25px;
  }


}



/* Mobile Tablet */
@media(max-width:767.98px) {


  /* Container */
  .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }


  /* Remove row overflow */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }


  [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
  }



  /* Hide floating shapes */
  .hero-shapes,
  .faq-shapes {
    display: none;
  }



  /* Hero */
  .hero-section {
    padding: 90px 0 60px;
  }


  .hero-content h1 {
    font-size: 2.2rem;
  }


  .hero-content p {
    font-size: 1rem;
  }


  .hero-image-wrapper {
    width: 100%;
  }


  .hero-image-wrapper::after {
    display: none;
  }



  /* Floating Badges */
  .floating-badge {
    display: none;
  }



  /* About Images */
  .about-image-showcase {
    padding: 10px;
  }

  .about-trust-badge {
    left: 10px !important;
    top: 10px !important;
  }


  .about-img-frame-1 {
    width: 100%;
  }


  .about-img-frame-2 {
    width: 60%;
    bottom: -10px;
  }



  /* Cards */
  .service-card,
  .doctor-card,
  .blog-card,
  .testimonial-card {
    width: 100%;
  }



  /* Doctor Image */
  .doctor-img-wrapper {
    height: 250px;
  }



  /* Gallery */
  .gallery-item {
    height: 220px;
  }



  /* Testimonial */
  .testimonial-carousel-container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  .testimonial-track {
    width: 100%;
  }

  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
  }



  /* Form */
  .appointment-form-wrapper {
    padding: 25px;
  }



  /* Buttons */
  .btn-custom,
  .btn-outline-custom {
    max-width: 100%;
  }

  /* Footer Copyright */
  .copyright {
    text-align: center;
  }

  .copyright .text-md-end {
    text-align: center !important;
    margin-top: 10px;
  }


}



/* Small Mobile */
@media(max-width:575.98px) {


  .section-title {
    font-size: 1.7rem;
  }

  .navbar-brand {
    font-size: 1.05rem !important;
    gap: 4px !important;
  }

  .navbar-brand img {
    height: 42px !important;
  }

  /* Clinic section on About Page */
  .about-clinic-image-col,
  .about-clinic-img {
    min-height: 220px !important;
    height: 220px !important;
  }

  .about-clinic-content-col {
    padding: 24px 16px !important;
  }


  .hero-content h1 {
    font-size: 1.9rem;
  }


  .counter-value {
    font-size: 2.2rem;
  }



  .appointment-cta {
    padding: 35px 20px;
  }


  .appointment-cta h2 {
    font-size: 1.6rem;
  }



  .doctor-img-wrapper {
    height: 230px;
  }



  .consultation-modal {
    width: 95%;
  }



  .consultation-modal-content {
    padding: 30px 20px;
  }


}



/* Extra Small */
@media(max-width:375px) {


  .hero-content h1 {
    font-size: 1.7rem;
  }


  .btn-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

}

/* Mobile Image Height & Aspect Ratio Controls */
@media (max-width: 991.98px) {
  .featured-blog-img-col {
    min-height: 220px !important;
    height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 575.98px) {
  .featured-blog-img-col {
    min-height: 190px !important;
    height: 190px !important;
    max-height: 190px !important;
  }

  .blog-img-wrapper {
    height: 190px !important;
  }

  .service-img-wrapper {
    height: 180px !important;
  }

  .article-hero {
    max-height: 220px !important;
  }
}

/* Push homepage services cards down on mobile */
@media (max-width: 767.98px) {
  #homepage-services-container {
    margin-top: 30px !important;
  }
}