/* Accreditations Section */
.accreditations-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e5e5;
}

.accreditations-section h2,
.accreditations-section h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* Accreditations Grid */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

/* Badge Styles */
.accreditation-badge {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.accreditation-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.badge-icon {
  width: 200px;
  height: 120px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.badge-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Ensure proper display of PNG logos */
.badge-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100px;
}

.certification-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.badge-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
}

/* Individual Badge Hover Effects */
.mcs-badge:hover {
  border-color: #006BA6;
  background-color: #f8fafb;
}

.recc-badge:hover {
  border-color: #00A651;
  background-color: #f8fafb;
}

.trustmark-badge:hover {
  border-color: #E30613;
  background-color: #f8fafb;
}

.other-badge:hover {
  border-color: #666;
  background-color: #f8fafb;
}

/* Accreditations Note */
.accreditations-note {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.accreditations-note p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .accreditations-section {
    padding: 20px 16px;
  }
  
  .accreditations-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
  
  .accreditation-badge {
    padding: 16px 12px;
  }
  
  .badge-icon {
    width: 150px;
    height: 75px;
    margin-bottom: 8px;
  }
  
  .badge-icon img {
    max-height: 60px;
  }
  
  .certification-mark {
    font-size: 18px;
  }
  
  .badge-name {
    font-size: 12px;
  }
}

/* Quality Indicators */
.accreditation-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.accreditation-badge:hover::before {
  top: -100%;
  right: -100%;
  opacity: 1;
}