/* Resetando estilos e definindo fonte geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
}

/* Cabeçalho fixo com logo e título */
header {
    width: 100%;
    background-color: #ff6600;
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header img {
    width: 100px; /* Ajuste o tamanho da logo conforme necessário */
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    color: white;
    margin: 0;
}

/* Layout principal */
.container {
    width: 100%;
    margin-top: 140px; /* Ajuste para acomodar o cabeçalho */
    padding: 25px 350px 25px; /* Ajuste para acomodar o menu lateral */
}

/* Menu lateral fixo */
.sidebar {
    width: 300px;
    background: #333;
    padding: 10px;
    border-radius: 5px;
    margin-right: 20px;
    position: fixed; /* Fixa o menu lateral */
    top: 190px; /* Ajuste para posicionar abaixo do cabeçalho */
    left: 20px; /* Distância da borda esquerda */
    z-index: 999; /* Garante que o menu fique acima do conteúdo */
    overflow-y: auto; /* Permite a rolagem vertical */
    max-height: calc(100vh - 50px); /* Ajusta a altura máxima para permitir a rolagem */
}

/* Personalização da barra de rolagem */
.sidebar::-webkit-scrollbar {
    width: 12px; /* Largura da barra de rolagem */
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1; /* Cor do fundo da barra de rolagem */
    border-radius: 10px; /* Bordas arredondadas */
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ff6600; /* Cor da barra de rolagem */
    border-radius: 10px; /* Bordas arredondadas */
    border: 3px solid #f1f1f1; /* Espaço ao redor da barra de rolagem */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #e65c00; /* Cor da barra de rolagem ao passar o mouse */
}

/* Oculta o ícone de menu na versão web */
.menu-toggle {
    display: none; /* Oculta o ícone de menu por padrão */
}

.menu-list {
    list-style: none;
}

.topic {
    margin-bottom: 10px;
}

.category-btn {
    width: 100%;
    padding: 10px;
    background: #444;
    color: white;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.category-btn:hover {
    background: #ff6600;
}

.subtopics {
    list-style: none;
    margin-top: 5px;
    padding-left: 20px;
    display: none;
}

.subtopics li a {
    display: block;
    padding: 8px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.subtopics li a::before {
    content: "🗂️"; /* Ícone de documento */
    margin-right: 10px;
}

.subtopics li a:hover {
    background: #555;
}

.subtopics.visible {
    display: block;
}

/* Estilo dos cards de FAQ com ícones */
/* Estilo dos cards de FAQ */
.faq-item {
    background: white;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative; /* Para posicionar o ícone */
}

.faq-item:hover {
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

.faq-item h2 {
    font-size: 24px;
    color: #ff6600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinha o título e o ícone */
}

.faq-item h2::after {
    content: "▼"; /* Ícone de seta para baixo */
    font-size: 14px;
    color: #ff6600;
    transition: transform 0.3s ease; /* Animação de rotação */
}

.faq-item.active h2::after {
    content: "▲"; /* Ícone de seta para cima */
    transform: rotate(180deg); /* Rotaciona o ícone */
}

.faq-item .content {
    display: none;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.faq-item iframe {
    width: 100%;
    height: 200px;
    margin-top: 10px;
}

.faq-item.active .content {
    display: block;
    opacity: 1;
}

/* Estilo específico para o conteúdo de pagamento */
.faq-item .content {
    display: none;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.faq-item .content h2 {
    font-size: 20px;
    color: #ff6600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.faq-item .content h2::after {
    content: ""; /* Remove o ícone de seta dentro do conteúdo */
}

.faq-item .content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.faq-item .content ol,
.faq-item .content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-item .content ol li,
.faq-item .content ul li {
    margin-bottom: 10px;
}

.faq-item .content ul {
    list-style-type: disc;
}

.faq-item .content a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.faq-item .content a:hover {
    text-decoration: underline;
}

.faq-item .content iframe {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
}

/* Estilo do Footer */
footer {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

/* Seção Laranja */
.footer-top {
    background-color: #ff6600;
    padding: 20px;
    color: white;
}

.footer-contact {
    margin-bottom: 10px;
}

.footer-contact p {
    font-size: 18px;
    margin: 0;
}

.footer-contact a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social img {
    display: block;
    width: 25px;
    height: 25px;
}

/* Seção Cinza Claro */
.footer-bottom {
    background-color: #f4f4f4;
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.footer-bottom a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Versão mobile */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .menu-toggle {
        display: block; /* Exibe o botão de menu em mobile */
        background: none;
        border: none;
        font-size: 44px;
        color: white;
        cursor: pointer;
        position: absolute;
        left: 20px;
        top: 35px;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 120px; /* Ajuste para posicionar abaixo do cabeçalho */
        left: 0;
        display: none; /* Oculta o menu lateral por padrão em mobile */
        z-index: 1000;
    }

    .menu-open .sidebar {
        display: block; /* Exibe o menu lateral quando a classe menu-open está ativa */
    }

    .container {
        margin-top: 160px; /* Ajuste para mobile */
    }
    
    .faq-item {
        width: 100%;
    }
}