/* Post Styles for Redesigned Posts */

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Inline Images */
.inline-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Image Captions */
.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* Fun Fact Boxes */
.fun-fact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #3498db;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.fun-fact strong {
    color: #2c3e50;
}

/* Conclusion */
.conclusion {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 1.1rem;
    line-height: 1.7;
    border-left: 4px solid #27ae60;
}

/* Post content improvements */
.post-content h2 {
    color: #2c3e50;
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.post-content p {
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 32px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #f0f7ff;
}

/* =============================================
   Breadcrumb Navigation
   ============================================= */
.breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    padding: 8px 0;
}

.breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #374151;
}

/* =============================================
   Related Posts Grid
   ============================================= */
.related-posts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.related-card {
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #fff;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.related-card span {
    display: block;
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}

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

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .related-card img {
        height: 90px;
    }
}

/* =============================================
   Social Share Buttons
   ============================================= */
.share-buttons {
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.share-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
    margin-right: 4px;
}

.share-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s, transform 0.15s;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

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

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

.share-reddit {
    background: #ff4500;
}

.share-pinterest {
    background: #e60023;
}

@media (max-width: 480px) {
    .share-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}
