/* Single Post Styles */

/* Featured Image - กว้างเต็ม 1200px */
.post-featured-image-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

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

/* Content Container - กว้าง 1200px อยู่ตรงกลาง */
.post-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-content-wrapper {
    background: white;
    padding: 40px 0;
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.post-meta > * {
    margin: 0 10px;
}

.post-meta a {
    color: #007cba;
    text-decoration: none;
}

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

.post-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.post-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.post-content h2 {
    font-size: 28px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content h4 {
    font-size: 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 4px solid #007cba;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

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

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.post-tags a:hover {
    background: #007cba;
    color: white;
}

/* Social Share */
.social-share {
    text-align: center;
}

.social-share h4 {
    margin-bottom: 20px;
    color: #333;
}

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

.share-buttons a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-line {
    background: #00b900;
}

.share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Posts Container - กว้าง 1200px อยู่ตรงกลาง */
.related-posts-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-posts-wrapper {
    background: #f8f9fa;
    padding: 50px 20px;
    border-radius: 10px;
}

.related-posts-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

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

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

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

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

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


/* Responsive Design */
@media (max-width: 1200px) {
    .post-content-container,
    .related-posts-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .post-content-wrapper {
        padding: 30px 0;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-excerpt {
        font-size: 16px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .share-buttons a {
        width: 200px;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts-wrapper {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .post-content-container,
    .related-posts-container {
        padding: 0 10px;
    }
    
    .post-content-wrapper {
        padding: 20px 0;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-header {
        margin-bottom: 30px;
    }
    
    .post-meta > * {
        display: block;
        margin: 5px 0;
    }
    
    .related-posts-wrapper {
        padding: 20px 10px;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
}
