/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.4;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Container Principal */
.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* ============================================
   TOPO / HEADER
   ============================================ */
#topo {
    width: 100%;
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%);
}

#topoCentro {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

#topoCentro img {
    max-width: 100%;
    height: auto;
}

.header-image {
    width: 100%;
    max-width: 980px;
    height: auto;
}

/* ============================================
   MENU DE NAVEGAÇÃO
   ============================================ */
#menu {
    width: 100%;
    background: #5a4a3a;
    background: linear-gradient(to bottom, #6b5b4b 0%, #4a3a2a 100%);
    border-top: 2px solid #d4a843;
}

#menuCentro {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

#menuCentro ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#menuCentro ul li {
    position: relative;
}

#menuCentro ul li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: none;
    transition: background-color 0.3s;
}

#menuCentro ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* ============================================
   CONTEÚDO CENTRAL
   ============================================ */
#centro {
    width: 100%;
    background: #fff;
    min-height: 500px;
}

#centroCentro {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

h2.tag {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #d4a843;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bloco {
    background: #fff;
    padding: 10px 0;
}

/* ============================================
   ABAS / TABS
   ============================================ */
.TabbedPanels {
    margin: 0;
    padding: 0;
}

.TabbedPanelsTabGroup {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
}

.TabbedPanelsTab {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 2px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.3s;
}

.TabbedPanelsTab:hover {
    background: #e0e0e0;
}

.TabbedPanelsTab.TabbedPanelsTabSelected {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: bold;
}

.TabbedPanelsContentGroup {
    border: 1px solid #ccc;
    border-top: none;
    padding: 15px;
    background: #fff;
}

.TabbedPanelsContent {
    display: none;
}

.TabbedPanelsContent.TabbedPanelsContentVisible {
    display: block;
}

/* ============================================
   TABELAS DE DADOS DO CONCURSO
   ============================================ */
.info-concurso {
    width: 100%;
    margin-bottom: 20px;
}

.info-concurso .titulo-principal {
    background: #efefef;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.info-concurso table {
    width: 100%;
    border-collapse: collapse;
}

.info-concurso td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.info-concurso td:first-child {
    width: 150px;
    font-weight: bold;
}

.Arial-11-Negrito,
.Arial-11-Negrito strong {
    font-size: 11px;
    font-weight: bold;
}

.Arial11 {
    font-size: 11px;
}

