/* Home page mobile corrections: Get Involved spacing, "We are Here to Hear
   From You" contact block, Youth Empowerment card, Our Commitment section.
   Desktop (>=1025px) untouched. Uses existing spacing tokens. */

@media (max-width: 1024px) {
  /* ---------- Get Involved: visible bottom space ---------- */
  /* Root cause: the section had no padding-bottom, so the last child's
     bottom margin collapsed out through the parent's bottom edge and the
     green panel ended flush with its content. Padding on the correct
     container fixes it without arbitrary offsets. */
  .main_get_involved {
    padding-bottom: var(--space-6);
  }

  .cont {
    margin-bottom: 0;
  }

  /* ---------- "We are Here to Hear From You" ---------- */
  /* Root cause: .can_we1/.can_we3 used margin-left: -45px / margin-right: 45px
     inside 50%-wide grid columns, pushing those cards (and their text)
     outside the viewport. Plus .contact_us_h2 is a flex container, so its
     heading is an anonymous flex item that isn't reliably centred. */
  .us {
    display: block;
  }

  .contact_us {
    margin: 0 var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .contact_us h1 {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
  }

  .contact_us_h2 {
    display: block;
    text-align: center;
    padding: var(--space-3) var(--space-4);
  }

  .contact_us_h2 h2 {
    font-size: 1.15rem;
    line-height: var(--line-height-heading);
    margin: 0;
  }

  .contact_p {
    padding: 0 var(--space-4);
    text-align: center;
    line-height: var(--line-height-base);
  }

  .main_can_we {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .can_we1,
  .can_we2,
  .can_we3,
  .can_we4 {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .can_we1 h2,
  .can_we2 h2,
  .can_we3 h2,
  .can_we4 h2 {
    font-size: 1.1rem;
    line-height: var(--line-height-heading);
    margin: 0;
    overflow-wrap: break-word;
  }

  /* ---------- Youth Empowerment card ---------- */
  /* Root cause: the inner .you row is a 500px-wide flex box with a 20px left
     margin inside the card, so its text ran past the card edge on phones. */
  .youth {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .you {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
  }

  .you img {
    max-width: 100%;
    height: auto;
  }

  .you h1 {
    width: auto;
    max-width: 100%;
    font-size: 1.25rem;
    line-height: var(--line-height-heading);
  }

  .youths2 {
    width: auto;
    max-width: 100%;
    margin: var(--space-3) 0 0;
    line-height: var(--line-height-base);
    overflow-wrap: break-word;
  }

  /* ---------- Our Commitment ---------- */
  .commitment_h1 {
    display: block;
    text-align: center;
    margin: 0 var(--space-4) var(--space-4);
  }

  .commitment_h1 h1 {
    font-size: 1.9rem;
    line-height: var(--line-height-heading);
    padding: var(--space-3);
  }

  .commitment_h2 {
    display: block;
    text-align: center;
    margin: 0 var(--space-4) var(--space-4);
  }

  .commitment_h2 h2 {
    font-size: 1.25rem;
    line-height: var(--line-height-heading);
    margin: 0;
  }

  .commitment_p {
    margin: 0 var(--space-4);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .commitment_p p {
    margin: 0;
    line-height: var(--line-height-base);
    overflow-wrap: break-word;
  }

  /* ---------- Impact statistics (heading removed this stage) ---------- */
  .impact {
    padding: var(--space-6) var(--space-4);
  }

  .impact-container {
    gap: var(--space-4);
  }

  .impact-box {
    width: auto;
    max-width: 100%;
    min-height: 100px;
    padding: var(--space-4);
  }
}