body {
    font-family: "Nunito Sans", sans-serif;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#phoneImage {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    height: 500px;
}

.funds-managed {
    margin-top: 30px;
    width: 70%;
}

.funds-managed p {
    color: #000066;
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.team {
    text-align: center;
    padding: 50px 20px;
    /* background-color: rgba(255, 255, 255, 1); */
}

.team h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 62px;
    color: rgba(27, 27, 27, 1);

}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-right: 112px;
    margin-left: 112px;
}

.team-member {
    background-color: #fff;
    padding: 20px;
}

.team-member img {
    width: 90%;
    height: 300px;
    object-fit: cover;


}

.team-member h2 {
    font-size: 15.11px;
    font-weight: 500;
    line-height: 21.15px;
    text-align: left;
    color: rgba(27, 27, 27, 1);
    margin-left: 30px;
    margin-top: 12px;


}

.team-member p {
    font-size: 15.11px;
    font-weight: 500;
    line-height: 21.15px;
    text-align: left;
    color: rgba(27, 27, 27, 1);
    margin-left: 30px;
}

a {
    text-decoration: none;
    color: black;
}

#menuIcon,
#closeIcon {
    font-size: 20px;
    font-weight: bold;
    color: #0925af;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 120px;
}

.header-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header-list li {
    margin: 0 30px;
    color: rgba(27, 27, 27, 1);
    font-family: Nunito Sans;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;

}

li {
    list-style: none;

}

.h-btn {
    margin: 0 12px;
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
}

#active {
    color: rgba(9, 37, 175, 1);
    font-weight: 800;
}

#active-btn {
    background-color: black;
    color: white
}

.menu-bar {
    display: none;
}

.menu-open {
    display: none;
}

.menu-close {
    position: absolute;
    color: white;
    top: 20px;
    right: 30px;

}

.mobile-nav li {
    font-size: 20px;
    color: white;
}

.mobilenav-btn {
    display: none;
}

/* Why allycare section */
.allycare-container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.text-section {
    flex: 1;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
}

/* Footer Section */
.footer {
    padding: 38px 112px 20px 112px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.footer .section h3 {
    font-family: Nunito Sans, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(16, 13, 34, 1);
    margin-bottom: 12px;
}

.footer .section img {
    margin-bottom: 25px;
}

.footer .section p,
.footer .section a {
    font-family: Nunito Sans, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: rgba(135, 134, 144, 1);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.quick-links a {
    padding-bottom: 6px;
}

.subscribe-form .flex-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 20px;
    border-radius: 100px;
    border: none;
    background-color: rgba(246, 246, 246, 1);
    min-width: 200px;
}

.subscribe-form button {
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: darkblue;
}

.copyright {
    text-align: center;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(135, 134, 144, 1);
    line-height: 24px;
    padding: 20px 10px;
}

.phone-frame-container {
    height: 682px;
    overflow: hidden;
    position: relative;
    margin-left: 100px;

}

.phone-img {
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}


/* Savings Page  */
.lock-img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 60px 20px;
}

.hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-phone-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-bottom: -50px;
    z-index: 2;
}


/* Responisveness */

@media (max-width:1024px) {
    nav {
        padding: 10px 50px;
    }

    .hero-phone-img {
        max-width: 320px;
        margin-bottom: -30px;
    }

}

@media (max-width: 992px) {
    nav .desktop-nav {
        gap: 1rem;
    }

    .header-list {
        margin-right: 1rem;
    }

    .btn.rounded-pill {
        margin-left: 10px;
    }

    .d-lg-block {
        display: none
    }

    .menu-open {
        margin-left: auto;
    }

    .phone-frame-container {
        margin-top: 2rem;
        text-align: center;
    }


    #phoneImage {
        position: static !important;
        transform: none !important;
        height: auto !important;
        max-height: 500px;
        margin-bottom: 1.5rem;

    }


}



@media (max-width: 768px) {


    nav {
        margin-inline: 32px;
        padding: 10px 0px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-open {
        color: black;
        display: block;
    }

    .buttons {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        background-color: rgba(0, 31, 63, 1);
        backdrop-filter: blur(10px);
        height: 100svh;
        width: 50%;
        flex-direction: column;
        row-gap: 40px;
        justify-content: unset;
        align-items: start;
        padding-top: 10rem;
        padding-left: 20px;

    }

    .funds-managed {
        text-align: center;
        width: 100%;
    }


    .nav {
        padding: 10px 0px;
    }

    .mobilenav-btn {
        display: block;
    }

    .quick-links h3 {
        margin: 0;
    }

    .footer {
        margin: 0 10px;
    }

    .subscribe-form h3 {
        margin: 0px;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .footer .copyright {
        grid-column: span 1;
    }

    .quick-links {
        margin-left: 0px;
    }

    h2.how-it-works-heading {
        font-size: 32px !important;
    }

    .lock-img {
        max-width: 100% !important;
        height: auto !important;
    }

    .hero-section {
        padding-top: 2rem;
    }

    .team-members {
        margin: 0;
    }

    .hero-section h1 {
        font-size: 28px;
        line-height: 42px;
    }

    .hero-section p {
        font-size: 16px;
    }

    #resize {
        font-size: 20px !important;
        text-align: start;
        line-height: 30px !important;
    }

    #small {
        font-size: 15px !important;
        text-align: start;

    }

    .hero-phone-img {
        max-width: 280px;
        margin-bottom: -20px;
    }

    .footer {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .subscribe-form .flex-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .why-h1 {
        font-size: 35px !important;
    }

}