/* Extraído de includes/categories_home.php (antes embutido no HTML) */
.recent-company-banner {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente o wrapper */
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    min-height: 70px;
    overflow: hidden;
}
/* Novo wrapper para agrupar Ícone + Slider e centralizar juntos */
.banner-content-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: auto;
}
.recent-company-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    align-self: center;
    height: 44px;
    min-width: 1.6em;
    font-size: 1.6rem;
    line-height: 1;
    animation: pulse-lightning 1.5s infinite ease-in-out;
}
@keyframes pulse-lightning {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}
.recent-company-slider {
    flex: 0 1 auto;
    width: auto; /* Permite ajustar ao conteúdo */
    max-width: 800px;
    height: 44px; /* Altura fixa para modo vertical no desktop (igual ao ícone) */
    overflow: hidden;
    transition: width 0.3s ease; /* Transição suave de largura */
}
.recent-company-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px; /* Garante altura fixa por slide no desktop */
    min-height: 44px;
    width: auto; /* Importante para o slide se ajustar */
}
.recent-company-text {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    line-height: 1.4;
    text-align: left;
    display: inline-flex; /* Permite medir largura real do conteúdo e centralizar na vertical */
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    white-space: nowrap; /* Evita quebra de linha no desktop para medição correta */
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona reticências se passar do limite */
}
@media (max-width: 480px) {
    .recent-company-banner {
        justify-content: flex-start;
        align-items: center;
        padding: 10px;
        min-height: 60px;
        height: auto;
    }
    /* No mobile, o wrapper deve ocupar tudo e alinhar no topo */
    .banner-content-wrapper {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
    }
    .recent-company-slider {
        flex: 1;
        width: auto;
        height: auto;
    }
    .recent-company-slider .swiper-slide {
        justify-content: flex-start;
        align-items: center;
        height: auto;
    }
    .recent-company-text {
        text-align: left;
        font-size: 13px;
        display: flex;
        align-items: center;
        -webkit-line-clamp: unset;
        overflow: visible;
        white-space: normal;
        max-width: none;
    }
    .recent-company-icon {
        margin-right: 10px;
        height: auto;
        align-self: center;
        font-size: 1.4rem;
    }
}
.recent-company-text strong {
    color: #111827;
    font-weight: 600;
}
