/* ============================================
   FOOTER FIX — Matches actual footer.php HTML
   ============================================ */

/* --- Main footer container --- */
.footer {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #999 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    padding: 40px 30px 30px 30px !important;
    margin: 60px auto 0 auto !important;
    width: 1200px !important;
    max-width: 95% !important;
    font-family: 'Rajdhani', 'PT Sans', sans-serif !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.footer .footer-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* --- Rows --- */
.footer .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
}

/* --- Top row: link menu --- */
.footer .row:first-child .col-xs-12 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 0 15px 0 !important;
    margin: 0 0 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: left !important;
}

.footer .row:first-child a {
    color: #999 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: color 0.2s;
}

.footer .row:first-child a:hover {
    color: #d4af37 !important;
}

.footer .row:first-child span {
    color: #444 !important;
    padding: 0 5px !important;
}

/* --- HR --- */
.footer hr {
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin: 20px 0 !important;
}

/* --- Bottom row: copyright + socials --- */
.footer .row:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px !important;
}

/* --- Left column (copyright) --- */
.footer .row:last-child > .col-xs-8 {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 60% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.footer .row:last-child > .col-xs-8 p {
    color: #888 !important;
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 1px !important;
}

.footer .row:last-child > .col-xs-8 a,
.footer .webengine-powered,
.footer a.webengine-powered {
    color: #666 !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    margin-top: 8px !important;
    transition: color 0.2s;
}

.footer .row:last-child > .col-xs-8 a:hover,
.footer .webengine-powered:hover {
    color: #d4af37 !important;
}

/* --- Right column (socials) --- */
.footer .row:last-child > .col-xs-4 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* --- Each social icon wrapper --- */
.footer .row:last-child > .col-xs-4 > .col-xs-4 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: static !important;
    min-height: 0 !important;
}

.footer .row:last-child > .col-xs-4 > .col-xs-4 a {
    display: block !important;
    line-height: 0 !important;
}

/* --- Social icon images --- */
.footer .row:last-child > .col-xs-4 > .col-xs-4 img,
.footer .footer-social-link img {
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
    transition: all 0.3s !important;
    margin: 0 !important;
}

.footer .footer-social-link:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* ============================================
   GLOBAL PAGE BACKGROUND (make sure body is dark)
   ============================================ */
body {
    background-color: #0a0a0a !important;
}

#container,
#content {
    background: transparent !important;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .footer .row:last-child {
        flex-direction: column !important;
    }
    .footer .row:last-child > .col-xs-8,
    .footer .row:last-child > .col-xs-4 {
        max-width: 100% !important;
        width: 100% !important;
    }
}