/* Thumbnail & Placeholder Consistency */
.news-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: hsl(var(--b3));
}

.news-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: hsl(var(--bc) / 0.2);
    gap: 0.5rem;
}

.news-placeholder i { font-size: 2.5rem; }

/* Grid View (Default) */
.news-container.view-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .news-container.view-grid { grid-template-columns: repeat(2, 1fr); }
}

/* List View Logic */
.news-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-container.view-list .news-card {
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.news-container.view-list .news-thumb-wrapper {
    width: 35% !important;
    max-width: 300px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
}

.news-container.view-list .news-content {
    width: 65% !important;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .news-container.view-list .news-card {
        flex-direction: column !important;
    }
    .news-container.view-list .news-thumb-wrapper {
        width: 100% !important;
        max-width: none !important;
    }
    .news-container.view-list .news-content {
        width: 100% !important;
    }
}

/* Base Card Styling for Consistency */
.news-card {
    background-color: hsl(var(--b1));
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid hsl(var(--bc) / 0.1);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