.Arial-15-Negrito-Branco {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* ============================================
   SEÇÃO DE ARQUIVOS PUBLICADOS
   ============================================ */
.arquivos-section {
    margin: 20px 0;
}

.arquivos-section .titulo {
    background: #efefef;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.arquivo-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arquivo-item img {
    width: 20px;
    height: 20px;
}

.arquivo-item a {
    color: #0066cc;
    font-size: 12px;
}

.arquivo-item a:hover {
    text-decoration: underline;
}

.pdf-icon {
    width: 24px;
    height: 24px;
    background: #c00;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    border-radius: 2px;
}

/* ============================================
   TABELA DE CARGOS / VAGAS
   ============================================ */
.tabela-cargos {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 20px;
}

.tabela-cargos th {
    background: #efefef;
    padding: 8px 5px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 10px;
}

.tabela-cargos td {
    padding: 6px 5px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.tabela-cargos td.cargo-nome {
    text-align: left;
    padding-left: 10px;
}

.tabela-cargos td.requisitos {
    text-align: left;
    font-size: 10px;
    padding: 5px;
    max-width: 200px;
}

.tabela-cargos tr.cor1 td {
    background: #fff;
}

.tabela-cargos tr.cor2 td {
    background: #f9f9f9;
}

.tabela-cargos tr:hover td {
    background: #f0f0f0;
}

.fonteMenor {
    font-size: 11px;
}

/* ============================================
   FORMULÁRIO DE INSCRIÇÃO
   ============================================ */
fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

fieldset legend {
    font-weight: bold;
    padding: 0 10px;
    color: #333;
}

.form-table {
    width: 100%;
}

.form-table td {
    padding: 5px;
    vertical-align: middle;
}

.form-table td.label {
    width: 180px;
    background: #f9f9f9;
    font-size: 14px;
}

.input,
.input2 {
    padding: 5px 8px;
    border: 1px solid #7f9db9;
    font-size: 12px;
    background: #fff;
}

.input:focus,
.input2:focus {
    border-color: #00ca00;
    outline: none;
}

.input:disabled,
.input2:disabled {
    background: #ebebe4;
}

select.input {
    padding: 4px;
}

input[type="submit"],
input[type="reset"] {
    padding: 8px 20px;
    background: #5a4a3a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    margin-right: 10px;
}

input[type="submit"]:hover {
    background: #6b5b4b;
}

input[type="submit"]:disabled {
    background: #999;
    cursor: not-allowed;
}

input[type="reset"] {
    background: #999;
}

input[type="reset"]:hover {
    background: #777;
}

/* Aviso de atenção */
.aviso-atencao {
    color: #f00;
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.aviso-atencao strong {
    font-weight: bold;
}

/* ============================================
   ÁREA DE ACESSO RESTRITO
   ============================================ */
.acesso-restrito {
    padding: 20px 0;
}

.acesso-restrito h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.acesso-restrito p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.acesso-restrito table {
    margin-top: 10px;
}

.acesso-restrito td {
    padding: 5px;
}

/* ============================================
   RODAPÉ / FOOTER
   ============================================ */
#rodape {
    width: 100%;
    background: #5a4a3a;
    background: linear-gradient(to bottom, #6b5b4b 0%, #4a3a2a 100%);
    color: #fff;
    padding: 20px 0;
}

#rodapeCentro {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 11px;
    line-height: 1.6;
}

.copyright a {
    color: #fff;
}

.copyright strong {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.endereco_novo {
    margin-top: 20px;
    text-align: center;
}

.endereco_novo img {
    margin-bottom: 10px;
}

.redes-sociais {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.redes-sociais a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    color: #5a4a3a;
    font-size: 20px;
    transition: transform 0.3s;
}

.redes-sociais a:hover {
    transform: scale(1.1);
}

.footer-contatos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-contato {
    flex: 1;
    min-width: 280px;
}

/* ============================================
   RESPONSIVO - MOBILE OTIMIZADO
   ============================================ */
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        font-size: 14px;
    }
    
    #menuCentro ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #menuCentro ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #menuCentro ul li a {
        padding: 12px 15px;
        display: block;
        font-size: 12px;
    }

    #centroCentro {
        padding: 10px;
    }

    h2.tag {
        font-size: 18px;
    }

    .TabbedPanelsTabGroup {
        flex-direction: column;
    }

    .TabbedPanelsTab {
        margin-right: 0;
        margin-bottom: 2px;
        text-align: center;
        padding: 10px;
    }

    .TabbedPanelsContentGroup {
        padding: 10px;
    }

    /* Tabela de cargos responsiva */
    .tabela-cargos {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 10px;
    }

    .tabela-cargos th,
    .tabela-cargos td {
        padding: 4px 3px;
        font-size: 9px;
    }

    /* Formulário responsivo */
    fieldset {
        padding: 10px;
    }

    .form-table {
        width: 100%;
    }
    
    .form-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .form-table td {
        display: block;
        width: 100% !important;
        padding: 3px 0;
    }

    .form-table td.label {
        width: 100% !important;
        margin-bottom: 5px;
        background: transparent;
    }

    .input,
    .input2,
    select.input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 14px;
        padding: 8px;
    }
    
    select.input {
        height: 40px;
    }

    /* Footer responsivo */
    .footer-contatos {
        flex-direction: column;
    }

    .footer-contato {
        text-align: center;
    }

    #rodapeCentro {
        text-align: center;
    }
    
    /* Botões */
    input[type="submit"],
    input[type="reset"] {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    #menuCentro ul li a {
        font-size: 11px;
        padding: 10px;
    }

    h2.tag {
        font-size: 16px;
    }

    .TabbedPanelsTab {
        font-size: 11px;
        padding: 8px 10px;
    }

    .arquivo-item {
        flex-direction: row;
        align-items: center;
    }

    .arquivo-item a {
        font-size: 11px;
        word-break: break-word;
    }
    
    .tabela-cargos th,
    .tabela-cargos td {
        font-size: 8px;
        padding: 3px 2px;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.clear {
    clear: both;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 10px 0;
}

#g-recaptcha-error {
    color: red;
    font-size: 12px;
}

/* Separador de seções */
.section-divider {
    border-bottom: 1px solid #efefef;
    margin: 10px 0;
    padding: 5px 10px;
}

/* Estilo para ícone de validação CPF */
#pos img {
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

/* Select de cargo largo */
#cargo {
    width: 100%;
    max-width: 860px;
}

@media screen and (max-width: 768px) {
    #cargo {
        max-width: 100%;
    }
}
