/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
header {
    background: linear-gradient(to right, #1E3A8A, #FFD700);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navegação */
nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Lista de navegação */
.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: color 0.3s;
    display: block;
    text-align: center;
}

.nav-list li a:hover {
    color: #e6c200;
}

/* Botão hamburguer */
.hamburger {
    display: none;
    font-size: 28px;
    color: #1E3A8A;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Botão de fechar */
.close-btn {
    display: none;
}

/* Menu lateral e submenus */
.nav-list {
    flex-direction: column;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    display: block;
    padding: 8px 15px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95em;
    width: 100%;
    text-align: left;
    position: relative;
}

.dropdown-toggle::after {
    content: '▶';
    position: absolute;
    right: 15px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(90deg);
}

.submenu {
    display: none;
    list-style: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 0;
    margin: 0;
}

.submenu li a {
    padding: 6px 25px;
    font-size: 0.85em;
    color: #ffffff; /* Cor mais escura (branco puro) para melhor contraste */
    text-align: left;
    display: block;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #e6c200; /* Mantém o amarelo no hover para interação */
}

.dropdown.active .submenu {
    display: block;
}

/* Seção Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
}

.hero h1 {
    font-size: 3em;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px;
}

.hero img {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    border-radius: 10px;
}

.hero .cta-button {
    display: inline-block;
    background: #1E3A8A;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s, color 0.3s;
}

.hero .cta-button:hover {
    background: #e6c200;
    color: #1E3A8A;
}

/* Seção de destaques */
.highlights {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.highlight-card:hover {
    transform: scale(1.05);
}

.highlight-card h3 {
    color: #1E3A8A;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 1em;
    margin-bottom: 15px;
}

.highlight-card a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s;
}

.highlight-card a:hover {
    text-decoration: underline;
}

/* Tabela de comparação */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.comparison-table th {
    background: #1E3A8A;
    color: white;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.comparison-table tr:hover {
    background: #f1f1f1;
}

/* Conteúdo principal */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-content {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-content h2 {
    color: #1E3A8A;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.main-content p {
    margin-bottom: 20px;
}

.main-content img {
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    border-radius: 10px;
}

/* Barra lateral */
.sidebar {
    flex: 1;
}

.ad-space {
    background: #ddd;
    height: 250px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    line-height: 250px;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.ad-space-leaderboard {
    background: #ddd;
    height: 90px;
    width: 100%;
    max-width: 728px;
    text-align: center;
    line-height: 90px;
    margin: 20px auto;
    border-radius: 5px;
}

/* Seções do site */
.site-sections {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-sections h2 {
    color: #1E3A8A;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
}

.site-sections p {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.sections-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.section-item {
    padding: 15px;
}

.section-item strong {
    color: #1E3A8A;
    font-size: 1.2em;
}

.section-item a {
    color: #FFD700;
    text-decoration: none;
}

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

.section-item p {
    margin-top: 5px;
    font-size: 1em;
}

/* Rodapé */
footer {
    background: #1E3A8A;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        background: rgba(30, 58, 138, 0.95);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        padding: 60px 0 20px;
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-list.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-list li {
        margin: 3px 0;
    }

    .nav-list li a {
        padding: 8px 15px;
        font-size: 0.95em;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 30px;
        color: white;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
    }

    .content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th, .comparison-table td {
        padding: 8px;
    }

    .ad-space,
    .ad-space-leaderboard {
        max-width: 100%;
        margin: 10px auto;
    }

    .sections-list {
        grid-template-columns: 1fr;
    }
}

/* Telas muito pequenas (max-width: 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.95em;
        padding: 0 10px;
    }

    .hero .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .hero img {
        max-width: 100%;
    }

    .nav-list {
        width: 80%;
    }
}

/* Telas intermediárias (min-width: 600px e max-width: 900px) */
@media (min-width: 600px) and (max-width: 900px) {
    .highlights {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 15px;
    }

    .highlight-card {
        padding: 15px;
    }

    .highlight-card h3 {
        font-size: 1.3em;
    }

    .highlight-card p {
        font-size: 0.9em;
    }

    .sections-list {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

/* Desktop (min-width: 769px) */
@media (min-width: 769px) {
    .nav-list {
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        transform: none;
        max-height: none;
        overflow-y: visible;
        justify-content: center;
    }

    .nav-list li {
        flex: 0 1 auto;
    }

    .submenu {
        display: none;
    }

    .dropdown-toggle::after {
        content: none;
    }

    .dropdown {
        width: auto;
    }

    .dropdown-toggle {
        font-size: 1em;
        text-align: center;
        padding: 8px 15px;
    }

    .nav-list li a {
        padding: 8px 15px;
    }
}

        /* Calculadora */
        .calculator { background: #f9f9f9; padding: 20px; border-radius: 10px; margin: 20px 0; }
        .calculator label { display: block; margin-bottom: 10px; font-weight: bold; }
        .calculator input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }
        .calculator button { background: #1E3A8A; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; }
        .calculator button:hover { background: #153066; }
        .calculator #result { margin-top: 20px; font-size: 1.2em; color: #1E3A8A; }
        .calculator canvas { margin-top: 20px; max-width: 100%; }