/* 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%;
}

/* Main container for all sponsor groups, arranged in a single row */
.all-sponsors-combined-row-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* Styling for each individual group column (Gold, Silver, Bronze) */
.sponsor-group-column {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 30%;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
  box-sizing: border-box;
}

.sponsor-group-column h3 {
  font-size: 1.6em;
  margin-bottom: 25px;
  color: #333;
}

/* Inner container for logos within each group */
.sponsor-group-inner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Horizontally centers the logos when in a row */
  gap: 15px;
}

/* Individual sponsor item styling (the logo box) */
.sponsor-item {
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 1;
  min-width: 80px;

  /* Flexbox for vertical alignment of logo within its box */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sponsor-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sponsor-item p {
  font-size: 0.9em;
  color: #555;
  font-weight: bold;
  margin-top: 10px;
}

/* --- TIER-SPECIFIC LOGO SIZING (Percentage of Parent Column) --- */

.gold-group-column .sponsor-item {
  max-width: 80%;
}

.silver-group-column .sponsor-item {
  max-width: 40%;
}

.bronze-group-column .sponsor-item {
  max-width: 45%;
}


/* --- Responsive Adjustments --- */

@media (min-width: 769px) {
  .sponsor-group-column {
    flex-basis: calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .all-sponsors-combined-row-container {
    flex-direction: column;
    align-items: center;
  }
  .sponsor-group-column {
    width: 95%;
    max-width: 400px;
    margin-bottom: 30px;
  }
  .gold-group-column .sponsor-item,
  .silver-group-column .sponsor-item,
  .bronze-group-column .sponsor-item {
    max-width: 45%;
  }
  .sponsor-item {
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .sponsor-group-column h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }
  .sponsor-group-inner-container {
    flex-direction: column;
    /* FIX: Added align-items to center items horizontally when in a column */
    align-items: center;
  }
  .sponsor-item {
    max-width: 90%;
  }
}