/* Blog post page specific styles */
.post-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-category a {
    display: inline-block;
    background-color: #ff5a5f;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-decoration: none;
}

.post-hero-content h1 {
    font-size: 42px;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

/* Single post container */
.single-post-container {
    margin-top: 0;
    padding-top: 50px;
    background-color: #f9f9f9;
}

.single-post-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Post content styles */
.post-content {
    line-height: 1.8;
    color: #333;
    font-size: 18px;
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid #ff5a5f;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

/* Author box */
.post-author {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.author-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    margin-top: 50px;
}

.related-posts h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5a5f;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h3 a:hover {
    color: #ff5a5f;
}

.related-post-content .date {
    font-size: 12px;
    color: #999;
}

/* Active state for sidebar items */
.categories-widget li.active a {
    color: #ff5a5f;
    font-weight: 600;
}

.recent-posts-widget li.active h4 a {
    color: #ff5a5f;
    font-weight: 600;
}

/* Not found page */
.not-found-container {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.not-found-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.not-found-content h2 {
    margin-bottom: 20px;
}

.not-found-content p {
    margin-bottom: 30px;
    color: #666;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff5a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e03e43;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .post-hero-content h1 {
        font-size: 36px;
    }
    
    .single-post-content {
        padding: 30px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .post-hero-section {
        padding: 80px 0;
    }
    
    .post-hero-content h1 {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 0 15px 0;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .post-hero-content h1 {
        font-size: 24px;
    }
    
    .single-post-content {
        padding: 20px;
    }
}