/* ========================================= */
/* --- AJUSTE GLOBAL DE LARGURA --- */
/* ========================================= */
.container { max-width: 1600px !important; }
html, body { overflow-x: hidden; }

/* ========================================= */
/* --- 1. HERO SECTION --- */
/* ========================================= */
.treinamentos-hero {
    min-height: 500px; height: 60vh; padding-top: 110px; padding-bottom: 40px;
    background: url('https://images.unsplash.com/photo-1513828583688-c52646db42da?q=80&w=2070') center/cover no-repeat;
    display: flex; align-items: center; position: relative;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 25%, rgba(10, 25, 47, 0.4) 100%); }
.hero-text-box { position: relative; z-index: 10; max-width: 800px; }
.hero-tag { color: var(--paultrab-orange); text-transform: uppercase; font-weight: 800; font-size: 0.85rem; display: block; margin-bottom: 15px; }
.hero-title { color: var(--white); font-family: var(--font-title); font-size: 3.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--paultrab-orange); }
.hero-description { color: rgba(255,255,255,0.8); font-size: 1.2rem; line-height: 1.6; max-width: 600px; }

/* ========================================= */
/* --- 2. GRID DE CURSOS --- */
/* ========================================= */
.training-grid-section { padding: 100px 0; background-color: var(--bg-light); }
.section-header { margin-bottom: 60px; text-align: center; }
.section-title { font-family: var(--font-title); font-size: 2.8rem; color: var(--navy-dark); font-weight: 900; margin-bottom: 15px; }
.title-line { width: 80px; height: 4px; background: var(--paultrab-orange); margin: 0 auto; }

.boutique-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* ========================================== */
/* --- 3. CARDS - DESKTOP --- */
/* ========================================== */
.training-card { 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    background-color: var(--white); 
    cursor: pointer; 
    transition: all 0.4s ease;
    border: 1px solid transparent; 
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.05); 
}

.training-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.12); 
}

.card-inner { padding: 0; }
.card-img-wrapper { width: 100%; height: 220px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.training-card:hover .card-img { transform: scale(1.08); }

.card-content { 
    padding: 25px; 
    text-align: left;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    height: 170px; /* Garante o espaço em branco para o botão no desktop */
}

.nr-tag { 
    font-family: var(--font-title); 
    color: var(--navy-dark); 
    font-size: 1.4rem; 
    font-weight: 900; 
    margin-bottom: 5px;
}

.course-name { 
    color: var(--navy-dark); 
    font-family: var(--font-body);
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    line-height: 1.3;
}

.btn-cta-card {
    background-color: var(--paultrab-orange);
    color: var(--white); /* Ajustado para branco! */
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    
    margin-top: auto; 
    opacity: 0;        
    transform: translateY(10px);
}

/* O botão aparece quando passa o mouse no card */
.training-card:hover .btn-cta-card {
    opacity: 1;        
    transform: translateY(0);
}

/* HOVER PADRÃO: Laranja levemente mais escuro, botão dá uma leve subida e ganha sombra */
.btn-cta-card:hover {
    background-color: #e09000; /* Laranja um tom mais escuro e intenso */
    color: var(--white); /* Mantém o texto branco brilhante */
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(246, 159, 0, 0.3); /* Sombra no mesmo tom de laranja */
}

/* ========================================== */
/* --- 4. CTA BAND (Faixa Laranja) --- */
/* ========================================== */
.about-cta { 
    padding: 100px 0; 
    background-color: var(--paultrab-orange); 
    color: var(--navy-dark); 
}
.about-cta h2 { 
    font-family: var(--font-title); 
    font-size: 2.5rem; 
    font-weight: 900; 
    margin-bottom: 15px; 
    color: var(--navy-dark); 
}
.about-cta p { 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto; 
    font-weight: 500; 
    line-height: 1.5; 
    color: var(--navy-dark); 
}

.btn-solid-large-navy { 
    background: var(--navy-dark); 
    color: var(--white); 
    padding: 20px 45px; 
    border-radius: 4px; 
    font-family: var(--font-title);
    font-weight: 800; 
    text-transform: uppercase; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    transition: 0.3s;
    margin-top: 40px; 
    border: none;
}
.btn-solid-large-navy:hover { 
    background: var(--white); 
    color: var(--navy-dark); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
}

/* ========================================== */
/* --- 5. RESPONSIVIDADE PENTE FINO --- */
/* ========================================== */
@media (max-width: 1024px) {
    .boutique-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nowrap-mobile { white-space: normal; } /* Proteção para o título não vazar */
    
    .treinamentos-hero { padding: 130px 0 50px; height: auto; min-height: 350px; }
    .hero-text-box { padding-top: 0; }
    .hero-title { font-size: 2.2rem; margin-bottom: 15px; }
    
    .training-grid-section { padding: 60px 0; } 
    .about-cta { padding: 60px 0; }
    
    .boutique-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* Grade de 2 colunas mantida */
    .card-img-wrapper { height: 160px; } 
    
    /* Regras do Mobile mantidas fielmente */
    .card-content {
        height: auto; /* Remove a altura fixa de 170px */
        padding: 15px; /* Reduz as bordas internas */
    }
    
    .btn-cta-card { display: none !important; } /* Esconde o botão */
    
    .nr-tag { font-size: 1.2rem; margin-bottom: 2px; }
    .course-name { font-size: 0.8rem; margin-bottom: 0; }
    
    .btn-solid-large-navy { margin-top: 25px; width: 100%; justify-content: center; font-size: 0.9rem;}
}