/* ===========================
   LS TREINAMENTOS - STYLES.CSS
   PRODUÇÃO - 2025
   =========================== */

/* CSS Variables */
:root {
    --brand-blue: #0842ab;
    --brand-white: #FFFFFF;
    --brand-light: #f8fafc;
    --brand-dark: #1e293b;
    --brand-blue-50: #eff6ff;
    --brand-blue-100: #dbeafe;
    --brand-blue-600: #0636a0;
    --brand-blue-700: #0529a3;
    --brand-blue-800: #06205c;
    --brand-blue-900: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-brand: 0 25px 50px -12px rgba(8, 66, 171, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 8rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--brand-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--brand-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, --brand-blue-light 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Background Gradients */
.gradient-bg {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1e40af 50%, #3b82f6 100%);
    position: relative;
}

.gradient-bg-2 {
    background: linear-gradient(135deg, var(--brand-light) 0%, #e2e8f0 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Glass Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Icons */
.feature-icon {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #3b82f6 100%);
    box-shadow: var(--shadow-lg);
}

.card-hover {
    transition: none;
}

.card-hover:hover {
    transform: none;
    box-shadow: none;
}



@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-6px);
    }
}

/* Skill Cards */
.skill-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--brand-light) 100%);
    transition: all var(--transition-medium);
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.skill-card:hover {
    background: linear-gradient(145deg, var(--brand-blue) 0%, #1e40af 100%);
    color: white;
    transform: scale(1.05) translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-brand);
}

.skill-card:hover * {
    color: white !important;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: relative;
    overflow: hidden;
}

.floating-shapes::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.floating-shapes::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: rgba(8, 66, 171, 0.1);
    border-radius: 30%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 1;
}

@media (max-width: 768px) {

    .floating-shapes::before,
    .floating-shapes::after {
        display: none;
    }
}

