/* --- Configurações Gerais --- */
.main_midia {
    background-color: #f9f9f9;
    min-height: 100vh;
}

/* --- Cabeçalho --- */

.midia-header {
    background-color: #54B9CA; /* Azul Gauss */
    padding: 60px 0;
    margin-bottom: 60px;
}

.logo {
    width: 173px;
    height: 173px;
    margin-right: 40px;
}

.page-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 80px !important;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.1;
}

.page-subtitle {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grid de Notícias --- */
.midia-list {
    padding-bottom: 80px;
}

.news-grid {
    display: grid;
    /* Cria colunas automáticas com largura mínima de 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Card de Notícia --- */
.news-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 8px solid #54B9CA;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-color: #EBBE07;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Meta Dados --- */
.news-meta {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.news-source-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #f0f0f0; /* Fundo suave caso o ícone seja transparente */
}

.news-source {
    color: #54B9CA;
}

.news-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #EBBE07;
    margin-top: auto;
    display: inline-block;
    transition: padding-left 0.2s;
}

.news-card:hover .news-read-more {
    padding-left: 5px;
    color: #d4ab06;
}

/* --- Responsividade --- */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        padding: 20px;
        min-height: auto;
    }
}