/* ===== VARIABLES ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a6fd8;
    --secondary: #764ba2;
    --accent: #f39c12;
    --success: #10b981;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #ffffff;
}
/* ===== BREAKING NEWS ===== */
.breaking-news {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1000;
}

.breaking-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breaking-label i {
    color: var(--accent);
}

.ticker-link {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.ticker-link:hover {
    color: var(--accent);
}

.ticker-separator {
    color: rgba(255,255,255,0.6);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-card.large {
    height: 600px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.featured-card.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-card.large .featured-image {
    height: 100%;
    position: relative;
}

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

.featured-card.large:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    border: none;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--accent);
}

.featured-excerpt {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Small Featured Cards */
.featured-card.small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border);
    position: relative;
}

.featured-card.small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-card.small .card-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

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

.featured-card.small:hover img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-card.small .card-content {
    padding: 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    gap: 1rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 3rem 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
    text-decoration: none;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card .article-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.article-card:hover img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.trending-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.trending-category {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.75rem;
}

.trending-date {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary);
}

.trending-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.article-footer .rating,
.article-footer .views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.article-footer .rating {
    color: var(--accent);
    font-weight: 600;
}

.article-footer .views-count {
    color: var(--gray);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
    text-decoration: none;
}

/* ===== LATEST ARTICLES ===== */
.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.latest-article {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.latest-article:hover {
    transform: translateX(5px);
}

.latest-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-thumb {
    border-radius: 8px;
    overflow: hidden;
    height: 100px;
}

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

.latest-article:hover .article-thumb img {
    transform: scale(1.1);
}

.latest-article .article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--gray);
    line-height: 1.5;
}

.latest-article .article-meta {
    margin-bottom: 0;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.latest-article .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.widget-title i {
    color: var(--primary);
}

/* Popular Articles */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.popular-article:hover {
    transform: translateX(5px);
}

.popular-article:last-child {
    border-bottom: none;
}

.popular-number {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.popular-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-title a:hover {
    color: var(--primary);
}

.popular-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.categories-list li:hover {
    background: var(--light);
}

.categories-list li:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary);
    transform: translateX(5px);
    text-decoration: none;
}

.category-link .category-icon {
    margin-right: 8px;
}

.category-count {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-slider {
        padding: 2rem 0;
    }
    
    .featured-card.large {
        height: 300px;
    }
    
    .featured-overlay {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .breaking-news .row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .featured-card.small .card-content {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
}


/* ===== PAGINATION STYLES ===== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--gray);
    background: var(--light);
    border-color: var(--border);
}

/* ===== IMPROVED LATEST ARTICLES ===== */
.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.latest-article {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.latest-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-thumb {
    border-radius: 8px;
    overflow: hidden;
    height: 140px;
    position: relative;
}

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

.latest-article:hover .article-thumb img {
    transform: scale(1.05);
}

.latest-article .article-content {
    padding: 0;
}

.latest-article .article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.latest-article .article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-article .article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.5;
}

.latest-article .article-meta {
    margin-bottom: 0;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.latest-article .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .latest-article {
        padding: 1rem;
    }
    
    .latest-article .row {
        flex-direction: column;
    }
    
    .article-thumb {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .latest-article .article-meta {
        gap: 0.5rem;
    }
    
    .latest-article .article-meta span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}