/* ========================================
   ENHANCED FOOTER STYLES
   Fixes cramped text, improves spacing, and enhances visual hierarchy
======================================== */

/* Footer Container - Responsive Full Width Solution */
.footer {
    background-color: #060D3B !important;
    color: #f8f9fa !important;
    font-family: 'Futura BT', Futura, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
    /* Simple full width without viewport units */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure footer covers full width by overriding container-fluid */
.container-fluid.footer,
div.container-fluid.footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Add proper background extension */
    background-color: #060D3B !important;
}

/* Footer Section Titles - Override conflicting .section-title */
.footer-section-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(10, 132, 199, 0.3);
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary, #0A84C7), var(--secondary, #4A90A4));
}

/* Contact Information Styling */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-icon {
    color: var(--light, #0A84C7) !important;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-contact-link:hover {
    color: var(--primary, #0A84C7) !important;
    text-decoration: none;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary, #0A84C7);
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
    padding-left: 25px;
    text-decoration: none;
}

.footer-link:hover::before {
    color: var(--secondary, #4A90A4);
    transform: translateY(-50%) translateX(3px);
}

/* Social Links */
.footer-social-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.75rem !important;
    letter-spacing: 0.5px;
}

.footer-social-links {
    margin-top: 2rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.footer-social-btn:hover {
    background: var(--primary, #0A84C7);
    border-color: var(--primary, #0A84C7);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 199, 0.3);
}

/* Mobile App Section */
.footer-app-description {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1.5rem !important;
}

.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-app-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-badge-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Copyright Section */
.footer .copyright {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 0 !important;
    margin-top: 2rem;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer .copyright a,
.footer-copyright-link {
    color: var(--primary, #0A84C7) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer .copyright a:hover,
.footer-copyright-link:hover {
    color: var(--secondary, #4A90A4) !important;
    text-decoration: underline;
}

/* Enhanced Back to Top Button */
.back-to-top {
     position: fixed !important;
    display: none;
    right: 25px !important; /* Un-comment right position */
    bottom: 25px !important;
    z-index: 1050 !important;
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, var(--primary, #0A84C7) 0%, var(--secondary, #4A90A4) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 20px rgba(10, 132, 199, 0.4) !important;
    font-size: 20px !important;
    transition: background 0.1s ease, transform 0.1s ease !important; /* Faster transition */
    backdrop-filter: blur(10px);
    display: flex !important; /* Added for centering */
    align-items: center !important; /* Added for centering */
    justify-content: center !important; /* Added for centering */

}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(10, 132, 199, 0.6) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--secondary, #4A90A4) 0%, var(--primary, #0A84C7) 100%) !important;
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* Add subtle animation */
.back-to-top i {
    animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Privacy Policy Acceptance */
.footer-privacy-acceptance {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
    font-family: inherit;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-section-title {
        font-size: 1.1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .footer-contact-item,
    .footer-link,
    .footer-app-description {
        font-size: 13px;
    }
    
    .footer-social-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 50px !important;
        height: 50px !important;
        right: 20px !important;
        bottom: 20px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding-top: 3rem !important;
    }
    
    .footer .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .footer-section-title {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-contact-item,
    .footer-link,
    .footer-app-description {
        font-size: 12px;
    }
    
    .footer-social-links {
        margin-top: 1.5rem;
    }
    
    .footer-social-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .footer .copyright {
        text-align: center !important;
        font-size: 12px !important;
        padding: 1.25rem 0 !important;
    }
    
    .footer .copyright .col-md-6 {
        text-align: center !important;
    }
    
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        right: 15px !important;
        bottom: 15px !important;
        font-size: 16px !important;
    }
}

/* Override any conflicting styles from other pages */
.footer .section-title,
.footer h4.section-title,
.footer-section-title {
    all: unset !important;
    display: block !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(10, 132, 199, 0.3) !important;
    padding-bottom: 0.5rem !important;
    position: relative !important;
    text-align: left !important;
    line-height: 1.3 !important;
}

.footer .section-title::after,
.footer h4.section-title::after,
.footer-section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: linear-gradient(90deg, var(--primary, #0A84C7), var(--secondary, #4A90A4)) !important;
}

/* Specific fixes for careers page and other page conflicts */
.careers-hero + * .footer,
.page-banner + * .footer,
.privacy-hero + * .footer,
body .footer {
    margin-top: 10 !important;
    background-color: #060D3B !important;
}

/* Ensure footer has proper visual separation */
.footer {
    position: relative;
    isolation: isolate;
    /* Force full width regardless of parent constraints */
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

/* Ensure footer spacing is consistent */
.footer .row.g-5 {
    row-gap: 2.5rem !important;
}

.footer .col-lg-3,
.footer .col-lg-2,
.footer .col-md-6 {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .footer .col-lg-3,
    .footer .col-lg-2,
    .footer .col-md-6 {
        margin-bottom: 0;
    }
}
