/* Section styling with reduced vertical padding */
.accreditations-section {
  padding: 40px 20px; /* Reduced height */
  background: #024fa2;
  color: #fff;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  overflow: hidden;
}

/* Header styles */
.accreditations-header {
  max-width: 800px;
  margin: 0 auto 30px;
}
.accreditations-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.accreditations-header p {
  font-size: 1rem;
}

/* Grid container for cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  padding: 0 20px;
}

/* Card styling for each accreditation */
.accred-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 150px;
  width: 70%;
  /* Subtle floating animation */
  animation: float 6s ease-in-out infinite alternate;
}

/* Icon styling inside the card */
.accred-icon {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Floating animation */
@keyframes float {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .accreditations-section {
    padding: 30px 15px;
  }
  .accreditations-header h2 {
    font-size: 1.6rem;
  }
  .accreditations-header p {
    font-size: 0.9rem;
  }
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  .accred-card {
    max-width: 120px;
    padding: 10px;
  }
}

