html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1 0 auto;
}

/* === Footer base === */
.footer-nav {
    background-color: #080a20;
    color: #ccc;
    padding: 0.8rem 1rem;
    font-family: 'Poppins', sans-serif;
    opacity: 0.75;

    margin-top: auto;
}

.footer-nav hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 70%;
    margin: 0.4rem auto 0.8rem;
}

.footer-nav-row {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.footer-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 6rem;
    flex-wrap: wrap;
}


.footer-text-wrapper,
.footer-links,
.social-icons {
    flex: 0 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    color: #F2DDAE;
    font-family: Lora;
    font-size: 0.95rem;
}

.footer-links a {
    color: #F2DDAE;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

/* === Left text === */
.footer-text-wrapper {
    min-width: 220px;
}

.footer-copy {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.15rem;
}

.signature {
    font-family: 'Poppins', sans-serif;
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
}

.social-icons a img {
    width: 26px;
    height: 26px;
    opacity: 0.9;
    transition: 0.3s ease;
    filter: none;
}

.social-icons a img:hover {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.nav-row ul {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0.8rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.3rem;
}

.nav-row a {
    color: #00eaff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-row a:hover {
    color: #ffd700;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

@media (max-width: 1125px) {
    .footer-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        row-gap: 1rem;
    }

    .footer-text-wrapper {
        text-align: center;
        min-width: auto;
    }

    .footer-links {
        justify-content: center;
        gap: 0.9rem;
    }

    .social-icons {
        justify-content: center;
        min-width: auto;
    }

    .footer-copy {
        font-size: 0.78rem;
    }

    .signature {
        font-size: 0.9rem;
    }
}
