:root {
  --primary-color: #081e3f; /* FIU Blue */
  --secondary-color: #b6862c; /* FIU Gold */
}

body {
  overflow-x: hidden;
}

.rounded {
  border-radius: 0.25rem !important;
}

/* Keep nav labels on one line — six items plus the CTA is a tight fit */
.navbar .nav-link,
.navbar .btn {
  white-space: nowrap;
}

/*=========================
  SECTION SPACING UTILITIES
=========================*/
.section--tight-top {
  padding-top: 4rem !important;
}

.section--tight-bottom {
  padding-bottom: 3.5rem !important;
}

/*=========================
  SERVICE CARDS
=========================*/
/* Flex rather than auto-fit grid: with five cards an auto-fit grid packs
   four across and strands the fifth. Three per row centres the last two. */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.service-card {
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 240px;
  background: #fff;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 991.98px) {
  .service-card {
    flex-basis: calc(50% - 0.75rem);
  }
}

@media (max-width: 575.98px) {
  .service-card {
    flex-basis: 100%;
  }
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  flex: 0 0 auto;
}

/* Title case, not uppercase: these labels run to three lines, and
   letter-spaced caps are markedly slower to read at that length. */
.service-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.45;
  max-width: 20rem;
}

/*=========================
  PARTNER LOGO GRID
=========================*/
.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.partner-tile {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 0.25rem;
  min-height: 120px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-tile img {
  max-width: 100%;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/*=========================
  CLIENT SUCCESS CARDS
=========================*/
.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.client-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.client-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f3f5;
}

.client-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-card__body {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 1.25rem;
  margin-top: auto;
}

.client-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0;
}

.client-card__cue {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06rem;
  color: #cfd5de;
}

.client-card__link:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/*=========================
  NEWS LINK LIST
=========================*/
.news-group__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.news-group__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 4px;
  background-color: var(--secondary-color);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  border-bottom: 1px solid #e3e6ea;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  display: block;
  padding: 0.9rem 0;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
}

.news-list a:hover,
.news-list a:focus {
  text-decoration: underline;
}

/*=========================
  GOLD BUTTON CONTRAST
  White on FIU gold is only 3.26:1 (fails WCAG AA), and the lighter
  gold hover state drops to 2.50:1. FIU blue on gold reaches 5.08:1 at
  rest and 6.62:1 on hover — both pass AA — using only FIU colors.
=========================*/
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: var(--primary-color) !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  font-weight: 700;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  /* lighter gold raises the ratio with blue text to 6.62:1 */
  color: var(--primary-color) !important;
  background-color: var(--secondary-color-light) !important;
  border-color: var(--secondary-color-light) !important;
}

/* Visible keyboard focus on every button, on light and dark backdrops */
.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--primary-color);
}

.bg-white .btn:focus-visible,
.bg-light .btn:focus-visible {
  outline-color: var(--primary-color);
  box-shadow: 0 0 0 6px #ffffff;
}

/* Main call-to-action button — a step larger than the standard .btn */
.btn-give {
  font-size: 0.95rem;
  padding: 0.95rem 2.25rem;
}

@media (max-width: 575.98px) {
  .btn-give {
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
  }
}

/*=========================
  CTA BAND
  Sits between the white Contact section and the blue footer, so it uses
  a light grey to stay distinct from both.
=========================*/
.cta-band {
  background-color: #e9ecef;
}

/* Gold on light grey is only 2.75:1 as a shape boundary (WCAG 1.4.11
   wants 3:1), so the button gets a FIU blue edge on this band. */
.cta-band .btn-secondary {
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
}

/*=========================
  BIZGAP NAVBAR LOGO
  The source PNG is 546x156 but the artwork only occupies the left 27%
  (x 4-152). object-fit crops that trailing whitespace at display time
  so the mark reads at a proper size and doesn't eat navbar width.
=========================*/
.bizgap-logo {
  height: 60px;
  width: 64px;
  max-height: none;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 575.98px) {
  .bizgap-logo {
    height: 50px;
    width: 54px;
  }
}

/*=========================
  SLIM FOOTER
=========================*/
.footer-area--slim {
  padding: 1.75rem 0;
}

.footer-copyright {
  font-size: 0.85rem;
  letter-spacing: 0.04rem;
}

.footer-sba {
  max-width: 170px;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

/*=========================
  NEWS COLUMNS
=========================*/
.news-group__title {
  min-height: 1.5rem;
}
