#footer {
    background: linear-gradient(to right, #283768, #2a55a6);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Ensures the overflow is hidden to contain the clip-path */
    height: 200px;
    width: 100%;

    /* White block on the left side */

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background-color: #1C2955;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    }

    .text-inside-polygon {

        position: absolute;
        top: 50%;
        /* Adjust vertically as needed */
        left: 15%;
        /* Adjust horizontally as needed */
        transform: translateY(-50%);
        color: #fff;
        font-size: 18px;

        & P {
            color: white;
            margin: 5px 0;
        }

        a {
            color: #ffffff;
            &:hover, &:focus {
                text-decoration: underline;
            }
        }


    }
}

#footerAM {
    height: 130px;
    background-color: #D9e7fd;
    position: relative;
    z-index: 2;
    color: #4285F4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#footerAM a {
    text-decoration: none;
}

#footerAMText {
    display: flex;
    align-items: center;

    h6 {
        margin-right: 5px;
        width: 200%;
    }

    img {
        display: block;
        height: 73.125px;
        margin-left: 5px;
    }
}



/* Media queries for specific device widths */
@media only screen and (max-width: 768px) {
    #footer {
        padding: 15px 0; /* Adjust padding for smaller screens */
    }

    .text-inside-polygon {
        font-size: 16px; /* Decrease font size for smaller screens */
    }

    #footerAMText {
        transform: translateX(0); /* Reset translation */
    }
}

@media only screen and (max-width: 576px) {
    #footer {
        padding: 10px 0; /* Further reduce padding for smaller screens */
    }

    .text-inside-polygon {
        font-size: 14px; /* Further decrease font size for smaller screens */
    }
}