 /* Footer Styles - Optimized for all pages */
/* Footer Styles - Optimized for all pages */

/* Ensure these CSS variables are defined at the highest level */
:root {
    --footer-primary: #2BB351;
    --footer-primary-dark: #22a045;
    --footer-primary-light: #e8f5e8;
    --footer-secondary: #ffd700;
}

.me-2 {
    margin-right: .5rem !important;
}

/* Modern Footer Styles - Using high specificity and !important to prevent overrides */
html body .footer-modern,
body .footer-modern,
.footer-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border-top: 1px solid rgba(43, 179, 81, 0.1) !important;
    position: relative !important;
    overflow-x: hidden !important; /* Prevent horizontal overflow */
    width: 100% !important; /* Use 100% instead of 100vw to prevent overflow */
    max-width: 100% !important; /* Ensure it doesn't exceed viewport width */
    margin-left: 0 !important; /* Remove negative margin that can cause overflow */
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
    padding: 25px !important;
    box-sizing: border-box !important; /* Include padding in width calculation */
}

html body .footer-modern::before,
body .footer-modern::before,
.footer-modern::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--footer-primary) 0%, var(--footer-primary-dark) 100%) !important;
}

html body .footer-modern .footer-brand,
body .footer-modern .footer-brand,
.footer-brand {
   
}

html body .footer-modern .footer-logo-img,
body .footer-modern .footer-logo-img,
.footer-logo-img {
    max-height: 150px !important;
    width: auto !important;
    filter: drop-shadow(0 4px 8px rgba(43, 179, 81, 0.2)) !important;
}

html body .footer-modern .footer-description,
body .footer-modern .footer-description,
.footer-description {
    color: #6c757d !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

html body .footer-modern .footer-title,
body .footer-modern .footer-title,
.footer-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding-bottom: 0.5rem !important;
}

html body .footer-modern .footer-title::after,
body .footer-modern .footer-title::after,
.footer-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 30px !important;
    height: 2px !important;
    background: var(--footer-primary) !important;
    border-radius: 1px !important;
}

html body .footer-modern .footer-links,
body .footer-modern .footer-links,
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .footer-modern .footer-links li,
body .footer-modern .footer-links li,
.footer-links li {
    margin-bottom: 0.75rem !important;
}

