/* Dropdown menu items (default state) */
.ast-desktop .main-header-menu .sub-menu a {
  color: #ffffff !important;
  background-color: #145263 !important;
}

/* Dropdown menu items (hover and focus) */
.ast-desktop .main-header-menu .sub-menu a:hover,
.ast-desktop .main-header-menu .sub-menu a:focus {
  color: #ffffff !important;
  background-color: #2187A3 !important;
}

/* Remove border and shadow around dropdown */
.ast-desktop .main-header-menu .sub-menu {
  border: none !important;
  box-shadow: none !important;
}

/* Reduce spacing between menu items and hover underline */
.ast-desktop .main-header-menu > li > a {
  padding-bottom: 1px !important;
  line-height: 1.0 !important;
}

/* Make only primary menu items bold */
.ast-desktop .main-header-menu > li > a {
  font-weight: 700 !important;
}

/* Keep dropdown (submenu) items normal weight */
.ast-desktop .main-header-menu .sub-menu a {
  font-weight: 400 !important;
}

/* Bold the "Navigation" widget title */
.footer-widget-area .widget_nav_menu .widget-title {
  font-weight: 700 !important;
}

/* Third-level submenu color only */
.main-header-menu ul.sub-menu ul.sub-menu > li > a {
  background-color: #8CC53F !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Hover effect */
.main-header-menu ul.sub-menu ul.sub-menu > li > a:hover {
  background-color: #B3D981 !important;
  color: #ffffff !important;
}

/* Tiled gallery layout */
.tiled-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1600px;
  padding: 0 40px;
	padding-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Title above social links */
.footer-social-title {
  font-family: inherit;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #2e3c39;
  padding: 0;
}

/* Optional: also add spacing for sub-menu items */
.site-footer .widget_nav_menu ul ul li {
  margin-bottom: 6px;
  padding-left: 10px;
}

/* 3. Match Mailing Address title font to Navigate and Connect */
.widget_block h2:contains("Mailing Address"),
.widget_block h3:contains("Mailing Address"),
.widget_block h4:contains("Mailing Address") {
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: inherit !important;
  line-height: 1.3;
}

/* Match font and size to Navigate */
.wp-block-uagb-advanced-heading.uagb-block-ea2659c0 {
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: inherit !important;
  line-height: 1.3 !important;
}


/* Style the "Connect" footer heading */
.footer-social-title {
  text-align: left !important;   /* align text to the left */
  margin-top: 29px !important;   /* add space above */
  margin-bottom: 0px !important; /* add space below */
	margin-left: 60px !important;
}



/* === Two rows of two social icons === */
.footer-social-inner-wrap.element-social-inner-wrap.social-show-label-false.ast-social-color-type-custom.ast-social-stack-none.ast-social-element-style-filled {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr); /* 2 icons per row */
  gap: 50px; /* even spacing between icons */
  justify-items: center; /* center icons horizontally within each grid cell */
  align-items: center; /* align vertically */
  width: 50%; /* ensure full width for proper spacing */
}



@media (max-width: 768px) {
  .site-header .custom-logo-link,
  .site-header .site-logo,
  .site-header .logo {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 15px !important;
    padding-right: 12px !important;
  }
}