@media (max-width: 1199.98px) {
  .offcanvas .nav-link {
    font-size: 8px;
  }
}
@media (max-width: 991px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }
  .offcanvas .nav-link {
    font-size: 13px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .badge-1 {
    right: 0;
    top: 50%;
  }
  .badge-2 {
    left: 0;
    bottom: 5%;
  }
  .offcanvas {
    max-width: 272px;
  }
  .heroSwiper .swiper-slide {
  min-height: calc(100vh - 88px);  
  align-items: flex-start;
  padding: 100px 0 60px;
}
.usecase-card {
  padding: 16px 10px;
}
}

@media (max-width: 768px) {
  .diagnosis-wrapper {
    min-height: auto;
  }

  .diagnosis-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 40px;
    width: 140px;
    height: 140px;
  }

  .diagnosis-item {
    position: relative;
    width: 300px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
    padding: 14px;
    margin-left: auto;
    margin-right: auto;
    top: unset;
    right: unset;
    left: unset;
    bottom: unset;
    transform: translate(0, 0) !important;
  }

  .diagnosis-line {
    display: none;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(5, 107, 163, 0.04);
    height: 100%;
  }
  .process-step p {
    font-size: 11px;
  }
  .spacer-y {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .grid-item {
    margin-bottom: 16px;
  }

  /* Gallery 2-columns on tablet */
  .gallery-grid {
    column-count: 2;
  }

  /* Contact form card padding */
  .contact-form-card {
    padding: 28px 20px;
  }

  .clinic-footer {
    text-align: center;
  }
  .footer-heading {
    justify-content: center;
  }
  .footer-heading::after {
    display: none;
  }
  .footer-links1 {
    max-width: 134px;
    margin: 0 auto;
  }
  .footer-links2 {
    max-width: 150px;
    margin: 0 auto;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .flotingExper {
    margin-right: -11px !important;
  }

  .flotingExperBox{
    padding:16px 20px;
  }

  .flotHead{
    font-size:24px;
  }

  .flotText{
    font-size:10px;
  }

  /* Mobile Swiper: hide grid, show swiper */
  #servicesGrid {
    display: none !important;
  }
  .services-mobile-swiper-wrap {
    display: block;
  }

  /* Filter bar mobile tweaks for swiper context */
  .filter-bar {
    gap: 8px;
    margin-bottom: 32px;
  }

  /* Video gallery: hide grid, show swiper on mobile */
  .video-gallery-grid {
    display: none !important;
  }
  .video-mobile-swiper-wrap {
    display: block;
  }
}

@media (max-width: 575px) {
  .heroSwiper .swiper-slide {
    padding: 100px 0 60px;
    align-items: flex-start;
  }

  .hero-badge {
    padding: 10px 14px;
    gap: 8px;
  }

  .hero-badge .badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-badge .badge-text strong {
    font-size: 0.75rem;
  }

  .hero-badge .badge-text span {
    font-size: 0.65rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .spacer-y {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .btn-gradient {
    padding: 12px 28px;
    font-size: 0.88rem;
  }

  .fab-container {
    bottom: 16px;
    right: 16px;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  /* Gallery Masonry - single column on mobile */
  .gallery-grid {
    column-count: 1;
  }

  /* Timeline mobile adjustments */
  .timeline-wrapper {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -21px;
    width: 12px;
    height: 12px;
  }

  /* Emergency strip stacked on mobile */
  .emergency-strip {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  /* Map smaller on mobile */
  .map-container iframe {
    height: 280px;
  }

  /* WhatsApp toast mobile */
  .wa-toast {
    right: 16px;
    bottom: 80px;
    font-size: 0.82rem;
    padding: 12px 20px;
  }
  .contact-info-card {
    padding: 20px 16px;
  }
  .assoc-badge {
    padding: 18px;
  }
  .filter-btn {
    width: 48%;
    font-size: 10px;
    padding: 8px 16px;
  }
  .certificate-box{
  max-width: 128px;
  height: 100%;
}

  /* Video cards smaller play button on small screens */
  .video-card-play {
    width: 48px;
    height: 48px;
  }
  .video-card-play iconify-icon {
    font-size: 1.3rem;
  }
  .video-card-body {
    padding: 16px 18px;
  }
  .video-card-body h5 {
    font-size: 0.92rem;
  }
  .video-card-body p {
    font-size: 0.8rem;
  }
}
