:root {
  --midnight:#002341;
  --goldenrod:#ffb500;
  --sky:#b2ddff;
  --orchid:#d72fa8;
}

/* ============================================
   GLOBAL FOOTER WRAPPER + WHITE CURVE + PATTERN
   ============================================ */
.usca-global-footer {
  position: relative;
  margin-top: 2rem;
  color: #ffffff;

  /* Midnight gradient base */
  background: linear-gradient(135deg, #002341 0%, #0d3a5a 100%);
  overflow: visible; /* allow the pulled-up curve/content to show */
}

/* White curve slab */
.usca-global-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background: #ffffff;
  border-radius: 0 0 160px 0;
  z-index: 1;  /* above pattern, below footer content */
}

/* Subtle bgtile overlay only for footer */
.usca-global-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://pxl-uscaedu.terminalfour.net/prod01/usca-cdn-pxl/media/usca/site-assets/2025-rebrand/images/bg-pattern-tile.png');
  background-repeat: repeat;
  background-position: center;
  background-size: 80px 80px;  /* tweak as needed */
  opacity: 0.15;               /* tweak for strength */
  pointer-events: none;
  z-index: 0;                  /* behind white curve and content */
}

/* Make sure footer content sits on top */
.usca-footer-main,
.usca-footer-top,
.usca-footer-bottom {
  position: relative;
  z-index: 2;
}


/* ============================================
   MIDNIGHT FOOTER CONTENT
   ============================================ */
.usca-footer-main {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

/* Top nav area */
.usca-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.usca-footer-logo img {
  max-height: 48px;
}

/* Main nav links */
.usca-footer-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  list-style: none;
}

.usca-footer-nav a {
  color: #fff;
  text-decoration: none;
}

.usca-footer-nav a:hover {
  color: var(--goldenrod);
}

/* Social icons */
.usca-footer-social {
  display: flex;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.usca-footer-social .fa-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  transition: 0.2s ease;
}

.usca-footer-social .fa-icon:hover {
  background: var(--orchid);
  border-color: var(--orchid);
}

.usca-footer-social a {
  text-decoration: none !important;
}

/* Bottom links */
.usca-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
}

.usca-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.usca-footer-links a {
  color: #fff;
  text-decoration: none !important;
}

.usca-footer-links a:hover {
  color: var(--sky);
  text-decoration: underline;
}

.usca-footer-copy a {
  color: #fff !important;
  text-decoration: none !important;
}

.usca-footer-copy a:hover {
  color: var(--sky) !important;
}


/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {

  .usca-footer-top,
  .usca-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .usca-footer-nav ul,
  .usca-footer-social,
  .usca-footer-links {
    justify-content: center;
  }
}
    
/* ============================================
   Desktop Link Spacing Issues Fix
   ============================================ */        
@media (min-width: 1024px) {

  /* Widen footer container even more */
  .usca-footer-main > .container {
    max-width: 1500px;   /* bump from 1360px → 1500px */
  }

  .usca-footer-nav ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

