/* To format the Event List in the right rail appropriately */
.eventlist {
  font-family: 'Ubuntu', 'Arial', sans-serif;
  font-size: 16px;
  text-align: center;
 }
.subform {
  font-family: 'Ubuntu', 'Arial', sans-serif;
  font-size: 26px;
  color: orange
}

/* These make the youtube videos on various pages responsive */

.youtube-video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.youtube-video-container::after {
  display: block;
  content: "";
  padding-top: 56.25%;
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* General styling for sponsor tiers */
.sponsor-tier {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.sponsor-tier h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2em;
  color: #333;
}

/* Specific styling for Gold, Silver, Bronze */
.sponsor-tier.gold {
  background-color: #FFD70033; /* Light gold background */
}

.sponsor-tier.silver {
  background-color: #C0C0C033; /* Light silver background */
}

.sponsor-tier.bronze {
  background-color: #CD7F3233; /* Light bronze background */
}

/* Container for sponsors within a tier - using Flexbox for responsiveness */
.sponsor-container {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  justify-content: center; /* Centers items horizontally */
  gap: 20px; /* Space between sponsor items */
}

/* Individual sponsor item styling */
.sponsor-item {
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex: 1 1 auto; /* Allows items to grow and shrink */
  min-width: 150px; /* Minimum width for each sponsor item */
  max-width: 250px; /* Maximum width for each sponsor item */
}

.sponsor-item img {
  max-width: 100%;
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 10px;
  display: block; /* Removes extra space below image */
  margin-left: auto;
  margin-right: auto;
}

.sponsor-item p {
  font-size: 0.9em;
  color: #555;
  font-weight: bold;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
  .sponsor-container {
    gap: 15px;
  }
  .sponsor-item {
    min-width: 120px;
    max-width: 200px;
  }
  .sponsor-tier h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .sponsor-container {
    flex-direction: column; /* Stack sponsors vertically on very small screens */
    align-items: center; /* Center them when stacked */
  }
  .sponsor-item {
    width: 90%; /* Take up most of the width when stacked */
    max-width: 300px; /* Limit max width even when stacked */
  }
  .sponsor-tier h2 {
    font-size: 1.5em;
  }
}