#blog-main {
    background-color: #f6f7f8;
    padding: 20px 0;
}

/* Blog Post Styling */
.blog-post {
    background-color: #ffffff; 
    border: 1px solid #e1e4e8; 
    border-radius: 8px; 
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    text-decoration: none;
}

.blog-post img {
    width: 100%; 
    border-radius: 8px 8px 0 0; 
    margin-bottom: 15px;
}

.blog-summary {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-summary.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.see-more-btn {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.blog-content {
    display: none;
}

/* Hover effect */
.blog-post:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; 
}

#loading img {
    width: 50px; 
    height: 50px; 
}

/* Media query for smaller screens */
@media (max-width: 576px) {
    #blog-main {
        padding: 10px 0;
    }
    .blog-post {
        padding: 10px;
        margin-left:-30px;
        margin-right: -30px;
    }
}
