/* blog.css */

.blog-intro {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #e8f4fa; /* Light background */
}

.blog-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-posts {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease; /* Add a hover effect */
}

.blog-post:hover {
     transform: translateY(-5px); /* Lift the card slightly on hover */
}

.blog-post h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #02478c;
}
.blog-post a{
    color: inherit; /* Inherit color from parent */
}
.blog-post p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
}

.blog-post img {
    width: 120px;
    height: 120px; /* Set a consistent height for the images */
    /* object-fit: cover; Ensure images cover the space */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.article-content {
    display: none; /* Initially hide the full article content */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.article-content ul{
    list-style-type: disc;
    margin-left: 20px;
}
.article-content h3{
    font-size: 1.75rem;
}