/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: #0779e4 3px solid;
}

header #logo {
    max-width: 250px; /* Ajuste conforme necessário, aumentado para o novo logo */
    margin-bottom: 0.5rem;
    background-color: #fff; /* Adicionado para o fundo branco da região do logo */
    padding: 10px;
    border-radius: 5px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    width: 90%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #0779e4;
    margin-top: 0;
}

p, li {
    text-align: justify;
}

ul {
    padding-left: 20px;
}

/* Table Styles */
#tabela_comparativa table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#tabela_comparativa th, #tabela_comparativa td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

#tabela_comparativa th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
}

#tabela_comparativa tr:nth-child(even) {
    background-color: #f9f9f9;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    main {
        width: 95%;
        padding: 15px;
    }

    #tabela_comparativa table, 
    #tabela_comparativa thead, 
    #tabela_comparativa tbody, 
    #tabela_comparativa th, 
    #tabela_comparativa td, 
    #tabela_comparativa tr {
        display: block;
    }

    #tabela_comparativa thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #tabela_comparativa tr {
        border: 1px solid #ccc;
        margin-bottom: 0.5rem;
    }

    #tabela_comparativa td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }

    #tabela_comparativa td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /* Labeling table cells for responsive view */
    #tabela_comparativa td:nth-of-type(1):before { content: "Característica"; }
    #tabela_comparativa td:nth-of-type(2):before { content: "Depósito Caução (Dinheiro)"; }
    #tabela_comparativa td:nth-of-type(3):before { content: "Fiador"; }
    #tabela_comparativa td:nth-of-type(4):before { content: "Seguro Fiança (Geral)"; }
    #tabela_comparativa td:nth-of-type(5):before { content: "Título de Capitalização"; }
}

@media (max-width: 480px) {
    header #logo {
        max-width: 150px;
    }
    header h1 {
        font-size: 1.2rem;
    }
}
