.edugen-footer {
  --footer-ink: #182c47;
  --footer-muted: #43566e;
  --footer-blue: #215daf;
  --footer-line: #dfe5ec;
  width: min(100%, 1160px);
  margin: clamp(36px, 5vw, 65px) auto 0;
  padding: clamp(22px, 4vw, 48px) clamp(17px, 4.5vw, 55px) 0;
  border: 1px solid #e6e4de;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 7% 0%, #e5effb8c, transparent 58%),
    radial-gradient(ellipse at 97% 5%, #f6e5d69c, transparent 48%), #fbfaf7;
  color: var(--footer-ink);
}

.edugen-footer .edugen-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(24px, 4.4vw, 50px);
  padding-block-end: clamp(25px, 4vw, 42px);
}

.edugen-footer .edugen-footer-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.edugen-footer .edugen-footer-brand img {
  display: block;
  width: clamp(150px, 16vw, 190px);
  max-width: 100%;
  height: auto;
}

.edugen-footer .edugen-footer-description {
  max-width: 28ch;
  margin: 16px 0 12px;
  color: var(--footer-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.5;
}

.edugen-footer .edugen-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: var(--footer-blue);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.edugen-footer .edugen-footer-label {
  margin: 0 0 9px;
  color: var(--footer-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edugen-footer .edugen-footer-links,
.edugen-footer .edugen-footer-legal {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edugen-footer .edugen-footer-links {
  flex-direction: column;
  gap: 2px;
}

.edugen-footer .edugen-footer-links a,
.edugen-footer .edugen-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 630;
  line-height: 1.3;
  text-decoration: none;
}

.edugen-footer .edugen-footer-contact:hover,
.edugen-footer .edugen-footer-links a:hover,
.edugen-footer .edugen-footer-bottom a:hover {
  color: var(--footer-blue);
  text-decoration: underline;
  text-underline-offset: 0.19em;
}

.edugen-footer a:focus-visible {
  outline: 2px solid #2e78e6;
  outline-offset: 4px;
}

.edugen-footer .edugen-footer-partners {
  padding: 14px 15px;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  background: #ffffffaf;
}

.edugen-footer .edugen-footer-partners p {
  margin: 0 0 11px;
  color: var(--footer-ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.38;
}

.edugen-footer .edugen-footer-partners p span {
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 520;
}

.edugen-footer .edugen-footer-logos {
  display: grid;
  justify-items: start;
  width: min(100%, 330px);
  gap: 20px;
}

.edugen-footer .edugen-footer-logos a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  width: min(100%, 290px);
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.edugen-footer .edugen-footer-logos a:hover {
  background: #edf3fb;
}

.edugen-footer .edugen-footer-logos img {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
  border-radius: 4px;
}

.edugen-footer .edugen-footer-logos a:first-child {
  width: 100%;
}

.edugen-footer .edugen-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px 18px;
  min-height: 63px;
  padding-block: 10px;
  border-top: 1px solid var(--footer-line);
}

.edugen-footer .edugen-footer-legal {
  flex-wrap: wrap;
  gap: 4px 20px;
}
.edugen-footer .edugen-footer-bottom > a {
  color: var(--footer-blue);
}

@media (max-width: 820px) {
  .edugen-footer .edugen-footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .edugen-footer .edugen-footer-network {
    grid-column: 1 / -1;
  }
  .edugen-footer .edugen-footer-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 22px;
  }

  .edugen-footer .edugen-footer-partners p {
    margin: 0;
  }
}

@media (max-width: 550px) {
  .edugen-footer {
    border-radius: 19px;
  }
  .edugen-footer .edugen-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .edugen-footer .edugen-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .edugen-footer .edugen-footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 340px) {
  .edugen-footer .edugen-footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}
