body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-category {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.news-category h2 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.article-link {
    display: block;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.back-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2c3e50;
    color: white;
}

.article-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.article-content p {
    margin-bottom: 0.8rem;
}

.article-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.3rem;
}

.article-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}
