.newsbox-wrapper {
    max-width: 800px;
    margin: 0 auto;
    color: #eee;
    max-height: var(--max-container-height);
    overflow-y: auto;
    position: relative;
    padding-right: 4px;
    /*background: #111;*/
    /*border: 1px solid #333;*/
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
    /*border-bottom: 1px solid #444;*/
}

#news-search {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    padding: 10px 0px;
}

.news-item {
    background: #1a1a1a;
    padding: 20px;
    border-left: 4px solid #444;
    transition: 0.3s;
    border-bottom: 1px solid #222;
}

.news-item.featured { border-left-color: #ffcc00; }
.news-item:hover { background: #222; }

.news-meta { font-size: 0.8em; color: #888; margin-bottom: 5px; }
.news-item h3 { margin: 0 0 5px 0; color: #ffcc00; font-size: 1.1em; }
.news-item h4 { margin: 0 0 5px 0; color: #888; font-size: 0.9em; }
.news-item .resumen,
.news-item .news-content { font-size: 0.9em; line-height: 1.5; color: #ccc; }

.read-more {
    margin-top: 5px;
    cursor: pointer;
    font-size: 0.75em;
    transition: background-position 0.5s ease-out, color 1s ease-out;
}

.read-more:hover {
    color: var(--foreground-tertiary-color);
}

/* Dialog Moderno */
#news-dialog {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

#news-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.close-dialog {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ffcc00;
    color: #000;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.full-content {
    padding: 0px 10px 10px 10px;
    font-size: 0.8rem;
}