/* Footer Styles */
.footer {
    padding: 2rem 1rem;
    background-color: #212B3C;
    color: #ccc;
    margin-top: 80px;
}

.footer__logo {
    border-radius: 30px;
    padding: 0.3rem 1rem;
    width: fit-content;
    background-color: #ffffff;
}

.footer a {
    color: #ccc;
    text-decoration: none !important;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer h3 {
    font-size: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer ul {
    margin-top: 0.5rem;
    padding-left: 0;
}

.footer ul > li {
    list-style: none;
    padding: 0.5rem 0rem;
}

.footer_logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Social Icons Container - Desktop: Centered, Mobile: Scrollable */
.social_icons {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0.75rem 0 0;
    list-style: none;
    justify-content: center;
    /* Desktop: centered layout (default) */
    overflow-x: visible;
    overflow-y: visible;
    white-space: normal;
}

/* Desktop scrollbar styles (hidden by default) */
.social_icons::-webkit-scrollbar {
    height: 0;
    display: none;
}

/* Social icons parent container */
.social_icons_container {
    max-width: 100%;
    position: relative;
}

/* Desktop: normal icon sizing */
.social_icons li {
    flex-shrink: 1;
}

.footer_col {
    flex: 1 1 150px;
    margin-bottom: 1rem;
    max-width: 250px;
}

.footer .rowz {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.copyright {
    color: #888;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.copyright strong {
    color: #fff;
}

/* Social Media Icons */
.social_icons li {
    display: inline-block;
    margin: 0 4px;
    flex-shrink: 0;
}

.social_icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.social_icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Specific social media brand colors on hover */
.social_icons a[href*="facebook"]:hover { background: #1877f2; }
.social_icons a[href*="twitter"]:hover { background: #1da1f2; }
.social_icons a[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social_icons a[href*="linkedin"]:hover { background: #0077b5; }
.social_icons a[href*="youtube"]:hover { background: #ff0000; }
.social_icons a[href*="threads"]:hover { background: #000000; }

/* Footer social media icon fixes */
.footer .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block;
    width: 20px;
    text-align: center;
    line-height: 1;
}

/* Specific Font Awesome brand icon styling */
.fa-facebook-f, .fa-x-twitter, .fa-instagram, .fa-linkedin-in, .fa-youtube, .fa-threads {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Pro", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Social media icons in footer - ensure proper display */
.social_icons .fa-brands::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Override any conflicting styles for social icons */
.footer .social_icons i {
    font-size: 18px !important;
    color: #ffffff !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer .social_icons a:hover i {
    opacity: 1;
    transform: scale(1.2);
}

/* Ensure Font Awesome brand icons load properly */
.footer .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* Only use emoji fallbacks if Font Awesome fails to load */
@supports not (font-family: "Font Awesome 6 Brands") {
    .footer .fa-facebook-f::before { content: "📘"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
    .footer .fa-x-twitter::before { content: "🐦"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
    .footer .fa-instagram::before { content: "📷"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
    .footer .fa-linkedin-in::before { content: "💼"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
    .footer .fa-youtube::before { content: "📺"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
    .footer .fa-threads::before { content: "🧵"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important; }
}

/* Footer Navigation Links Enhancement */
.footer ul li a {
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.footer ul li a:hover {
    padding-left: 12px;
    border-left-color: #007bff;
}

.footer ul li a:hover::before {
    content: "›";
    position: absolute;
    left: 5px;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
}

/* Mobile Footer Styles */
@media (max-width: 576px) {
    .footer_col {
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile: Enable scrollable social icons */
    .social_icons {
        gap: 0.5rem;
        padding: 0.75rem 0.25rem;
        justify-content: flex-start;
        max-width: 100%;
        /* Mobile: Enable horizontal scrolling */
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Mobile: Custom scrollbar styling */
    .social_icons::-webkit-scrollbar {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        display: block;
    }
    
    .social_icons::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }
    
    .social_icons::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .social_icons::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
    
    .social_icons_container {
        padding: 0 1rem;
    }
    
    .social_icons li {
        margin: 0 2px;
        min-width: 50px;
        flex-shrink: 0;
    }
    
    .social_icons a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Footer Logo */
.footer-logo {
    height: 40px;
    width: auto;
}