/* ─── Global & Root Variables ───────────────────────────────────────────────── */
:root {
  --accentColor: #02304a;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif;
  background-color: #fff;
  background-size: cover;
}

/* ─── Header Styles ────────────────────────────────────────────────────────── */
.header-container {
  max-width: 900px;
  margin: 40px auto;      /* 40px gap above & below */
  padding: 0 20px;
  text-align: center;
}

.profilePicture img {
  width: 200px;
  height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

.userName {
  margin: 0 0 10px;
  color: var(--accentColor);
  font-size: 2rem;
  font-weight: bold;
}

.description {
  margin: 0;
  color: var(--accentColor);
  font-size: 1rem;
}

/* ─── Links (original format) ───────────────────────────────────────────────── */
.links {
  max-width: 675px;
  margin: 40px auto 40px; /* 40px gap above & below */
  display: block;
}

.link {
  position: relative;
  background-color: transparent;
  color: var(--accentColor);
  border: 2px solid var(--accentColor);
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  display: block;
  margin: 0 10px 10px;
  padding: 10px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .link:hover {
    background-color: var(--accentColor);
    color: rgba(245,128,32);
  }
}

.link:active {
  background-color: var(--accentColor);
  color: rgba(245,128,32);
}

/* Make donation instruction inherit the same font size & color as “Donation” */
.link.donation small {
  display: block;
  margin-top: 4px;
  font-size: inherit;
  color: inherit;
}

/* ─── Sponsors Section (full‑width grey) ─────────────────────────────────── */
.sponsors-section {
  background-color: #f9f9f9;
}

.section-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;    /* same vertical & horizontal padding */
  box-sizing: border-box;
  text-align: center;
}

.sponsors-section h2 {
  margin: 0 0 30px;
  color: var(--accentColor);
  text-align: center;
  font-size: 1.8rem;
}

/* 2‑per‑row grid of square tiles */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sponsor-item {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.sponsor-item:hover {
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sponsor-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.text-sponsor {
  font-size: 2.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

/* ─── Responsive Breakpoints ───────────────────────────────────────────────── */
/* Collapse to 1 per row on narrower screens */
@media (max-width: 600px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}
