.news-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: 2px solid rgba(79, 70, 229, 0.2);
    background: white;
    color: var(--text);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.news-section {
    padding: 4rem 0 6rem;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: clamp(280px, 18vw, 420px);
    min-height: 280px;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    background: #f5f7fb;
    background-image: linear-gradient(45deg, rgba(79, 70, 229, 0.03) 25%, transparent 25%, transparent 50%, rgba(79, 70, 229, 0.03) 50%, rgba(79, 70, 229, 0.03) 75%, transparent 75%, transparent);
    background-size: 18px 18px;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.news-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 3.5em;
    max-height: 3.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.news-link:hover {
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .news-grid {
        display: block;
    }

    .news-card {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .news-image {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .news-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .news-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
}
