/*
 * Beyond 'Biz' Experience - Footer Styles (Complete Consolidated Version)
 * 
 * @package Beyond_Biz_Experience
 * @author Susan Robichaud
 * @copyright Copyright © 2024 Susan Robichaud International
 * @version 1.0.0
 */
 

/* ==========================================================
   UNIVERSAL FOOTER AUTO-COLLAPSE (ALL 4 LAYOUTS)
   ========================================================== */

.footer-auto-collapse {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-align: start !important;
    -ms-flex-align: start !important;
    align-items: flex-start !important;

    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    gap: 30px !important;
    box-sizing: border-box !important;
}

/* Empty columns are fully removed */
.footer-auto-collapse > .footer-col-empty {
    display: none !important;
    visibility: hidden !important;
}

/* Visible columns: equal-width distribution */
.footer-auto-collapse > .footer-col-visible {
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    align-self: flex-start !important;
}

/* 1 column should not stretch too wide */
.footer-auto-collapse.footer-cols-1 > .footer-col-visible {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 1 960px !important;
    flex: 0 1 960px !important;
    max-width: 960px !important;
}

/* Keep media from forcing layout overflow */
.footer-auto-collapse img,
.footer-auto-collapse iframe,
.footer-auto-collapse video,
.footer-auto-collapse svg,
.footer-auto-collapse canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Tablet */
@media screen and (max-width: 980px) {
    .footer-auto-collapse {
        gap: 20px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .footer-auto-collapse > .footer-col-visible {
        -webkit-box-flex: 0 !important;
        -ms-flex: 0 0 48% !important;
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }

    .footer-auto-collapse.footer-cols-1 > .footer-col-visible {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile */
@media screen and (max-width: 640px) {
    .footer-auto-collapse {
        gap: 14px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .footer-auto-collapse > .footer-col-visible {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================================================================
   FOOTER 1: CLASSIC BUSINESS 
   ========================================================================== */

/* Section shell */
.footer-1-classic-business {
    background: linear-gradient(135deg, #4a9ca6 0%, #2a7a85 100%) !important;
    color: #ffffff !important;
    margin-top: 50px !important;
    padding: 26px 0 10px !important;
}

/* Optional dark-bg logo behavior */
.footer-1-classic-business.footer-dark-bg .footer-brand-logo img,
.footer-1-classic-business.footer-dark-bg .custom-logo {
    filter: brightness(0) invert(1) !important;
}

/* Keep gallery/secondary brand images in original colors */
.footer-1-classic-business.footer-dark-bg .brand-logos img {
    filter: none !important;
}

/* MAIN ROW LAYOUT */
.footer-1-classic-business .footer-widget-area {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    column-gap: 26px !important;   
    row-gap: 0 !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 20px 8px !important;
    box-sizing: border-box !important;
}

.footer-1-classic-business .footer-widget:first-child img {
    max-width: 200px !important;
    max-height: 110px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 10px !important;
    margin-right: 0 !important;    
}

.footer-1-classic-business .footer-widget:nth-child(2),
.footer-1-classic-business .footer-widget:nth-child(3) {
    width: 250px !important;
    max-width: 250px !important;
    margin-right: 0 !important;    
}

.footer-1-classic-business h3.footer-widget-title {
    font-size: 25px !important;
    line-height: 1 !important;
    margin: 0 0 25px 0 !important;
    font-weight: 300 !important;
}


/* NEWSLETTER COLUMN */
.footer-1-classic-business .footer-custom-content {
    flex: 1 1 320px !important;
    min-width: 280px !important;
    max-width: 420px !important;
    align-self: flex-start !important;
    overflow: visible !important;
}

/* Override hardcoded iframe width/height from embed */
.footer-1-classic-business .footer-custom-content iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 370px !important;
    min-height: 0 !important;
    display: block !important;
    border: 0 !important;
}

/* LINKS + BULLETS */
.footer-1-classic-business .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
}

.footer-1-classic-business .footer-links li {
    margin-bottom: 12px !important;
    position: relative !important;
    padding-left: 25px !important;
    line-height: 1.4 !important;
}

.footer-1-classic-business .footer-links li:before {
    content: "•" !important;
    color: #ffffff !important;
    position: absolute !important;
    left: 8px !important;
    top: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.footer-1-classic-business .footer-links li a {
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    padding: 2px 0 !important;
    transition: color 0.3s ease !important;
}

.footer-1-classic-business .footer-links li a:hover,
.footer-1-classic-business .footer-links li:hover:before {
    color: #66c8d3 !important;
}

/* SOCIAL LINKS */
.footer-1-classic-business .social-media-links {
    display: flex !important;
    gap: 15px !important;
}

.footer-1-classic-business .social-media-links a {
    color: #ffffff !important;
    font-size: 20px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-1-classic-business .social-media-links a:hover {
    color: #66c8d3 !important;
}

/* COPYRIGHT */
.footer-1-classic-business .footer-copyright {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin: 20px 0 0 0 !important;
    padding: 14px 20px !important;
    width: 100% !important;
    clear: both !important;
    text-align: center !important;
    font-size: 18px !important;
}

.footer-1-classic-business .copyright-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.footer-1-classic-business .copyright-content p,
.footer-copyright .copyright-text,
.footer-copyright .copyright-text a {
    margin: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
}

.footer-copyright .copyright-text a:hover {
    opacity: 0.8 !important;
}

/* Remove inherited minimum heights that can create extra empty space */
.footer-1-classic-business .footer-main,
.footer-1-classic-business .footer-content,
.footer-1-classic-business .site-footer {
    min-height: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-1-classic-business .footer-widget-area {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: stretch !important;
    }

    .footer-1-classic-business .footer-widget,
    .footer-1-classic-business .footer-widget:first-child,
    .footer-1-classic-business .footer-widget:nth-child(2),
    .footer-1-classic-business .footer-widget:nth-child(3),
    .footer-1-classic-business .footer-custom-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .footer-1-classic-business .footer-widget:first-child img {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-1-classic-business .footer-custom-content iframe {
        height: 400px !important;
    }

    .footer-1-classic-business .copyright-content {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* ==========================================================================
   FOOTER 2: INSPIRED ACTION LAYOUT
   ========================================================================== */

/* Footer 2 - Main Container */
.footer-inspired-action {
    background-color: var(--footer-bg-color, #4a9ca6);
    color: var(--footer-text-color, #ffffff);
    padding: 0;
    margin: 0;
    width: 100%;
    clear: both;
}

/* Main Content Area */
.footer-inspired-action .footer-main-content {
    padding: 50px 0;
}

.footer-inspired-action .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Three Column Layout */
.footer-inspired-action .footer-three-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-inspired-action .footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}


.footer-inspired-action .footer-three-columns > div > h3,
.footer-inspired-action .footer-three-columns > div > h3 a {
font-size: 25px !important;
font-weight: 200 !important;
line-height: 1.1 !important;
margin: 0 0 20px 0 !important;
color: #ffffff !important;
}

/* Divider Line */
.footer-inspired-action .footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0;
}

/* Bottom Section - Logo and Links */
.footer-inspired-action .footer-bottom-section {
    padding: 30px 0;
}

.footer-inspired-action .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styling */
.footer-inspired-action .footer-logo-section {
    flex-shrink: 0;
}

.footer-inspired-action .footer-logo-white {
    filter: brightness(0) invert(1);
    max-height: 80px;
    width: auto;
    display: block;
}

/* Links Section */
.footer-inspired-action .footer-links-section {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-inspired-action .footer-bottom-link {
    color: var(--footer-text-color, #ffffff);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.footer-inspired-action .footer-bottom-link:hover {
    opacity: 1;
    color: var(--footer-link-color, #66c8d3);
    text-decoration: none;
}

/* Copyright Section */
.footer-inspired-action .footer-copyright {
    background: var(--footer-copyright-bg, rgba(0,0,0,0.3));
    padding: 20px 0;
    text-align: center;
}

.footer-inspired-action .copyright-content p {
    color: var(--footer-copyright-text, #ffffff);
    margin: 0;
    padding: 0px 10px 10px;
    font-size: 0.9rem;
}

.footer-inspired-action .copyright-content a {
    color: inherit;
    text-decoration: none;
}

.footer-inspired-action .copyright-content a:hover {
    color: var(--footer-link-color, #ffffff);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-inspired-action .footer-three-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-inspired-action .footer-column {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-inspired-action .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-inspired-action .footer-links-section {
        justify-content: center;
        gap: 25px;
    }
    
    .footer-inspired-action .footer-main-content {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .footer-inspired-action .footer-links-section {
        flex-direction: column;
        gap: 15px;
    }
}

/* Footer 2 Social Media Section */
.footer-inspired-action .footer-social-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inspired-action .footer-social-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: inherit;
}

.footer-inspired-action .social-media-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inspired-action .social-media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-social-icon-color, #ffffff);
    font-size: var(--footer-social-icon-size, 20px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-inspired-action .social-media-icon:hover {
    background: var(--footer-link-color, #0A7996);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER 3: IMPACT BUILDER LAYOUT
   ========================================================================== */

.footer-impact-builder {
    background-color: var(--secondary-color, var(--footer-bg-color, #555555));
    color: var(--footer-text-color, #ffffff);
    padding: 0;
    margin: 0;
    width: 100%;
    clear: both;
}

/* Main Container */
.footer-impact-builder .footer-3-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 430px;
    align-items: stretch;
    position: relative;
    overflow: visible;
}

/* Column Layout & Sizing */

/* Column 1: Contact Info */
.footer-impact-builder .footer-3-contact {
    flex: 0 0 400px;
    background-color: var(--secondary-color, #555555);
    padding: 46px 34px;
    color: #ffffff;
}

/* Column 2: Links & Social */
.footer-impact-builder .footer-3-links {
    flex: 0 0 400px;
    background-color: var(--secondary-color, #555555);
    padding: 46px 34px;
    color: #ffffff;
}

/* Force Footer 3 left columns narrower so newsletter gets wider */
.footer-impact-builder .footer-3-container.footer-auto-collapse > .footer-3-contact.footer-col-visible,
.footer-impact-builder .footer-3-container.footer-auto-collapse > .footer-3-links.footer-col-visible {
    flex: 0 0 340px !important;
    max-width: 340px !important;
    width: 340px !important;
}

/* Keep newsletter taking the remaining space */
.footer-impact-builder .footer-3-container.footer-auto-collapse > .footer-3-newsletter.footer-col-visible {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Column 3: Newsletter */
.footer-impact-builder .footer-3-newsletter {
    flex: 1;
    background-color: var(--primary-color, #0a7996);
    color: #ffffff;
    padding: 65px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Extend right color block slightly lower to better align with bottom line */
.footer-impact-builder .footer-3-newsletter::after {
content: "";
position: absolute;
left: 0 !important;
right: -100vw !important;
bottom: -40px !important;
height: 40px !important;
background: var(--primary-color, #0a7996) !important;
}

/* Column 1: Contact Info Styling */

.footer-impact-builder .footer-3-brand {
    margin-bottom: 34px;
    text-align: left;
}

.footer-impact-builder .footer-3-logo {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.footer-impact-builder .footer-3-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 14px;
}

.footer-impact-builder .contact-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-top: 4px;
}

.footer-impact-builder .contact-icon i {
    font-size: 32px;
    color: #ffffff;
}

.footer-impact-builder .contact-content h4 {
    margin: 0 0 4px 0;
    font-size: 30px;
    color: #ffffff;
    line-height: 1.15;
}

.footer-impact-builder .contact-text {
    font-size: 20px;
    line-height: 1.2;
    color: #ffffff !important;
    opacity: 0.92;
}

.footer-impact-builder .contact-text a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-impact-builder .contact-text a:hover {
    color: #66c8d3 !important;
    text-decoration: underline;
}

/* column 2: Links Styling */

.footer-impact-builder .footer-3-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    color: #ffffff;
    position: relative;
    line-height: 1.1;
}

.footer-impact-builder .footer-3-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 68%;
    height: 1px;
    background-color: #ffffff;
}

.footer-impact-builder .footer-3-link-list {
    list-style: none;
    padding: 0;
    margin: 0 0 34px 0;
}

.footer-impact-builder .footer-3-link-list li {
    margin-bottom: 12px;
}

.footer-impact-builder .footer-3-link-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.footer-impact-builder .footer-3-link-list a:hover {
    color: var(--primary-color, #66c8d3);
}

.footer-impact-builder .footer-3-social {
    margin: 26px 0;
}

.footer-impact-builder .footer-3-social .social-media-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-impact-builder .footer-3-social .social-media-icon {
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer-impact-builder .footer-3-social .social-media-icon:hover {
    color: var(--primary-color, #66c8d3);
    transform: translateY(-1px);
}

.footer-impact-builder .footer-3-cta-button {
    display: inline-block;
    background-color: var(--cta-bg-color, #e74c3c);
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: var(--cta-border-radius, 5px);
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px 0;
}

.footer-impact-builder .footer-3-registration {
    font-size: 20px;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.85;
    margin: 20px 0 14px 0;
}

.footer-impact-builder .footer-3-privacy {
    font-size: 20px;
    margin-top: 12px;
}

.footer-impact-builder .footer-3-privacy a {
    color: #ffffff;
    text-decoration: none;
}

.footer-impact-builder .footer-3-privacy a:hover {
    color: var(--primary-color, #66c8d3);
}

/* column 3: newsletter styling */

.footer-impact-builder .footer-3-newsletter h3 {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.12;
    margin: 0 0 24px 0;
    color: #ffffff;
}

.footer-impact-builder .footer-3-newsletter p {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0.92;
}

.footer-impact-builder .footer-3-newsletter {
    overflow: visible !important;
}

/* Footer 3: remove right-side gray strip */
.footer-impact-builder .footer-3-newsletter {
    position: relative;
    z-index: 1;
}

.footer-impact-builder .footer-3-newsletter::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background: var(--primary-color, #0a7996);
}

.footer-impact-builder .footer-3-newsletter iframe[src*="cyberimpact.com"] {
    width: 100% !important;       
    max-width: 450px !important; 
    height: 450px !important;     
    min-height: 0 !important;
    display: block !important;
    margin: 0 auto !important;
    border: 0 !important;
}




/* Copyright row icons */
.footer-impact-builder .footer-copyright .social-media-links,
.footer-impact-builder .site-info .social-media-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-impact-builder .footer-copyright .social-media-icon,
.footer-impact-builder .site-info .social-media-icon {
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    opacity: 0.95;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-impact-builder .footer-copyright .social-media-icon:hover,
.footer-impact-builder .site-info .social-media-icon:hover {
    color: var(--primary-color, #66c8d3);
    transform: translateY(-1px);
}

/* IMPORTANT: only white-filter the main logo, not all images */
.footer-impact-builder .footer-3-brand .footer-3-logo,
.footer-impact-builder .footer-3-brand img.custom-logo {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

/* Remove white filter from other image areas */
.footer-impact-builder .brand-logos img,
.footer-impact-builder .footer-3-newsletter img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-impact-builder .footer-3-container {
        flex-wrap: wrap;
    }

    .footer-impact-builder .footer-3-contact,
    .footer-impact-builder .footer-3-links,
    .footer-impact-builder .footer-3-newsletter {
        flex: 1 1 100%;
    }

    .footer-impact-builder .footer-3-newsletter::after {
        display: none;
    }

    .footer-impact-builder .contact-content h4 {
        font-size: 26px;
    }

    .footer-impact-builder .contact-text,
    .footer-impact-builder .footer-3-link-list a {
        font-size: 24px;
    }

    .footer-impact-builder .footer-3-newsletter h3 {
        font-size: 40px;
    }
}

/* ==========================================================================
   FOOTER 3'S COPYRIGHT SECTION STYLING
   ========================================================================== */

/* Copyright Section - Using Global Footer Settings */
.footer-impact-builder .footer-copyright {
    background: inherit; 
    text-align: center !important;
    margin: 40px 0 0 0 !important;
    padding: 20px !important;
    font-size: 18px !important;
    border-top: 1px solid rgba(255,255,255,0.3) !important;
    width: 100% !important;
    clear: both !important;
}


.footer-impact-builder .copyright-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.footer-impact-builder .copyright-content p {
    margin: 0 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Copyright styling */
.footer-copyright .copyright-text {
    color: inherit; 
}

.footer-copyright .copyright-text a {
    color: inherit; 
    text-decoration: none; 
}

.footer-copyright .copyright-text a:hover {
    text-decoration: none; 
    opacity: 0.8; 
}

/* Social Media Icons - Using Global Settings */
.footer-impact-builder .social-media-links {
    display: flex !important;
    gap: 15px !important;
}

.footer-impact-builder .social-media-links a {
    color: #ffffff !important;
    font-size: 20px !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.footer-impact-builder .social-media-links a:hover {
    color: #66c8d3 !important;
    text-decoration: none !important;
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .footer-impact-builder .footer-3-container {
        flex-direction: column;
    }
    
    .footer-impact-builder .footer-3-contact,
    .footer-impact-builder .footer-3-links,
    .footer-impact-builder .footer-3-newsletter {
        flex: none;
        width: 100%;
    }
    
    .footer-impact-builder .footer-3-links {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .footer-impact-builder .footer-3-contact,
    .footer-impact-builder .footer-3-links,
    .footer-impact-builder .footer-3-newsletter {
        padding: 30px 20px;
    }
    
    .footer-impact-builder .footer-3-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-impact-builder .contact-icon {
        align-self: center;
    }
    
    .footer-impact-builder .footer-3-social .social-media-links {
        justify-content: center;
    }
}



/* ==========================================================================
   FOOTER 4 - MEGA HERO STYLING
   ========================================================================== */

/* Footer 4 auto-collapse*/
.footer-mega-hero .footer-4-main-container.footer-auto-collapse {
display: flex !important;
justify-content: center !important;
align-items: flex-start !important;
gap: 18px !important;
max-width: 1400px !important;
margin: 0 auto !important;
padding: 60px 30px 20px !important;
box-sizing: border-box !important;
}

.footer-mega-hero .footer-4-main-container.footer-auto-collapse {
  gap: 12px !important;
}

/* nuke any old spacing on col1 and col2 specifically */
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(1),
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(2) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(1) { flex: 0 0 250px !important; }
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(2) { flex: 0 0 235px !important; }
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(3) { flex: 0 0 235px !important; }
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(4) { flex: 0 0 300px !important; }

/* 1->2 spacing */
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(2) {
  margin-left: 40px !important; 
}

/* 3->4 spacing */
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(4) {
  margin-left: 30px !important; 
}


/* Footer 4: custom spacing only in 4-column state */
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(2),
.footer-mega-hero .footer-4-main-container.footer-auto-collapse > :nth-child(3) {
  margin-left: 0 !important;
}

.footer-mega-hero .footer-4-main-container.footer-auto-collapse.footer-cols-4 > :nth-child(2) {
  margin-left: 60px !important;
}

.footer-mega-hero .footer-4-main-container.footer-auto-collapse.footer-cols-4 > :nth-child(3) {
  margin-left: -20px !important;
}

.footer-mega-hero .footer-4-main-container.footer-auto-collapse.footer-cols-3 > .footer-col-visible,
.footer-mega-hero .footer-4-main-container.footer-auto-collapse.footer-cols-2 > .footer-col-visible,
.footer-mega-hero .footer-4-main-container.footer-auto-collapse.footer-cols-1 > .footer-col-visible {
  margin-left: 0 !important;
}

.footer-mega-hero .footer-4-cta-image img {
width: 100% !important;
max-width: 320px !important;
height: auto !important;
}

/* FOOTER 4 STYLING */

.footer-mega-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    background: -webkit-linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    background: -moz-linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    padding: 0;
    margin: 0;
}
 


/* Use the customizer background color if set */
.footer-mega-hero.custom-footer-bg {
    background: var(--footer-bg-color) !important;
}

.footer-4-back-to-top {
    margin-top: 25px;
    text-align: right !important; 
}

/* Company Name */
.footer-4-company-name {
    font-size: 28px !important;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: inherit;
    line-height: 1.2;
}

.footer-4-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.footer-4-intro p {
    font-size: 20px !important;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ecf0f1;
}

/* LET'S BE FRIENDS SECTION TITLE */
.footer-4-social h3 {
    font-size: 32px !important;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    color: inherit;
}

.footer-4-social .social-icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.footer-4-social .social-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px; 
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.footer-4-social .social-icon:hover {
    background: #3498db;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.social-icon.social-twitter i::before {
    content: "𝕏" !important;
    font-family: serif !important;
    font-weight: bold !important;
    font-size: 20px;
}

/* Column Titles */
.footer-4-title {
    font-size: 24px !important;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: inherit;
    letter-spacing: 0.5px;
    line-height: 1.3;
}


/* Link Styling */
.footer-4-links,
.footer-4-links a,
.footer-4-links li a,
.footer-4-column-2 a,
.footer-4-column-3 a {
    color: inherit;
    text-decoration: none;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.5;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;

}

.footer-4-links a:hover,
.footer-4-feature-link a:hover,
.footer-4-column-2 a:hover,
.footer-4-column-3 a:hover {
    color: inherit;
    font-weight: 300 !important;
    text-decoration: none;
}


/* Feature Section */
.footer-4-title-small {
    font-size: 24px !important; 
    margin-top: 25px; 
    margin-bottom: 12px;
}

/* Feature Link */
.footer-4-feature-link,
.footer-4-feature-link a {
    font-size: 18px !important;
    font-weight: 300 !important;
}



/* CTA Title */
.footer-4-cta-title {
    font-size: 24px !important; 
    font-weight: 300;
    margin: 0 0 18px 0;
    color: inherit;
    line-height: 1.2;
}

.footer-4-cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px; 
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Subtitle Link */

.footer-4-cta-subtitle {
    font-size: 23px !important; 
    font-weight: 300;
    color: inherit;
    margin-bottom: 22px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.footer-4-cta-subtitle a {
    color: inherit;
    text-decoration: none;
}

.footer-4-cta-subtitle a:hover {
    font-size: 22px !important; 
    color: inherit;
}


/* BACK TO TOP LINK */

.footer-4-back-to-top {
    margin-top: 25px; 
}

.back-to-top-link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px; 
    color: inherit;
    text-decoration: none;
    font-size: 20px !important; 
    font-weight: 300;
    letter-spacing: 0.3px;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.back-to-top-link:hover {
    font-size: 19px !important; 
    color: inherit;
}




/* INSTAGRAM SECTION */
.footer-4-instagram-section {
    background:  var(--e-global-color-accent) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.footer-4-instagram-grid {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 20px !important;
    height: 120px !important;
    line-height: 0 !important;
}

/* Promotional image */
.footer-4-instagram-grid .instagram-promo-item {
    flex: 0 0 280px !important;
    width: 280px !important;
    height: 148px !important;
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 0 !important;
    order: -1 !important;
}

.footer-4-instagram-grid .instagram-promo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* Spotlight wrapper */
.spotlight-instagram-wrapper {
    flex: 1 !important;
    max-width: 950px !important;
    height: 190px !important;
    order: 1 !important;
    line-height: 0 !important;
}

/* Spotlight feed */
.spotlight-instagram-wrapper #sb_instagram,
.spotlight-instagram-wrapper .sbi_container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    height: 190px !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.spotlight-instagram-wrapper .sbi_item {
    flex: 0 0 190px !important;
    width: 190px !important;
    height: 190px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.spotlight-instagram-wrapper .sbi_photo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.spotlight-instagram-wrapper .sbi_photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Hide unwanted elements */
.spotlight-instagram-wrapper .sbi_header,
.spotlight-instagram-wrapper .sbi_follow_btn,
.spotlight-instagram-wrapper .sbi_load_btn,
.spotlight-instagram-wrapper .sbi_info {
    display: none !important;
}

/* Promotional content */
.instagram-promo-fallback {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.promo-content {
    text-align: center !important;
    color: white !important;
}

.promo-content h3, .promo-content h4 {
    margin: 2px 0 !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.promo-content p {
    margin: 4px 0 0 0 !important;
    font-size: 11px !important;
    opacity: 0.9 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Setup message */
.instagram-setup-message {
    flex: 1 !important;
    background: #f9f9f9 !important;
    border: 2px dashed #ccc !important;
    padding: 40px 20px !important;
    text-align: center !important;
    border-radius: 4px !important;
}

.instagram-setup-message p {
    margin: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}





/* RESPONSIVE */
@media (max-width: 1200px) {
    .footer-4-instagram-grid {
        height: 160px !important;
    }
    
    .footer-4-instagram-grid .instagram-promo-item,
    .spotlight-instagram-wrapper,
    .spotlight-instagram-wrapper #sb_instagram,
    .spotlight-instagram-wrapper .sbi_container {
        height: 160px !important;
    }
    
    .footer-4-instagram-grid .instagram-promo-item {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
    
    .spotlight-instagram-wrapper .sbi_item {
        flex: 0 0 160px !important;
        width: 160px !important;
        height: 160px !important;
    }
}



@media (max-width: 992px) {
    .footer-4-instagram-section {
        padding: 2px 0 !important;
    }
    
    .footer-4-instagram-grid {
        flex-wrap: wrap !important;
        gap: 6px !important;
        height: auto !important;
        padding: 0 10px !important;
    }
    
    .footer-4-instagram-grid .instagram-promo-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: 160px !important;
    }
    
    .spotlight-instagram-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .spotlight-instagram-wrapper .sbi_container {
        height: auto !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .spotlight-instagram-wrapper .sbi_item {
        flex: 0 0 calc(50% - 3px) !important;
        width: calc(50% - 3px) !important;
        height: auto !important;
        aspect-ratio: 1 !important;
    }
}



/* ==========================================================================
   FOOTER 4 - LEGAL BAR
   ========================================================================== */

.footer-legal-bar {
    background: #333333;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
}

.footer-legal-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal-copyright {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    white-space: nowrap;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.footer-legal-links a {
    color: #ffffff;
    font-size: 12px;
    font-weight: 300;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-legal-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* Restore Font Awesome icon rendering */
.fa,
fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class^="fa-"],
[class*=" fa-"] {
    font-style: normal !important;
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}