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

/* TIPOGRAFIA & BODY */
body {
    font-family: 'Inter', Arial, sans-serif;
}

/* CONTAINERS E LAYOUT */
.container-fluid {
    padding-left: 80px;
    padding-right: 80px;
}

.top-bar {
    background: #eee;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-bottom: 1px solid #ccc;
}

.navbar {
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Aplicando a altura fixa só quando o NavBar não estiver colapsado */
@media (min-width: 992px) {
    .navbar {
        height: 48px;
    }
}

/* LOGO */
.logo {
    height: 60px;
    width: auto;
}

/* SEÇÃO DESTAQUES */

/* Torna destaque-box um flex container para alinhar imagem e texto lado a lado */
.destaque-box {
    padding: 5px;
    border-radius: 10px;
}

.img-destaque {
    width: 100%;
    max-width: 600px;
    flex-shrink: 0;
    aspect-ratio: 600 / 350;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.destaque-box p {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin-top: 15px;
    text-align: justify;
}

/* CARDS DE NOTÍCIAS */
.news-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    border-radius: 8px;
    background-color: #fff;
}

.news-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(90, 110, 131, 0.5);
    filter: brightness(1.05);
}

.news-card img {
    max-height: 200px;
    object-fit: cover;
}

.card-text {
    max-height: 80px;
    /* controla a altura visível do texto */
    overflow: hidden;
    /* esconde o que passar da altura */
    text-overflow: ellipsis;
    /* adiciona "..." se quiser (só funciona em linha única) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* mostra só 3 linhas */
    -webkit-box-orient: vertical;
}

/* TÍTULOS & SEPARADORES */
.section-title {
    font-weight: bold;
    color: #007bff;
    margin-top: 30px;
    font-size: 35px;
}

h4 {
    position: relative;
    display: inline-block;
    /* para a linha se alinhar ao texto */
    padding-bottom: 6px;
    /* espaço entre texto e linha */
}

h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    /* tamanho da linha: só início */
    height: 3px;
    /* espessura da linha */
    background-color: red;
}

.custom-separator {
    border: none;
    /* tira borda padrão */
    border-bottom: 2px solid #ccc;
    /* linha fina */
    margin: 20px 30px 10px 30px;
    /* margem vertical e horizontal */
}

/* RODAPÉ */
footer {
    background-color: #009444;
    color: white;
    padding: 30px 0;
    font-size: 14px;
}

footer h5,
footer h6 {
    margin-bottom: 10px;
}

footer i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer i:hover {
    color: #d4d4d4;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* garante que fique em linha */
    gap: 2rem;
}

/* RESPONSIVIDADE */
/* Layout flexível no rodapé para dispositivos menores */
@media (max-width: 768px) {
    footer .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
        font-size: 12px;
    }

    footer h5,
    footer h6 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    footer p,
    footer small {
        font-size: 12px;
        margin-bottom: 4px;
    }

    footer i {
        font-size: 16px;
        margin-right: 8px;
    }

    footer .container>div {
        min-width: 30%;
    }
}


/* clima */
.weather-widget {
    background-color: #80bfff;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
}

.forecast-day {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    color: white;
}

.forecast-day .day {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.forecast-day .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forecast-day .temp {
    font-size: 1rem;
}

.arrow {
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

.arrow:hover {
    background-color: #ddd;
}

@media (max-width: 576px) {
    .forecast-day {
        width: 100px;
    }

    .forecast-day .icon {
        font-size: 1.5rem;
    }

    .forecast-day .temp {
        font-size: 0.9rem;
    }
}