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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 200px; /* Alterado de 50px para 200px */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header .search-bar input {
    padding: 5px;
    border: none;
    border-radius: 3px;
}

main {
    display: flex;
    margin-top: 20px;
}

.sidebar {
    flex: 0 0 20%; /* Largura da sidebar ajustada */
    margin-right: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar ul li img {
    width: 70px;
    height: 70px;
    margin-right: 10px;
}

.posts {
    flex: 0 0 60%; /* Ajuste a largura do conteúdo principal */
    display: flex;
    flex-direction: column;
}

.post {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post h2 {
    margin-bottom: 10px;
}

.post .meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.post a {
    color: #0066cc;
    text-decoration: none;
}

.ads {
    flex: 0 0 20%; /* Ajuste a largura dos anúncios */
    margin-left: 20px;
}

.ads .ad {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 5px solid #0066cc;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    main {
        flex-direction: column;
    }

    .sidebar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .ads {
        margin-left: 0;
        order: 3;
    }
}

@media (min-width: 769px) {
    .ads {
        flex: 0 0 20%; /* Ajuste para manter os anúncios na lateral */
    }

    .posts {
        flex: 0 0 60%;
    }

    .post {
        flex: 2;
    }
}

.recent-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.recent-article {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(50% - 10px);
}

.recent-article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.recent-article h3 {
    margin-bottom: 10px;
}

.recent-article .meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.recent-article p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .recent-article {
        width: 100%;
    }
}

/* Estilos para o formulário de comentários */
form {
    margin-top: 20px;
}

form div {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #4cae4c;
}

/* Estilos para a seção de comentários */
.comentario {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.comentario p {
    margin: 5px 0;
}

.comentario strong {
    font-weight: bold;
}

/* Estilos para a imagem do artigo */
.article-image {
    width: 100%;
    height: auto;
    max-width: 700px; /* Defina o valor que você deseja */
    display: block;
    margin: 0 auto; /* Centraliza a imagem */
}

@media (max-width: 600px) {
    .article-image {
        max-width: 100%;
    }
}
