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

/* ✅ 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;
}

main .text-formatted a.card-link,
main .text-formatted a.advanced-card-link,
main .text-formatted a.acard-link {
  background-image: none !important;
  background-size: 0 !important;
  padding-bottom: 0 !important;
  transition: none !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;
}

/* Force Theme 2 dropdown hover to stay white text on dark blue background */
#primary_nav_wrap > ul > li > ul > li:hover > a,
#primary_nav_wrap > ul > li > ul > li:hover > span {
  background-color: var(--t2-blue) !important;
  color: #fff !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;
}

/* === FIX UIS BLOCK BUTTON HOVER === */
.wp-block-button__link,
a.column_button {
  display: inline-block !important;
  text-decoration: none !important;
  padding: 16px 26px !important;
  margin: 8px 0 !important;
  border-radius: 4px !important;
  background-color: #0066cc !important; /* dark UIS blue base */
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* ✅ UIS hover: gold background, white text stays */
.wp-block-button__link:hover,
a.column_button:hover {
  background-color: #003366 !important; 
  color: #ffffff !important;            
  text-decoration: none !important;
}

/* === UIS Underline Animation — Content Links Only === */
.node__content a:not(.btn):not(.button):not(.cta):not(.overlay-btn):not(.faq-cta):not(.card-btn):not(.menu__link):not(nav a):not(.block-menu a):not(header a):not(footer a) {
  display: inline;
  position: relative;
  text-decoration: none;

  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 animation — UIS established style */
.node__content a:hover:not(.btn):not(.button):not(.cta):not(.overlay-btn):not(.faq-cta):not(.card-btn):not(.menu__link):not(nav a):not(.block-menu a):not(header a):not(footer a) {
  background-size: 1.25em 3px;
}

/* === Fix: Remove underline from image-only links (e.g. profile sliders) === */
.node__content a:has(img) {
  background: none !important;
  background-image: none !important;
  background-size: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  text-decoration: none !important;
  transition: none !important;
}

/* Restore "Online Office Hours" button */
.btn a {
  background: #0074DA;
  color: #fff;
  border-radius: 3px;
  padding: 15px 30px 10px;
  font-size: 1.3em;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  box-shadow: inset 2px 2px 2px rgba(255,255,255,0.5),
              2px 2px 2px rgba(0,0,0,0.1),
              4px 4px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Hover color — restore green/gold effect */
.btn a:hover {
  background-color: #16cc5c;
  color: #fff;
}

/* Prevent underline animation */
.btn a {
  background-image: none !important;
  padding-bottom: 0 !important;
}

/* Adjust spacing between heading and button */
.header-wrapper .header-txt {
  margin-bottom: 1em;
}
