/* Footer css */
.footer {
    background-color: #0b0b0b;
    padding: 20px 0; /* Keep for desktop, but reduce on mobile below */
    color: #d6a2a2;
    font-family: 'Gilroy', 'Poppins', sans-serif; 
    width: 100%;
    margin-top: 40px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top .app-promo {
    font-family: 'Gilroy', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 26px;
    letter-spacing: -0.6px;
    color: rgba(2, 6, 12, 0.75);
    margin: 0;
}

.app-buttons {
    display: flex;
    gap: 20px; 
}

.app-buttons .app-store img {
    height: 64px;
    max-width: 208px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; /* Reduce to 10px on mobile for tighter spacing */
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr 2fr; 
    column-gap: 5%; 
    row-gap: 20px; 
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin: 0;
    padding: 10px; 
}

.contact-legal-group,
.life-social-group {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.contact-column,
.legal-column,
.life-column,
.social-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
    white-space: nowrap;
}

.footer-column ul li,
.footer-column p {
    font-family: 'Gilroy', 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 16px;
    line-height: 21px;
    letter-spacing: -0.4px;
    color: goldenrod;
    margin-bottom: 10px; 
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: #ffffffba;
    font-weight: 500;
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: #f9c508;
}

.social-icons {
    display: flex;
    gap: 15px; 
    justify-content: center;
}

.social-icons a {
    color: goldenrod;
    font-size: 30px;
}

.social-icons a:hover {
    color: #ffffff;
}

@media only screen and (min-width: 961px) {
    .footer-main {
        grid-template-columns: 1fr 2fr 2fr 2fr 2fr;
        column-gap: 9%; 
    }
}

@media only screen and (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .footer-top .app-promo {
        margin-bottom: 15px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px; 
    }

    .app-buttons .app-store img {
        height: 64px;
        max-width: 208px;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px; /* Reduced from 20px to tighten vertical spacing */
        padding: 10px; /* Reduced from 20px */
    }

    .footer-column {
        padding: 5px 0; /* Reduced horizontal padding, focus on vertical */
    }

    .contact-legal-group,
    .life-social-group {
        flex-direction: column;
        gap: 10px; /* Slight reduction for sub-groups */
    }

    /* NEW: Override footer outer padding on mobile to eliminate bottom space */
    .footer {
        padding: 15px 0; /* Reduced top/bottom padding */
    }
}

/* Footer Logo (big version with outer ring visible) */
.footer-logo-wrapper {
    position: relative;
    width: 110px; /* was 160px — smaller now */
    height: 110px;
    margin: 0 auto;
    right: 0; /* center it */
    top: 0;
}
.footer-logo-title {
    text-align: center;
    color: goldenrod;
    font-family: 'Gilroy', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px; /* space between text and logo */
    letter-spacing: 0.5px;
}


.footer_logo {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    top: 35px;
}

.footer_logo::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("/images/outer_logo.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    animation: footer_rotate360 15s linear infinite;
    z-index: 1;
    opacity: 1;
}

.footer_logo img {
    width: 95%; /* slightly smaller inner logo */
    height: auto;
    display: block;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .footer-logo-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
}


@media (max-width: 767px) {
    .footer-logo-wrapper {
        width: 90px;
        height: 90px;
        margin: 0 auto 10px;
    }

    .footer_logo::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }

    .footer_logo img {
        width: 75%;
    }
}


/* Rotation animation */
@keyframes footer_rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .footer-logo-wrapper {
        width: 110px;
        height: 110px;
        right: 0; /* Center it on mobile; no horizontal shift */
        top: 0; /* Eliminate vertical offset to reduce bottom space */
        margin: 0 auto 10px; /* Add bottom margin if needed for breathing room */
    }

    .footer_logo::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}