/* ===== Estilos do Footer 02 ===== */

/* Footer Principal */
.footer2 {
    background: linear-gradient(135deg, #006B3F 0%, #006B3F 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #006b38 0%, #f78e1e 50%, #00839a 100%);
}

.footer2-main {
    padding: 60px 0 40px;
    position: relative;
}

/* Seção da Marca */
.footer2-brand {
    margin-bottom: 20px;
}

.footer2-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
}

.footer2-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #006b38, #f78e1e);
    border-radius: 2px;
}

.footer2-description {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Botão Leia Mais */
.footer2-brand .btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.footer2-brand .btn-outline-light:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Redes Sociais */
.footer2-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer2-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer2-social .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #006b38, #00839a);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.footer2-social .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 107, 56, 0.3);
}

.footer2-social .social-link:hover::before {
    transform: scale(1);
}

.footer2-social .social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Seções do Footer */
.footer2-section {
    margin-bottom: 20px;
}

.footer2-section .footer2-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Links do Footer */
.footer2-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer2-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
}

.footer2-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #006b38;
}

.footer2-links a:hover {
    color: #ffffff;
    padding-left: 15px;
}

.footer2-links a:hover::before {
    opacity: 1;
}

/* Áreas de Scroll */
.footer2-links-scroll,
.footer2-exams-scroll,
.footer2-units-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilização da scrollbar */
.footer2-links-scroll::-webkit-scrollbar,
.footer2-exams-scroll::-webkit-scrollbar,
.footer2-units-scroll::-webkit-scrollbar {
    width: 4px;
}

.footer2-links-scroll::-webkit-scrollbar-track,
.footer2-exams-scroll::-webkit-scrollbar-track,
.footer2-units-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.footer2-links-scroll::-webkit-scrollbar-thumb,
.footer2-exams-scroll::-webkit-scrollbar-thumb,
.footer2-units-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #006b38, #00839a);
    border-radius: 2px;
}

.footer2-links-scroll::-webkit-scrollbar-thumb:hover,
.footer2-exams-scroll::-webkit-scrollbar-thumb:hover,
.footer2-units-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #005432, #006b85);
}

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

.footer2-technical {
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer2-technical strong {
    color: #ffffff;
    font-weight: 600;
}

.footer2-brand-logo {
    text-align: right;
    color: #b0b0b0;
    font-size: 0.85rem;
}

.meet-digital-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.meet-digital-logo:hover {
    opacity: 1;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #006b38, #00839a);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 107, 56, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 107, 56, 0.4);
    color: #ffffff;
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .footer2-main {
        padding: 40px 0 30px;
    }
    
    .footer2-brand-logo {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer2-technical {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .footer2-main {
        padding: 30px 0 20px;
    }
    
    .footer2-title {
        font-size: 1.5rem;
    }
    
    .footer2-section .footer2-title {
        font-size: 1.2rem;
    }
    
    .footer2-social {
        justify-content: center;
    }
    
    .footer2-links-scroll,
    .footer2-exams-scroll,
    .footer2-units-scroll {
        max-height: 150px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer2-social {
        gap: 10px;
    }
    
    .footer2-social .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer2-social .social-link i {
        font-size: 1rem;
    }
    
    .footer2-links a {
        font-size: 0.85rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer2-main .col-lg-3 {
    animation: fadeInUp 0.6s ease forwards;
}

.footer2-main .col-lg-3:nth-child(1) { animation-delay: 0.1s; }
.footer2-main .col-lg-3:nth-child(2) { animation-delay: 0.2s; }
.footer2-main .col-lg-3:nth-child(3) { animation-delay: 0.3s; }
.footer2-main .col-lg-3:nth-child(4) { animation-delay: 0.4s; }
