.single-post {
    margin: 0 auto;
}

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

.featured-image {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.entry-meta span {
    margin: 0 0.5rem;
}

.entry-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: #f8f9fa;
    font-style: italic;
}

.entry-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tags-links {
    margin-bottom: 1rem;
}

.tags-links a {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.tags-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    max-width: 48%;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .single-post {
        padding: 1rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Other Posts Section Styles */
.other-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.other-posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
}

.other-post-teaser {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e9ecef;
    text-decoration: none;
    max-height: 300px;
}

.other-post-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.other-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.other-post-teaser:hover .other-post-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.other-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 60, 51, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.other-post-teaser:hover .other-post-overlay {
    opacity: 1;
}

.other-post-title {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.other-post-teaser:hover .other-post-title {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .other-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .other-posts-grid {
        grid-template-columns: 1fr;
    }
}