
/* ===== Resolve Aí Prefeitura — Central de Ajuda ===== */

/* Fundo geral */
body {
    background: #f7f8fa !important;
}

/* Cabeçalho */
.header {
    padding: 38px 20px 34px !important;
    text-align: center !important;
}

/* Logo */
.header .logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto 14px !important;
}

.header .logo img {
    display: block !important;
    max-height: 72px !important;
    width: auto !important;
    margin: 0 auto !important;
}

/* Esconde eventual texto junto da logo */
.header .logo > span:not(:has(img)) {
    display: none !important;
}

/* Título Central de Ajuda */
.header .search::before {
    content: "Central de Ajuda";
    display: block;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

/* Busca */
.header .search {
    max-width: 760px !important;
    margin: 0 auto !important;
}

.search-field {
    border-radius: 14px !important;
    overflow: hidden;
}

.search-field input {
    height: 56px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
}

/* Conteúdo */
.main.main--categories {
    padding-top: 38px !important;
    padding-bottom: 30px !important;
}

.main .container {
    max-width: 1000px !important;
}

/* Título antes das categorias */
.sections::before {
    content: "Categorias";
    display: block;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

/* Grid */
.sections.sections--grid {
    gap: 22px !important;
}

/* Cards Android / iOS */
.section {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.09) !important;
}

.section-inner {
    padding: 26px !important;
}

.section .title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

/* Rodapé */
.footer {
    margin-top: 35px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

/* Mobile */
@media (max-width: 700px) {

    .header {
        padding: 28px 16px 26px !important;
    }

    .header .logo img {
        max-height: 58px !important;
    }

    .header .search::before {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .main.main--categories {
        padding-top: 28px !important;
    }

    .sections::before {
        font-size: 21px;
    }

    .section-inner {
        padding: 22px !important;
    }
}


/* ===== Ajustes finais dos cards e logo ===== */

/* Logo maior */
.header .logo {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 20px !important;
}

.header .logo img {
    width: auto !important;
    height: 110px !important;
    max-width: 280px !important;
    max-height: 110px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}


/* ===== Cards: remover efeito de borda dupla ===== */

.section {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
}

/* Elemento interno não deve parecer outro card */
.section-inner {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Remove bordas/sombras de links internos */
.section a,
.section-inner a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Hover simples */
.section:hover {
    border-color: #d5dbe5 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09) !important;
}


/* Mobile */
@media (max-width: 700px) {
    .header .logo img {
        height: 85px !important;
        max-height: 85px !important;
        max-width: 220px !important;
    }
}


/* ===== Ajustes de alinhamento ===== */

/* Central de Ajuda em preto */
.header .search::before {
    color: #111827 !important;
}

/* Centralizar categorias */
.sections.sections--grid {
    justify-content: center !important;
}

/* Garante que os cards fiquem centralizados */
.section {
    margin-left: auto !important;
    margin-right: auto !important;
}

