.footer {
  background-color: #0065f8;
  color: #fff;
  padding: 40px 20px 24px;
  font-size: 14px;
}

.footer-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 75px;
  flex-wrap: wrap;
}

.footer-content .disabled {
    pointer-events: none;
    color: #aaa;
    opacity: 0.7;
}

/* Footer Logo */
.footer-left {
  min-width: 220px;
  flex: 0 0 280px;
  text-align: left;
}

.footer-left .logo {
  width: 100px;
  display: block;
}

.footer-left .tagline {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 24px 20px;
  align-items: start;
  flex: 1 1 500px;
}

.footer-column {
  text-align: left;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: #ffd700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin: 8px 0;
}

.footer-column a {
    color: white;
    text-decoration: none; 
    background: transparent;
}

.footer-column a:hover {
    text-decoration: underline;
    text-decoration-color: #ffcc00;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

.copyright {
  text-align: left;
  color: white;
  font-size: 13px;
}

/* Social Media Links */
.social {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffcc00;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
}

/* Center footer content on screens smaller than 1100px */
@media (max-width: 1100px) {
  .footer {
    padding: 32px 16px 24px;
  }

  /* Stack and center the main content */
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;      /* center children horizontally */
    justify-content: center;  /* centre vertically if needed */
    gap: 24px;
    margin: 0 20px;           /* reduce side margins so content is centred */
  }

  /* Logo / left block becomes centred and allowed to shrink */
  .footer-left {
    flex: 0 1 auto;
    min-width: 0;             /* prevent overflow from min-width */
    text-align: center;       /* centre text and logo */
    width: 100%;
    max-width: 420px;         /* optional: constrain width on larger small screens */
  }

  .footer-left .logo {
    margin: 0 auto;           /* centre the logo block */
    display: block;
  }

  /* Convert footer links to fewer columns / single column depending on space */
  .footer-links {
    width: 100%;
    flex: 0 1 auto;
    /* Use a responsive grid that collapses naturally */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    justify-items: center;    /* centre the content inside each grid cell */
  }

  .footer-column {
    text-align: center;       /* centre individual column content */
    width: 100%;
    max-width: 300px;         /* optional: keep columns from being too wide */
  }

  /* Social and copyright centred */
  .social {
    justify-content: center;
    width: 100%;
  }

  .social-list {
    justify-content: center;
  }

  .copyright {
    text-align: center;
    width: 100%;
  }

  /* Tidy-up for long titles / links */
  .footer-title,
  .footer-column ul,
  .footer-column li {
    word-wrap: break-word;
  }
}
