html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1168px;
  padding: 0 1.3rem;
}

.donation-section {
    padding: 6rem 0;
    background-color: var(--color-neutral-white);
}

.donation-section--yellow {
    background-image: url('../images/yellow-pattern.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.donation-container {
    width: 100%;
    margin: 0 auto;
    max-width: 1168px;
    padding: 0 1.3rem;
}

.donation-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
}

.donation-content {
    flex: 1;
}

.donation-title {
    font-size: 3.8rem;
    line-height: 125%;
    font-weight: 700;
    color: var(--color-neutral-black);
    margin-bottom: 0.1rem;
}

.donation-subtitle {
    font-size: 2.6rem;
    line-height: 125%;
    font-weight: 400;
    color: var(--color-neutral-black);
    margin-bottom: 1.5rem;
}

.donation-description {
    font-size: 1.8rem;
    line-height: 150%;
    font-weight: 300;
    color: var(--color-neutral-black);
    margin-bottom: 3rem;
    max-width: 45rem;
}

.donation-button {
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 1.6rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--color-cta-default-solid);
    border-radius: 0.4rem;
    color: var(--color-neutral-white);
    background-color: var(--color-cta-default-solid);
    text-decoration: none;
    font-weight: 400;
    font-family: Inter, Arial, Helvetica, sans-serif;    
}

.donation-button:hover {
    background-color: var(--color-cta-default-hover);
    border-color: var(--color-cta-default-hover);
    box-shadow: 0rem 0.25rem 1rem rgba(0, 79, 41, 0.16);
    color: var(--color-neutral-white);
}

.donation-button:visited {
  color: var(--color-neutral-white);
  background-color: var(--color-cta-default-pressed);
  box-shadow: 1rem 1rem 1rem var(--color-cta-default-pressed);
}

.donation-video {
    flex: 1;
    position: relative;
}

.donation-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.8rem;
    border: none;
}

.why-title {
    font-size: 3.2rem;
    line-height: 130%;
    font-weight: 700;
    color: var(--color-neutral-black);
    text-align: center;
    margin-bottom: 4rem;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background-color: var(--color-neutral-white);
    border-radius: 1.2rem;
    padding: 2rem 1.4rem;
    box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.12);
    position: relative;
    margin-top: 3rem;
}

.why-card__icon {
    width: 6rem;
    height: 6rem;
    position: absolute;
    top: -3.6rem;
    left: 50%;
    transform: translateX(-50%);
}

.why-card__title {
    font-size: 1.8rem;
    line-height: 150%;
    font-weight: 700;
    color: var(--color-neutral-black);
    margin-top: 2.5rem;
    text-align: center;
}

.why-card__description {
    font-size: 1.4rem;
    line-height: 150%;
    font-weight: 400;
    margin-top: 1.5rem;
    color: var(--color-neutral-black);
    text-align: center;
}

.safe-wrapper {
    display: flex;
    justify-content: space-around;
}

.data-safe-section {
    padding: 6rem 0;
    background-color: var(--color-neutral-white);
}

.data-safe-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.data-safe-content {
    flex: 1;
}

.data-safe-title {
    font-size: 3.8rem;
    line-height: 125%;
    font-weight: 700;
    color: var(--color-neutral-black);
    margin-bottom: 3rem;
}

.data-safe-list {
    list-style: none;
    margin-bottom: 3rem;
}

.data-safe-list li {
    font-size: 1.6rem;
    line-height: 150%;
    font-weight: 400;
    color: var(--color-neutral-black);
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

/* hexagon bullet point */
.data-safe-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;

    background-image: url('../images/hexagon.svg');
    background-repeat: no-repeat;
    background-size: contain;

    /* Cleanup from previous styles */
    /*background-color: transparent;
    border-radius: 0;*/
}

.data-safe-list li strong {
    font-weight: 700;
}

.data-safe-button {
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 1.6rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--color-cta-default-solid);
    border-radius: 0.4rem;
    color: var(--color-cta-default-solid);
    background-color: var(--color-neutral-white);
    text-decoration: none;
    font-weight: 400;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.data-safe-button:hover {
    background-color: inherit;
    border-color: var(--color-cta-default-hover);
    color: var(--color-cta-default-hover);
    box-shadow: 0rem 0.25rem 1rem rgba(0, 79, 41, 0.16);
}

.data-safe-button:visited {
    border-color: var(--color-cta-default-pressed);
    background-color: var(--color-neutral-white);
    color: var(--color-cta-default-pressed);
}


.data-safe-image {
    flex: 1;
    position: relative;
}

.data-safe-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0.8rem;
}

.data-safe-image img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
}

.journey-section {
    padding: 8rem 0;
    background-image: url('../images/donation-background.svg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-brand-green-light);
    /* Fallback color */
}

.journey-title {
    font-size: 4.8rem;
    line-height: 120%;
    font-weight: 700;
    color: var(--color-neutral-black);
    text-align: center;
    margin-bottom: 8rem;
}

.journey-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* Spacing between cards */
}

