@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap");

/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background: #ffffff;
}

/* =========================
   SHARED CONTAINER
========================= */
.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 25px;
}

/* =========================
   SPONSORS BAND
========================= */
.footer-sponsors {
  overflow: hidden;
  background: #f5f8fa;
  padding: 30px 0 44px;
  border-top: 1px solid #e0e0e0;
}

.sponsor-group {
  margin-bottom: 28px;
}

.sponsor-heading {
  margin-bottom: 22px;
  color: #06285a;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0;
}

/* =========================
   PLATINUM + GOLD LOGO ROWS
========================= */
.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(5, 213.6px);
  justify-content: center;
  gap: 18px 44px;
}

/* EXACT BOX SIZE */
.sponsor-logos .logo-flip {
  width: 213.6px;
  height: 123.6px;
  background: #ffffff;
  border: 1px solid #b8b8b8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor-logos .logo-flip img {
  inset: 16px;
}

.sponsor-logos .logo-flip:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Gold sponsors: 6 equal boxes */
.sponsor-group:nth-child(2) .sponsor-logos {
  grid-template-columns: repeat(6, 213.6px);
  gap: 8px;
}

/* =========================
   COMMUNITY / PUBLICATION /
   MEDIA / INSIGHTS PARTNERS
========================= */
.sponsor-partners-row {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  justify-content: center;
  gap: 80px;
  margin: 18px 0 52px;
}

.sponsor-partner-item {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.sponsor-partner-item .sponsor-heading {
  width: 100%;
  min-height: 33px;
  margin-bottom: 23px;
  white-space: nowrap;
  font-size: 27px;
  text-align: center;
}

/* Partner boxes fixed size */
.sponsor-partner-item .logo-flip {
  width: 213.6px;
  height: 100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #b8b8b8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor-partner-item .logo-flip img {
  inset: 4px;
}

.sponsor-partner-item .logo-flip:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* =========================
   SUPPORTING ASSOCIATIONS (Exactly 5 per row)
========================= */
.sponsor-group:last-child {
  margin-bottom: 0;
}

.associations-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  /* 1260px allows exactly 5 boxes (at 213.6px each plus gaps) before forcing a new row */
  max-width: 1260px; 
  margin: 0 auto;
}

/* Sizing and design exactly matches the Community Partner boxes */
.associations-logos .logo-flip {
  width: 213.6px;
  height: 100px;
  background: #ffffff;
  border: 1px solid #b8b8b8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Matches the Community Partner inset */
.associations-logos .logo-flip img {
  inset: 4px;
}

.associations-logos .logo-flip:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

/* =========================
   LOGO FLIP HOVER EFFECT
========================= */
.logo-flip {
  position: relative;
  overflow: hidden;
  display: block;
}

.logo-flip img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.logo-flip img:first-child {
  transform: translateY(0);
}

.logo-flip img:last-child {
  transform: translateY(100%);
}

.logo-flip:hover img:first-child {
  transform: translateY(-100%);
}

.logo-flip:hover img:last-child {
  transform: translateY(0);
}

/* =========================
   MAIN FOOTER BODY
========================= */
.footer-body {
  padding: 60px 0 48px;
  background: #01253f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr;
  gap: 40px 60px;
  align-items: start;
}

/* =========================
   FOOTER COLUMN HEADINGS
========================= */
.footer-col-heading {
  margin-bottom: 18px;
  padding-bottom: 10px;
  color: #ffca05;
  border-bottom: 2px solid rgba(255, 202, 5, 0.25);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================
   ABOUT
========================= */
.footer-about p {
  color: #b0b8cc;
  font-size: 14.5px;
  line-height: 1.85;
}

/* =========================
   QUICK LINKS
========================= */
.footer-links ul {
  list-style: none;
}

.footer-links ul li a {
  display: block;
  padding: 9px 0;
  color: #b0b8cc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links ul li:last-child a {
  border-bottom: none;
}

.footer-links ul li a:hover {
  padding-left: 8px;
  color: #ffca05;
}

/* =========================
   CONTACT
========================= */
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  list-style: none;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #b0b8cc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact ul li i {
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #ffca05;
  font-size: 15px;
  text-align: center;
}

.footer-contact ul li a {
  color: #b0b8cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact ul li a:hover {
  color: #ffca05;
}

/* =========================
   SOCIAL ICONS
========================= */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8cc;
  background: transparent;
  border: 1.5px solid rgba(255, 202, 5, 0.4);
  border-radius: 50%;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
  color: #111111;
  background: #ffca05;
  border-color: #ffca05;
  transform: translateY(-3px);
}

/* =========================
   COPYRIGHT BAR
========================= */
.footer-copyright {
  padding: 16px 0;
  background: #01253f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright p {
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================
   TABLET
========================= */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .sponsor-logos,
  .sponsor-group:nth-child(2) .sponsor-logos {
    grid-template-columns: repeat(3, 213.6px);
    gap: 18px;
  }

  .sponsor-partners-row {
    grid-template-columns: repeat(2, 213.6px);
    gap: 35px 80px;
  }

  /* Drops to 3 columns centered on tablet */
  .associations-logos {
    max-width: 760px;
    gap: 18px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  .footer-sponsors {
    padding: 32px 0 24px;
  }

  .footer-container {
    padding: 0 18px;
  }

  .sponsor-heading {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .sponsor-group {
    margin-bottom: 34px;
  }

  /* Platinum and Gold Mobile Layout */
  .sponsor-logos,
  .sponsor-group:nth-child(2) .sponsor-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sponsor-logos .logo-flip {
    width: 100%;
    height: 105px;
  }

  .sponsor-logos .logo-flip img {
    inset: 12px;
  }

  /* Partner Mobile Layout */
  .sponsor-partners-row {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 42px;
  }

  .sponsor-partner-item .logo-flip {
    width: min(213.6px, 100%);
    height: 100px;
  }

  .sponsor-partner-item .logo-flip img {
    inset: 4px;
  }

  /* Associations Mobile Layout */
  .associations-logos {
    display: grid; /* Use grid on mobile for perfect 2-column split */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 14px;
  }

  .associations-logos .logo-flip {
    width: 100%;
    height: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-body {
    padding: 40px 0 32px;
  }

  .footer-copyright p {
    font-size: 12px;
  }
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
  .sponsor-logos .logo-flip,
  .sponsor-partner-item .logo-flip,
  .associations-logos .logo-flip,
  .logo-flip img,
  .footer-links ul li a,
  .footer-socials a {
    animation: none !important;
    transition: none !important;
  }
}