.partners-page {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  text-align: center;
}

.partners-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a4c3d;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Tablet: two columns */
@media (min-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: three columns */
@media (min-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 1rem;
  /* ensure every card is full width of its column */
  width: 100%;
  /* unify card heights */
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.partner-item img {
  /* constrain logo size */
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.partner-item span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  text-align: center;
}
