/* =========================================================
   FOOTER LAYOUT
   ========================================================= */

footer {
    width: 100%;
    margin-top: 0;

    /* KEEP YOUR EXISTING FOOTER COLOR */
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   TOP FOOTER AREA
   ========================================================= */

.footer-main {

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 35px 30px 30px;

    display: grid;

    grid-template-columns: 1fr 330px;

    gap: 50px;

}


/* =========================================================
   LEFT SIDE - USEFUL LINKS
   ========================================================= */

.footer-left h3,
.footer-right h3 {

    margin: 0 0 25px;

    color: var(--white);

    font-size: 20px;

    font-weight: 700;

}


.footer-link-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    column-gap: 35px;

    row-gap: 18px;

}


.footer-link-grid a {

    color: var(--white);

    text-decoration: none;

    font-size: 16px;

    line-height: 1.5;

}


.footer-link-grid a span {

    margin-right: 7px;

    font-size: 22px;

}


.footer-link-grid a:hover {

    color: var(--accent);

}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.footer-right {

    text-align: right;

}


.footer-social {

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 18px;

    margin-bottom: 25px;

}


.footer-social a {

    color: var(--white);

    text-decoration: none;

    font-size: 27px;

}


.footer-social a:hover {

    color: var(--accent);

}


/* =========================================================
   GOVERNMENT LOGOS
   ========================================================= */

.footer-government-links {

    display: flex;

    justify-content: flex-end;

    gap: 8px;

}


.footer-government-links a {

    display: block;

    background: var(--white);

    border-radius: 5px;

}


.footer-government-links img {

    display: block;

    height: 58px;

    width: auto;

    max-width: 175px;

}


/* =========================================================
   BOTTOM FOOTER
   ========================================================= */

.footer-bottom {

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 22px 30px 28px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 40px;

    border-top:
        1px solid
        rgba(255,255,255,0.20);

}


.footer-bottom-left {

    max-width: 850px;

}


.footer-bottom p {

    margin: 5px 0 10px;

    color: var(--white);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   BOTTOM LINKS
   ========================================================= */

.footer-links {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;

}


.footer-links a {

    color: var(--white);

    text-decoration: underline;

    font-size: 14px;

}


.footer-links span {

    color: var(--white);

}


/* =========================================================
   LAST UPDATED
   ========================================================= */

.footer-bottom-right {

    position: relative;

    min-width: 230px;

    text-align: right;

}


#last-updated {

    color: var(--white);

    font-size: 14px;

}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {

    position: absolute;

    right: -5px;

    bottom: 45px;

    width: 48px;

    height: 48px;

    border: 0;

    border-radius: 50%;

    background: rgba(0,0,0,0.12);

    color: var(--white);

    font-size: 28px;

    cursor: pointer;

}


.back-to-top:hover {

    background: var(--secondary);

}