/* Prevent horizontal scroll */
html, body {
    margin: 0 !important;   
    padding: 0 !important;
    width: 100% !important;
    font-size: 17px !important;
}

/* -------- Wrapper Handling -------- */
.box-layout {
    position: relative !important;
    min-height: 100vh !important;
}

/* All page sections above footer */
section {
    position: relative;
    z-index: 10;
}

/* ============================================
   DESKTOP FOOTER BEHAVIOR (Fixed at bottom)
   ============================================ */
@media (min-width: 992px) {

    /* Spacer to push page content up */
    #footer-spacer {
        height: 580px; /* increased for full footer display */
        width: 100%;
    }

    #footer footer .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Footer fixed at bottom */
    #footer footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1 !important;

        /* Initially hidden */
        opacity: 0;
        display: none !important;

        transition: opacity .2s ease-in-out;
    }
    
    #footer footer .row:last-of-type {
        margin-bottom: 0 !important;
    }

    #footer footer {
        padding-bottom: 0px !important;
    }

    /* Reveal when JS adds .show-footer */
    #footer footer.show-footer {
        display: block !important;
        opacity: 1 !important;
    }
}

/* ============================================
   MOBILE FOOTER (Normal scroll)
   ============================================ */
@media (max-width: 991px) {

    #footer footer {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        opacity: 1 !important;
    }

    #footer-spacer {
        display: none !important;
        height: 0 !important;
    }
}

/* ============================================
   FOOTER GENERAL STYLES (Light theme)
   ============================================ */

#footer footer {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f5 50%, #fff5f0 100%) !important;
    color: #1a1a1a !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    border-top: 1px solid rgba(255, 107, 26, 0.1) !important;
}

/* Paragraphs */
#footer footer p {
    color: #64748b !important;
}

/* Links */
#footer footer a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

#footer footer a:hover {
    color: #ff6b1a !important;
}

/* Footer Columns */
#footer footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#footer footer ul li {
    margin-bottom: 12px !important;
}

/* Social Icons */
#footer footer a[aria-label] {
    transition: all 0.3s ease !important;
}

#footer footer a[aria-label]:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #ff6b1a, #ff8c42) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.25) !important;
}

/* ============================================
   RESPONSIVE – MOBILE footer structure
   ============================================ */
@media (max-width: 768px) {

    /* Stack columns */
    #footer footer .row > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 26px !important;
    }

    /* Paragraph width adjustment */
    #footer footer p {
        width: 95% !important;
        line-height: 1.6 !important;
        font-size: 15px !important;
    }

    /* AWS Partner Logo */
    .footer-partner-icon img {
        height: 60px !important;
        width: auto !important;
    }
    
    .footer-aws {
        justify-content: flex-start;
        margin-left: 0;
    }

    .footer-aws .aws-img {
        height: 70px;
    }
}

/* ============================================
   AWS PARTNER ICON
   ============================================ */
/* AWS Column Styling */
.footer-aws {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.footer-aws .aws-img {
    height: 100px;
    width: auto;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.footer-aws .aws-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 26, 0.15);
    border-color: rgba(255, 107, 26, 0.3);
}
