.hero-community__brand-banner {
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-stone, #e1e1e1);
  box-sizing: border-box;
}

.hero-community__brand-banner img {
  height: 15px; /* Smaller than container height for padding */
  width: auto;
  max-width: 100%;
  display: block;
}
a.pay-my-bill {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight:bold;
}

.community-nav {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-stone, #e1e1e1);
  background-color: #fff;
  z-index: 999;
  position: sticky;
  top:0px;
}

.community-nav__links li {
    flex: 1;
}
.community-nav a:not(a.btn) {
    text-decoration: none;
    color: #333333;
    text-underline-offset: 2px;
    transition: var(--transition-default);
}
.community-nav a:not(a.btn):hover{
  color:#706db2;
  transform: translateY(-2px);
  text-decoration: underline;
}

.hero-community {
  position: relative;
  overflow: hidden;
}

/* Layout: 50/50 split */
.hero-community__row {
  display: flex;
  width: 100%;
  min-height: 640px;
}

/* Right: Hero image section */
.hero-community__media {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  order: 2;
}

/* Individual hero image setup */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.visible {
  opacity: 1;
  z-index: 1;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Left: Text overlay panel */
.hero-community__overlay {
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  order: 1;
  background: #706db2;
  color: #ffffff;
}

/* Content container */
.hero-community__content {
  max-width: calc(700px + 2rem);
  padding: 2.5rem 2rem;
  width: 100%;
  margin-left: auto;
  z-index: 3;
  box-sizing: border-box;
}

.hero-community__excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.hero-community__contact a {
  text-decoration: none;
  color: #ffffff;
}

.hero-community__contact address {
  color: #ffffff;
}

section:is(#care-services,.cards) .card_content {
    max-width: 500px!important;
}

/* Responsive stacking */
@media (min-width: 769px) {
  .community-nav .form-select{display:none}
}
@media (min-width: 1026px) {
  a#cta-map{display:none}
}
@media (min-width: 1051px) {
  .social-fb-desktop{}
  a.btn.social-fb-mobile{display:none}
}
@media (max-width: 1050px) {
  a.btn.social-fb-desktop{display:none}
  .social-fb-mobile{}
}
@media (max-width: 1025px) {
  .small-mobile{display:none!important}
  a#cta-tour{flex: 0 0 100%}
  a#cta-phone,a#cta-map{flex:1}
  a.cta-phone-mobile {
      width: 100%;
  }
}
@media (max-width: 960px) {
  .hero-community__excerpt {
    display: none !important;
  }
  
  .hero-community__row {
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-community__media {
    height: auto;
    order: 1;
  }
  
  .hero-community__media {
    aspect-ratio: 16 / 9; /* Or 16 / 9, depending on what feels best */
    max-height: 60vh;    /* Optional: keeps it from getting too tall */
    overflow: hidden;
    position: relative;
  }
  
  .hero-image.visible {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-community__overlay {
    padding: 2rem 1rem;
    justify-content: center;
    align-items: flex-start;
    position: static;
  }
  
  .hero-community__content {
    max-width: 100%;
    padding: 0;
  }
  
  h1.hero-community__title {
    margin-bottom: 2rem;
  }
  
  p.hero-community__excerpt {
    margin-bottom: 0;
  }
}
@media (max-width: 800px) {
  .community-nav__links{display:none}
  .community-nav .form-select {
      display: inline-block;
      flex: 1;
  }
}
@media (max-width: 768px) {
a.btn.social-fb-mobile{display:none}
}
@media (max-width:550px) {
  .hero-community__brand-banner {
      min-height: 70px;
      justify-content: center;
  }
  .hero-community__brand-banner>div {
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }
  .hero-community__brand-banner .pay-my-bill>img {
      display: none!important;
  }
}