/* Global box-sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Footer Container */
#the-mighty-footer {
    width: 100%;
    background-color: #006666;
    color: white;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
}

.footer {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 0 0 24%; /* Exactly 25% width minus margin for 4 columns */
    min-width: 200px;
    padding: 10px;
    margin-right: 1%;
    margin-bottom: 20px;
    text-align: left;
}

/* Ensure the fourth column in each row has no right margin */
.footer-column:nth-child(4n) {
    margin-right: 0;
}

.footer-column h2 {
    border-bottom: 4px solid #D4AF37;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #D4AF37;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #D4AF37;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #1F2E1E;
    color: #FFFFFF;
    padding: 15px 0;
    text-align: center;
    border-top: 4px solid #D4AF37;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.footer-copyright p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-copyright a {
    color: #D4AF37;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-menu-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for better responsiveness */
    gap: 15px;
    justify-content: center;
}

.footer-menu a {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 8px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-social ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: #1F2E1E;
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #D4AF37;
    color: #1F2E1E;
}

/* Specific styling for the "Jivas Onyango" link container */
.footer-menu li.developer-link {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-column {
        flex: 0 0 48%; /* Two columns per row */
        margin-right: 4%;
    }
    .footer-column:nth-child(2n) {
        margin-right: 0;
    }
    .footer-column:nth-child(4n) {
        margin-right: 4%; /* Reset for 2-column layout */
    }
}

@media (max-width: 768px) {
    .footer-column {
        flex: 0 0 100%; /* One column per row */
        margin-right: 0;
    }
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-menu-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 20px 10px;
    }
    .footer-column {
        padding: 5px;
    }
    .footer-copyright p,
    .footer-menu a {
        font-size: 0.9rem;
    }
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    /* Force "Jivas Onyango" to break to a new line */
    .footer-menu li.developer-link {
        display: block; /* Makes the entire developer link take a new line */
        text-align: center;
    }
    .footer-menu li.developer-link a:last-child {
        display: block; /* Ensures "Jivas Onyango" is on a new line */
        margin-top: 5px; /* Adds spacing for better look */
    }
}