/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Esconde a barra de rolagem em todos os navegadores */
*::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== VARIÁVEIS CSS ===== */

:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --secondary-color: #333333;
    --text-light: #ffffff;
    --color-nav: #555555;
    --text-dark: #222222;
    --background-light: #ffffff;
    --code-bg: #f5f5f5;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== ESTILOS GERAIS ===== */

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===== LINKS ===== */
/* Estilização básica para links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== CABEÇALHO ===== */

header {
    background-color: var(--color-nav);
    color: var(--text-light);
    padding: 1rem;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

/* ===== Barra celular ===== */

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* Animação do botão de menu */
.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Estados ativos do menu mobile */
.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== OVERLAY ===== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    align-items: center;
}
.logo span {
    font-size: 32px;
}
.logo-img {
    height: 40px;
    margin-right: 10px;
}

/* ===== NAVEGAÇÃO ===== */

nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: var(--text-light);
    transition: var(--transition);
}
nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== BOTÃO ENTRAR ===== */

.btn_entrar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
}
nav .btn_entrar {
    margin-left: 20px;
    height: 45px;
}
.btn_entrar:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Container principal */
.container2 {
    width: 80%;
    margin: auto;
    display: flex;
    overflow: hidden;
}

/* ===== LAYOUT PRINCIPAL ===== */

main {
    display: flex;
    height: auto;
    align-items: flex-start;
}

/* Ícones do Material Design */
/* .material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
} */

/* ===== CAIXA DE BUSCA ===== */
ol {    padding: 0px 40px;
}
.search-box {
    width: 100%;
    margin-bottom: 2rem;
}
.search-box form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    background-color: #f5f5f5;
    height: 50px;
    border: 2px solid #f5f5f5;
    border-right: 0px;
    box-shadow: var(--shadow);
}

/* Campo de input da busca */
.search-box-input {
    font-size: 1.1rem;
    color: var(--color-nav);
    padding: 20px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--border-radius);
    height: 50px;
    text-align: left;
    background: transparent;
}
.search-box-input::placeholder {
    color: var(--color-nav);
}    

/* Botão de pesquisa */
#search-box-button {
    margin-left: 11px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 100;
    transition: var(--transition);
}    
#search-box-button:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

/* ===== Estilos para busca ===== */
.highlight {
    background-color: #FFEB3B;
    color: #000;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: bold;
}
.match-count {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 8px;
}
.preview-separator {
    height: 1px;
    background: #eee;
    margin: 8px 0;
    border: none;
}
  .search-result-item:hover {
   transform: translateY(1.0);
}
.search-loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #666;
}    
.search-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}    
.search-results-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}    
.search-results-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}    
.search-result-item {
    background: #f9f9f9;
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block; /* Garante que cada item seja exibido */
}


 
.search-result-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}    
.preview {
    color: #555;
    font-size: 0.9em;
    margin-top: 8px;
    white-space: normal; /* Alterado de nowrap para normal */
    overflow: visible; /* Alterado de hidden para visible */
    text-overflow: clip; /* Removido o ellipsis */
    max-height: none; /* Remove qualquer limitação de altura */
}  
.file-link {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}    
.search-footer {
    text-align: center;
    margin-top: 2rem;
}    

.btn-reset:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}    

/* Ícone da caixa de busca */
.search-box-icone {
    color: var(--text-light);
    font-size: 1.5rem;
}

/* ===== COLUNA LATERAL ===== */

.coluna {
    background-color: #f5f5f5;
    padding: 0.8rem;
    width: 400px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    box-shadow: var(--shadow);
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    
}
.faq-nav {
margin-top: 20px;
margin-bottom: 20px;
}
/* Estilos para navegação por teclado */
.coluna .faq-nav button:focus {
   color: var(--primary-color);
    background-color: rgba(160, 156, 156, 0.329);
    font-weight: 600;
    margin-left: 10px;
}
.faq-nav button.active,
.coluna button.active {
    
    color: var(--primary-color);
    background-color: rgba(160, 156, 156, 0.329);
    font-weight: 600;
    margin-left: 10px;
}

/* Remoção de estilos de seleção */
.search-box-input::-webkit-selection {
    background: transparent;
    color: inherit;
}
.search-box-input::-moz-selection {
    background: transparent;
    color: inherit;
}
.search-box-input:focus {
    outline: none;
    box-shadow: none;
    height: 30px;
}

/* Estilos para botões da coluna */
.coluna button {
    display: block;
    background: transparent;
    border: none;
    color: var(--color-nav);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 1rem;
    text-align: left;
    transition: var(--transition);
    border-radius: var(--border-radius);
    width: 95%;
}
.coluna button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
   width: calc(95% - 5px);
}

/* ===== CONTEÚDO FAQ ===== */
/* Estilos para o conteúdo principal */
.faq-content {
     font-size: 1.3rem;
    line-height: 1.8rem;
    margin-bottom: 1rem;
    color: #444;
    flex: 1;
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    overflow-y: auto;
}

/* ===== ALERTAS EM COLUNA COM ÍCONE ===== */
.faq-alert {
    /* display: none; */
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.25rem 0;
    font-size: 1.1rem;
    line-height: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Cabeçalho do alerta com ícone e título */
.faq-alert-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Ícone/emoji */
.faq-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Título do alerta */
.faq-alert strong {
    font-weight: 600;
  
    margin: 0;
}

/* Conteúdo do alerta */
.faq-alert-content {
    padding-left: 2.4rem; /* Alinhamento com o texto do título */
}

/* Alerta de Aviso */
.faq-alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 5px solid #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
    color: #856404;
}
.faq-alert-check {
    background-color: rgba(126, 250, 126, 0.1);
    border-left: 5px solid #2cd32c;
    border-color: rgba(126, 250, 126, 0.4);
    color: #288328;
}

