footer {
    border-top: 1px solid #D6B448;
    background: #FFF;
}

footer .footerlinks .link1 a:hover, footer .footerlinks .link2 a:hover {
    color: var(--gold);
}

footer .footerlinks .contact-item:hover a {
    color: var(--gold);
}

footer .footerlinks .contact-item:hover svg path {
    fill: var(--gold);
}

footer .footer_row {
    max-width: 1576px;
    width: 100%;
    margin: auto;
}

footer .footer-content {
    padding: 50px 0;
}

footer .footerlinks a {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
}

footer .footerlinks {
    display: grid;
    gap: 25px;
    /* justify-content: space-between; */
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: none;
    grid-template-areas: 
    "con1 con2 con3 con4 con5";
}

footer .footerlogo {
    max-width: 335px;
    width: 335px;
    margin-block: auto;
}

footer .footerlogo span {
    color: #212121;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

footer .link1, footer .link2 {
    max-width: 138px;
    width: 100%;
}

footer .link3 {
    max-width: 264px;
    width: 100%;
}

footer .link3 .contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

footer .cert {
    max-width: 560px;
    width: 100%;
}

footer .cert .certimages1 {
    margin-bottom: 15px;
}

footer .cert .certimages1, footer .cert .certimages2 {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

footer .cert .certimg {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(33, 33, 33, 0.15);
    background: #FFF;
}

footer .cert .certimage1 {
    max-width: 215px;
    width: 100%;
}

footer .cert .certimage1 img {
    max-width: 215px;
}

footer .cert .certimage2, footer .cert .certimage3, footer .cert .certimage4 {
    max-width: 100px;
    width: 100px;
}

footer .cert .certimage2 img, footer .cert .certimage3 img, footer .cert .certimage4 img {
    max-width: 100px;
}

footer .footer-copyright {
    padding: 15px;
}

footer .footer-copyright p {
    font-size: 18px;
    font-family: var(--font-inter-regular);
    font-weight: 500;
}   

.con1 { grid-area: con1; }
.con2 { grid-area: con2; }
.con3 { grid-area: con3; }
.con4 { grid-area: con4; }
.con5 { grid-area: con5; }

footer .link1 span, footer .link2 span, footer .link3 span, footer .con5 span {
    color: #212121;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

@media (max-width: 1499px) {
    footer .footerlinks {
        grid-template-columns: 1fr 1fr 1fr 1fr; 
        gap: 20px;
        grid-template-areas: 
    "con1 con2 con3 con4"
    ". con5 con5 .";
    }
}

@media (max-width: 1199px) {
    footer .footerlinks {
        grid-template-columns: 1fr 1fr 1fr; 
        gap: 20px;
        grid-template-areas: 
    "con1 con2 con3"
    "con4 con5 con5";
    }

    .con1, .con2, .con3, .con4, .con5 {
        margin: auto;
    }

    footer .footer-content {
        padding: 50px 30px;
    }
}

@media (max-width: 991px) {
    footer .footerlinks {
        grid-template-columns: 1fr 1fr; 
        gap: 20px;
        grid-template-areas: 
        "con1 con1" 
        "con2 con3"
        "con4 con4"
        "con5 con5";
    
    }
    
    footer .footerlogo {
        max-width: unset;
        width: 100%;
        margin-block: unset;
        margin-top: auto;
        margin-bottom: 30px;
        margin-inline: auto;
    }

    footer .link1 {
        margin-left: auto;
        text-align: center;
        max-width: 100%;
    }

    footer .link2 {
        text-align: center;
        max-width: 100%;
    }

    footer .link3 {
        margin: auto;
        text-align: center;
    }

    footer .link3 .gap-20 {
        align-items: center;
    }

    .con1, .con2, .con3, .con4, .con5 {
        margin: unset;
    }

    .con5 {
        margin: auto;
    }

    footer .cert {
        text-align: center;
    }

    footer .footer-content {
        padding: 50px 20px;
    }
}

@media (max-width: 575px) {
    footer .footerlinks {
        grid-template-columns: 1fr; 
        gap: 30px;
        grid-template-areas: 
        "con1" 
        "con2"
        "con3"
        "con4"
        "con5";
    }

    footer .footerlogo {
        margin-bottom: 0;
    }

    footer .link1 {
        margin-inline: auto;
        padding-right: 0;
        text-align: center;
    }

    footer .link2 {
        padding-left: 0;
        text-align: center;
        margin-inline: auto;
    }

    footer .gap-15 {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    footer .cert-mobile-images {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }

    footer .cert .certimgmobile {
        margin: auto;
    }
}