.trends-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
/* Top Stories */
.top-stories {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.refresh-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    align-self: start;
}

.featured-main:hover {
    transform: translateY(-2px);
}

.featured-main .article-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-main .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-badge.trending {
    background: #dc2626;
}

.article-badge.new {
    background: #059669;
}

.article-badge.exclusive {
    background: #7c3aed;
}

.featured-main .article-content {
    padding: 24px;
}

.article-title {
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.category {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.category.politics { background: #3b82f6; }
.category.economy { background: #059669; }
.category.society { background: #dc2626; }
.category.tech { background: #f59e0b; }
.category.culture { background: #8b5cf6; }
.category.sports { background: #06b6d4; }
.category.international { background: #6b7280; }

.publish-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.urgent-badge {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.featured-main .article-title {
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.featured-main .article-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.featured-main .article-title a:hover {
    color: #dc2626;
}

.article-summary {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stats-left {
    display: flex;
    gap: 16px;
}

.stats-left span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.stats-left i {
    font-size: 11px;
}

.stats-right .source {
    color: #374151;
    font-weight: 500;
    font-size: 12px;
}

/* Featured Side */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-1px);
    color: #dc2626;
}

.featured-item .article-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.featured-item .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-item .article-content {
    padding: 16px;
}

.featured-item .article-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.featured-item .article-title a:hover {
    color: #dc2626;
}

.featured-item .article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.featured-item .views {
    color: #6b7280;
    font-size: 14px;
}

.featured-item .source {
    color: #374151;
    font-weight: 500;
    font-size: 11px;
}

/* Latest News */
.latest-news {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
}

.filter-tab.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.news-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.bookmark-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.bookmark-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.bookmark-btn.active {
    background: #dc2626;
}

.video-indicator {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.news-title {
    margin-bottom: 8px;
}

.news-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #dc2626;
}

.news-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-stats {
    display: flex;
    gap: 12px;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 6px;
}

.source-logo {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.news-source span {
    color: #374151;
    font-weight: 500;
    font-size: 11px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 32px;
}

.load-more-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}


/* Trending List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.rank {
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.rank.up { background: #dc2626; }
.rank.down { background: #3b82f6; }
.rank.same { background: #6b7280; }
.rank.new { background: #059669; }

.keyword {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.change-indicator {
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.change-indicator.up { color: #dc2626; }
.change-indicator.down { color: #3b82f6; }
.change-indicator.same { color: #6b7280; }
.change-indicator.new { color: #059669; }

/* Weather Widget */
.weather-widget {
    text-align: center;
}

.weather-main {
    margin-bottom: 16px;
}

.weather-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 8px;
}

.weather-temp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.temp {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.weather-icon {
    font-size: 24px;
    color: #6b7280;
}

.weather-desc {
    color: #64748b;
    font-size: 14px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.weather-item {
    text-align: center;
}

.weather-item .label {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.weather-item .value {
    color: #1e293b;
    font-weight: 600;
    font-size: 12px;
}

.weather-item .value.bad {
    color: #dc2626;
}

/* Stock List */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

.stock-price {
    color: #6b7280;
    font-size: 12px;
}

.stock-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.stock-change.up { color: #dc2626; }
.stock-change.down { color: #3b82f6; }

/* Ad Banner */
.ad-banner {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 20px;
}

.ad-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.ad-btn {
    background: white;
    color: #3b82f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-btn:hover {
    background: #f8fafc;
}

.page_bottom{
    display:flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.pagination li{
    display:inline;
    border: none;
}

.page-item a{
    display: block;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 5px 10px;
    float: left;
    margin-right: 5px;
}

.active{
    font-weight:600;
    color: white;
}

.active a{
    background-color: rgb(234 51 35);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
    }

    .trends-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-actions {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    
    .search-input {
        width: 200px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}