/* Alerta de Perigo */
.faq-alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 5px solid #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

/* Alerta de Informação */
.faq-alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 5px solid #0d6efd;
    border-color: rgba(13, 110, 253, 0.3);
    color: #0c5460;
}

/* Efeito hover */
.faq-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsividade */

/* Estilos para títulos e parágrafos */
.faq-content article h1 {
    font-size: 1.8rem;
    padding-bottom: 3rem;
}
.faq-content article h2 {
    font-size: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.faq-content article h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1rem;
}
.faq-content article p {
    font-size: 1.3rem;
    line-height: 1.8rem;
    margin-bottom: 1rem;
    color: #444;
}
.faq-content article ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.7;

}
.faq-content article li {
    font-size: 1.2rem;
    line-height: 1rem;
    color: #444;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Estilos para imagens */
.faq-content img {
    /* width: 60%;
    height: 60%; */
    box-shadow: var(--shadow);
    margin: auto;
  
 border-radius: 5px;
}


/* faq link */
.faq-link {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #2c7be5;
  font-size:17px;


}

.faq-link:hover {
  color: #1a5bb8;


}

/* Estilos para seção de recomendações */

.search-results-header ~ .recomendacao-section{
    display: none !important;
}
.recomendacao-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}
.recomendacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.recomendacao-card {
    border-left: 4px solid var(--primary-color);
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.recomendacao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.recomendacao-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.recomendacao-card p {
    color: #666;
    font-size: 0.9rem;
}
.recomendacao-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ===== RESPONSIVIDADE ===== */

@media screen and (max-width: 768px) {
        .faq-alert {
        padding: 0.6rem;
    }

  #faqNav {
    display: none;
  }
  #faqNav.active {
    display: block;
  }

        .video-container {
        margin: 1rem auto;
        max-width: 100%;
        height: 400px;
        border-width: 2px;
    }
    .faq-content img {
        width: 100%;
        max-height: 80%;
    }
    .faq-alert-header {
        gap: 0.6rem;
    }

    .search-box{
        margin-bottom: 0;
    }
    
    .faq-alert-content {
        padding-left: 0;
    }
    .menu-btn {
        display: flex;
    }
    #search-box-button {
        margin-left: 6px;
    }
    .btn_entrar {
        display: none;
    }

    .coluna {
        width: fit-content;
        min-width: unset;
        left: -100%;
        height: 100%;
        top: 0px;
        z-index: 1001;
        position: fixed;
        right: 0;
        overflow-y: auto;
        display: flex;
        align-items: center;

        flex-direction: column;
        padding: 0.6rem;
        transition: var(--transition)
    }
    .coluna.active {
        left: 0;
    }

    body.no-scroll {
        overflow: hidden;
        height: 100vh;
    }

    .overlay.active {
        opacity: 1;
        display: block;
        visibility: visible;
    }

    .logo span {
        font-size: 10px;
    }

    header {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 0.1rem;
    }
    .faq-content article h1 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    nav ul {
        display: none;
    }

    .container2 {
        width: 95%;
    }
    .faq-content p {
        font-size: 3rem;
    }

    .logo span {
        font-size: 1.5rem;
    }
     .container2 {
        padding: 0.5rem;
    }

    .faq-content {
        padding: 0.6rem;
    }

    .faq-content p {
        font-size: 1rem;
    }

    .coluna {
        overflow-y: auto;
        padding: 1rem;
    }

    #search-box-button {
        margin-left: 6px;
    }
}

/* Estilos para telas menores que 580px */
@media screen and (max-width: 580px) {
    .container2 {
        padding: 0.5rem;
    }

    .faq-content {
        padding: 0.6rem;
    }

    .faq-content p {
        font-size: 1rem;
    }

    .coluna {
        overflow-y: auto;
        padding: 0.6rem;
    }

    #search-box-button {
        margin-left: 6px;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-content article {
    animation: fadeIn 0.6s ease-out;
}

/* ===== FOOTER ===== */

footer {
    box-shadow: var(--shadow);
    background: #333333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    padding-bottom: 20px;
    position: relative;

    
    
}
.footer-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

/* Estilos para ícones sociais */
.social-icon {
    color: white;
    font-size: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon i {
    font-size: 32px;
    margin-bottom: 5px;
}
.social-icon span {
    font-size: 14px;
    margin-top: 4px;
}
.social-icon:hover {
    color: #e65c00;
    transform: translateY(-5px);
}

/* Texto de copyright */
.footer-copy {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Linha decorativa no topo do footer */
footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e65c00;
    border-radius: 2px;
}

    
/* ===== CONTAINER DE VÍDEO ===== */


.video-container {
    position: relative;
    width: 60%; /* Largura reduzida */
    height: 500px;
        /* Altura reduzida0px; /* Altura fixa para formato mais quadrado */
    overflow: hidden;
    border-radius: 5px; /* Bordas menos arredondadas */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra mais discreta */
    background: #000;
 /* Borda mais fina */
    margin: 10px 0;
     /* Espaçamento externo */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Efeito hover para melhor interatividade */ 

/* BOTÃO DE SUPORTE (estilo independente) */
.coluna .btn-suporte {
    background: var(--primary-color) ;
    color: var(--text-light) ;
    font-size: 1.1rem;

    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    width: 100%;


    margin-top: auto; /* joga para o final da coluna */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.coluna .btn-suporte:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

