/* ARQUIVO: assets/css/parts/_partners.css */

.ch-partners-section {
    width: 100%;
    margin: 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Header */
.ch-partners-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.ch-partners-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mod-text-color, #333);
    margin: 0;
    white-space: nowrap;
}

.ch-partners-line {
    height: 2px;
    background: var(--mod-border-color, #eee);
    flex-grow: 1;
}

/* Container do Carrossel */
.ch-partners-carousel-wrapper {
    position: relative;
    width: 100%;
    
    /* Modo Claro: Fundo branco */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    
    border-radius: 8px;
    padding: 20px 40px; 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: background 0.3s ease, border 0.3s ease;
}

/* Track Scroll */
.ch-partners-track-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.ch-partners-track-container::-webkit-scrollbar { display: none; }

.ch-partners-track {
    display: flex;
    gap: 30px;
    align-items: center;
    width: max-content;
}

/* Cartão do Parceiro (A Div do Logo) */
.ch-partner-card {
    flex: 0 0 auto;
    width: 180px; 
    height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    /* No modo claro, o fundo é transparente para herdar o branco do wrapper */
    background: transparent; 
}

/* Hover no modo claro */
.ch-partner-card:hover {
    transform: scale(1.05);
    background: rgba(0,0,0,0.02);
}

.ch-partner-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none; 
    opacity: 1;
    transition: all 0.3s ease;
}

/* Botões de Navegação - SEMPRE BRANCOS */
.ch-part-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    
    /* Força Branco Puro e Seta Preta em qualquer modo */
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #000000 !important;
    
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.ch-part-nav:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #999 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.1);
}

.ch-part-nav.prev { left: 5px; }
.ch-part-nav.next { right: 5px; }

/* =========================================
   DARK MODE OVERRIDES
========================================= */
body.ceclimar-dark-mode .ch-partners-line { background: #333; }

/* 1. Fundo do Carrossel (Wrapper) fica escuro */
body.ceclimar-dark-mode .ch-partners-carousel-wrapper {
    background: #1e1e1e !important; /* Cor "quase preta" */
    border-color: #333 !important;
}

/* 2. A Div do Logo (Card) fica SEMPRE branca pura */
body.ceclimar-dark-mode .ch-partner-card {
    background: #ffffff !important; /* Força branco atrás do logo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Leve sombra para destacar do fundo escuro */
}

/* 3. Hover no Dark Mode: Mantém branco puro, sem ficar cinza */
body.ceclimar-dark-mode .ch-partner-card:hover {
    background: #ffffff !important; /* Garante que não muda de cor */
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255,255,255,0.1); /* Sombra clara sutíl no hover */
}

/* Botões continuam brancos (já garantido pelo !important nas regras principais) */