.partners-page {
  background: #f8fcff;
}
.site-header nav a.active {
  color: var(--blue);
}
.partners-hero {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem)
    clamp(3.5rem, 6vw, 5rem);
  background: linear-gradient(135deg, #fff, #e6f6ff);
}
.partners-hero h1 {
  margin: 0.9rem 0 0;
  color: var(--navy);
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.85;
}
.partners-hero > p:last-child {
  max-width: 530px;
  margin: 2rem 0 0;
  color: #4e6d7e;
  font-size: 1.05rem;
  line-height: 1.7;
}
.logo-section {
  max-width: 1440px;
  margin: auto;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 7vw, 8rem);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.6rem);
}
.logo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  padding: 1rem;
  border: 1px solid #d7eaf4;
  border-radius: 1rem;
  background: #fff;
  color: #8eb1c4;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.logo-slot:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(11, 61, 89, 0.1);
}
.logo-slot img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
}
.logo-slot img[src] {
  position: absolute;
}
.logo-slot {
  position: relative;
}
.logo-slot img + span {
  position: absolute;
}
.logo-slot:has(img[src]) span {
  opacity: 0;
}
.partner-cta {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.partner-cta .eyebrow {
  justify-content: center;
  color: #9edcf9;
}
.partner-cta h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  line-height: 0.9;
}
.partner-button {
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border: 1px solid #91d4f5;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font:
    700 0.82rem "DM Sans",
    sans-serif;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.partner-button:hover {
  transform: translateY(-3px);
  background: #2788ce;
}
.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 33, 49, 0.62);
  backdrop-filter: blur(7px);
}
.modal-backdrop[hidden] {
  display: none;
}
.partner-modal {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}
.partner-modal h2 {
  margin: 1rem 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
}
.partner-modal > p:not(.eyebrow) {
  color: #5c7889;
  line-height: 1.7;
}
.partner-modal a,
.partner-modal span {
  display: block;
  margin-top: 0.8rem;
  color: var(--blue);
  font-weight: 700;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #eaf7fd;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 850px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
