
:root {
  --red: #b8141f;
  --red-dark: #8f1019;
  --dark: #17191f;
  --text: #242833;
  --muted: #6a707d;
  --line: #e6e8ee;
  --card: #ffffff;
  --bg: #f6f7f9;
  --soft-red: #fff1f2;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.nav {
  height: 72px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.logo-number {
  font-size: 44px;
  color: var(--red);
  font-style: italic;
}

.logo-text {
  font-size: 18px;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: #1f2430;
  opacity: 0.82;
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  opacity: 1;
  border-bottom-color: var(--red);
}

.btn {
  background: var(--red);
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 800;
  display: inline-block;
  border: 2px solid var(--red);
  box-shadow: 0 6px 16px rgba(184, 20, 31, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.65);
  box-shadow: none;
}

.btn.light {
  background: white;
  color: var(--red);
  border-color: white;
}

.hero {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 6vw;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.58) 40%, rgba(0,0,0,0.10) 78%),
    url('assets/lemons2.jpg') center/cover;
}

.hero.small {
  min-height: 260px;
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  margin: 0 0 22px;
  letter-spacing: -0.05em;
}

.hero.small h1 {
  font-size: clamp(38px, 4vw, 58px);
}

.hero p {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.wrap {
  width: min(var(--max), calc(100% - 12vw));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.snap-item {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}

.snap-item:last-child { border-right: none; }

.snap-icon {
  font-size: 25px;
  color: var(--red);
  flex: 0 0 auto;
}

.label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.snap-item p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2, .section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.card p, .section p {
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  font-size: 15px;
}

.about { grid-column: span 4; }
.why { grid-column: span 8; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  text-align: center;
}

.why-box {
  border-left: 1px solid var(--line);
  padding: 8px 10px;
}

.why-box:first-child { border-left: none; }

.why-icon {
  width: 41px;
  height: 41px;
  color: var(--red);
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.9;
}

.why-box strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.why-box span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: block;
}

.team { grid-column: span 4; }
.plan { grid-column: span 5; }
.funding { grid-column: span 3; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.person {
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.avatar {
  height: 110px;
  background: linear-gradient(135deg, #d8dce5, #f1f2f5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img,
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Individual image positioning */
/* Individual team image crops */

.max-img {
  transform: scale(1.15) translateY(5%);
}

.xavier-img {
  transform: scale(2.5) translate(-7%, 18%);
}

.thomas-img {
  transform: scale(2.6) translate(-7%, -1%);
}

.adam-img {
  transform: scale(1) translateY(0%);
}

.person strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}

.person span {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  margin: 3px 0 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  margin-top: 18px;
}

.phase {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  background: #fff;
}

.phase small {
  color: var(--red);
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
}

.phase strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.phase span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: block;
}

.amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  margin: 8px 0 6px;
}

.progress-track {
  width: 100%;
  height: 15px;
  background: #dde0e6;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--red), #e64b55);
}

.sponsor-table { grid-column: span 5; overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

th, td {
  border: 1px solid var(--line);
  padding: 8px 7px;
  text-align: center;
}

th {
  background: var(--red);
  color: white;
  text-transform: uppercase;
  font-size: 11px;
}

td:first-child {
  text-align: left;
  font-weight: 700;
  color: #333;
}

.partners { grid-column: span 4; }

.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.partner-logo {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 900;
  background: #fafafa;
  text-align: center;
  padding: 8px;
}

.follow { grid-column: span 3; }

.socials {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.social svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  stroke-width: 2;
  flex-shrink: 0;
}

.red-link {
  color: var(--red);
  font-weight: 800;
  display: inline-block;
  margin-top: 14px;
}

.section {
  margin-top: 18px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.wide { grid-column: span 12; }
.half { grid-column: span 6; }
.third { grid-column: span 4; }
.two-third { grid-column: span 8; }

.update-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: stretch;
}

.update-date {
  background: var(--soft-red);
  border: 1px solid #ffd7dc;
  border-radius: 12px;
  padding: 16px;
  color: var(--red);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
}

/* added manually for instagram mention on update page 6/23 */
.instagram-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 18px 0 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.instagram-note svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

.instagram-note strong {
  color: var(--red);
}

.instagram-note a {
  color: var(--red);
  text-decoration: none;
}

.instagram-note a:hover {
  text-decoration: underline;
}

.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0 14px;
  font: inherit;
}

.form-box label {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

.form-box textarea { min-height: 130px; resize: vertical; }

.footer {
  margin-top: 22px;
  padding: 26px 6vw;
  background: white;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer h3 { margin: 0 0 8px; }

.copyright {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 12px;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .snapshot { grid-template-columns: repeat(2, 1fr); }
  .snap-item { border-right: none; border-bottom: 1px solid var(--line); }
  .about, .why, .team, .plan, .funding, .sponsor-table, .partners, .follow,
  .wide, .half, .third, .two-third { grid-column: span 12; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 0 18px; }
  .logo-number { font-size: 34px; }
  .logo-text { font-size: 14px; }
  .hero { padding: 42px 18px 80px; }
  .wrap { width: calc(100% - 36px); padding: 16px 0 40px; }
  .snapshot { grid-template-columns: 1fr; }
  .why-grid, .timeline, .team-grid, .partner-logos, .update-card { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* ================================
   Team Page
================================ */

.team-hero {
  background:
    linear-gradient(135deg, rgba(8, 11, 18, 0.92), rgba(8, 11, 18, 0.72)),
    url("assets/hero-car.jpg") center/cover;
  color: white;
  padding: 95px 0 75px;
}

.team-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin: 0 0 22px;
}

.team-hero p {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.team-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 70px 0 30px;
}

.team-intro h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}

.team-intro p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.team-intro-card {
  background: white;
  border: 1px solid rgba(20, 24, 34, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(20, 24, 34, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-intro-card svg {
  width: 42px;
  height: 42px;
  color: var(--red);
  margin-bottom: 18px;
}

.team-intro-card strong {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.team-intro-card span {
  color: var(--muted);
  line-height: 1.6;
}

.team-members-large {
  display: grid;
  gap: 34px;
  padding: 45px 0 70px;
}

.team-member-large {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  background: white;
  border: 1px solid rgba(20, 24, 34, 0.08);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(20, 24, 34, 0.08);
}

.team-member-large.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.team-member-large.reverse .member-photo {
  order: 2;
}

.member-photo {
  height: 390px;
  border-radius: 22px;
  overflow: hidden;
  background: #f1f2f5;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  background: #f1f2f5;
}

.member-info {
  padding: 22px;
}

.member-role {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 10px;
}

.member-info h2 {
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 16px;
}

.member-info p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Individual team page image adjustments */
.max-team-page {
  transform: scale(1.65) translateY(11.5%);

}

.xavier-team-page {
    transform: scale(2.4) translate(-3.5%, 15%);

}

.thomas-team-page {
  transform: scale(2.5) translate(-4%, 0%);
}

.adam-team-page {
  transform: scale(3) translate(2%, 20%);
}

.friendship-section {
  padding: 30px 0 75px;
}

.centered {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.friendship-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.friendship-card {
  background: white;
  border: 1px solid rgba(20, 24, 34, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 38px rgba(20, 24, 34, 0.06);
}

.friendship-card svg {
  width: 34px;
  height: 34px;
  color: var(--red);
  margin-bottom: 16px;
}

.friendship-card h3 {
  margin-bottom: 10px;
}

.friendship-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.team-cta {
  background:
    linear-gradient(135deg, rgba(184, 20, 31, 0.96), rgba(120, 12, 22, 0.96));
  color: white;
  border-radius: 30px;
  padding: 48px;
  margin-bottom: 80px;
  box-shadow: 0 20px 60px rgba(184, 20, 31, 0.25);
}

.team-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 14px;
}

.team-cta p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  margin-bottom: 24px;
}

.team-cta .btn {
  background: white;
  color: var(--red);
}

.team-cta .red-link {
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .team-intro {
    grid-template-columns: 1fr;
  }

  .team-member-large,
  .team-member-large.reverse {
    grid-template-columns: 1fr;
  }

  .team-member-large.reverse .member-photo {
    order: 0;
  }

  .member-photo {
    height: 330px;
  }

  .friendship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-hero {
    padding: 75px 0 55px;
  }

  .team-member-large {
    padding: 14px;
  }

  .member-info {
    padding: 14px;
  }

  .member-photo {
    height: 280px;
  }

  .friendship-grid {
    grid-template-columns: 1fr;
  }

  .team-cta {
    padding: 32px 24px;
    border-radius: 22px;
  }
}


/* ================================
   Final cleanup after team page update
   Keeps original homepage sizing while adding the new Team page
================================ */

/* Keep the page selection bar simple and consistent */
.nav .logo {
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: #1f2430;
  opacity: 0.78;
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  opacity: 1;
  border-bottom-color: var(--red);
}

.nav-button {
  display: none;
}

button.btn {
  cursor: pointer;
  font: inherit;
}

/* Clean Lucide icons in the homepage snapshot row */
.snap-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft-red);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 0;
}

.snap-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

/* Clean Lucide icons in Why This Matters */
.why-icon {
  width: 64px;
  height: 64px;
  color: var(--red);
  background: rgba(184, 20, 31, 0.07);
  border-radius: 999px;
  margin: 4px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.team-intro-card i,
.friendship-card i,
.social i,
.why-icon i,
.snap-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Restore the original homepage Meet the Team card sizing */
.team {
  grid-column: span 4;
}

.team .team-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team .avatar {
  height: 110px;
}

.team .person {
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: none;
}

.team .person strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}

.team .person span {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  margin: 3px 0 8px;
}

/* Keep your hand-tuned homepage image crops exactly intact */
.avatar img,
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.max-img {
  transform: scale(1.15) translateY(5%);
}

.xavier-img {
  transform: scale(2.5) translate(-7%, 18%);
}

.thomas-img {
  transform: scale(2.6) translate(-7%, -1%);
}

.adam-img {
  transform: scale(3.3) translate(3%, 21.5%);
}

/* Make the Team page use the same visual language as the other subpages */
.team-intro {
  padding: 38px 0 22px;
}

.team-members-large {
  padding: 24px 0 58px;
}

.team-cta {
  margin-top: 0;
}

.center-button {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

/* Responsive cleanup */
@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .about, .why, .team, .plan, .funding, .sponsor-table, .partners, .follow,
  .wide, .half, .third, .two-third {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .team .team-grid {
    grid-template-columns: 1fr;
  }

  .team .avatar {
    height: 260px;
  }
}

.member-meta {
  display: inline-block;
  color: var(--red);
  background: var(--soft-red);
  border: 1px solid #ffd7dc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: -4px 0 18px;
}

/* ================================
   Strong Mobile Fixes
================================ */

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  /* Header / nav */
  .nav {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo-number {
    font-size: 32px;
  }

  .logo-text {
    font-size: 13px;
  }

  .nav > .btn {
    padding: 9px 12px;
    font-size: 12px;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 0;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: 8px 0 10px;
    font-size: 13px;
    border-bottom-width: 2px;
  }

  /* Hero sections */
  .hero {
    min-height: 360px;
    padding: 46px 18px 70px;
    background-position: center;
  }

  .hero.small {
    min-height: 240px;
    padding: 46px 18px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 0.98;
  }

  .hero.small h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Main wrapper */
  .wrap {
    width: calc(100% - 28px);
    padding: 14px 0 36px;
  }

  /* Snapshot top stats */
  .snapshot {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .snap-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .snap-item:last-child {
    border-bottom: none;
  }

  /* Cards */
  .grid,
  .page-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about,
  .why,
  .team,
  .plan,
  .funding,
  .sponsor-table,
  .partners,
  .follow,
  .wide,
  .half,
  .third,
  .two-third {
    grid-column: 1 / -1;
  }

  .card {
    padding: 20px;
    border-radius: 14px;
  }

  .card h2,
  .section h2 {
    font-size: 18px;
  }

  .card p,
  .section p {
    font-size: 15px;
  }

  /* Why This Matters */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .why-box {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 10px;
  }

  .why-box:last-child {
    border-bottom: none;
  }

  .why-icon {
    margin-bottom: 12px;
  }

  .why-box strong {
    font-size: 15px;
  }

  .why-box span {
    font-size: 13px;
  }

  /* Homepage team card */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .avatar {
    height: 135px;
  }

  .person strong {
    font-size: 14px;
  }

  .person span {
    font-size: 11px;
  }

  /* Project plan */
  .timeline {
    grid-template-columns: 1fr;
  }

  .phase {
    padding: 16px;
  }

  .phase strong {
    font-size: 15px;
  }

  .phase span {
    font-size: 13px;
  }

  /* Tables */
  .sponsor-table {
    overflow-x: auto;
  }

  table {
    min-width: 620px;
    font-size: 12px;
  }

  th,
  td {
    padding: 9px 7px;
  }

  /* Partner logos */
  .partner-logos {
    grid-template-columns: 1fr;
  }

  /* Build update cards */
  .update-card {
    grid-template-columns: 1fr;
  }

  .update-date {
    min-height: auto;
    padding: 18px;
  }

  /* Team page */
  .team-intro {
    grid-template-columns: 1fr;
    padding: 36px 0 20px;
  }

  .team-member-large,
  .team-member-large.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .team-member-large.reverse .member-photo {
    order: 0;
  }

  .member-photo {
    height: 330px;
  }

  .member-info {
    padding: 8px 4px 14px;
  }

  .member-info h2 {
    font-size: 36px;
  }

  .friendship-grid {
    grid-template-columns: 1fr;
  }

  .team-cta {
    padding: 30px 22px;
    border-radius: 20px;
  }

  /* Contact form */
  .form-box input,
  .form-box textarea,
  .form-box select {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    grid-template-columns: 1fr;
    padding: 26px 18px;
    gap: 22px;
  }
}

/* ================================
   Mobile Nav Fix
================================ */

@media (max-width: 760px) {
  .nav {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav .logo {
    flex: 1;
  }

  .nav > .btn {
    flex: 0 0 auto;
    padding: 11px 16px;
    font-size: 14px;
  }

  .nav-links {
    display: flex !important;
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0 2px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 8px 0 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    opacity: 0.8;
    border-bottom: 2px solid transparent;
  }

  .nav-links a.active {
    color: var(--red);
    opacity: 1;
    border-bottom-color: var(--red);
  }
}

/* ================================
   Sponsors Page Mobile Fix
================================ */

@media (max-width: 760px) {
  /* Prevent horizontal page breaking */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Make page cards fit properly */
  .page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .page-grid .card,
  .page-grid .wide,
  .page-grid .half,
  .page-grid .third,
  .page-grid .two-third {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  /* Fix huge text inside sponsors/contact/update pages */
  .page-grid .card h2 {
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .page-grid .card p {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-grid .amount {
    font-size: 28px;
    line-height: 1.1;
  }

  /* Fix progress card */
  .progress-track {
    width: 100%;
    max-width: 100%;
  }

  /* Fix sponsor table overflow */
  .page-grid table {
    min-width: 640px;
    font-size: 12px;
  }

  .page-grid .wide {
    overflow-x: auto;
  }

  .page-grid .wide::-webkit-scrollbar {
    height: 6px;
  }

  /* Fix giant spacing */
  .wrap {
    width: calc(100% - 32px);
    padding: 16px 0 40px;
  }

  .card {
    padding: 20px;
    border-radius: 14px;
  }
}