/* Portal footer — main-site congruent */

.vp-portal-footer,
.vp-portal-footer * {
  box-sizing: border-box;
}

:is(html.vp-portal-footer-active, body.vp-portal-footer-active) #main-footer.vp-portal-footer {
  background: transparent;
  margin: 0;
  padding: 0;
}

:is(html.vp-portal-footer-active, body.vp-portal-footer-active) #et-footer-nav,
:is(html.vp-portal-footer-active, body.vp-portal-footer-active) #footer-bottom {
  display: none !important;
}

.vp-footer {
  background-image: linear-gradient(89deg, #000f31 0%, #410660 100%);
  color: #fff;
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.vp-footer a {
  color: #fff;
  text-decoration: none;
}

.vp-footer a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.vp-footer__inner {
  width: min(87%, 1400px);
  margin: 0 auto;
  padding: 2.75rem 0 1.75rem;
}

.vp-footer__brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.vp-footer__logo img {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

.vp-footer__socials {
  display: grid;
  grid-template-columns: repeat(6, minmax(36px, 52px));
  gap: 0.625rem;
  align-items: center;
}

.vp-footer__socials a {
  display: block;
  line-height: 0;
}

.vp-footer__socials img {
  width: 100%;
  height: auto;
  display: block;
}

.vp-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 1.5rem 1rem;
  align-items: start;
}

.vp-footer__heading {
  margin: 0 0 0.85rem;
  font-family: "Teachers", "Nunito Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.vp-footer__col {
  min-width: 0;
}

.vp-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-footer__col li {
  margin: 0 0 0.4rem;
}

.vp-footer__col a {
  font-size: 0.9375rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.vp-footer__contact {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: rgba(238, 238, 238, 0.1);
  border-radius: 0;
  padding: 1.15rem 1rem;
}

.vp-footer__heading--contact {
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vp-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #fff;
  min-width: 0;
}

.vp-footer__contact-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vp-footer__contact-row img {
  flex: 0 0 18px;
  width: 18px;
  height: auto;
  margin-top: 0.15rem;
}

.vp-footer__contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.vp-footer__contact-stack a {
  display: block;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vp-footer__contact-stack strong,
.vp-footer__contact-stack span {
  font-size: 0.875rem;
}

.vp-footer__contact-stack strong {
  font-weight: 600;
}

.vp-footer__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}

.vp-footer__partners img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.vp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.vp-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.vp-footer__badges a {
  display: block;
  line-height: 0;
}

.vp-footer__badges img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.vp-footer__trustpilot {
  position: relative;
  width: 268px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.vp-footer__trustpilot a {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.vp-footer__trustpilot .trustpilot-widget {
  transform: scale(0.85);
  transform-origin: center center;
  width: 117.65% !important;
  height: 117.65% !important;
}

.vp-footer__legal {
  margin: 0;
  margin-left: auto;
  font-size: 14px;
  font-weight: 200;
  color: #fff;
  text-align: right;
}

.vp-footer__legal a {
  color: #fff;
}

@media (max-width: 1100px) {
  .vp-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vp-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .vp-footer__inner {
    width: 92%;
    padding: 2rem 0 1.5rem;
  }

  .vp-footer__brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .vp-footer__contact {
    grid-column: 1 / -1;
    padding: 1.5rem;
    margin-top: 0.5rem;
  }

  .vp-footer__heading--contact {
    text-align: center;
  }

  .vp-footer__partners img {
    height: 22px;
  }

  .vp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-footer__legal {
    margin-left: 0;
    text-align: left;
  }

  .vp-footer__badges img {
    max-width: 140px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .vp-footer__cols {
    grid-template-columns: 1fr;
  }
}
