.td-techduto-slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container principal do slider */
.td-techduto-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    /* Adicione a fonte aqui se quiser que seja específica para o slider */
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin-bottom: 10px;
	margin-top: 10px;
}

/* Tabs/Abas superiores */
.td-slider-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 10;
}

.td-slider-tab {
    flex: 1;
    padding: 20px 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;

    /* --- ADIÇÕES PARA CENTRALIZAÇÃO E ALTURA CONSISTENTE --- */
    min-height: 60px; /* Altura mínima para acomodar o texto mais longo */
    display: flex; /* Habilita flexbox para centralização */
    align-items: center; /* Centraliza verticalmente o conteúdo */
    justify-content: center; /* Centraliza horizontalmente o conteúdo */
    text-align: center; /* Garante que o texto esteja centralizado */
    /* ---------------------------------------------------- */
}

.td-slider-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.td-slider-tab.active {
    background: #EE3124;
    color: white;
    border-bottom-color: #EE3124;
}

.td-slider-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #EE3124;
}

/* Container dos slides */
.td-slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
	margin-bottom: 15px;
}

.td-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.td-slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Box de conteúdo */
.td-slide-content-box {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 450px;
    min-height: 300px;
    display: flex;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 5;
    opacity: 0;
    animation: tdSlideInContent 0.6s ease-out 0.3s forwards;
}

@keyframes tdSlideInContent {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.td-slide-content-box.active {
    opacity: 1;
}

/* Barra vermelha lateral */
.td-content-red-bar {
    width: 8px;
    background: #EE3124;
    flex-shrink: 0;
}

/* Conteúdo do box */
.td-content-main {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.td-content-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.td-content-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: justify;
}

.td-content-btn {
    background: #EE3124;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.td-content-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Navegação por setas */
.td-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e9ecef;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #495057;
    z-index: 15;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.td-slider-nav:hover {
    background: white;
    border-color: #EE3124;
    color: #dc3545;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.td-slider-prev {
    left: 20px;
}

.td-slider-next {
    right: 20px;
}

/* Indicadores */
.td-slider-indicators {
    position: absolute;
    bottom: 30px;
    right: 60px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.td-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.td-slider-dot.active {
    background: #EE3124;
    border-color: #EE3124;
    transform: scale(1.2);
}



/* Responsive */
@media (max-width: 1200px) {
    .td-slide-content-box {
        left: 40px;
        width: 400px;
    }
}

@media (max-width: 980px) {
    .td-slider-tab {
        padding: 18px 10px;
    }
    
    .td-slider-tab:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 780px) {
    .td-slider-tab {
        padding: 15px 8px;
        min-height: 50px; /* Ajuste a altura mínima para esta resolução */
    }
    .td-slider-tab:nth-child(n+2) {
        display: none;
    }
}

@media (max-width: 768px) {
    .td-slider-container {
        height: 400px;
    }
	

    .td-slide-content-box {
        left: 20px;
        right: 20px;
        width: auto;
        min-height: 250px;
        position: absolute;
        transform: none;
    }
    
    .td-content-main {
        padding: 25px;
    }
    
    .td-content-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .td-content-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .td-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .td-slider-prev {
        left: 10px;
    }
    
    .td-slider-next {
        right: 10px;
    }
    
    .td-slider-indicators {
        bottom: 20px;
        right: 20px;
    }
    
    .td-slider-tab {
        padding: 15px 10px;
        min-height: 50px; /* Ajuste a altura mínima para esta resolução */
    }
}

@media (max-width: 480px) {
    .td-slider-tab {
        padding: 12px 6px;
        text-align: center;
        min-height: 45px; /* Ajuste a altura mínima para esta resolução */
    }
    
    .td-slide-content-box {
        left: 15px;
        right: 15px;
        min-height: 220px;
    }
    
    .td-content-main {
        padding: 20px;
    }
}

/* Preloader para imagens */
.td-slide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #EE3124;
    border-radius: 50%;
    animation: tdSpin 1s linear infinite;
}

@keyframes tdSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}