/* ===== UIS Content Links (Underline Only in Main Body) ===== */
main .text-formatted a,
.node__content .text-formatted a {
  display: inline;
  position: relative;
  text-decoration: none;
  color: #006DE0;
  padding-bottom: 3px;
  background-image: linear-gradient(#006DE0, #006DE0);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  transition: background-size 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* Hover effect */
main .text-formatted a:hover,
.node__content .text-formatted a:hover {
  background-size: 1.25em 3px;
}

/* Keep link color consistent */
main .text-formatted a {
  color: #006DE0;
}

/* ===== EXCLUDE footers, menus, sidebars ===== */
footer a,
.region-footer a,
.site-footer a,
.block-menu a,
nav a {
  background: none !important;
  background-image: none !important;
  background-size: 0 !important;
  text-decoration: none !important;
  border: 0 !important;
}

/* ✅ Safely remove underline from all link types without killing button color */
a.btn,
a.button,
a.wp-block-button__link,
a.column_button,
a.cta,
a.overlay-btn,
a.faq-cta {
  text-decoration: none !important;
  box-shadow: none !important; /* optional cleanup */
  background-image: none !important;
}

/* But restore background color for real buttons */
a.btn,
a.button,
a.wp-block-button__link,
a.column_button,
a.cta,
a.overlay-btn,
a.faq-cta {
  background-color: var(--btn-bg, #0066cc) !important;
  color: var(--btn-text, #fff) !important;
}

a.card-link {
  background-image: none !important;
  background-size: 0 !important;
  text-decoration: none !important;
}

a.jumbo-link {
  background-color: #f1f1f1 !important; /* light gray base */
  color: #003366 !important; /* UIS dark blue text */
  text-decoration: none !important; /* remove underline */
  background-image: none !important; /* cancel underline gradient */
  transition: color 0.3s ease, background-color 0.3s ease !important;
}

a.jumbo-link:hover {
  background-color: #f1f1f1 !important; /* keep same background */
  color: #006DE0 !important; /* bright UIS blue on hover */
  text-decoration: none !important;
  background-image: none !important;
}