/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Navbar styles */
.navbar {
    background-color: #3498db;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header styles */
.page-title {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #3498db;
}

/* Post list styles */
.post-list {
    margin-bottom: 2em;
}

.post-item {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.2em;
    margin-bottom: 1.2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-item h2 {
    margin-top: 0;
    margin-bottom: 0.4em;
}

.post-title {
    color: #3498db;
    font-size: 1.0em;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.5px; /* Add this line to tighten letter spacing */
}

.post-title:hover {
    color: #2980b9;
}

.post-meta {
    font-size: 0.85em;
    color: #7f8c8d;
}

.author {
    font-weight: bold;
    color: #34495e;
}

.read-count {
    color: #e74c3c;
    font-weight: bold;
}

/* Pagination styles */
.pagination-container {
    text-align: center;
    margin-top: 2em;
}

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination li {
    display: inline;
}

.pagination-link {
    color: #3498db;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin-left: -1px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: #f1f1f1;
}

.pagination .active a {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .active a:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar li {
        margin: 0 8px;
    }
    
    .post-item {
        padding: 1em;
    }
    
    .page-title {
        font-size: 1.8em;
    }
    
    .post-title {
        font-size: 1.1em;
    }
}