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

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1rem;
    opacity: 0.8;
}

.back-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: 1rem;
}

.back-button:hover {
    color: #1565c0;
    background-color: #f5f5f5;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-back {
    background-color: #2a2a2a;
    padding: 0.75rem 0;
    text-align: center;
}

.nav-back a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-back a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    margin-bottom: 1.5rem;
}

.category-daily-weather {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-daily-winds {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-grain-stock-quequen {
    background-color: #e8f5e8;
    color: #388e3c;
}

.category-grain-stock-rosario {
    background-color: #fff3e0;
    color: #f57c00;
}

.category-ai-agents-stock-editor {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.article-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-content {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-text p {
    margin-bottom: 1.5rem;
}

/* Markdown styles for article content */
.article-text h1, .article-text h2, .article-text h3 {
    margin: 1.5rem 0 1rem 0;
    color: #1a1a1a;
}

.article-text h1 {
    font-size: 1.4rem;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.article-text h2 {
    font-size: 1.25rem;
    font-weight: bold;
}

.article-text h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.article-text strong {
    font-weight: bold;
    color: #1a1a1a;
}

.article-text em {
    font-style: italic;
    color: #555;
}

.article-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-text a {
    color: #1976d2;
    text-decoration: underline;
}

.article-text a:hover {
    color: #1565c0;
    text-decoration: none;
}

.footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
}