.main-header-menu .sub-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.main-header-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/* animates submenu items */
.main-header-menu .sub-menu li {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.main-header-menu .sub-menu li:hover {
  transform: scale(1.04);
}

/* Fixes the highlight of a submenu icon */
.main-header-menu .sub-menu li:hover i,
.main-header-menu .sub-menu li:hover svg {
  color: #0033A0 !important;  /* Match your theme's blue */
  fill: #0033A0 !important;
  transition: color 0.3s ease, fill 0.3s ease;
}

/* adds drop shadow to menu item 
.main-header-menu a {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
} */

/* IMPLANTS menu item (3rd item) */
.main-header-menu > li:nth-child(3) > a {
  font-weight: bold;
  color: #003366; /* navy */
}

/* RESTORATIVE menu item (4th item) */
.main-header-menu > li:nth-child(4) > a {
  font-weight: bold;
  color: #003366; /* navy */
}

/* Target current or hovered menu item icon */
.sub-menu li.current-menu-item img,
.sub-menu li:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(82%) saturate(4366%) hue-rotate(228deg) brightness(95%) contrast(108%);
}

/* Optional: Add transition for smooth effect */
.sub-menu img {
  transition: filter 0.3s ease;
}


/* Force all submenu icons to respond to hover */
.sub-menu li a:hover img,
.sub-menu li:hover a img,
.sub-menu li.current-menu-item a img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(82%) saturate(4366%) hue-rotate(228deg) brightness(95%) contrast(108%) !important;
}

/* Optional: Add smooth transition */
.sub-menu img {
  transition: filter 0.3s ease;
}

.sub-menu .single-line-item a {
  white-space: nowrap;
  font-size: 14.5px;
  max-width: 700px;
  display: inline-block;
}

/* Widen the full submenu container */
.ast-desktop-header .main-header-menu .sub-menu {
  min-width: 280px !important;
}

/* Target only the first item to prevent text wrap */
.ast-desktop-header .main-header-menu .sub-menu li:first-child a {
  white-space: nowrap !important;
  font-size: 15px;
  display: inline-block;
}

/* Add drop shadow to Astra/Elementor submenu */
.main-header-menu .sub-menu {
  box-shadow: 10px 20px rgba(0, 0, 0, 0);
  border-radius: 8px; /* Optional: smooth corners */
  z-index: 9999; /* Make sure it's above other content */
}

/* Align Jetpack Business Hours in two clean columns */
.jetpack-business-hours__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
}


/* adjust business hours alignment */
.jetpack-business-hours__item dt,
.jetpack-business-hours__item dd {
  display: inline-block;
  width: auto;
  margin: 0;
  white-space: nowrap !important; /* prevent line break */
  font-weight: normal;
}

.jetpack-business-hours__item dd {
  text-align: right;
}


/* Hover effect: shrink logo + title */
.site-branding:hover .custom-logo {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.site-branding:hover .site-title {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  display: inline-block; /* ensures transform works */
}


.custom-directions-button {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #003366;
  border-radius: 32px;
  color: #003366;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin: 0 auto;
}

.widget_custom_html {
  text-align: center;
}