/* =======================
   General Footer Styles
   ======================= */
.footer {
    background: linear-gradient(180deg, #f6f6f9 0%, #fff 93.84%);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Default border */
    overflow: hidden;
    border-top: 1px solid var(--border-color); /* For consistency */
}

/* Wrapper for the entire footer content */
.footer__wrapper {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .footer__wrapper {
        padding-top: 2.62rem;
    }
}

/* =======================
   Footer Bottom Section
   ======================= */
.footer__bottom {
    margin-top: 3.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 1.5rem 1.5rem;
    justify-content: center;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
    grid-column: span 12; /* Takes full width in grid */
}

.footer__bottom__body {
    color: var(--text-normal);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5; /* 150% */
    letter-spacing: -0.02625rem;
}

/* =======================
   Footer Head Section
   ======================= */
.footer__head {
    justify-content: align-center;
}

@media (min-width: 1024px) {
    .footer__head {
        display: flex;
    }
}

/* =======================
   Footer Subscribe Form
   ======================= */
.footer__head__subscribe-form {
    display: flex;
    flex-basis: 30%;
    margin-top: 2rem;
    flex-direction: column;
}

/* Comment/Helper Text in the Subscribe Form */
.footer__head__subscribe-form__comment {
    margin-top: 0.5rem;
    color: var(--color-foreground-subtle);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
}

/* Subscribe Form Field */
.footer__head__subscribe-form__field {
    display: flex;
    border-radius: 6.1875rem;
    border: 1px solid #d0cfd4;
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    padding: 0.2rem;
    width: fit-content;
    box-shadow: 0px -1px 1px 0px rgba(3, 3, 41, 0.5) inset;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .footer__head__subscribe-form__field {
        min-width: 440px;
    }
    .footer__head__subscribe-form {
        flex-basis: auto;
    }

    .footer__head.h2.h2-title{
        font-size:2.5rem;
        width: 80%;
        max-width: 100%;
    }

    .footer__head.footer__head__subscribe-form.p.hero__heading-text{
        font-size:0.875rem;
    }
}


@media (max-width: 1024px) {
  
    .footer__head.footer__head__subscribe-form.p.hero__heading-text{
        font-size:0.875rem;
    }
}

/* =======================
   Input Field in Subscribe Form
   ======================= */
.footer__head__subscribe-form__field>input {
    all: unset;
    width: 100%;
    border-radius: 99rem;
    padding-left: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem; /* 150% */
}

.footer__head__subscribe-form__field>input::placeholder {
    color: var(--monochrome-ink-ink-lighter, #5c616f);
}

/* =======================
   Button in Subscribe Form
   ======================= */
.footer__head__subscribe-form__field>button {
    all: unset;
    border-radius: 6.1875rem;
    border: 1px solid #ebedf0;
    background: linear-gradient(180deg, #1e2939 0%, #111720 100%);
    box-shadow: 0px 0px 0px 1px #000;
    padding: 0.625rem 1.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
}

/* =======================
   Footer Text Section
   ======================= */
.footer__head__body {
    color: var(--text-normal);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5; /* 150% */
    letter-spacing: -0.04375rem;
    margin-top: 1.62rem;
}

/* =======================
   Footer Links Section
   ======================= */
.footer__links {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4rem, 10rem));
}

/* Footer Group Title (Headings for Links) */
.footer__group__title {
    color: #000;
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.03563rem;
    margin-bottom: 0.75rem;
}

/* Footer Link Items */
.footer__group__item {
    color: var(--text-normal);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5; /* 150% */
    letter-spacing: -0.02625rem;
}

.footer__group__item:not(:first-child) {
    margin-top: 0.25rem;
}

/* Footer Link Hover */
.footer__group__item:hover {
    color: var(--text-loud);
}
