/* footer.css */
.about-hero {
  position: relative;
  height: 100vh;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("../assets/team-hero.png");
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1105px;
  padding: 0 20px;
  text-align: left;
  color: white;
}

.about-hero-content .selected-program-heading {
  color: white;
}

/* Footer Styles */
.footer {
  background-color: var(--color-dark-blue);
  padding: 3rem 0;
  margin-top: 3rem;
  transition: var(--transition);
  height: 366px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-desktop {
  display: flex;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: space-between;
  flex-direction: column;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 427px;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  height: 66px;
  align-items: flex-end;
}

.footer-link,
.footer-heading,
.contact-link,
.social-link {
  color: var(--color-white) !important;
}

.footer-heading {
  margin-bottom: calc(1.5rem * var(--font-size-scale));
  color: var(--color-white);
}

.footer-contacts {
  display: flex;
  gap: 100px;
}

.contact-item {
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
}

.social-links {
  display: flex;
  flex-direction: column; /* Use column to stack rows vertically */
  flex-wrap: wrap; /* Allow wrapping for row control */
  gap: 0; /* Spacing between icons/rows */
  align-items: flex-end;
  justify-content: flex-end;
  margin-bottom: -10px;
}

.social-links .social-row {
  display: flex;
  gap: 1rem; /* Spacing between icons in a row */
}

.social-link {
  font-size: calc(1.5rem * var(--font-size-scale));
  color: var(--text-color);
}

.footer-mobile {
  display: none;
}

.contact-item i,
.social-link i {
  color: var(--color-white) !important;
}

.footer-icon {
  filter: brightness(0) invert(1);
}

.contact-group {
  /* display: flex; */
  gap: 22px;
  height: 66px;
  margin-top: 81px;
  flex-direction: column;
  justify-content: space-between;
}

/* Media Queries */
@media (max-width: 1024px) {
  .footer {
    /* height: 590px; */
    height: 650px;
    border-radius: 22px 22px 0 0;
  }

  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: block;
  }

  .mobile-contacts {
    margin-bottom: 2rem;
    margin-top: 60px;
  }

  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-heading {
    font-family: "Commissioner", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 2%;
    color: var(--color-white);
    margin-bottom: 1.5rem;
  }

  .footer-link,
  .contact-link,
  .social-link {
    font-family: "Commissioner", sans-serif;
    font-weight: 500;
    font-size: calc(12px * var(--font-size-scale));
    line-height: 120%;
    letter-spacing: 2%;
    color: var(--color-white) !important;
  }

  .footer-link .body-04 {
    font-family: "Commissioner", sans-serif;
    font-weight: 500;
    font-size: calc(12px * var(--font-size-scale));
    line-height: 120%;
    letter-spacing: 2%;
    color: var(--color-white) !important;
  }

  .social-links {
    flex-direction: column; /* Mobile remains unchanged with row layout */
    gap: 0; /* Consistent spacing */
    flex-wrap: nowrap; /* Prevent wrapping to keep all icons in one row */
    align-items: start;
  }

  .social-link {
    font-size: 12px; /* Override desktop 1.5rem for consistency with link typography */
  }
}

.mobile-arrow {
  filter: brightness(0) invert(1);
  width: 20px;
}

.mobile-links,
.phone {
  margin-left: 26px;
}

.footer-email {
  margin-left: 6px;
}

.phone {
  margin-top: 13px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-icon,
.mobile-arrow {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.contact-address {
  font-size: 14px;
  line-height: 1.5;
}

.contact-link {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Для мобильной версии */
.mobile-contacts .contact-item {
  margin-bottom: 10px;
}

.mobile-contacts .contact-address {
  font-size: 13px;
}
