/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

a:hover {
    color: #3498db;
}

/* Cabeçalho */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

header h1 a {
    color: white;
}

header p {
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #ecf0f1;
    font-weight: 500;
}

/* Conteúdo Principal */
main {
    padding: 30px 0;
}

.featured-post {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.featured-post h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.post-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.post-content p, .post-content ul, .post-content ol {
    margin-bottom: 15px;
}

.post-content ul, .post-content ol {
    padding-left: 20px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content table, .post-content th, .post-content td {
    border: 1px solid #ddd;
}

.post-content th, .post-content td {
    padding: 12px;
    text-align: left;
}

.post-content th {
    background-color: #f2f2f2;
}

.post-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Posts Relacionados */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 15px;
}

footer nav ul {
    justify-content: center;
    margin-bottom: 20px;
}

footer nav ul li a {
    color: #bdc3c7;
}

.disclaimer {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
}
/* Página Sobre */
article h3 {
    margin: 20px 0 15px;
    color: #2c3e50;
}

/* Formulário de Contato */
.contact-form {
    max-width: 600px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.other-contacts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.other-contacts h3 {
    margin-bottom: 15px;
}

/* Política de Privacidade */
article p {
    margin-bottom: 15px;
}
/* Boxes especiais */
.expert-tip {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.calculator-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Tabelas responsivas */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    min-width: 600px;
}

.featured-image {
    max-height: 450px;
    height: auto;       /* mantém proporção */
    width: 100%;        /* ou ajuste conforme necessário */
    object-fit: contain; /* ajusta para caber sem cortar */
    margin: 20px 0;
}


/* Estilos para listas */
.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-content li {
    margin-bottom: 8px;
}

/* Destaques */
strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Responsividade adicional */
@media (max-width: 600px) {
    .featured-post {
        padding: 20px 15px;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
}