.news-hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--white-color) 100%);
}

.news-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.news-hero .subtitle {
    font-size: 1.15rem;
    color: var(--subText-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Category Filter Tabs */
.news-filter-section {
    padding: 2rem 0 0;
    background: var(--white-color);
    position: sticky;
    top: 60px;
    z-index: 10;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.news-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    border: 1px solid var(--border-color, #374151);
    background: transparent;
    color: var(--dark-color);
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.category-tab.active,
.category-tab:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* Card Grid */
.news-grid-section {
    padding: 2rem 0 4rem;
}

.news-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card */
.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #374151);
    background: var(--bg-secondary);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(107, 120, 154, 0.15);
    border-color: var(--theme-color);
}

.news-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-tertiary, #1a2332);
    position: relative;
}

.news-card-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.news-card-thumb.no-image::after {
    content: 'GigaFlops';
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
}

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

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

.news-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-category-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--theme-color);
    color: #fff;
}

.news-new-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.88rem;
    color: var(--subText-color);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--subText-color);
}

/* Load More */
.load-more-wrap {
    text-align: center;
    padding: 3rem 0 1rem;
}

.btn-load-more {
    padding: 0.75rem 3rem;
    border-radius: 8px;
    border: 1px solid var(--theme-color);
    background: transparent;
    color: var(--theme-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-load-more:hover {
    background: var(--theme-color);
    color: #fff;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--subText-color);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-hero h1 {
        font-size: 2.2rem;
    }
    .news-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .news-grid-container {
        padding: 0 1rem;
    }
    .news-filter-container {
        padding: 0 1rem;
    }
    .category-tab {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Desktop industrial portal tone */
.page-main-content {
    background: #f3f5f8;
}

.news-hero {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 7rem max(2rem, calc((100vw - 1280px) / 2 + 2rem)) 4rem;
    background:
        linear-gradient(90deg, rgba(9, 16, 30, 0.9) 0%, rgba(9, 16, 30, 0.72) 44%, rgba(9, 16, 30, 0.2) 100%),
        url('/files/imgs/common/gigaflops_background.png') center / cover no-repeat;
    position: relative;
}

.news-hero::after {
    content: '';
    position: absolute;
    inset: 6rem max(1rem, calc((100vw - 1280px) / 2 + 1rem)) 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.news-hero h1 {
    color: #fff;
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: 700;
    line-height: 1.08;
}

.news-hero .subtitle {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 760px;
    line-height: 1.75;
}

.news-filter-section {
    background: #fff;
    border-bottom: 1px solid #d8dee8;
    padding-top: 1.2rem;
}

.news-filter-container,
.news-grid-container {
    max-width: 1280px;
}

.category-tab {
    border-radius: 0;
    border-color: #d8dee8;
    color: #4b5563;
    background: #fff;
}

.category-tab.active,
.category-tab:hover {
    background: #111827;
    border-color: #111827;
}

.news-grid-section {
    background: #f3f5f8;
    padding-top: 3rem;
}

.news-card {
    border-radius: 0;
    border-color: #d8dee8;
    background: #fff;
    box-shadow: none;
}

.news-card:hover {
    box-shadow: none;
    border-color: #6b789a;
}

.news-card-thumb.no-image {
    background: #dfe5ee;
}

.news-card-thumb.no-image::after {
    color: rgba(17, 24, 39, 0.24);
}

.news-category-tag {
    border-radius: 0;
    background: #f1f3f7;
    color: #5b6684;
}

.news-new-badge {
    border-radius: 0;
    background: #111827;
}

.news-card-title {
    color: #111827;
}

.news-card-summary,
.news-card-date {
    color: #667085;
}

.btn-load-more {
    border-radius: 0;
}
