footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

footer a {
  transition: opacity 0.2s ease;
}

footer a i {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

footer a:hover i {
  transform: translateY(-2px);
  opacity: 0.8;
}

footer li a img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

footer li a:hover img {
  transform: translateY(-2px);
  opacity: 0.85;
}

footer .col-md-2:nth-of-type(4) ul li {
  margin-bottom: 8px;
}

/* =========================
   MOBILE FOOTER FIX
========================= */
@media (max-width: 767px) {

  footer {
    padding-top: 0.6rem !important;
    text-align: right;
  }

  footer .container {
    padding-top: 0 !important;
  }

  footer .row.footer-grid {
    margin-top: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* MICRO FOOTER */
  .micro-footer {
    width: calc(100% - 28px);
    margin: 0 auto 0.6rem auto;
    border-radius: 18px !important;
    text-align: left;
  }

  .micro-footer {
  padding: 0.5rem 1rem !important;
}

.micro-footer .flogo {
  margin-bottom: 0.4rem !important;
}

.micro-footer .flogo,
.micro-footer p {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

  .flogo img,
  .footer-logo {
    height: 70px !important;
    margin-left: -15px;
  }

  .micro-footer p {
    margin-bottom: 0 !important;
    font-weight: 400;
  }

  /* GRID: 2x2 layout for mobile */
  footer .col-md-2:nth-of-type(2), /* Explore */
  footer .col-md-2:nth-of-type(4)  /* Partnership */ {
    order: 2;
    width: 50% !important;
  }

  footer .col-md-2:nth-of-type(3), /* Learning */
  footer .col-md-2:nth-of-type(5)  /* Contact */ {
    order: 3;
    width: 50% !important;
  }

  footer .col-md-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 32px !important;
    padding-right: 12px;
  }

  footer h5, footer ul, footer p {
    width: 100%;
  }

  footer ul {
    padding-left: 0;
  }

  footer ul li {
    list-style: none;
    margin-bottom: 0.25rem;
  }

  footer .d-flex {
    justify-content: flex-end !important;
  }

  footer .row.gy-4 {
    row-gap: 0.8rem !important;
  }

  footer h5 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  footer p.small {
    margin-bottom: 0.25rem;
  }

  footer .text-center.small {
    margin-top: 0.7rem;
   text-align: right;
  }

  .social-icons {
  justify-content: flex-end !important;
  width: 100%;
}
}
