/* Blog Details Section */
.blog-details {
    padding-bottom: 30px;
}

.blog-details .article {
    background-color: var(--surface-color);
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .title {
    color: var(--heading-color);
    font-size: 28px;
    font-weight: 700;
    padding: 0;
    margin: 30px 0;
}

.blog-details .content {
    margin-top: 20px;
}

/* Blog Images */
.blog-img {
    width: 100%;
    height: auto;
    padding: 0;
    max-height: 450px; /* Added a max-height to make the image size appropriate */
    object-fit: cover;
}

.recent-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--surface-color);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-img {
        max-height: 300px; /* Adjusted for smaller screens */
    }

    .recent-img {
        width: 60px;
        height: 60px;
    }

    .sidebar {
        margin-top: 20px; /* Adjust spacing for smaller screens */
    }
}

@media (min-width: 769px) {
    .sidebar {
        position: sticky; /* Ensure sidebar remains fixed as you scroll */
        top: 100px; /* Adjust the top position based on your header height */
    }
}
