/* ===== SPONSORS SECTION STYLING ===== */

.current-sponsors {
  margin: 2rem 0 4rem 0;
}

.current-sponsors h3 {
  font-family: 'Junicode', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  text-align: center;
}

.current-sponsors > p {
  font-family: 'Junicode';
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Sponsors Grid */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.sponsor-item {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.sponsor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
  border-color: #3498db;
}

.sponsor-logo {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.sponsor-item h4 {
  font-family: 'Junicode', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: 1.4;
  padding: 0.5rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .current-sponsors {
    margin: 2rem 0;
  }
  
  .current-sponsors h3 {
    font-size: 1.5rem;
  }
  
  .current-sponsors > p {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .sponsor-item {
    padding: 1.5rem;
    min-height: 150px;
  }
  
  .sponsor-logo {
    max-width: 100px;
    max-height: 60px;
  }
  
  .sponsor-item h4 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .current-sponsors h3 {
    font-size: 1.6rem;
  }
  
  .current-sponsors > p {
    font-size: 0.95rem;
  }
  
  .sponsor-item {
    padding: 1.2rem 0.8rem;
  }
  
  .sponsor-logo {
    max-height: 50px;
  }
  
  .sponsor-item h4 {
    font-size: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sponsor-item {
    background: #fff;
    border-color: #e5e5e5;
    color: #333;
  }
  
  .sponsor-item:hover {
    border-color: #3498db;
  }
  
  .sponsor-item h4 {
    color: #000000;
  }
}

/* Animation for sponsor items when they come into view */
.sponsor-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.sponsor-item:nth-child(1) { animation-delay: 0.1s; }
.sponsor-item:nth-child(2) { animation-delay: 0.2s; }
.sponsor-item:nth-child(3) { animation-delay: 0.3s; }
.sponsor-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Special styling for when there's only one sponsor */
.sponsors-grid:has(> .sponsor-item:only-child) {
  justify-items: center;
}

.sponsors-grid:has(> .sponsor-item:only-child) .sponsor-item {
  max-width: 400px;
}

/* Accessibility improvements */
.sponsor-item:focus-within {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .sponsor-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .sponsor-item:hover {
    transform: none;
  }
}
/* Print styles */
@media print {
  .sponsor-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .sponsor-item:hover {
    transform: none;
  }
}
