footer {
    width: 100%;
    background-color: var(--reyllit-dark-grey);
}

.inner-container {
    margin: 0 auto;
    width: 100%;
    max-width: 1800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0 10px 0;
}

.footer-top img {
    height: 40px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 0 0 0;
}

.footer-item h5 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 10px;
    color: white !important; /* Fix: Color override */
    font-weight: 600; /* Fix: Lock weight */
}

/* Fix: Combined specific selectors to ensure they stay white and un-bloated */
.footer-item p, 
.footer-item a,
.inner-item a,
.contact-div a {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    color: white !important; /* Fix: Color override */
    margin: 4px 0;
    text-decoration: none;
    font-weight: 400 !important; /* Fix: Lock weight */
}

.inner-item {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.footer-support {
    margin-top: 40px;
}

.divider {
    height: 1px;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.253);
    margin: 0 auto;
    margin-top: 30px;
}

.contact-div {
    width: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    justify-content: center;
    min-width: 380px;
}

.contact-div a {
    text-decoration: none;
}

.contact-div img {
    height: 20px;
    margin-right: 10px;
}

#all-rights {
    margin: 10px 0 0 0;
    text-align: center;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.507) !important;
    padding-bottom: 10px !important;
    font-weight: 400; /* Fix: Lock weight */
}

.span-1, .span-2 {
    color: #FFA4A4 !important; /* Fix: Color override */
    font-weight: 700;
    font-size: clamp(1rem, 3.1vw, 1.4rem);
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    text-decoration: underline;
}

.contact-div a:hover {
    text-decoration: none;  
    cursor: default;
}

a .span-1:hover, a .span-2:hover {
    text-decoration: underline;
    cursor: pointer;
}

.directions {
    margin-top: 20px !important;
    color: #FFA4A4 !important; /* Fix: Color override */
    font-weight: 700;
    font-size: clamp(1rem, 3.1vw, 1.4rem);
}

/* DESKTOP FIX (Original Layout Restored) */
@media screen and (min-width: 769px) {

    .footer-top {
        justify-content: start;
        align-items: start;
    }

    .footer-top img {
        height: 60px;
        width: auto;
        margin-left: 10%;
    }

    .divider-desktop {
        display: block;
        width: 80%;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.253);
        margin: 0 auto;
        margin-top: 40px;
    }

    .footer-middle-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        width: 80%;
        margin: 0 auto;
        column-gap: 40px; 
        row-gap: 40px;
        align-items: flex-start;
    }

    .footer-item {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        padding: 10px 0;
    }

    .hide-on-desktop {
        display: none; 
    }

    .footer-top {
        width: 100%;
        padding: 40px 0;
    }

    .contact-div {
        width: 100%;
        justify-content: flex-start;
    }

    #all-rights {
        padding: 10px 0 0 0;
    }

    .divider {
        margin-top: 40px;
    }

    .inner-item {
        width: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}