/* Statistics Counter */
.stats-counter {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

@media (max-width: 768px) {
    .stats-counter {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--brand-blue);
    animation: loading-pulse 1.2s linear infinite;
}

/* Navigation */
.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-blue);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1e40af 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
    background: linear-gradient(135deg, var(--brand-blue-600) 0%, #1d4ed8 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-blue);
    padding: 1rem 2rem;
    border: 2px solid var(--brand-blue);
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================================= */
/* SIDE MENU - VERSÃO FINAL (COM BOTÃO DE TOPO)      */
/* ================================================= */

/* --- 1. ESTRUTURA PRINCIPAL DO CONTAINER --- */
.sidebar-menu {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- 2. ESTILO PADRÃO PARA TODOS OS BOTÕES (INCLUINDO O DE TOPO) --- */
.sidebar-menu a,
.sidebar-menu button {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- 3. EFEITO HOVER PARA TODOS OS BOTÕES --- */
.sidebar-menu a:hover,
.sidebar-menu button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- 4. ESTILO DOS ÍCONES DAS REDES SOCIAIS (DENTRO DO 'a') --- */
.sidebar-menu a i {
    font-size: 24px;
    transition: color 0.3s ease;
}

/* --- 5. CORES INDIVIDUAIS DAS REDES SOCIAIS --- */

/* WhatsApp */
.sidebar-menu .whatsapp i {
    color: #07742f;
}

.sidebar-menu .whatsapp:hover i {
    color: #128C7E;
}

/* Instagram */
.sidebar-menu .instagram i {
    color: #E4405F;
}

.sidebar-menu .instagram:hover i {
    color: #C13584;
}

/* LinkedIn */
.sidebar-menu .linkedin i {
    color: #0173B1;
}

.sidebar-menu .linkedin:hover i {
    color: #004182;
}


/* --- 6. ESTILO DO BOTÃO 'VOLTAR AO TOPO' --- */
.sidebar-menu .scroll-top {
    background-color: #0842ab;
    /* Fundo azul da sua marca */
    /* Adiciona um espaço extra para separar das redes sociais */
    margin-top: 0.5rem;
}

.sidebar-menu .scroll-top:hover {
    background-color: #062d7a;
    /* Azul um pouco mais escuro no hover */
}

/* Estilo do ícone SVG da seta (dentro do botão) */
.sidebar-menu .scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    /* Cor da seta (branca) */
}


/* --- 7. OCULTAR ITENS DESNECESSÁRIOS --- */
/* Oculta apenas os tooltips */
.sidebar-menu a::before,
.sidebar-menu a::after,
.sidebar-menu button::before,
.sidebar-menu button::after {
    display: none;
}


/* --- 8. AJUSTES PARA CELULAR (RESPONSIVO) --- */
@media (max-width: 768px) {
    .sidebar-menu {
        right: 1rem;
        bottom: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .sidebar-menu a:hover,
    .sidebar-menu button:hover {
        transform: scale(1.05);
    }

    /* Remove o espaço extra do botão de topo no mobile */
    .sidebar-menu .scroll-top {
        margin-top: 0;
    }
}

/* Seção Tecnologias */

.tech-image {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

.tech-image-aumentar {
    max-width: 100%;
    height: 190px !important;
    object-fit: contain;
    margin: 0 auto;
}

.swiper-container {
    padding: 20px 0;
}

.swiper-wrapper {
    align-items: center;
    transition-timing-function: ease-in-out !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gallery {
    padding: 70px 0;
}

.gallery-cell {
    width: 30%;
    height: 140px;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.gallery-cell img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}



/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation */
.stagger-animation {
    animation-delay: var(--delay, 0s);
}

/* Custom Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes loading-pulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce-slow {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -7px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue-600);
}

/* Selection */
::selection {
    background: var(--brand-blue);
    color: white;
}

::-moz-selection {
    background: var(--brand-blue);
    color: white;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-medium);
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-brand);
    border-color: var(--brand-blue);
}

.course-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-badge-popular {
    background: var(--brand-blue-50);
    color: var(--brand-blue);
}

.course-badge-demand {
    background: #dcfce7;
    color: #16a34a;
}

.course-badge-cert {
    background: #fef3c7;
    color: #d97706;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    color: var(--brand-blue);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}

/* Career Cards */
.career-card {
    background: linear-gradient(145deg, white 0%, var(--brand-light) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid #e2e8f0;
}

.career-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-brand);
    background: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 6rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 4rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .text-7xl {
        font-size: 3.5rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 0.75rem;
        --section-padding: 3rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background: var(--brand-dark);
        color: var(--brand-light);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .gradient-bg {
        background: var(--brand-blue) !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shapes::before,
    .floating-shapes::after {
        animation: none;
    }

    .card-hover:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--brand-blue);
    }

    .card-hover {
        border: 2px solid #e2e8f0;
    }

    .card-hover:hover {
        border-color: var(--brand-blue);
    }

    .skill-card {
        border: 2px solid #e2e8f0;
    }
}

.card-hover {
    transition: none;
}

.card-hover:hover {
    transform: none;
    box-shadow: none;
}


/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Estilos personalizados e melhorias */
:root {
    --brand-blue: #0842AB;
    --brand-dark: #111827;
    --text-muted: #6b7280;
}

body {
    font-family: sans-serif;
    background-color: #f9fafb;
}

.text-gradient {
    background-image: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- ESTRUTURA DO CARROSSEL (ALTERADO) --- */
.courses-carousel-container {
    padding: 0 40px;
    /* Espaço para os botões não sobreporem os cards */
}

.courses-carousel {
    display: flex;
    /* Alinha os slides verticalmente no centro, caso tenham alturas diferentes */
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.course-slide {
    flex: 0 0 75%; /* Cada slide ocupa 75% da largura do container */
    min-width: 0;
    padding: 1rem;
    opacity: 0.4;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.course-slide.active-slide {
    opacity: 1;
    transform: scale(1);
}

/* --- CARD DO CURSO --- */
.course-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    border-color: rgba(8, 66, 171, 0.2);
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.course-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    flex-grow: 1;
}

.course-features {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--brand-blue);
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* --- RODAPÉ DO CARD (Removido meta-info para simplificar) --- */
.course-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 66, 171, 0.25);
}

.course-btn:hover {
    transform: translateY(-3px);
    background: #06378a;
    box-shadow: 0 7px 20px rgba(8, 66, 171, 0.35);
}

.course-btn i {
    margin-left: 0.5rem;
}

/* ===========================
   COMPANIES CAROUSEL STYLES
   =========================== */

/* Main container */
#companies-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

/* Carousel rows */
.carousel-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.carousel-row:last-child {
    margin-bottom: 0;
}

/* Carousel track */
.carousel-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation-play-state: paused;
}

.carousel-track.animate-carousel {
    animation: carousel-scroll var(--animation-duration, 40s) linear infinite;
    animation-play-state: running;
}

/* Pause on hover */
.carousel-row:hover .carousel-track {
    animation-play-state: paused !important;
}

/* Company items */
.company-item {
    flex: 0 0 auto;
    width: 240px;
    transition: all 0.3s ease;
}

.company-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    height: 100%;
    min-height: 120px;
    justify-content: center;
}

.company-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(8, 66, 171, 0.15);
    border-color: rgba(8, 66, 171, 0.3);
}

/* Company icons */
.company-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.company-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.company-wrapper:hover .company-icon img {
    transform: scale(1.1);
}

/* Company initials fallback */
.company-initials {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company names */
.company-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    transition: color 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-wrapper:hover .company-name {
    color: #0842ab;
}

/* Carousel animation */
@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--total-width, 2000px)));
    }
}

