@media (min-width: 1400px) {
  .content-width{width: 72%;}
}
@media (max-width: 1200px) {
  .content-width{width: 85%;}
}
@media (max-width: 1024px){
    .wellbeing-banner{
    background-image:url('https://stage.website4md.com/ruralhealth/wp-content/uploads/2026/05/RHN_CTA_Mobile.jpg');
    min-height: 70vh !important;
    background-position: bottom center;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }
  /* Text block — top */
  .wellbeing-banner .col-12:first-of-type {
    justify-content: flex-start;
    margin-top: 0;
  }
  /* Button block — bottom */
  .wellbeing-banner .col-12:last-of-type {
    justify-content: flex-start;
    margin-top: 0;
  }
  .wellbeingbutton-align{align-items: flex-start;}
}
@media (max-width: 991px) {
    .navbar {
        min-height: 74px;
        align-items: center;
    }
    .navbar-nav {
        position: static;
        left: unset;
        transform: unset;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 8px 0;
        gap: 0;
    }
    .navbar-collapse {
        flex-direction: column;
        align-items: center;
        padding-top: 12px;
        padding-bottom: 16px;
    }
    .header-btn-wrap {
        margin: 16px auto 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    section[id] {
    scroll-margin-top: 74px; /* tablet */
  }
}
@media (min-width: 768px) {
  /* Home Page Styles */
.our-values-feature-card:nth-child(3n) {
    border-right: none;
}
.our-values-feature-card:nth-last-child(-n + 3) {
    border-bottom: none;
}
}
@media (max-width: 767px) {
  /* Global Elements */
    .flex-bottom{
        justify-content: start;
    }
    .custom-contact-form .form-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }
    .custom-contact-form {
        padding: 25px 18px;
        border-radius: 18px;
    }
    .custom-contact-form textarea.wpcf7-form-control {
        height: 110px;
}

/* Home Page Styles */
.home-banner{
     background-image:url('https://stage.website4md.com/ruralhealth/wp-content/uploads/2026/05/RHN_Hero_Mobile.jpg');
     min-height: 80vh;
  }
 .our-values-feature-card {
    border-right: none !important;
  }
  .our-values-feature-card:last-child {
    border-bottom: none !important;
  }
  .location-section {
    min-height: unset;
    overflow: visible;
  }
  .desktop-map {
    display: none;
  }
  .mobile-map {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  }
  .mobile-map img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: right;
    display: block;
    transition: opacity 0.45s ease;
  }
   .mobile-map img.fading {
    opacity: 0;
  }
   .location-item {
    border-radius: 10px;
    padding: 1rem 0.25rem;
    transition: background 0.2s ease;
  }
}
@media (max-width:768px){
   .service-list {
    padding-left: 0 !important;
  }
  .service-image img{
    margin-bottom: 30px;
  }
  .testimonialSwiper{padding-bottom: 60px;}
   .testimonial-card{
    min-height:280px;
    padding:20px;
  }
  .footer-col{
  margin-bottom:20px;
  }
   .footer-bottom{text-align: center;}
  .footer-bottom .bottom-links{
  margin-top:15px;
  }
  .footer-bottom a{
  margin:0 10px;
  display:inline-block;
  }
  .header-logo{width: 200px;}
}
@media (max-width: 575px) {
    .navbar {
        min-height: 68px;
    }
    .navbar-brand img {
        width: 120px;
    }
    .header-btn {
        max-width: 220px;
    }
    section[id] {
    scroll-margin-top: 68px; /* mobile */
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .location-section {
    min-height: 60vh;
  }
  .mobile-map {
    display: none;
  }
  .desktop-map {
    display: block;
  }
}