.hero-block-main-container {
  position: relative;
  min-height: 500px;
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-block-main-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #00b1b0;
  opacity: 0.8;
  z-index: 0;
}

.hero-content-container {
  position: relative;
  z-index: 1;
  padding: 3rem;
  width: 82rem;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #e0ff66;
  color: black;
  padding: 4px 16px;
  border-radius: 999px;
}

.hero-title {
  font-size: 3.5rem;
  margin: 0.5em 0;
  line-height: 5rem;
}

.legacy-highlight {
  color: #e0ff66;
}

.hero-content-container h1 {
  color: white;
  font-weight: 900;
}

.hero-description-container {
  max-width: 900px;
}

.hero-description-container p {
  color: #ffffff !important;
  font-size: 1.2rem;
  margin-bottom: 1em;
}

.hero-button {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.8em 2em;
  background-color: #e0ff66;
  color: black;
  text-decoration: none;
  border-radius: 999px;
  margin-top: 1rem;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.hero-button:hover {
  text-decoration: none;
  color: black;
  transform: scale(1.05);
}

.hero-button:active {
  transform: scale(0.95);
}

.impact-section {
  width: 100%;
  padding: 2rem 0 !important;
}

.impact-content-container {
  width: 82rem;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.impact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #f0f5f4;
  color: #13b1cb;
  padding: 4px 16px;
  border-radius: 999px;
}

.impact-header {
  color: #13b1cb;
  font-weight: 900;
  font-size: 3rem;
}

.impact-description p {
  color: dimgray;
  font-size: 1.2rem;
}

.impact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.impact-card {
  flex: 1 1 calc(50% - 1rem);
  box-sizing: border-box;
  background-color: #f7f9fb;
  text-align: left;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 24px;
  border: 1px solid #e1effc;
  transition: transform 0.3s ease-in-out;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card-icon {
  background-color: #13b1cb;
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  text-align: center;
  line-height: 60px;
}

.impact-card-description {
  font-weight: 600;
  color: gray;
}

.impact-footer {
  font-size: 1.5rem;
}

.impact-footer p {
  color: dimgray;
}

.impact-description,
.impact-footer {
  width: 100%;
  max-width: 700px;
}

.impact-card-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-card-links a {
  color: #12b1cb !important;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.impact-card-title {
  font-size: 1.5rem;
  color: dimgray;
  font-weight: 900;
  margin-bottom: unset;
}

.legacy-stories-section {
  width: 100%;
  background-color: #f4f7f2;
}

.legacy-stories-container {
  width: 82rem;
  margin: 0 auto;
  padding: 8rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.legacy-stories-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #b2d235;
  color: black;
  padding: 4px 16px;
  border-radius: 999px;
}

.legacy-stories-title {
  font-size: 3rem;
  color: #b2d235;
  font-weight: 900;
}

.legacy-stories-description {
  font-size: 1.2rem;
  max-width: 700px;
}

.legacy-stories-description p {
  color: dimgray;
}

.legacy-stories-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.legacy-stories-image-block,
.legacy-stories-quote-block {
  width: 50%;
}

.legacy-stories-image-block img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.legacy-stories-quote-block {
  background-color: white;
  padding: 3rem;
  position: relative;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legacy-stories-quote-block::before {
  content: "“";
  font-size: 8rem;
  font-weight: bold;
  color: #b2d235;
  position: absolute;
  top: -2rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.legacy-stories-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: dimgray;
  font-weight: 600;
}

.legacy-author-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-author-letter {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b2d235;
  border-radius: 100%;
}

.legacy-author-letter p {
  color: white;
  font-weight: 600;
  margin-top: 14px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-details p {
  margin-bottom: unset;
}

.legacy-author {
  font-weight: 600;
  text-align: left;
}

.legacy-author-title {
  font-size: 0.875rem;
  color: dimgray;
}

/* Outer Section */
.legacy-start-today {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

/* Content wrapper with max width */
.legacy-start-today__content {
  width: 82rem;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 2rem;
}

/* Hero area with background image */
.legacy-start-today__hero {
  position: relative;
  background-size: cover;
  background-position: center 33%;
  background-repeat: no-repeat;
  padding: 40px 30px;
  border-radius: 24px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  text-align: left;
  color: #fff;
  width: 100%;
}

/* Overlay effect if needed */
.legacy-start-today__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  z-index: 0;
}

.legacy-start-today__hero > * {
  position: relative; /* ensures text is above overlay */
  z-index: 1;
}

.legacy-start-today__label {
  display: inline-block; /* keeps it just as wide as the text */
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #e0ff66;
  color: black;
  padding: 4px 16px;
  border-radius: 999px;
  max-width: fit-content; /* ensures it won’t stretch */
}

.legacy-start-today__header {
  font-size: 28px;
  margin-bottom: 0;
}

.legacy-start-today__header h2 {
  color: white;
  font-weight: 900;
}

.legacy-start-today__description {
  max-width: 750px;
  font-size: 1.2rem;
}

.legacy-start-today__description p {
  margin-bottom: 10px;
  color: dimgray;
}

.legacy-start-today__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8em 2em;
  background-color: #e0ff66;
  color: black;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.legacy-start-today__btn:hover {
  text-decoration: none;
  color: black;
  transform: scale(1.05);
}

.legacy-start-today__btn:active {
  transform: scale(0.95);
}

/* Foster Society */

.legacy-foster-society {
  width: 100%;
  background-color: #f8f9fb;
}

.legacy-foster-society-header-container {
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  margin-top: 1.5rem;
}

.legacy-foster-society-content-container {
  width: 82rem;
  margin: 0 auto;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Label Container */
.legacy-foster-society__label-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legacy-foster-society__label-image {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  background-color: #13b1cb;
  border-radius: 8px;
}
.legacy-foster-society__label-text {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Title */
.legacy-foster-society__title {
  font-size: 3rem;
  font-weight: 900;
  color: #13b1cb;
  margin: 0;
}

/* Content Container */
.legacy-foster-society__content-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap; /* responsive wrap */
  margin-top: 1.5rem;
}

/* Left Image */
.legacy-foster-society__image-left {
  flex: 1 1 50%;
}
.legacy-foster-society__image-left img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Right Text */
.legacy-foster-society__text-right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Description */
.legacy-foster-society__description p {
  margin-bottom: 10px;
  color: dimgray;
}

/* List */
.legacy-foster-society__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legacy-foster-society__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: dimgray;
}
.legacy-foster-society__list-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.legacy-foster-society__list-title {
  color: dimgray;
}

.legacy-foster-society__footer {
  max-width: 900px;
  text-align: center;
}

.legacy-foster-society__footer-text {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.legacy-foster-society__footer-text p {
  color: dimgray;
}

.legacy-foster-society__footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8em 2em;
  background-color: #13b1cb;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.legacy-foster-society__footer-btn:hover {
  text-decoration: none;
  transform: scale(1.05);
  color: white;
}

.legacy-foster-society__footer-btn:active {
  transform: scale(0.95);
}

.legacy-foster-society__additional-link {
  margin-top: 1rem;
}

.legacy-foster-society__additional-link p {
  color: dimgray;
  font-size: 0.875rem;
}

/* Legacy Contact Section */

.legacy-contact {
  width: 100%;
  padding: 4rem 0rem 2rem 0rem;
  background-color: #f8f9fb;
}

.legacy-contact-content-container {
  width: 76rem;
  margin: 0 auto;
  padding: 3rem 3rem 6rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.legacy-contact__label {
  display: inline-flex; /* shrink to fit content */
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #f0f5f4;
  color: #13b1cb;
  padding: 4px 16px;
  border-radius: 999px;
}

.legacy-contact__title {
  font-size: 3rem;
  font-weight: 900;
  color: #13b1cb;
  margin: 0;
}

.legacy-contact__description p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: dimgray;
  text-align: center;
}

.legacy-contact__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  justify-content: center;
}

.legacy-contact__card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 14px;
  width: 350px;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgb(230, 230, 230);
}

.legacy-contact__card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.legacy-contact__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #effdff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d4f8fd;
}

/* Icon */
.legacy-contact__card-icon svg {
  width: 20px;
  height: 20px;
}

/* Content */
.legacy-contact__card-content {
  display: flex;
  flex-direction: column;
}

.legacy-contact__card-type {
  font-size: 0.8rem;
  color: dimgray;
}

.legacy-contact__card-detail a {
  color: #0073aa;
  text-decoration: none;
}

.legacy-contact__card-detail a:hover {
  text-decoration: underline;
}

/* Legacy Future of Hope */

.legacy-future-of-hope {
  background: linear-gradient(200deg, #48a195, #45b3b3);
}

.legacy-future-content-container {
  width: 76rem;
  margin: 0 auto;
  padding: 8rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.legacy-future-of-hope__title {
  font-size: 3rem;
  font-weight: 900;
  color: #e0ff66;
  margin: 0;
}

.legacy-future-of-hope__description {
  max-width: 700px;
  text-align: center;
  font-size: 1.2rem;
}

.legacy-future-of-hope__description p {
  color: white;
  margin-bottom: unset;
}

.legacy-future-of-hope__btn {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.8em 2em;
  background-color: #e0ff66;
  color: black;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.legacy-future-of-hope__btn:hover {
  text-decoration: none;
  color: black;
  transform: scale(1.05);
}

/* Legacy Partner */

.legacy-partner {
  max-width: 76rem;
  margin: 6rem auto 3rem auto;
}

.legacy-partner__container {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 3rem 0rem 3rem;
}

.legacy-partner__logo {
  width: 40%;
}

/* Logo */
.legacy-partner__logo img {
  width: 100%;
  height: auto;
}

/* Content */
.legacy-partner__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legacy-partner__label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #13b1cb;
}

.legacy-partner__title {
  font-size: 3rem;
  margin: 0;
}

.legacy-partner__description p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: dimgray;
}

.legacy-partner__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #13b1cb;
  text-decoration: underline;
  font-weight: 600;
  border-radius: 6px;
  font-size: 1.2rem;
}

/* Legacy Download */

.legacy-download-tools {
  background-color: #f4f7f2;
}

.legacy-download-tools__container {
  width: 76rem;
  margin: 0 auto;
  padding: 8rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.legacy-download-tools__label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #b2d235;
  color: black;
  padding: 4px 16px;
  border-radius: 999px;
}

.legacy-download-tools__title {
  font-size: 3rem;
  color: #b2d235;
  font-weight: 900;
}

.legacy-download-tools__cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legacy-download-tools__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  background-color: white;
  padding: 2rem;
  border-radius: 24px;
  width: 350px;
  transition: box-shadow 0.3s ease;
}