html body .footer-modern .footer-links a,
body .footer-modern .footer-links a,
.footer-links a {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

html body .footer-modern .footer-links a:hover,
body .footer-modern .footer-links a:hover,
.footer-links a:hover {
    color: var(--footer-primary) !important;
    transform: translateX(5px) !important;
}

html body .footer-modern .footer-links a i,
body .footer-modern .footer-links a i,
.footer-links a i {
    color: var(--footer-primary) !important;
    width: 16px !important;
}

/* Footer Trust Section */
html body .footer-modern .footer-trust-section,
body .footer-modern .footer-trust-section,
.footer-trust-section {
    background: white !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(43, 179, 81, 0.1) !important;
    margin-bottom: 1.5rem !important;
}

html body .footer-modern .footer-trust-rating,
body .footer-modern .footer-trust-rating,
.footer-trust-rating {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

html body .footer-modern .footer-rating-number,
body .footer-modern .footer-rating-number,
.footer-rating-number {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--footer-primary) !important;
}

html body .footer-modern .footer-rating-stars,
body .footer-modern .footer-rating-stars,
.footer-rating-stars {
    color: #ffd700 !important;
}

html body .footer-modern .footer-trustmate-logo,
body .footer-modern .footer-trustmate-logo,
.footer-trustmate-logo {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 1.1rem !important;
}

html body .footer-modern .footer-trust-reviews,
body .footer-modern .footer-trust-reviews,
.footer-trust-reviews {
    font-size: 0.85rem !important;
    color: #6c757d !important;
}

/* Footer Payment Methods */
html body .footer-modern .footer-payment-methods,
body .footer-modern .footer-payment-methods,
.footer-payment-methods {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

html body .footer-modern .footer-payment-item,
body .footer-modern .footer-payment-item,
.footer-payment-item {
    background: white !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(43, 179, 81, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
}

html body .footer-modern .footer-payment-item:hover,
body .footer-modern .footer-payment-item:hover,
.footer-payment-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

html body .footer-modern .footer-payment-logo,
body .footer-modern .footer-payment-logo,
.footer-payment-logo {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

html body .footer-modern .footer-affirm-logo,
body .footer-modern .footer-affirm-logo,
.footer-affirm-logo {
    color: #0176d3 !important;
}

html body .footer-modern .footer-afterpay-logo,
body .footer-modern .footer-afterpay-logo,
.footer-afterpay-logo {
    color: #b2fce4 !important;
    background: #000 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
}

/* Footer Social Media */
html body .footer-modern .footer-social-links,
body .footer-modern .footer-social-links,
.footer-social-links {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

html body .footer-modern .footer-social-link,
body .footer-modern .footer-social-link,
.footer-social-link {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

html body .footer-modern .footer-social-link.footer-facebook,
body .footer-modern .footer-social-link.footer-facebook,
.footer-social-link.footer-facebook {
    background: #1877f2 !important;
    color: white !important;
}

html body .footer-modern .footer-social-link.footer-tiktok,
body .footer-modern .footer-social-link.footer-tiktok,
.footer-social-link.footer-tiktok {
    background: #000 !important;
    color: white !important;
}

html body .footer-modern .footer-social-link.footer-instagram,
body .footer-modern .footer-social-link.footer-instagram,
.footer-social-link.footer-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
}

html body .footer-modern .footer-social-link:hover,
body .footer-modern .footer-social-link:hover,
.footer-social-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Footer Legal Links */
html body .footer-modern .footer-legal-links,
body .footer-modern .footer-legal-links,
.footer-legal-links {
    background: rgba(43, 179, 81, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem !important;
}

html body .footer-modern .footer-legal-links ul,
body .footer-modern .footer-legal-links ul,
.footer-legal-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
}

html body .footer-modern .footer-legal-links a,
body .footer-modern .footer-legal-links a,
.footer-legal-links a {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.3s ease !important;
}

html body .footer-modern .footer-legal-links a:hover,
body .footer-modern .footer-legal-links a:hover,
.footer-legal-links a:hover {
    color: var(--footer-primary) !important;
}

/* Footer Copyright */
html body .footer-modern .footer-copyright,
body .footer-modern .footer-copyright,
.footer-copyright {
    background: rgba(43, 179, 81, 0.03) !important;
    border-top: 1px solid rgba(43, 179, 81, 0.1) !important;
    padding: 1.5rem 0 !important;
    margin-top: 2rem !important;
}

html body .footer-modern .footer-copyright-text,
body .footer-modern .footer-copyright-text,
.footer-copyright-text {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Footer Contact Button */
html body .footer-modern .footer-contact-btn,
body .footer-modern .footer-contact-btn,
.footer-contact-btn {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    max-width: 160px !important;
    width: 100% !important;
    border-color: var(--footer-primary) !important;
    color: var(--footer-primary) !important;
}

html body .footer-modern .footer-contact-btn:hover,
body .footer-modern .footer-contact-btn:hover,
.footer-contact-btn:hover {
    background-color: var(--footer-primary) !important;
    border-color: var(--footer-primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Force desktop layout for footer on all pages */
@media (min-width: 992px) {
    html body .footer-modern,
    body .footer-modern,
    .footer-modern {
        display: block !important;
        box-sizing: border-box !important;
    }
    
    html body .footer-modern .container,
    body .footer-modern .container,
    .footer-modern .container {
        width: 100% !important;
        max-width: 1300px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    html body .footer-modern .row,
    body .footer-modern .row,
    .footer-modern .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-right: -15px !important;
        margin-left: -15px !important;
        box-sizing: border-box !important;
    }
    
    html body .footer-modern .row::after,
    body .footer-modern .row::after,
    .footer-modern .row::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
    
    html body .footer-modern .col-lg-3,
    body .footer-modern .col-lg-3,
    .footer-modern .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        position: relative !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        box-sizing: border-box !important;
        display: block !important;
        float: left !important;
    }
    
    html body .footer-modern .col-lg-2,
    body .footer-modern .col-lg-2,
    .footer-modern .col-lg-2 {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
        width: 16.666667% !important;
        position: relative !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        box-sizing: border-box !important;
        display: block !important;
        float: left !important;
    }
    
    html body .footer-modern .col-lg-4,
    body .footer-modern .col-lg-4,
    .footer-modern .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
        position: relative !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        box-sizing: border-box !important;
        display: block !important;
        float: left !important;
    }
    
    html body .footer-modern .footer-legal-links ul,
    body .footer-modern .footer-legal-links ul,
    .footer-legal-links ul {
        flex-direction: row !important;
        justify-content: center !important;
    }
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    html body .footer-modern,
    body .footer-modern,
    .footer-modern {
        padding: 15px !important; /* Reduce padding on mobile */
    }
    
    html body .footer-modern .container,
    body .footer-modern .container,
    .footer-modern .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
        width: 100% !important;
    }
    
    html body .footer-modern .row,
    body .footer-modern .row,
    .footer-modern .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    html body .footer-modern .col-lg-3,
    body .footer-modern .col-lg-3,
    .footer-modern .col-lg-3,
    html body .footer-modern .col-lg-2,
    body .footer-modern .col-lg-2,
    .footer-modern .col-lg-2,
    html body .footer-modern .col-lg-4,
    body .footer-modern .col-lg-4,
    .footer-modern .col-lg-4,
    html body .footer-modern .col-md-6,
    body .footer-modern .col-md-6,
    .footer-modern .col-md-6 {
        padding-right: 5px !important;
        padding-left: 5px !important;
    }
    
    html body .footer-modern .footer-links a,
    body .footer-modern .footer-links a,
    .footer-links a {
        font-size: 0.85rem !important;
        word-break: break-word !important; /* Allow text to break to prevent overflow */
    }
    
    html body .footer-modern .footer-payment-methods,
    body .footer-modern .footer-payment-methods,
    .footer-payment-methods {
        justify-content: center !important;
    }
    
    html body .footer-modern .footer-social-links,
    body .footer-modern .footer-social-links,
    .footer-social-links {
        justify-content: center !important;
    }
    
    html body .footer-modern .footer-legal-links ul,
    body .footer-modern .footer-legal-links ul,
    .footer-legal-links ul {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
    
    html body .footer-modern .footer-legal-links a,
    body .footer-modern .footer-legal-links a,
    .footer-legal-links a {
        word-break: break-word !important; /* Allow text to break to prevent overflow */
    }
}

/* TrustMate Widget Styling */
.tm-dodo2__sticker {
    padding: 1.1em 2.0em!important;
}

/* Footer animations */
.footer-links a:hover {
    transform: translateX(5px) !important;
}

.footer-social-link:hover {
    transform: translateY(-3px) !important;
}

.footer-payment-item:hover {
    transform: translateY(-2px) !important;
}