* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 3px solid #e74c3c;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    color: #e74c3c;
    font-weight: 700;
}

.logo a {
    color: #e74c3c;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e74c3c;
    background-color: #fff5f5;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.featured-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.featured-article .article-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.featured-article .article-content {
    padding: 25px;
}

.featured-article h2 {
    font-size: 32px;
    margin: 15px 0;
    color: #222;
    line-height: 1.3;
}

.featured-article p {
    font-size: 16px;
    color: #666;
    margin: 15px 0;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.side-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.side-article .article-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.side-article .article-content {
    padding: 15px;
}

.side-article h3 {
    font-size: 18px;
    color: #222;
    margin: 10px 0;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag.politics {
    background-color: #667eea;
    color: #fff;
}

.category-tag.economy {
    background-color: #f093fb;
    color: #fff;
}

.category-tag.technology {
    background-color: #4facfe;
    color: #fff;
}

.category-tag.sports {
    background-color: #fa709a;
    color: #fff;
}

.category-tag.culture {
    background-color: #30cfd0;
    color: #fff;
}

/* Timestamp */
.timestamp {
    display: inline-block;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.section-header h2 {
    font-size: 28px;
    color: #222;
}

.see-more {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.see-more:hover {
    color: #c0392b;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.article-card .article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-card .article-content {
    padding: 20px;
}

.article-card h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Article Page */
.article-page {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 42px;
    color: #222;
    margin: 20px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.article-image-full {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 30px 0;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 28px;
    color: #222;
    margin: 30px 0 15px;
}

.article-body h3 {
    font-size: 24px;
    color: #222;
    margin: 25px 0 12px;
}

.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-articles h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
}

/* Category Page */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

.category-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 18px;
    opacity: 0.9;
}

.articles-list {
    display: grid;
    gap: 30px;
}

.article-list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-list-item .article-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.article-list-item .article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list-item h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 12px;
}

.article-list-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e74c3c;
}

.footer-section p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-list-item {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article h2 {
        font-size: 24px;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
}
