h1,.hero-community__content h1 {
  font-family: palatino-linotype, sans-serif;
  font-weight: 600;
  font-style: normal;
  margin-top:25px;
}
.hero-community__eyebrow {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 12px;
}
.hero-community__eyebrow span {
    background: #404075;
    color: #ffffff;
    padding: 5px 10px;
}
.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;
    letter-spacing: 1px;
    font-weight:400;
}

.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;
    text-transform: uppercase;
    font-size:16px;
    letter-spacing:1px;
    color: #ffffff;
    text-underline-offset: 2px;
    transition: var(--transition-default);
    font-weight:bold;
}
.community-nav a:not(a.btn):hover{
  color:#ffffff;
  text-decoration: underline;
}

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

/* Layout: 50/50 split */
.hero-community__row {
  display: flex;
  width: 100%;
  min-height: 640px;
  position: relative;
  max-width:1280px;
  margin:0 auto;
}

/* Right: Hero image section */
.hero-community__media {
  position: absolute;
  overflow: hidden;
  order: 2;
  top:0;
  right:0;
  width:65%;
  height:100%;
}

/* 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 {
  width:100%;
  max-width:500px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  order: 1;
  background: #ffffff;
  color: #2c2828;
}

.hero-community__overlay .hero__leaf {
    opacity: .045;
    width: 450px;
    transform: scaleX(-1);
    left: 200px;
}

/* Content container */
.hero-community__content {
  width:100%;
  max-width: 500px;
  padding: 50px 50px 50px 0px;
  margin-left: auto;
  z-index: 3;
  box-sizing: border-box;
}

p.hero-community__excerpt {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  font-style:italic;
}

.hero-community__contact a {
  text-decoration: none!important;
}

.hero-community__contact address {
    color: #2c2828;
    font-style: normal;
    font-size: 16px;
    margin:15px 0px;
}
.hero-community__contact address::before {
  content:'📍';
  font-size:11px;
}
.hero-community__pricing {
    background: #F5F0E8;
    padding: 12px 24px;
    border: 1px solid rgba(92,61,82,0.08);
    border-radius: 6px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}
span.hero-community__pricing-amount {
    font-family: palatino-linotype, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #404075;
}

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

/* Hamburger button -- hidden on desktop */
.community-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.community-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animated X state */
.community-nav__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.community-nav__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.community-nav__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown -- hidden by default */
.community-nav__mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #404075;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.community-nav__mobile-menu.is-open {
    display: block;
}

.community-nav__mobile-menu li a {
    display: block;
    padding: 14px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s ease;
}

.community-nav__mobile-menu li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Make sure nav has position relative for dropdown positioning */
.community-nav {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* 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: 1350px) {
  .hero-community__content{padding:50px 50px 50px 2rem;}
}
@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__overlay{
    padding:1rem 2rem;
    max-width:unset;
  }
  .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 */
    height: auto;
    overflow: hidden;
    position: relative;
    width:100%;
  }
  .hero-community__content{
    max-width:unset;
    padding:0px;
  }
  .hero-image.visible {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-community__row {
      min-height: unset;
  }
}
@media (max-width: 800px) {
  .community-nav #further-sat {
      flex: 1;
  }
  .community-nav .gap-30 {
      gap: 20px;
  }
    .hero-community__brand-banner,.community-nav__links {
        display: none;
    }
    .community-nav__hamburger {
        display: flex;
    }
  .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;
  }
}