/* static/css/blog_detail.css */

.blog-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.main-content {
    flex: 1;
    min-width: 65%;
}

.sidebar {
    flex: 1;
    min-width: 30%;
    max-width: 350px;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2238;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.category-link:hover {
    text-decoration: underline;
}

.featured-image-container {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.post-content p {
    margin-bottom: 1.5em;
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px; /* Makes the sidebar stick when scrolling */
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2238;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.suggested-post-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggested-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.suggested-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.placeholder-image-small {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 24px;
    flex-shrink: 0;
}

.suggested-post-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a2238;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-detail-container {
        flex-direction: column;
    }
    .sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }
}
.post-gallery {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a2238;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}