.journey-card {
    flex-basis: 20rem;
    /* Fixed width for card containers */
    flex-grow: 1;
    /* Allow stretching if space is available */
    max-width: 24rem;

    background-color: var(--color-neutral-white);
    border-radius: 1.2rem;
    padding: 8rem 2rem 2.5rem;
    /* Large top padding for icon space */
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.journey-card__icon {
    width: 6rem;
    height: 6rem;
    position: absolute;
    top: -3rem;
    /* Half the height to be centered on the top edge */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* Ensure it overlaps the card border */
}

.journey-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-neutral-black);
    margin-bottom: 1rem;
}

.journey-card__description {
    font-size: 1.6rem;
    line-height: 150%;
    font-weight: 400;
    color: var(--color-neutral-black);
}

.donation__email {
    color: var(--color-neutral-black);
    pointer-events: none;
}

.ready-to-share-section {
    padding: 6rem 0;
    background-color: #F6F7F8;
    text-align: center;
}

.ready-to-share-title {
    font-size: 3.8rem;
    line-height: 125%;
    font-weight: 700;
    color: var(--color-neutral-black);
    margin-bottom: 0.5rem;
}

.ready-to-share-subtitle {
    font-size: 1.8rem;
    line-height: 150%;
    font-weight: 400;
    color: var(--color-neutral-black);
    margin-bottom: 3rem;
}

.ready-to-share-email-wrapper {
    display: inline-block;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
    border: 2px dashed #bbbbbb;
    border-radius: 0.4rem;
}

.ready-to-share-email {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-neutral-black);
    text-decoration: none;
    pointer-events: none;
}

.ready-to-share-note {
    font-size: 1.4rem;
    line-height: 24px;
    font-weight: 400;
    color: #666666;
}

.main-footer {
    background-color: #2E4343;
    padding: 0 0 3rem;
    min-height: 30rem;
    color: var(--color-neutral-white);
    font-family: Inter, Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    justify-content: flex-end; /* ***THIS PUSHES CONTENT TO THE BOTTOM*** */
}

.footer-content {
    width: 100%;
    max-width: 1168px;
    margin: 0 auto;
    padding: 0 1.3rem;
}

.footer-top {
    display: flex;
    justify-content: flex-end;
    /* Push links to the right */
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-link {
    font-size: 1.6rem;
    color: var(--color-neutral-white);
    text-decoration: none;
    font-weight: 400;
    opacity: 0.8;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--color-neutral-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    /* Puts text on the left, social on the right */
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Thin white divider */
}

.footer-text {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 2.4rem;
    /* Size of the social icons */
    height: 2.4rem;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .donation-section {
        padding: 4rem 0;
    }

    .donation-wrapper {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }

    .donation-title {
        font-size: 3.6rem;
        margin-bottom: 1.1rem;
    }

    .donation-subtitle {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .donation-description {
        font-size: 1.6rem;
        max-width: 100%;
    }
  
    .donation-button {
        width: 100%;
        text-align: center;
    }

    .donation-button:visited {
        width: 100%;
        text-align: center;
    }

    .donation-video {
        align-items: stretch;
        width: 100%;
    }

    .donation-section--yellow {
        background-color: var(--color-brand-yellow-1000);
        background-image: url('../images/donation-community-top.svg'), url('../images/donation-community-bottom.svg');
        background-repeat: no-repeat;
        background-position: left top, right bottom;
        background-size: 70% auto;
    }

    .why-title {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }

    .why-cards {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .data-safe-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .data-safe-image {
        display: none;
    }

    .data-safe-content {
        flex: auto;
        width: 100%;
    }

    .data-safe-title {
        text-align: center;
        font-size: 3.2rem;
        margin-bottom: 2rem;
    }

    .data-safe-button {
        display: block;
        margin: 3rem auto 0 auto;
        width: fit-content;
    }

    .journey-section {
        padding: 4rem 0;
    }

    .journey-title {
        font-size: 3.2rem;
        margin-bottom: 6rem;
    }

    .journey-cards {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .journey-card {
        max-width: 32rem;
        min-width: -webkit-fill-available;
        margin-top: 2rem;
    }

    .ready-to-share-section {
        padding: 4rem 0;
    }

    .ready-to-share-title {
        font-size: 3.2rem;
    }

    .ready-to-share-subtitle {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .ready-to-share-email-wrapper {
        padding: 1rem 2rem;
        margin-bottom: 1.5rem;
    }

    .ready-to-share-email {
        font-size: 1.8rem;
    }

    .main-footer {
        padding: 3rem 0 4rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 1.5rem;
        flex-direction: column-reverse;
    }

    .footer-text {
        text-align: center;
        order: 2;
    }

    .footer-social {
        order: 1;
    }

}