/* ==========================================================
   HC CONSULTORIA
   CSS PADRÃO PARA PÁGINAS DE CURSOS E TREINAMENTOS
   ========================================================== */
/* ---------- Estrutura Geral ---------- */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    background: #fafafa;
}

/*
.main-content {
    flex: 1;
    width: 100%;
}

/* ---------- Área Principal ---------- 
.curso {
    width: 100%;
    max-width: 980px;
    margin: 150px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.curso-header {
    margin-bottom: 35px;
    text-align: center;
}

.curso-header h1 {
    margin: 0;
    color: #0a5b93;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}
*/
/* Força o container principal a ter o tamanho exato do menu fixo */
.main-content {
    display: block !important;
    margin: 0 !important;
    padding-top: 0px !important; /* Ajuste esse valor para a altura da barra preta do seu menu */
}

/* O segredo: overflow hidden impede que margens internas 'vazem' para fora do bloco */
.curso {
    width: 100%;
    max-width: 980px;

    /* 0 no topo e embaixo, auto nas laterais para centralizar na tela */
    margin: 0 auto;

    /* 100px no topo (seu ajuste perfeito), 0 na direita, 40px embaixo, 20px na esquerda */
    padding: 100px 20px 40px 20px;
    box-sizing: border-box;
}

.curso-header {
    margin-bottom: 35px;
    text-align: center;
}

.curso-header h1 {
    margin: 0;
    color: #0a5b93;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.curso-header h1 span {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #444;
}

/* ---------- Navegação das Abas ---------- */
.curso-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
    border-bottom: 3px solid #0a5b93;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #0a5b93;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.tab-btn:hover {
    background: #eef6fb;
}

.tab-btn.active {
    background: #0a5b93;
    color: #fff;
}

/* ---------- Conteúdo das Abas ---------- */
.tab-content {
    display: none;
    animation: fadeTab .25s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeTab{
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ---------- Títulos ---------- */
.tab-content h2 {
    margin: 0 0 20px;
    color: #0a5b93;
    font-size: 1.55rem;
}

.tab-content h3 {
    margin: 35px 0 12px;
    color: #444;
    font-size: 1.20rem;
}

.tab-content h4 {
    margin: 25px 0 10px;
    color: #444;
}

/* ---------- Texto ---------- */
.tab-content p {
    margin: 0 0 18px;
    text-align: justify;
}

.tab-content strong {
    color: #222;
}

/* ---------- Listas ---------- */
.curso-lista {
    margin: 15px 0 20px 24px;
    padding: 0;
}

.curso-lista li {
    margin-bottom: 8px;
}

/* ---------- Informações ---------- */
.curso-info {
    background: #ffffff;
    border-left: 5px solid #0a5b93;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.curso-info p:last-child {
    margin-bottom: 0;
}

/* ---------- Botões ---------- */
.curso-acoes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.curso-acoes a {
    text-decoration: none;
}

.btn-voltar-custom,
.btn-inscricao-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}

/* ---------- Botão Voltar ---------- */
.btn-voltar-custom {
    border: 2px solid #555;
    background: #555;
    color: #fff;
}

.btn-voltar-custom:hover {
    background: #666;
    border-color: #666;
}

/* ---------- Botão Inscrição ---------- */
.btn-inscricao-custom {
    border: 2px solid #f0c400;
    background: #ffd400;
    color: #000;
}

.btn-inscricao-custom:hover {
    background: #e6bf00;
    border-color: #e6bf00;
    color: #000;
}

/* ---------- Links ---------- */
a {
    color: #0a5b93;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Imagens ---------- */
img {
    max-width: 100%;
    height: auto;
}

/* ---------- Tabelas ---------- */
.minha-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.minha-tabela th {
    padding: 10px;
    background: #f2f2f2;
    text-align: left;
    font-weight: 700;
}

.minha-tabela td {
    padding: 10px;
}

.minha-tabela,
.minha-tabela th,
.minha-tabela td {
    border: none;
}

/* ---------- Utilidades ---------- */
.blink {
    animation: blink 4s infinite;
}

@keyframes blink{
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: scale(2);
    }

    51% {
        opacity: 0;
        transform: scale(0);
    }

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

.maozinha {
    cursor: pointer;
}

.rotated {
    transform: rotate(-20deg);
}

/* ---------- Responsividade ---------- */
@media (max-width:900px){
    .curso {
        margin-top: 135px;
    }

    .curso-header h1 {
        font-size: 1.7rem;
    }

    .curso-header h1 span {
        font-size: 1.15rem;
    }

    .curso-tabs {
        justify-content: stretch;
    }

    .tab-btn {
        width: 100%;
        border-radius: 8px;
    }

    .curso-acoes {
        flex-direction: column;
    }

    .btn-voltar-custom,
    .btn-inscricao-custom {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width:600px){
    body {
        font-size: 15px;
    }

    .curso {
        padding: 0 16px;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .curso-header h1 {
        font-size: 1.45rem;
        margin-top: 0 !important;
        padding-top: 15px !important; /* Pequeno respiro elegante abaixo do menu */
    }

    .curso-header h1 span {
        font-size: 1rem;
    }

    .tab-content h2 {
        font-size: 1.30rem;
    }
}