* { box-sizing: border-box; }
html { min-height: 100%; background: #222225; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-inline: auto;
  padding: 7px 0 65px;
  overflow: hidden;
  background: #fff2db url('img/bg.jpg') center top / 100% 100% no-repeat;
}
.header, .sponsors { width: 85%; margin-inline: auto; }
.header {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 54px;
  margin-bottom: 8px;
  gap: 22px;
}
.header::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -9%;
  right: -9%;
  height: 40px;
  background: #a3440e;
}
.brand { display: block; flex: 0 0 24%; }
.brand img { width: 100%; height: auto; }
h1 { color: #fff4df; font-size: 25px; margin: 0; line-height: 1.25; font-weight: 750; }
.corner-leaves {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 25%;
  height: auto;
  pointer-events: none;
}
.sponsors { display: flex; flex-direction: column; gap: 10px; }
img { display: block; width: 100%; min-width: 0; height: auto; }
.banner { aspect-ratio: 1700 / 800; }
.grid { display: grid; gap: 0; margin: 0; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
.grid-two img { aspect-ratio: 850 / 800; }
.short img { aspect-ratio: 852 / 401; }
.grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-four img { aspect-ratio: 425 / 403; }
.footer {
  margin-top: 32px;
  padding: 20px 0;
  text-align: center;
  background: #a3440e;
}
.footer p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.footer .sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
}
/* Tablet: keep the title readable while leaving room for the logo. */
@media (max-width: 900px) {
  .header { gap: 16px; }
  h1 { min-width: 0; font-size: clamp(17px, 2.7vw, 24px); }
}

/* Phone: wider content area and two columns for the smaller sponsors. */
@media (max-width: 600px) {
  .page { padding-top: 10px; padding-bottom: 32px; }
  .header, .sponsors { width: 94%; }
  .header { min-height: 52px; gap: 12px; margin-bottom: 12px; padding-right: 12px; }
  .header::before { left: -4%; right: -4%; height: 100%; }
  .brand { flex-basis: 32%; max-width: 150px; }
  h1 { flex: 1; font-size: clamp(15px, 3.6vw, 21px); line-height: 1.35; text-wrap: balance; }
  .corner-leaves { width: 18%; }
  .sponsors { gap: 8px; }
  .grid-two { row-gap: 8px; }
  .grid-four { gap: 8px 0; }
  .footer { margin-top: 20px; padding: 14px 0; }
  .footer p { font-size: 14px; }
  .footer .sub { font-size: 11px; }
}

/* Small phones: larger sponsor cards so their printed text stays legible. */
@media (max-width: 380px) {
  .header { gap: 8px; }
  .brand { flex-basis: 35%; }
  h1 { font-size: 14px; }
}
