/* Associations Section Styles */

.associations-section {
  padding: 60px 20px;
  background: #fff;
}

.associations-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.associations-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 40px;
  color: #1a1a1a;
  text-align: center;
}

/* Associations Grid */
.associations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .associations-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

/* Association Items */
.association-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
}

.association-link {
  display: block;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.association-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.association-link:focus {
  outline: 2px solid #1f2a44;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Association Logos */
.association-logo {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.association-logo:hover,
.association-link:hover .association-logo {
  filter: grayscale(0%);
}

/* Placeholder styling for Customizer preview */
.association-item--placeholder {
  opacity: 0.6;
}

.association-logo--placeholder {
  width: 100%;
  height: 80px;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
}

.association-placeholder-text {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 639px) {
  .associations-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  
  .associations-grid {
    gap: 24px;
  }
  
  .association-logo {
    max-height: 60px;
  }
  
  .association-logo--placeholder {
    height: 60px;
    font-size: 0.8125rem;
  }
}

/* Ensure logos maintain aspect ratio and look professional */
@media (min-width: 640px) {
  .association-logo {
    max-width: 160px;
    margin: 0 auto;
  }
}
