/* Center the site title */
body header h1 {
    text-align: center;
}

body header h1 a {
    text-align: center;
    display: block;  /* This ensures the anchor takes full width */
    text-decoration: none;  /* Optional: removes underline from the link */
}

/* Style the header container */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

/* Style the title */
.site-header h1 {
    margin: 0;
}

.site-header h1 a {
    text-decoration: none;
}

/* Style the navigation */
.site-header nav {
    margin-left: 2rem;
}

.site-header .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.site-header .menu li {
    margin: 0;
}

.site-header .menu a {
    text-decoration: none;
}

/* Post preview styles */
.posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.date-group {
    margin-bottom: 3rem;
}

.date-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.post-preview {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.post-preview header h2 a {
    text-decoration: none;
    color: inherit;
}

.post-preview header h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-meta .date {
    margin-right: 1rem;
}

.read-time {
    display: inline-block;
    color: #888;
    font-size: 0.85rem;
    margin-right: 1rem;
    font-weight: 500;
}

.tags {
    display: inline-block;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #555;
}

.post-summary {
    line-height: 1.6;
    color: #333;
}

.post-summary p:first-child {
    margin-top: 0;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

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

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem auto 2rem;
    max-width: 800px;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #e5e5e5;
    text-decoration: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    
    .site-header nav {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .posts-list {
        padding: 0 1rem;
    }
}