/* Fallback content */
.fallback-companies {
    padding: 3rem 1rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive design */
@media (max-width: 1024px) {
    .company-item {
        width: 200px;
    }
    
    .company-wrapper {
        padding: 1.25rem;
        min-height: 100px;
    }
    
    .company-icon {
        width: 50px;
        height: 50px;
    }
    
    .company-initials {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    #companies-carousel-container {
        padding: 1.5rem 0;
    }
    
    .carousel-row {
        margin-bottom: 1rem;
    }
    
    .carousel-track {
        gap: 1.5rem;
    }
    
    .company-item {
        width: 180px;
    }
    
    .company-wrapper {
        padding: 1rem;
        min-height: 90px;
        border-radius: 16px;
    }
    
    .company-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .company-initials {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .company-name {
        font-size: 0.75rem;
    }
    
    .company-wrapper:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 640px) {
    .company-item {
        width: 160px;
    }
    
    .company-wrapper {
        padding: 0.875rem;
        min-height: 80px;
    }
    
    .company-icon {
        width: 40px;
        height: 40px;
    }
    
    .company-initials {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .company-name {
        font-size: 0.7rem;
    }
}

/* Touch interaction improvements */
@media (hover: none) and (pointer: coarse) {
    .company-wrapper:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-color: transparent;
    }
    
    .company-wrapper:active {
        transform: scale(0.98);
    }
    
    .carousel-row:hover .carousel-track {
        animation-play-state: running !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-track.animate-carousel {
        animation: none;
    }
    
    .company-wrapper {
        transition: none;
    }
    
    .company-wrapper:hover {
        transform: none;
    }
    
    .company-icon img {
        transition: none;
    }
    
    .company-wrapper:hover .company-icon img {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .company-wrapper {
        border: 2px solid #374151;
    }
    
    .company-wrapper:hover {
        border-color: #0842ab;
        background: #f8fafc;
    }
    
    .company-initials {
        border: 2px solid white;
    }
}

/* Print styles */
@media print {
    #companies-carousel-container {
        display: none;
    }
}

/* Loading state */
.companies-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.companies-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0842ab;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus states for accessibility */
.company-wrapper:focus {
    outline: 2px solid #0842ab;
    outline-offset: 2px;
}

.company-wrapper:focus-visible {
    outline: 2px solid #0842ab;
    outline-offset: 2px;
}

/* Error state */
.carousel-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #fecaca;
}

/* Success state indicators */
.company-wrapper[data-loaded="true"] {
    opacity: 1;
}

.company-wrapper[data-loaded="false"] {
    opacity: 0.7;
}

/* --- CONTROLES DO CARROSSEL (ALTERADO) --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: var(--brand-blue);
    /* Seta azul por padrão */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn.prev-btn {
    left: 0px;
    /* Posicionado na borda do container */
}

.carousel-btn.next-btn {
    right: 0px;
    /* Posicionado na borda do container */
}

.carousel-btn:hover {
    background-color: var(--brand-blue);
    /* Fundo azul no hover */
    color: white;
    /* Seta branca no hover */
    transform: translateY(-50%) scale(1.1);
    border-color: var(--brand-blue);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--brand-blue);
    transform: scale(1.25);
}

/* --- RESPONSIVIDADE (ALTERADO) --- */
@media (max-width: 768px) {
    .course-slide {
        flex: 0 0 90%;
        /* Slides um pouco maiores em telas menores */
    }

    .carousel-btn {
        display: none;
        /* Esconde setas em telas muito pequenas */
    }
}

:root {
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;
    --brand-blue-dark: #1d4ed8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-container {
    text-align: center;
    position: relative;
}

/* Espiral elegante */
.spiral-loader {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    position: relative;
}

.spiral {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    position: absolute;
    animation: spin 2s linear infinite;
}

.spiral:nth-child(1) {
    border-top-color: var(--brand-blue);
    animation-duration: 2s;
}

.spiral:nth-child(2) {
    border-right-color: var(--brand-blue-light);
    animation-duration: 2.5s;
    animation-direction: reverse;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
}

.spiral:nth-child(3) {
    border-bottom-color: var(--brand-blue-dark);
    animation-duration: 3s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spiral:nth-child(4) {
    border-left-color: var(--brand-blue-light);
    animation-duration: 3.5s;
    animation-direction: reverse;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

/* Centro da espiral */
.spiral-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, var(--brand-blue), var(--brand-blue-light));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Animações */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Textos */
.loading-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loading-subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Pontos de progresso */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.progress-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-blue-light);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.progress-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.progress-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Efeito de saída */
#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Demo button */
.demo-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.demo-button:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}