/* Container to center content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Arial', sans-serif;
   
}
img{
    max-width: 90%;
    /* Make images responsive */
    height: auto;
    display: block;
    
}

/* Like Button */
.like-button {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s ease-in-out;
    color: #555;
    padding: 0;
}

.like-button.liked {
    color: #e74c3c; /* Red when liked */
    transform: scale(1.2);
}

.like-button:hover {
    transform: scale(1.1);
}

.like-count {
    margin-left: 10px;
    font-size: 1.1rem;
    color: #555;
}

/* User Profile Section */
.user {

    margin-bottom: 20px;
}

.profile-image {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Blog Post Styling */
.blog-post {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Blog Title */
.blog-title {
    font-size: 2.4em;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.3;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}



/* Blog Content */
.blog-content {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    padding: 20px 0;
    text-align: justify;
    text-justify: inter-word;
}

/* Blog Footer Styling */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.view-count {
    font-size: 1.1em;
    color: #7f8c8d;
    font-weight: 600;
}

.view-count-icon {
    margin-right: 5px;
}

/* Author Info Styling */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 25px;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.submission-time {
    margin: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Blog Divider */
.blog-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Related Post Title */
.related-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

/* Next Post Link */
.next-post-link {
    display: block;
    font-size: 1.3rem;
    color: #3498db;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.next-post-link:hover {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .blog-post {
        padding: 15px;
    }

    .blog-title {
        font-size: 1.8em;
    }

    .author-info {
        
        align-items: center;
        text-align: center;
    }

    .author-img {
       margin: 8px;
    }

    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-count {
        margin-bottom: 10px;
    }

    .next-post-link {
        width: 100%;
        text-align: center;
    }
}

