/* Modern News Plugin • Eyecatcher 2025 alignment */

.modern-news-container {
    max-width: 1200px;
    margin: clamp(2.5rem, 6vw, 4rem) auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    gap: clamp(1.8rem, 3vw, 2.6rem);
}

.news-header {
    text-align: center;
    display: grid;
    gap: 0.75rem;
}

.news-description {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.65;
}

.news-empty {
    text-align: center;
    padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(71, 85, 105, 0.86);
}

.empty-icon {
    font-size: clamp(3.5rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    opacity: 0.55;
}

.news-grid {
    display: grid;
    gap: clamp(1.6rem, 2.8vw, 2.4rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.news-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-image-link,
.news-picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(25, 155, 202, 0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.6rem, 2.6vw, 2.2rem);
    flex: 1 1 auto;
}

.news-content .news-header {
    text-align: left;
    margin: 0;
}

.news-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #0f172a;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover,
.news-title a:focus-visible {
    color: #199bca;
    outline: none;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.78);
}

.news-author,
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-content .news-description {
    margin: 0;
    color: rgba(71, 85, 105, 0.9);
    line-height: 1.65;
}

.news-footer {
    margin-top: auto;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: rgba(25, 155, 202, 0.12);
    color: #199bca;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
}

.news-read-more:hover,
.news-read-more:focus-visible {
    background: rgba(25, 155, 202, 0.22);
    gap: 0.65rem;
    outline: none;
}

.read-more-icon {
    transition: transform 0.2s ease;
}

.news-read-more:hover .read-more-icon,
.news-read-more:focus-visible .read-more-icon {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .modern-news-container {
        padding: 0 1rem;
    }

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