/* Desktop nav centering */
.WaGadgetMenuHorizontal .menuInner {
  display: flex;
  justify-content: center;
}

.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
  display: flex;
  justify-content: space-between;
  width: 50%;
}

/* Fix desktop submenu alignment and color */
.WaGadgetMenuHorizontal ul.secondLevel {
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
  background-color: #2e9e52 !important; /* match your green */
}

.WaGadgetMenuHorizontal ul.secondLevel li a {
  color: white !important;
  text-align: left !important;
}

/* 4-column image gadget section - scoped to Events page flyers only */
#id_isFUB5K .gadgetContentEditableArea p img {
  width: 100% !important;
  height: 300px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#id_isFUB5K .gadgetStyleBody {
  height: 300px !important;
  overflow: hidden !important;
}

/* Hover effect - sitewide */
.gadgetContentEditableArea p img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gadgetContentEditableArea p img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}



/* Transparent background - all banner headers sitewide */
h1.promo {
  background-color: rgba(0, 0, 0, 0.45) !important;
  padding: 5px 20px !important;
  border-radius: 6px;
  display: inline-block;
}

/* Mobile nav */
@media (max-width: 768px) {
  .WaGadgetMenuHorizontal {
    display: none !important;
  }
  .WaGadgetMenuHorizontal.mobile-open {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  .WaGadgetMenuHorizontal.mobile-open ul.firstLevel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .WaGadgetMenuHorizontal.mobile-open ul.firstLevel li {
    width: 100% !important;
    text-align: center !important;
  }
  .WaGadgetMenuHorizontal.mobile-open ul.firstLevel li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #eee !important;
  }

  /* Mobile submenu fix */
  .WaGadgetMenuHorizontal.mobile-open ul.secondLevel {
    position: static !important;
    width: 100% !important;
    text-align: center !important;
    left: auto !important;
    right: auto !important;
    background-color: #2e9e52 !important;
  }
  .WaGadgetMenuHorizontal.mobile-open ul.secondLevel li {
    width: 100% !important;
    text-align: center !important;
  }
  .WaGadgetMenuHorizontal.mobile-open ul.secondLevel li a {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 !important;
    padding-left: 20px !important;
    border-bottom: 1px solid #1e7a3e !important;
    color: white !important;
  }

  .hamburger-toggle {
    display: block !important;
  }

  /* Mobile header text */
  h1.promo {
    font-size: 28px !important;
    line-height: 36px !important;
    padding: 4px 12px !important;
    display: inline-block;
  }
  h1.promo font,
  h1.promo span,
  h1.promo strong {
    font-size: 28px !important;
    line-height: 36px !important;
  }
  h1.promo em font,
  h1.promo em span {
    font-size: 20px !important;
    line-height: 28px !important;
  }
}

@media (min-width: 769px) {
  .hamburger-toggle {
    display: none !important;
  }
}


/* Mobile headline gadget fix - scoped to mobile only */
.WaGadgetHeadline .gadgetContentEditableArea p font,
.WaGadgetHeadline .gadgetContentEditableArea p strong {
  font-size: 24px !important;
  line-height: 32px !important;
}

.WaGadgetHeadline .gadgetContentEditableArea p {
  line-height: 32px !important;
  white-space: nowrap !important; /* prevents bullet line from wrapping */
  font-size: 24px !important;
}

/* Force desktop headline size back */
@media (min-width: 769px) {
  .WaGadgetHeadline .gadgetContentEditableArea p font,
  .WaGadgetHeadline .gadgetContentEditableArea p strong {
    font-size: 60px !important;
    line-height: 54px !important;
  }
  .WaGadgetHeadline .gadgetContentEditableArea p {
    line-height: 54px !important;
  }
}


