.nhs-footer-author-card-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
}

.nhs-footer-author-card {
  border: 1px solid #d9e6f7;
  border-radius: 30px;
  background: var(--nhs-blue, #005eb8);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.nhs-footer-author-card-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.nhs-footer-author-photo-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.nhs-footer-author-photo {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #e6eefc 100%);
  box-shadow: 0 20px 40px rgba(6, 17, 31, 0.24);
}

.nhs-footer-author-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nhs-footer-author-badge,
.nhs-footer-author-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
}

.nhs-footer-author-badge {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.nhs-footer-author-eyebrow {
  margin-bottom: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nhs-footer-author-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.nhs-footer-author-name a {
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.nhs-footer-author-name a:hover,
.nhs-footer-author-name a:focus-visible {
  text-decoration: underline;
}

.nhs-footer-author-role {
  margin: 12px 0;
  color: #eaf1ff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.nhs-footer-author-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.nhs-footer-author-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.nhs-footer-author-pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .nhs-footer-author-card-inner {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 24px;
    text-align: center;
  }

  .nhs-footer-author-name {
    font-size: clamp(34px, 8vw, 46px);
  }

  .nhs-footer-author-pill-row {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nhs-footer-author-card-wrap {
    width: auto;
    margin: 12px 10px 0;
  }

  .nhs-footer-author-card {
    border-radius: 24px;
  }

  .nhs-footer-author-card-inner {
    padding: 20px;
    gap: 18px;
  }

  .nhs-footer-author-photo {
    width: 118px;
    height: 118px;
  }

  .nhs-footer-author-role {
    font-size: 18px;
  }
}
