/* Outfix font: add @font-face or link from your font provider if needed */
/* Using fallback until Outfix is loaded */
:root {
  --Gradient: linear-gradient(180deg, #26155B 0%, #74279B 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Outfix', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* Section 1: Gradient hero */
.hero-section {
  background: var(--Gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 16px 16px;
}

.hero-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 32px 0px;
}

.hero-illustration {
  display: block;
  width: 100%;
  max-width: 296px;
  height: auto;
  flex-shrink: 0;
}

.hero-text-block {
  flex: 1;
  min-width: 280px;
}

.hero-welcome {
  margin: 0 0 0.5rem 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.22222;
  color: #fff;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 456px;
  height: auto;
  margin-top: 24px;
  margin-bottom: 24px;
}

.hero-subtitle {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.28571;
  color: #ffc53d;
}

/* Mobile: stack illustration above text */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text-block {
    min-width: unset;
  }

  .hero-logo {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 304px ;
  }
}

/* Section 2: Sponsors (white background) */
.sponsors-section {
  background: #fff;
  overflow: hidden;
  padding: 2rem 0;
}

.sponsors-scroll-container {
  width: 100%;
  max-width: 100%;
}

.sponsors-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 0 1.5rem;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 390px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sponsor-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.sponsor-item--uc-berkeley .sponsor-logo { width: 225px; }
.sponsor-item--tribes .sponsor-logo { width: 104px; }
.sponsor-item--national-bbcb .sponsor-logo { width: 176px; }
.sponsor-item--mizzou .sponsor-logo { width: 120px; }
.sponsor-item--hillsborough-college .sponsor-logo { width: 224px; }
.sponsor-item--stanford .sponsor-logo { width: 160px; }

.sponsor-name {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

/*
 * Mobile sponsors: use grid + minmax(0,1fr) so real narrow viewports (e.g. Android
 * ~360px CSS px) do not blow out layout; flex min-width:auto on children is a common cause
 * of off-center content that DevTools mobile presets do not show.
 */
@media (max-width: 768px) {
  .sponsors-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }

  .sponsor-item {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    box-sizing: border-box;
    margin-inline: auto;
  }

  .sponsor-logo {
    max-width: 100%;
    width: auto;
    height: auto;
    margin-inline: auto;
  }
}
