.footer-final {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 35px 0 20px 0;
    min-height: auto;
    height: auto;
}

.page-section.footer-final {
    min-height: auto;
}

.joinus{
    width: 100%;
    padding: 40px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
}

.joinus-container{
    width: 80%;
    max-width: 960px;
    background: linear-gradient(to right, rgb(60, 73, 254), rgb(1, 35, 121));
    padding: 32px 40px 40px 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.join-ais-text {
    width: 45%;
}

.join-ais-text .top{
    color: rgb(176, 238, 255);
    margin: 10px 0;
}

.join-ais-text h1{
    color: white;
    font-weight: bolder;
    margin: 10px 0;
}

.join-ais-text .bottom{
    color: rgb(203, 208, 255);
    margin-top: 20px;
}

.btn-field{
    width: 50%;
    display: flex;
    justify-content: center;
}
.contact-us{
    color: white;
    background-color: rgb(72, 140, 183);
    padding: 16px 26px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    width: 200px;
    margin: 10px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.contact-us:hover{
    transform: scale(1.05);
}

.dashboard{
    color: white;
    background-color: transparent;
    border: 1px solid white;
    padding: 16px 26px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    width: 200px;
    margin: 10px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.dashboard:hover{
    transform: scale(1.05);
    background-color: white;
    color: black;
}


/* FOOTER */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.footer-container {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ais-logo-footer {
    height: 80px;
    width: 80px;
}

.footer-selection {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-weight: bold;
}

.footer-link{
    text-decoration: none;
    color: black;
}

.borderline{
    width: 80%;
    height: 1px;
    background-color: gray;
    margin-left: auto;
    margin-right: auto;
}

.copyright{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-top: 20px;
    color: black;
    text-align: center;
}

/* Footer section styling */
.footer {
    min-height: 300px;
    scroll-snap-align: start;
}

/* Dark Mode */
@media (max-width: 900px) {
    .joinus-container {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 24px;
    }

    .join-ais-text,
    .btn-field {
        width: 100%;
    }

    .btn-field {
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .joinus {
        padding: 30px 0;
    }

    .join-ais-text h1 {
        font-size: 32px;
    }

    .join-ais-text .bottom {
        font-size: 16px;
    }

    .contact-us,
    .dashboard {
        width: 100%;
        max-width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .footer {
        background-color: #2d2d2d;
        color: #ffffff;
    }

    .footer-link {
        color: #ffffff;
    }

    .copyright {
        color: #ffffff;
    }

    .joinus-container {
        background: linear-gradient(to right, rgb(9, 13, 69), rgb(0, 13, 46));
    }

    .contact-us {
        background-color: rgb(72, 120, 148);
    }
}