/* Responsive: mobile and tablet breakpoints */

@media only screen and (max-width: 767px) {
  .btn {
    padding: 13px 15px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 767px) {
  .line-left {
    left: 15px;
  }

  .line-two {
    display: none;
  }

  .line-four {
    display: none;
  }

  .line-right {
    right: 15px;
  }

  .shape-width-400 {
    max-width: 180px;
  }
}

@media only screen and (max-width: 575px) {
  .line-left {
    left: 15px;
  }

  .line-right {
    right: 15px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .line-two {
    left: 210px;
  }

  .line-four {
    right: 210px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1279px) {
  .line-two {
    left: 255px;
  }

  .line-four {
    right: 255px;
  }
}

@media only screen and (min-width: 1280px) and (max-width: 1439px) {
  .line-two {
    left: 340px;
  }

  .line-four {
    right: 340px;
  }

  .shape-width-400 {
    max-width: 350px;
  }
}

@media only screen and (min-width: 1440px) {
  .header {
    padding: 0 70px;
  }

  .line-left {
    left: 70px;
  }

  .line-two {
    left: 400px;
  }

  .line-four {
    right: 400px;
  }

  .line-right {
    right: 70px;
  }

  .shape-width-400 {
    max-width: 350px;
  }
}

@media only screen and (min-width: 1920px) {
  .main-nav {
    margin-right: 90px;
  }

  .line-two {
    left: 515px;
  }

  .line-four {
    right: 515px;
  }

  .shape-width-400 {
    max-width: 400px;
  }
}

@media only screen and (max-width: 767px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 992px) and (max-width: 1279px) {
  .container,
  .container-2xl,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    width: 90%;
  }
}

@media only screen and (max-width: 575px) {
  .header {
    padding: 0 15px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 1280px) and (max-width: 1439px), only screen and (min-width: 1440px) {
  .offcanvas {
    width: 460px !important;
  }
}

@media only screen and (max-width: 767px) {
  .offcanvas-header {
    margin-bottom: 55px;
  }

  .offcanvas-menu-item {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media only screen and (min-width: 1200px) {
  .menu-toggle-btn {
    display: none !important;
  }
}

@media only screen and (min-width: 1280px) and (max-width: 1439px) {
  .person-image-card-wrap,
  .hero-image.person-image-card-wrap {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
  }

  .hero-section {
    padding-top: 80px !important;
    padding-bottom: 24px !important;
  }
}

@media only screen and (min-width: 1440px) {
  .hero-section {
    padding-top: 80px !important;
    padding-bottom: 24px !important;
  }
}

@media only screen and (max-width: 1199px) {
  .hero-content-col {
    order: 1;
  }

  .hero-image-col {
    order: 2;
  }
}

@media only screen and (min-width: 992px) {
  .hero-row {
    align-items: center;
  }

  .hero-content-col,
  .hero-image-col {
    position: relative;
  }

  .hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media only screen and (max-width: 767px) {
  .hero-section {
    display: block;
    min-height: auto;
    margin-top: -72px;
    padding-top: 90px !important;
    padding-bottom: 28px !important;
  }

  .hero-heading {
    text-align: center;
    margin-bottom: 18px;
    padding-inline: 12px;
  }

  .hero-content {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
    margin-inline: auto;
  }

  .hero-title-clinic {
    font-size: clamp(36px, 10vw, 56px);
    margin-bottom: 10px;
  }

  .hero-title-specialty {
    font-size: clamp(17px, 4.8vw, 26px);
  }

  .hero-arrow-flip {
    margin-top: 18px;
    margin-inline: auto;
  }

  .hero-heading .hero-arrow {
    max-width: 110px;
  }

  .hero-text {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 18px !important;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-image-col {
    margin-top: 0 !important;
  }

  .hero-image.person-image-card-wrap {
    margin-top: 0 !important;
  }

  .hero-photo,
  .doctor-image {
    max-width: min(320px, 88vw);
  }

  .hero-card,
  .image-card,
  .hero-section .person-image-card,
  .hero-image.person-image-card-wrap {
    max-width: min(320px, 88vw);
  }

  html[dir="rtl"] .hero-shape-top {
    left: 16px;
    max-width: 120px;
  }

  html[dir="rtl"] .hero-shape-bottom {
    right: 16px;
    max-width: 120px;
  }

  .brand-logo img,
  .offcanvas-brand img {
    height: 36px;
    max-height: 36px;
    max-width: 150px;
    object-fit: contain;
  }

  .hero-section .person-image-card-wrap,
  .hero-section .person-image-card {
    max-width: min(320px, 88vw);
  }

  .hero-section .person-image-card::before,
  .hero-section .person-image-card::after {
    height: 420px !important;
  }
}

@media only screen and (max-width: 479px) {
  .hero-section .person-image-card::before,
  .hero-section .person-image-card::after {
    height: 340px !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .hero-section {
    padding-top: 80px !important;
    padding-bottom: 24px !important;
  }

  .hero-content {
    padding-inline-start: clamp(20px, 3vw, 40px);
  }
}

@media only screen and (min-width: 992px) and (max-width: 1279px) {
  .hero-section .person-image-card::before,
  .hero-section .person-image-card::after {
    height: 480px !important;
  }
}

@media only screen and (min-width: 1200px) {
  .hero-content-col {
    padding-inline-end: 24px;
  }

  .hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline-start: 16px;
  }
}

@media only screen and (min-width: 1280px) {
  .hero-section .person-image-card::before,
  .hero-section .person-image-card::after {
    height: 580px !important;
  }
}

@media only screen and (max-width: 1024px) {
  .services-stagger-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    gap: 28px 16px;
    padding-top: 18px;
  }

  .services-stagger-group--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-stagger-card {
    min-height: 290px;
  }

  .service-stagger-card--slot-2,
  .service-stagger-card--slot-3 {
    transform: translateY(0);
  }

  .service-stagger-card--featured {
    transform: scale(1.02) translateY(0);
  }

  .articles-slide {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .articles-slide-image {
    padding: 4px;
  }

  .articles-slide-image-frame {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .articles-slide-image-overlay {
    inset: auto;
  }

  .articles-slide-content {
    padding: 4px;
    align-items: stretch;
  }

  .articles-slide-panel {
    padding: 22px;
  }

  .articles-slide-title,
  .articles-slide-excerpt,
  .articles-slide-more {
    max-width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .articles-slide {
    padding: 14px;
    gap: 16px;
  }

  .articles-slide-image-frame {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    padding: 12px;
    border-radius: 24px;
  }

  .articles-slide-image-frame img {
    border-radius: 16px;
  }

  .articles-slide-image-overlay {
    border-radius: 16px;
  }

  .articles-slide-content {
    padding: 2px;
  }

  .articles-slide-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .articles-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .articles-slider-footer {
    gap: 14px;
    margin-top: 18px;
  }

  .articles-slide-btn-tooth {
    width: 50px;
    height: 50px;
    inset-inline-end: -20px;
  }

  .article-page-section {
    padding-top: 96px;
  }
}

@media only screen and (max-width: 767px) {
  .services-stagger-group {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 12px;
    min-height: auto;
  }

  .service-stagger-card:not(.service-stagger-card--featured) {
    display: none;
  }

  .services-stagger-group--compact .service-stagger-card {
    display: flex;
  }

  .service-stagger-card--featured {
    transform: none;
    min-height: auto;
  }

  .services-stagger-group--compact .service-stagger-card {
    transform: none;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-stagger-card,
  .service-stagger-icon {
    transition-duration: 0.01ms !important;
  }

  .articles-slide-btn-tooth {
    animation: none;
    transform: translateY(-50%);
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
