/* General Layout for Blog and Related Articles */
.blog-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Related Articles Section Styling */
.related-articles {
    width: 19%;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.related {
    padding: 10px;
    border-radius: 5px;
    background-color: #e5e5e5;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related:hover {
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1); /* Inset shadow */
    background-color: #dedddd;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.related-articles ul {
    list-style-type: none;
    padding: 0;
}

.related-articles ul li {
    margin-bottom: 10px;
}

.related-articles ul li a {
    color: #2c2c2c;
    text-decoration: none;
}

.related-articles ul li a:hover {
    text-decoration: underline;
}

/* Blog Container */
.blog-container {
    width: 70%;
    display: block;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    margin-top: 50px;
}

/* Blog Content Styling */
.blog-date {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgb(43, 43, 43);
    margin-bottom: 10px;
}

.blog-title {
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    font-family: "Playfair Display", serif;
    color: #2c2c2c;
}

.blog-content {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #3c3c3c;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Blog Image */
.blog-img {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.blog-img img {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
}

.blog-author {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #555;
    text-align: right; /* Adjust alignment as needed */
    margin-top: 10px; /* Adds space above author's name */
    margin-bottom: 20px; /* Adds space after author's name */
}


/* Mobile Responsiveness */
@media screen and (max-width: 1024px) {
    .blog-layout {
        flex-direction: column-reverse; /* Show related articles after blog content */
        align-items: center;
    }

    .related-articles {
        width: 90%; 
        margin-bottom: 20px; 
    }

    .blog-container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .blog-container{
        width: 80%;
    }
    .blog-title {
        font-size: 2rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-img img {
        max-width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .related-articles {
        padding: 15px;
        box-shadow: none;
    }

    .related-articles h3 {
        font-size: 1.2rem;
    }

    .related-articles ul li a {
        font-size: 0.9rem;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-content {
        font-size: 0.95rem;
    }

    .blog-img img {
        width: 100%; /* Full width for small screens */
    }

    .blog-author {
        font-size: 0.9rem;
    }
}
