/* Modern Footer Styles */
.footer_section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 60px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.footer_section .container {
    position: relative;
    z-index: 1;
}

/* Footer Top Section */
.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    border-radius: 8px;
}

.footer-logo img {
    max-width: 180px;
    filter: brightness(1.2);
}

.footer-social-section {
    text-align: left;
}

.footer-social-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Links Section */
.footer-links-section {
    padding-bottom: 40px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.footer-links-list a i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-links-list a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links-list a:hover i {
    transform: translateX(5px);
}

.footer-category-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-category-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-category-link:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-category-link:hover i {
    transform: translateX(5px);
}

/* Footer Contact Info */
.footer-contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-info i {
    margin-right: 10px;
    color: #4ecdc4;
    width: 20px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-copyright,
.footer-credits {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits a {
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-credits a:hover {
    color: #fff;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Old class overrides to prevent conflicts */
.footer-border {
    border: none;
}

.ftr-logo, .footer_social, .footer-menu,
.editorial-text, .address-text, .root_01, .root_02 {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-top {
        text-align: center;
    }

    .footer-social-section {
        text-align: center;
        margin-top: 30px;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links-list {
        text-align: center;
    }

    .footer-contact-info {
        text-align: center;
    }

    .footer-copyright,
    .footer-credits {
        text-align: center !important;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
    }
}
