/* Legacy Section Styles */
.legacy-section {
  font-family:
    Lato,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
}

.legacy-container {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 440px;
  width: 100%;
  padding: 167px 0px 86px;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  align-content: center;
  flex-wrap: wrap;
}

.legacy-background {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.legacy-content {
  position: relative;
  align-self: stretch;
  min-width: 240px;
  margin: 0 auto;
  width: 100%;
  max-width: 1232px;
  padding-right: 0px;
  flex: 1;
  flex-shrink: 1;
  flex-basis: 0%;
}

.legacy-heading-container {
  box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-100)
    var(--sds-size-depth-100) var(--sds-size-depth-negative-100)
    var(--sds-color-black-100);
  width: 800px;
  max-width: 100%;
  font-size: 64px;
  color: rgba(252, 188, 18, 1);
  font-weight: 900;
  line-height: 1.3;
}

.legacy-heading-wrapper {
  width: 100%;
}

.legacy-heading {
  width: 100%;
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  color: rgba(252, 188, 18, 1);
}

.legacy-description {
  color: rgba(255, 255, 255, 1);
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  margin-top: 8px;
  padding-right: 204px;
}

/* Involvement Section Styles */
/* Get Involved Section Styles */
.get-involved-section {
  font-family:
    Lato,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  color: #ffffff;
  width: 100%;

  margin: 0 auto;
  overflow: hidden;
}

.get-involved-container {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 1392px;
  width: 100%;
  padding: 48px 20px 64px;
  overflow: hidden;
  align-items: center;
}



.background-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.section-header {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  max-width: 1440px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  align-self: center;
  margin: 0;
}

.section-subtitle {
  font-size: 28px;
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 0;
}

.cards-row {
  position: relative;
  display: flex;
  margin-top: 48px;
  width: 100%;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1440px;
}
.button-link {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  display: flex;
  align-items: center;
}
.button-link:hover,
.button-link:focus,
.button-link:active {
  text-decoration: none;
  color: inherit;  /* Maintains the same color on hover */
}

@media (max-width: 991px) {
  .cards-row {
    margin-top: 40px;
  }
}

.involvement-card {
  min-width: 240px;
  flex: 1;
  flex-basis: 0%;
}

@media (max-width: 991px) {
  .involvement-card {
    max-width: 100%;
  }
}

.card-image {
  aspect-ratio: 1.89;
  object-fit: contain;
  object-position: center;
  width: 100%;
  border-radius: 8px;
}

.card-content {
  margin-top: 24px;
  width: 100%;
}

.card-text {
  width: 100%;
  font-size: 28px;
}

.card-title {
  font-weight: 700;
  line-height: 1;
  font-size: 28px;
  margin: 0;
}

.card-description {
  font-weight: 400;
  line-height: 42px;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.learn-more-button {
  border-radius: 8px;
  display: flex;
  margin-top: 16px;
  width: 160px;
  max-width: 100%;
  flex-direction: row;
  align-items: stretch;
  font-size: 26px;
  font-weight: 600;
  justify-content: center;
}

.button-content {
  border-color: rgba(252, 188, 18, 1);
  border-bottom-width: 4px;
  border-bottom-style: solid;
  display: flex;
  width: 100%;
  padding: 8px 0;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.button-text {
  align-self: stretch;
  margin: auto 0;
}

.button-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 15px;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .legacy-container {
    max-width: 100%;
    padding: 100px 20px;
    padding-top: 200px;
  }

  .legacy-content {
    max-width: 100%;
    padding-right: 0px;
  }

  .legacy-heading-container {
    font-size: 40px;
  }

  .legacy-heading-wrapper {
    max-width: 100%;
    font-size: 40px;
  }

  .legacy-heading {
    font-size: 40px;
    max-width: 100%;
  }

  .legacy-description {
    max-width: 100%;
    font-size: 26px;
    padding-right: 10px;
  }


}


/* Special header styling for family4impact page */
body:has(.legacy-section) .home1header .small_holder {
  background: transparent !important;
}



@media (max-width: 1155px) {
  body:has(.legacy-section) .home1header {
    position: fixed !important;
    background: none !important;
  }

  /* Prevent overlay nav from covering content */
  body:has(.legacy-section) {
    padding-top: 0;
  }
}



.section-header, 
.cards-row {
  max-width: 1232px;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustment */
@media (min-width: 1400px) {
  .legacy-content,
  .section-header,
  .cards-row {
    max-width: 1440px;
  }
}

/* For mobile, add some padding */
@media (max-width: 991px) {
  .legacy-content,
  .section-header,
  .cards-row {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 1156px) {
  .home1headernav_ul {
    max-width: 1232px;
    margin: 0 auto;
    padding-left: 0; /* Remove any left padding */
    padding-right: 0; /* Remove any right padding */
  }

  /* The first nav item should align with content edge */
  .home1headernav_ul_dropdown:first-child {
    padding-left: 0; /* Remove padding from first menu item */
  }

  /* Content containers should have consistent max-width and padding */
  .hero-content,
  .mission-content,
  .champions-content-wrapper,
  .numbers-content,
  .projects-container,
  .resources-content-wrapper {
    max-width: 1232px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1400px) {
  .home1headernav_ul {
    max-width: 1440px;
  }

  .hero-content,
  .mission-content,
  .champions-content-wrapper,
  .numbers-content,
  .projects-container,
  .resources-content-wrapper {
    max-width: 1440px;
  }
}

@media (min-width: 1156px) {
  /* Your existing CSS */

  /* Remove padding from first link to align "Home" with content edge */
  .home1headernav_ul_dropdown:first-child .home1headernav_ul_dropdown_dropdown_a {
    padding-left: 0;
  }
}
