.home-social {
  width: 100%;
  padding-block: 6rem;
  background-color: #2c5aa9;
  color: #fff;
}

/*
 * SECTION HEADER
 */

.home-social__eyebrow {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-social__title {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.home-social__description {
  margin-bottom: 4rem;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.65;
}

.home-social__description p {
  margin: 0 0 1.25rem;
}

.home-social__description p:last-child {
  margin-bottom: 0;
}

.home-social__description a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

.home-social__description a:focus-visible {
  outline: 0.1875rem solid #fff;
  outline-offset: 0.25rem;
}

/*
 * BRANCHES
 */

.home-social__branches {
  margin-top: 1rem;
}

.home-social__branch {
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #fff;
}

/*
 * BRANCH HEADER
 *
 * Zdjęcie jest tłem.
 */

.home-social__branch-header {
  position: relative;
  min-height: 10rem;
  display: flex;
  align-items: flex-end;
  background-color: #172248;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*
 * Gradient przy dolnej krawędzi zdjęcia.
 *
 * #2c5aa9 jest tylko delikatnie widoczny
 * przy samym dole i płynnie przechodzi
 * w transparent.
 */

.home-social__branch-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(
    to top,
    rgba(33, 47, 89, 1) 0%,
    rgba(33, 47, 89, 0.65) 25%,
    rgba(44, 90, 169, 0.2) 75%,
    rgba(44, 90, 169, 0) 100%
  );
  pointer-events: none;
}

/*
 * HEADER CONTENT
 */

.home-social__branch-header-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem 3rem;
}
.home-social__branch-eyebrow {
  margin: 0 0 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-social__branch-title {
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}

/*
 * SCHOOLS
 */

.home-social__schools {
  padding: 1.5rem 3rem;
}

.home-social__school {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.home-social__school + .home-social__school {
  border-top: 0.0625rem solid #dce3ef;
}

/*
 * SCHOOL INFO
 */

.home-social__school-info {
  min-width: 0;
}

.home-social__school-title {
  margin: 0 0 0.25rem;
  color: #172248;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
}

.home-social__school-address {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  font-style: normal;
  font-weight: 400;
}

/*
 * SOCIALS
 */

.home-social__socials {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-social__social {
  margin: 0;
  padding: 0;
}

.home-social__social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home-social__social-link:hover {
  background-color: #eef3fa;
  transform: translateY(-0.125rem);
}

.home-social__social-link:focus-visible {
  outline: 0.1875rem solid #2c5aa9;
  outline-offset: 0.1875rem;
}

.home-social__social-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/*
 * TABLET
 */

@media (max-width: 61.99875rem) {
  .home-social {
    padding-block: 4rem;
  }
  .home-social__description {
    margin-bottom: 3rem;
  }
  .home-social__branch-header-content {
    padding: 2.5rem;
  }
  .home-social__schools {
    padding-inline: 2.5rem;
  }
}

/*
 * MOBILE
 */

@media (max-width: 47.99875rem) {
  .home-social {
    padding-block: 3rem;
  }
  .home-social__title {
    font-size: 2rem;
  }
  .home-social__description {
    font-size: 1rem;
    line-height: 1.6;
  }
  .home-social__branch-header-content {
    min-height: 10rem;
    padding: 2rem;
  }
  .home-social__schools {
    padding-inline: 2rem;
  }
  .home-social__school {
    align-items: flex-start;
    gap: 1rem;
  }
}

/*
 * VERY SMALL MOBILE
 */

@media (max-width: 35.99875rem) {
  .home-social__school {
    flex-direction: column;
  }

  .home-social__socials {
    width: 100%;
  }
}