.legacy-download-tools__card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legacy-download-tools__card-icon {
  background-color: #b2d235;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-download-tools__card-title {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: unset;
  font-weight: 600;
  color: dimgray;
}

.legacy-download-tools__card-link {
  color: #b2d235;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Legacy Accordion */

.legacy-accordion {
  width: 100%;
  background-color: #f4f7f2;
}

.legacy-accordion__container {
  width: 76rem;
  margin: 0 auto;
  padding: 8rem 0rem 4rem 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.legacy-accordion__items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.legacy-accordion__item {
  width: 100%;
  background-color: #b2d235;
  padding: 1rem 2rem;
  border-radius: 12px;
}

.legacy-accordion__label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  background-color: #b2d235;
  color: black;
  padding: 4px 16px;
  border-radius: 999px;
}

.legacy-accordion__title {
  font-size: 3rem;
  color: #b2d235;
  font-weight: 900;
}

.legacy-accordion__description {
  max-width: 700px;
  text-align: center;
  font-size: 1.2rem;
}

.legacy-accordion__description p {
  color: dimgray;
  margin-bottom: unset;
}

.legacy-accordion__item-title {
  margin-bottom: unset;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

.legacy-accordion-content-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legacy-accordion-content-info {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 0; /* remove vertical padding initially */
  font-weight: 600;
}

.legacy-accordion-content-info p {
  color: white;
}

.legacy-accordion-content-info.active {
  max-height: 2000px; /* large enough for content */
  padding: 1rem 0; /* restore padding when open */
}

.legacy-accordion__toggle-arrow {
  margin-left: auto; /* pushes arrow to the far right */
  cursor: pointer;
  display: flex;
  align-items: center;
}

.legacy-accordion__cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.legacy-accordion__card {
  background-color: white;
  width: 49.3%;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legacy-accordion__card-icon {
  background-color: #f5fff2;
  width: 60px;
  height: 60px;
  border: 2px solid #b2d235;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-accordion__card h4 {
  color: #b2d235;
  margin-top: 1rem;
  font-weight: 600;
}

.legacy-accordion__card p {
  color: dimgray;
}

.legacy-accordion__card-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legacy-accordion__card-links a {
  display: inline-flex;
  align-items: center; /* vertically center icon and text */
  gap: 8px; /* space between icon and text */
  text-decoration: none; /* optional: remove underline */
  color: #b2d235; /* match border/accent color */
  font-weight: 600;
}

.legacy-accordion__link-icon svg {
  width: 18px;
  height: 18px;
  display: block; /* remove inline SVG spacing issues */
}

/* -----------------------Mobile Styles Start------------------------- */

@media (max-width: 768px) {
  .hero-block-main-container {
    margin-top: 180px;
    height: unset;
  }

  .hero-content-container,
  .impact-content-container,
  .legacy-stories-container,
  .legacy-start-today__content,
  .legacy-foster-society-content-container,
  .legacy-contact-content-container,
  .legacy-future-content-container,
  .legacy-accordion__container,
  .legacy-download-tools__container {
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content-container {
    align-items: flex-start;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .hero-description-container p {
    font-size: 1rem;
  }

  .impact-card {
    flex: 1 1 100%;
  }

  .impact-header {
    line-height: 4rem;
    font-size: 2.5rem;
  }

  .legacy-stories-image-block,
  .legacy-stories-quote-block {
    width: 100%;
  }

  .legacy-stories-content {
    flex-direction: column;
  }

  .legacy-stories-quote {
    font-size: 1.2rem;
    text-align: left;
  }

  .legacy-stories-description {
    font-size: 1rem;
  }

  .legacy-foster-society__content-container {
    flex-direction: column;
  }

  .legacy-contact__card {
    width: 100%;
  }

  .legacy-partner__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .legacy-partner__logo img {
    margin-bottom: 20px;
  }

  .legacy-stories-title {
    font-size: 2.5rem;
  }

  .legacy-start-today__header h2 {
    font-size: 2.5rem;
  }

  .legacy-foster-society__title {
    font-size: 2.5rem;
  }

  .legacy-future-of-hope__title {
    text-align: center;
    font-size: 2.5rem;
  }

  .legacy-contact__title {
    font-size: 2.5rem;
  }

  .legacy-partner__title {
    font-size: 2.5rem;
  }

  .legacy-partner__container {
    flex-direction: column;
  }

  .legacy-partner__logo {
    width: 100%;
  }

  .legacy-partner__btn {
    flex-direction: row-reverse;
    align-items: center;
  }

  .legacy-accordion__title,
  .legacy-download-tools__title {
    text-align: center;
    font-size: 2.5rem;
  }

  .legacy-accordion__item-title {
    font-size: 1.2rem;
  }

  .legacy-accordion__cards {
    flex-direction: column;
  }

  .legacy-accordion__card {
    width: 100%;
  }
}

/* -----------------------Mobile Styles End------------------------- */
