* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 0 15px;
}

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #e67e22;
}

#weather, #exchange-rate {
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

#exchange-rate {
    font-size: 1rem;
    color: #ecf0f1;
}

#exchange-rate div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

#exchange-rate img {
    margin-right: 8px;
}

section {
    padding: 30px 15px;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.news-content h3 {
    font-size: 1.4rem;
    color: #2980b9;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 4rem;
    display: flex;
    align-items: center;
}

.news-content p {
    font-size: 1rem;
    color: #7f8c8d;
    flex-grow: 1;
}

.news-content a {
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.news-content a:hover {
    text-decoration: underline;
}

#ver-mais {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
}

#ver-mais:hover {
    background-color: #1f6391;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#ver-mais:active {
    background-color: #1a4d74;
    transform: translateY(0);
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.9rem;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.country-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none; /* Não exibe a imagem por padrão */
}

.country-content h3 {
    font-size: 1.4rem;
    color: #2980b9;
    margin-bottom: 10px;
}

.country-content p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-content h3 {
        font-size: 1.2rem;
        min-height: unset;
    }

    #ver-mais {
        font-size: 14px;
        padding: 8px 16px;
    }

    .country-grid {
        grid-template-columns: 1fr;
    }

    .country-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .news-content h3 {
        font-size: 1.1rem;
    }

    #ver-mais {
        font-size: 12px;
        padding: 6px 12px;
    }

    section {
        padding: 15px 10px;
    }

    .country-grid {
        gap: 15px;
    }
}
