/* ============================
   MAIN SPONSOR (PORTRAIT STYLE)
   ============================ */

.main-sponsor-block {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.main-sponsor-block h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.main-sponsor-img {
  width: auto;           /* keeps portrait shape */
  max-width: 100%;       /* never overflow horizontally */
  height: auto;          /* keeps proportions */
  max-height: 700px;     /* prevents overtaking the page */
  display: block;
  margin: 0 auto 20px auto;
  object-fit: contain;   /* prevents stretching */
}

.main-sponsor-footer {
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
}


/* ============================
   STANDARD SPONSOR GRID
   ============================ */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.sponsor-card {
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2), 0 3px 8px rgba(0,0,0,0.1);
}

.sponsor-card img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.sponsor-footer {
  font-size: 0.95rem;
  color: #555;
}

/* ============================
   NEW: description + website button
   ============================ */

.sponsor-description {
  font-size: 0.9rem;
  color: var(--t-ink-muted, #666);
  margin-top: 8px;
  line-height: 1.4;
}

.sponsor-website-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--t-red, #b30000);
  color: #fff !important;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.sponsor-website-btn:hover {
  opacity: 0.9;
}

/* Dark mode support - this page uses the site's light/dark toggle, so
   the card background and text need to follow the same theme
   variables everything else does, rather than a fixed light colour
   that would turn invisible-on-dark. */
.sponsor-card {
  background: var(--t-card-bg, #fafafa);
  color: var(--t-ink, #222);
}

.sponsor-footer {
  color: var(--t-ink-muted, #555);
}

.main-sponsor-footer {
  color: var(--t-ink-muted, #555);
}
