/* ============================================
   News Section CSS — LumivioPress
   ============================================ */

.news-section {
    width: 100%;
    padding: 3rem var(--main-padding);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-primary);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .news-section {
        padding: 3rem var(--main-padding-md);
    }
}

/* ── Header (gleicher Stil wie about-section) ── */

.news-header h4 {
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-title-wrap {
    position: relative;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.news-title-wrap .news-title {
    font-size: 1.875rem;
    font-weight: 300;
    margin: 0;
    padding-top: 1rem;
    position: relative;
    color: var(--text-primary);
}

.news-title-wrap .news-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 4px;
    border-radius: 9999px;
    background: var(--color-primary);
}

/* ── News Grid ── */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.news-more a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 0.125rem;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.news-more a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ── News Item ── */

.news-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Image ── */

.news-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
    filter: brightness(.7);
}

.news-image .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-image .image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    pointer-events: none;
}

/* ── Content ── */

.news-content {
    padding: 1.25rem;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.news-meta svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.news-content .news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.news-content .news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-content .news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.5rem;
}

.read-more svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ── Responsive ── */

@media (max-width: 639px) {
    .news-header .title {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-image.no-image {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}