/* =========================================
   MARKET NEWS (Modern SaaS)
   ========================================= */

/* --- SECTION CONTAINER --- */
.news-section {
    padding: 60px 0;
    background: var(--bg-body); /* Global Background */
    position: relative;
}

/* Subtle Top Border */
.news-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: #e2e8f0;
}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.news-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* --- NEWS CARD --- */
.news-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* Image Area */
.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img { transform: scale(1.05); }

/* Category Badge */
.news-category {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(15, 23, 42, 0.8); /* Dark Slate */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Content Area */
.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-date::before { content: '📅 '; }
.news-source::before { content: '📰 '; }

.news-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card:hover .news-title { color: var(--primary); }

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Footer & Tags */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-read-more:hover { gap: 8px; color: var(--primary-hover); }
.news-read-more::after { content: '→'; transition: transform 0.2s; }

.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.news-tag {
    background: #f1f5f9;
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.news-tag:hover { background: var(--primary); color: white; }

/* --- TRENDING BADGE --- */
.news-trending {
    position: absolute;
    top: 15px; right: 15px;
    background: #ef4444; /* Red */
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

/* --- LOAD MORE BUTTON --- */
.news-load-more { text-align: center; margin-top: 40px; }

.load-more-btn {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- FILTERS (Optional) --- */
.news-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.news-filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.news-filter-btn:hover, .news-filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.news-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-header h2 { font-size: 1.8rem; }
    .news-filters { gap: 8px; }
}