/* =================================================================== */
/* NEWS PUBLIC PAGE */
/* =================================================================== */

.news-page .news-hero {
    background: linear-gradient(135deg, var(--blue-darc) 0%, #153452 100%);
    height: 100vh !important;
}

.news-page .news-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

/* Texto em fundo branco */
.news-page .news-item h3,
.news-page .sidebar-title {
    color: var(--text-dark) !important;
    text-transform: uppercase;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-page .news-item p {
    color: var(--text-dark);
}

.news-page .news-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    min-height: 100vh;
}

/* Seção de Filtros */
.news-page .news-filters {
    grid-column: 1 / -1;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--deep-indigo);
    border-radius: 8px;
    flex-flow: wrap;
    justify-content: space-between;
}

.filtering-options {
    min-width: 17rem;
}

.news-page .search-bar input {
    border-radius: 20px;
    width: 100%;
}

.news-page .search-bar {
    display: flex;
    gap: .8rem;
    width: 100%;
    min-width: 14rem;
    max-width: 18rem;
}

.news-page .search-bar .custom-search {
    border-radius: 20px;
    padding: 5px 15px;
}

/* Notícia em Destaque (Hero) */
.news-page .main-highlight {
    background-size: cover;
    background-position: center;
    background-image: url('../../resources/img/truckers1.jpg');
    position: relative;
    height: 28.125rem;
    overflow: hidden;
    /* border-radius: .3rem; */
    margin-bottom: 1.8rem;
}

.news-page .ui-datascroller .ui-datascroller-content {
    padding: 0;
    border: none;
}

.news-page .main-highlight h2 {
    font-size: 2rem;
}

.news-page .highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--text-white);
}

/* Grid de Notícias Secundárias */
.news-page .secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2rem;
}

.news-page .news-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.news-page .news-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.news-page .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENT */
.news-page .card-content {
    padding: 1.5rem;
}

.news-page .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #777;
}

/* TAGS */
.news-page .tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fff;
}

.news-page .tag.animals {
    background: #2ecc71;
}

.news-page .tag.lifestyle {
    background: #1abc9c;
}

.news-page .tag.history {
    background: #34495e;
}

/* TITLE */
.news-page .news-card h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

/* TEXT */
.news-page .news-card p {
    font-size: 0.9rem;
    color: #555;
    height: auto;
}

.news-page .card-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-page .ui-button.ui-button-text-only .ui-button-text {
    color: var(--blue-darc);
}

/*===============BUTTON SETTINGS============ */

body .ui-commandlink:hover,
body .ui-link:hover {
    text-decoration: none;
}

.news-page .read-more-btn {
    margin-top: .635rem;
    background: none !important;
    color: #1abc9c !important;
    border: none !important;
    font-weight: bold;
}



/* Estilo dos Mini Cards na Sidebar */
.news-page .sidebar-wrapper {
    position: sticky;
    top: 1.2rem;
    /* Distância do topo ao fazer scroll */
    height: fit-content;
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.news-page .sidebar-update-card {
    display: flex;
    gap: .8rem;
    padding: 1.1rem;
    margin-bottom: .7rem;
    background: var(--text-white);
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    /* Caso use link direto */
}

.news-page .sidebar-update-card:hover {
    border-color: var(--deep-indigo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.news-page .update-img {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-page .update-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-page .update-category {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--deep-indigo);
    margin-bottom: .2rem;
}

.news-page .update-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajuste na Sidebar para não ficar muito larga */
.news-page .sidebar-section {

    padding: 1rem !important;
    margin-top: 1rem;
}

@media(max-width: 1024px) {
    .news-page .news-container {
    grid-template-columns: 1fr;
}
}