/* Контейнер за новините */
.news-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.news-header {
    margin-bottom: 35px;
}

.badge-news {
    background: #e2e8f0;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.news-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.news-header p {
    color: var(--text-muted);
    font-size: 15px;
}


.news-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.news-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.featured-news-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.featured-img-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.featured-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-news-card:hover .featured-img-wrapper img {
    transform: scale(1.02);
}

.featured-news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-category {
    color: var(--primary-color);
}

.news-date {
    color: var(--text-muted);
}

.featured-news-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 12px;
}

.featured-news-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
}
.btn-read-more:hover { color: var(--primary-color); }
.btn-read-more .material-icons-round { font-size: 16px; }

/* 2. СТАНДАРТНИ НОВИНИ (Под-решетка) */
.sub-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card-img {
    width: 100%;
    height: 180px;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-content {
    padding: 20px;
    flex-grow: 1;
}

.news-card-content h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}


.news-link-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}


.sidebar-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.5);
   /// position: sticky;
    top: 100px; 
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-main);
}
.sidebar-card h3 .material-icons-round { color: #f59e0b; }

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }

.trending-number {
    font-size: 24px;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
}

.trending-details h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.2s;
}
.trending-item:hover .trending-details h4 { color: var(--primary-color); }


@media (max-width: 768px) {
    .news-layout-grid {
        grid-template-columns: 1fr; 
    }
    .sub-news-grid {
        grid-template-columns: 1fr;
    }
    .featured-img-wrapper { height: 220px; }
    .featured-news-content h2 { font-size: 20px; }
    .sidebar-card { position: static; } 
}