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

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

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 30px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0066cc;
}

.site-description {
    color: #666;
    font-size: 16px;
}

.site-nav {
    margin-top: 10px;
}

.site-nav a {
    color: #0066cc;
    text-decoration: none;
    margin-right: 20px;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Articles Grid (Homepage) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.article-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-card h2 a {
    color: #333;
    text-decoration: none;
}

.article-card h2 a:hover {
    color: #0066cc;
}

.article-meta {
    color: #999;
    font-size: 14px;
}

/* Single Article */
.featured-image {
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #222;
}

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

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

.article-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #222;
}

.article-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: #0066cc;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.article-content .article-image {
    text-align: center;
    margin: 30px 0;
}

.article-content strong {
    font-weight: 600;
    color: #222;
}

.article-content em {
    font-style: italic;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    background: #fff;
}

.pagination a:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.pagination a.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination span {
    color: #999;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .article {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}