/**
 * TreinaCOM Homepage - Slider Hero CSS (Ultra-Premium Light Theme)
 * Glassmorphism sofisticado, legibilidade impecável e micro-interações.
 */

.tc-hero-slider-section {
    position: relative;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 40px;
    background: #082c4b;
    overflow: hidden;
    user-select: none;
}

.tc-hero-slider-viewport {
    position: relative;
    width: 100%;
    min-height: 440px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tc-hero-slider-viewport {
        min-height: 520px;
        max-height: 600px;
    }
}

.tc-hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-hero-slide-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    background: #082c4b;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tc-hero-slide-item {
        min-height: 520px;
    }
}

/* Imagem de Fundo em Alta Definição */
.tc-hero-slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tc-hero-slide-media picture,
.tc-hero-slide-media img,
.tc-hero-slide-media video,
.tc-hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    pointer-events: none;
}

.tc-hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 44, 75, 0.92) 0%, rgba(8, 44, 75, 0.72) 40%, rgba(8, 44, 75, 0.25) 75%, rgba(8, 44, 75, 0.05) 100%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .tc-hero-slide-overlay {
        background: linear-gradient(180deg, rgba(8, 44, 75, 0.35) 0%, rgba(8, 44, 75, 0.88) 55%, rgba(8, 44, 75, 0.98) 100%);
    }
}

/* Container do Slide */
.tc-hero-slide-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
}

/* Conteúdo Integrado Diretamente na Imagem (Sem Card Branco Flutuante) */
.tc-hero-slide-content {
    max-width: 620px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: tcSlideFadeIn 0.6s ease-out;
}

@keyframes tcSlideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .tc-hero-slider-section {
        margin-bottom: 24px;
    }

    .tc-hero-slider-viewport,
    .tc-hero-slide-item {
        min-height: 520px;
    }

    .tc-hero-slide-container {
        padding: 24px 16px 64px 16px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: 520px;
        box-sizing: border-box;
    }

    .tc-hero-slide-content {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tc-hero-slider-viewport,
    .tc-hero-slide-item {
        min-height: 540px;
    }

    .tc-hero-slide-container {
        padding: 20px 14px 64px 14px !important;
        min-height: 540px;
    }
}

/* Badge Dourado de Destaque */
.tc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #f9ae02;
    color: #082c4b !important;
    border: none;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
    .tc-hero-badge {
        font-size: 0.82rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
}

.tc-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #082c4b;
    border-radius: 50%;
}

/* Título de Alto Impacto (Branco e Nítido) */
.tc-hero-title {
    font-family: var(--tc-font-display, 'Exo 2', sans-serif);
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7) !important;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

@media (max-width: 991px) {
    .tc-hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 767px) {
    .tc-hero-title {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .tc-hero-title {
        font-size: 1.65rem !important;
    }
}

/* Subtítulo / Descrição */
.tc-hero-subtitle {
    font-size: 1.22rem;
    line-height: 1.6;
    color: #f8fafc !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
    margin: 0 0 28px 0;
    font-weight: 500;
    max-width: 580px;
}

@media (max-width: 767px) {
    .tc-hero-subtitle {
        font-size: 1.02rem !important;
        line-height: 1.45 !important;
        margin-bottom: 20px !important;
    }
}

/* Botão de Ação Dourado de Alto Contraste */
.tc-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    background: #f9ae02;
    color: #082c4b !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1.12rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 767px) {
    .tc-hero-btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }
}

.tc-hero-btn:hover {
    background: #e09d02;
    color: #082c4b !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(249, 174, 2, 0.45);
}

.tc-hero-btn svg {
    transition: transform 0.2s ease;
}

.tc-hero-btn:hover svg {
    transform: translateX(4px);
}

/* Controles de Navegação (Setas Agrupadas no Lado Direito) */
.tc-hero-nav {
    position: absolute;
    bottom: 24px;
    right: 32px;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.tc-hero-arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #082c4b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-hero-arrow:hover {
    background: #f9ae02;
    border-color: #f9ae02;
    color: #082c4b;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(249, 174, 2, 0.35);
}

@media (max-width: 767px) {
    .tc-hero-nav {
        display: flex !important;
        position: absolute;
        bottom: 12px;
        right: 14px;
        gap: 6px;
        z-index: 15;
    }

    .tc-hero-arrow {
        width: 34px;
        height: 34px;
        background: rgba(8, 44, 75, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .tc-hero-arrow svg {
        width: 16px;
        height: 16px;
    }

    .tc-hero-arrow:hover,
    .tc-hero-arrow:active {
        background: #f9ae02;
        border-color: #f9ae02;
        color: #082c4b;
    }

    .tc-hero-pagination {
        bottom: 16px;
        left: 14px;
        right: auto;
        justify-content: flex-start;
    }
}

/* Paginação com Pílulas e Barra de Progresso */
.tc-hero-pagination {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .tc-hero-pagination {
        bottom: 14px;
    }
}

.tc-hero-dots {
    display: flex;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(8, 44, 75, 0.08);
}

@media (max-width: 767px) {
    .tc-hero-dots {
        padding: 4px 10px;
        gap: 6px;
    }
}

.tc-hero-dot {
    width: 24px;
    height: 6px;
    border-radius: 9999px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.tc-hero-dot.is-active {
    width: 44px;
    background: #f9ae02;
}

.tc-hero-dot-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #082c4b;
}

.tc-hero-dot.is-active .tc-hero-dot-bar {
    animation: tcHeroProgress linear forwards;
}

@keyframes tcHeroProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}
