.highlights-section {
    background: linear-gradient(90deg, #224679 33%, #406DAD 100%);
    padding: 60px 0; 
}
/* .banner-section .container-portal {
    padding-left: 370px;
    padding-right: 370px;
} */
/* Alinhamento dos Cards */
.highlights-cards-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-right: 370px; 
}

.highlights-title {
    padding-left: 370px;
    max-width: 700px;
}

.highlight-card {
    width: 100%;
    max-width: 230px;
    min-height: 190px;
}

@media (max-width: 768px) {
    .highlights-cards-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important; 
    cursor: pointer;
}

/* Tipografia dentro do Card */
.highlight-card .card-category {
    font-size: 0.875em;
    letter-spacing: 0.5px;
}

.highlight-card .card-text {
    font-size: 0.8125em;
    margin-bottom: 0;
}

/* Portal público: utilitários */
.pp-banner-text {
    max-width: 800px;
    font-size: 1.05rem;
}

.pp-banner-img {
    max-height: 400px;
    object-fit: cover;
}

.pp-section-title-primary {
    color: #30599B;
}

.pp-title-news-all {
    color: #2B3437;
}

.pp-news-all-subtitle {
    color: #586064;
}

.pp-link-news-all {
    color: #224679;
    font-size: 1.125em;
}

.pp-btn-pill-primary {
    background-color: #224679;
    color: #fff;
    border-radius: 30px;
    padding: 8px 20px;
}

.pp-btn-pill-outline-primary {
    border: 1px solid #224679;
    color: #224679;
    border-radius: 30px;
    padding: 8px 20px;
    background: transparent;
}


.pp-link-primary {
    /* color: #224679; */
    transition: color 0.3s ease;
    color:#30599B;
}

.pp-text-14 {
    font-size: 0.875em;
}

.pp-meta-12 {
    font-size: 0.75em;
    color: #888;
}

/* =========================================================
   CARD
   ========================================================= */

.pp-news-card {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #2f5892;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 2. Remova o .pp-news-card::before, ele é redundante agora */

.pp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pp-news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;

    margin-top: 2px; /* 🔥 ESSA LINHA RESOLVE DE VERDADE */
}
/* Placeholder */
.pp-news-card-image-placeholder {
    width: 100%;
    height: 160px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-news-card-image-icon {
    font-size: 2em;
    color: #aaa;
}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 768px) {
    .pp-news-card {
        flex-direction: row;
    }

    .pp-news-card-image,
    .pp-news-card-image-placeholder {
        width: 180px;    
        height: 140px;   
        flex-shrink: 0;
        border-radius: 6px;
        margin: 12px;
    }
}

/* .pp-date-badge {
    background-color: #224679;
    font-size: 12px;
    top: 8px;
    left: 8px;
    border-radius: 4px;
    padding: 4px 8px;
} */

/* Wrapper */
.pp-search-group {
    max-width: 400px; 
}

/* Input */
.pp-search-input {
    border-radius: 30px 0 0 30px !important;
    border-right: none;
}

/* Botão */
.pp-search-button {
    border-radius: 0 30px 30px 0 !important;
    background-color: #224679;
    color: #fff;
    border: 1px solid #224679;
}

/* Hover */
.pp-search-button:hover {
    background-color: #224679;
    border-color: #1b3760;
}

/* Remove conflito visual entre input e botão */
.pp-search-input:focus {
    border-color: #30599B;
    box-shadow: 0 0 0 3px rgba(48, 89, 155, 0.15);
    outline: none;
}

.pp-search-button i {
    color: #fff;
}

/* Container principal com a linha cinza embaixo */
.pp-news-toolbar {
    font-family: sans-serif;
    font-size: 0.9375em;
    padding-bottom: 10px;
    border-bottom: 1px solid #d5d7da; 
    gap: 8px;
}


.pp-news-count strong {
    color: #000;
    font-weight: 700;
}

/* Divisor vertical cinza */
.pp-divider {
    color: #586064;
    margin: 0 5px;
}

/* Label "Ordenar por:" */
.pp-order-label {
    
    font-weight: 700;
    margin-right: 10px;
}

/* O Select estilizado para parecer apenas texto */
.pp-order-select {
    border: none;               
    background: transparent;   
    color: #30599B;             
    font-weight: 400;
    cursor: pointer;
    outline: none;
    padding: 0;
    text-transform: uppercase;   
    appearance: none;           
    -webkit-appearance: none;
    padding-right: 15px;
    /* Adiciona uma seta customizada  */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23224679' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.pp-order-select:focus {
    box-shadow: none;
}

.highlight-img {
  height: 160px;
  object-fit: cover;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pp-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    
    background-color: #e8eef5;
  color: #0073df;
    
    font-size: 11px;
    font-weight: 600;
    
    padding: 4px 10px;
    border-radius: 6px;

    z-index: 2;
}