/* BASIC-COLOR-VARIABLES! */
/* ==================================================================================================== */

:root {
    --footer-section-color: linear-gradient(135deg, #2c5278, #3b5a74, #4b6c80, #3c4a5b);
    --footer-section-text-p-hover-color: darkred;
    --footer-section-icon-a-color: #0ef;
    --footer-section-icon-a-hover-color: #0ef;
    --footer-section-icon-a-hover-bg-color: #000d5f;
    --footer-section-icon-a-i-color: #000d5f;
    --footer-section-icon-a-i-hover-color: darkred;
}

/* FOOTER-PAGE-SECTION! */
/* ==================================================================================================== */

.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: var(--footer-section-color);
    padding: 2rem 3%;
    width: 100%;
    gap: 1rem; /* Prevent elements from touching on smaller screens */
}

.footer-text {
    flex: 1 1 auto;
    min-width: 200px; /* Prevents overflow on very narrow screens */
}

.footer-iconTop {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent line break */
    gap: 1rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* FOOTER-TEXT-P! */
/* ==================================================================================================== */

.footer-text p {
    font-size: 1.6rem;
    word-spacing: 10px;
    cursor: pointer;
    color: white;
    filter: drop-shadow(2px 2px 2px black);
    margin: 0;
}

.footer-text p b:hover {
    color: black;
    filter: drop-shadow(2px 2px 2px white);
}

.footer-text b {
    font-size: 1.8rem;
}

/* FOOTER-ICON-A! */
/* ==================================================================================================== */

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--footer-section-icon-a-color);
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--footer-section-icon-a-hover-color);
    color: var(--footer-section-icon-a-hover-color);
    background: var(--footer-section-icon-a-hover-bg-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--footer-section-icon-a-i-color);
}

.footer-iconTop a i:hover {
    color: white;
}

/* МOBILE-PHONE-SCREENS-UP-TO-768-PIXELS! */
/* ==================================================================================================== */

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .footer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-text, .footer-iconTop {
        width: 100%;
        justify-content: center;
        margin: 1rem 0;
    }

    .footer-iconTop {
        flex-wrap: wrap; /* Allow wrap on smaller screens */
        justify-content: center;
        gap: 0.8rem;
    }

    .footer-iconTop a {
        height: auto;
        width: auto;
        padding: 0.6rem;
        border-radius: 0.6rem;
    }

    .footer-iconTop a i {
        font-size: 1.6rem;
    }
}
