.media-hub {
  background: #fff;
  color: #17233e;
}

.media-hub__section {
  padding: 72px 0 92px;
}

.media-hub__heading {
  margin-bottom: 30px;
}

.media-hub__heading h2 {
  margin: 0;
  color: #163e96;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.025em;
}

.media-hub__heading p {
  margin: 12px 0 0;
  color: #52627d;
  font-size: 16px;
  line-height: 1.6;
}

.media-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.media-hub__item {
  min-width: 0;
}

.media-hub__card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 28px 28px 24px;
  background: #f3f5f9;
  color: #17233e;
  text-decoration: none;
  border: 1px solid #e9edf4;
  border-radius: 9px;
  transition: background .18s ease, transform .18s ease;
}

.media-hub__card:hover,
.media-hub__card:focus-visible {
  background: #e9effb;
  transform: translateY(-2px);
  text-decoration: none;
}

.media-hub__card:focus-visible {
  outline: 3px solid #1e4eaf;
  outline-offset: 3px;
}

.media-hub__card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.media-hub__card strong {
  color: #153c91;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
}

.media-hub__arrow {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  color: #1e4eaf;
  border: 1px solid #c5d2eb;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.media-hub__description {
  display: block;
  margin: 16px 0 24px;
  color: #53617b;
  font-size: 16px;
  line-height: 1.55;
}

.media-hub__action {
  margin-top: auto;
  color: #1e4eaf;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .media-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .media-hub__section {
    padding: 44px 0 58px;
  }

  .media-hub__heading {
    margin-bottom: 23px;
  }

  .media-hub__heading h2 {
    font-size: 28px;
  }

  .media-hub__heading p {
    font-size: 14px;
  }

  .media-hub__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .media-hub__card {
    min-height: 0;
    padding: 22px 21px 20px;
  }

  .media-hub__card strong {
    font-size: 22px;
  }

  .media-hub__description {
    margin: 12px 0 19px;
    font-size: 14px;
  }

  .media-hub__arrow {
    width: 29px;
    height: 29px;
    font-size: 18px;
  }
}
