/* Container Fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure single-post-content doesn't overflow */
.single-post-content {
    width: 100%;
    box-sizing: border-box;
}

/* Instagram hover state fix */
.instagram:hover {
    background: #E1306C;
    color: white;
    border-color: #E1306C;
}



/* Single Post Styles */
.single-post-page {
    padding: 40px 0;
    background: #f8f9fa;
}

.single-post-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-main {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Header */
.post-header {
    padding: 40px 40px 20px;
}

.post-breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #d32f2f;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.post-categories {
    margin-bottom: 15px;
}

.post-categories a {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-categories a:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d32f2f;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.byline {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
}

.post-date {
    color: #666;
    font-weight: 500;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 500;
}

.time-icon {
    font-size: 14px;
}

/* Post Content */
.post-content {
    padding: 0 40px 40px;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2em 0 1em;
    color: #2c3e50;
    border-left: 4px solid #d32f2f;
    padding-left: 15px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5em 0 0.8em;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content blockquote {
    border-left: 4px solid #d32f2f;
    background: #f8f9fa;
    padding: 20px 30px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
}

.post-content blockquote p {
    margin-bottom: 0;
    font-size: 1.1em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

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

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: #d32f2f;
    text-decoration: underline;
}

.post-content a:hover {
    color: #b71c1c;
}

.page-links {
    margin: 2em 0;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.page-links a:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Post Footer */
.post-footer {
    padding: 0 40px 40px;
}

.post-tags {
    margin-bottom: 30px;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-1px);
}

.post-share {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.post-share h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.email:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 40px;
}

.author-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d32f2f;
}

.author-details {
    flex: 1;
}

.author-details h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.author-details p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.author-posts-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
}

.author-posts-link:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-previous, .nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover, .nav-next:hover {
    background: #ecf0f1;
    transform: translateY(-2px);
}

.nav-previous a, .nav-next a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
}

.nav-previous a::before {
    content: "← ";
    color: #d32f2f;
    font-weight: bold;
}

.nav-next a::after {
    content: " →";
    color: #d32f2f;
    font-weight: bold;
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    display: block;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    margin-bottom: 10px;
}

.related-post-content h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: #d32f2f;
}

.related-post-meta {
    font-size: 14px;
    color: #666;
}

/* Comments */
.post-comments {
    padding: 0 40px 40px;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-post-page {
        padding: 20px 0;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        font-size: 16px !important;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding: 20px 15px;
    }
}