/* Base Styles for .blog Section */
.blog {
    padding: 40px;
    background-color: #f4f4f4;
    text-align: center;
}

.blog h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #092e4a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Use 2 columns for larger post previews */
    gap: 40px; /* Increase gap between posts */
    max-width: 1200px; /* Expand container width */
    margin: 0 auto;
}

.blog-post {
    background-color: #ffffff;
    padding: 40px; /* Increase padding for spacious look */
    border-radius: 12px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    width: 100%; /* Full width in grid */
}

.blog-post img {
    width: 100%;
    height: 250px; /* Increase image height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-post h3 {
    font-size: 2rem; /* Increase title size */
    margin: 20px 0;
    color: #092e4a;
}

.blog-post p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}
.blog-post a {
    text-decoration: none;
    color: #ffa500;
    padding: 8px 10px;
    position: relative; 
    font-weight: bolder;
    transition: color 0.3s;
    font-size: 1.3rem;
}



.blog-post a::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 100%; 
    height: 3px; 
    background-color: #f0963d; 
    transform: scaleX(0); 
    transition: transform 0.3s ease; 
}

.blog-post a:hover::after {
    transform: scaleX(1); 
}

.blog-post:hover {
    transform: scale(1.03);
}

/* Adjustments for mobile screens */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
        gap: 30px;
    }
    .blog-post {
        padding: 25px;
    }
    .blog-post h3 {
        font-size: 1.8rem;
    }
    .blog-post p {
        font-size: 1rem;
    }
}


/* Responsive Styles for Mobile Screens */
@media (max-width: 768px) {
    .blog {
        padding: 20px;
    }

    .blog h2 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
        gap: 20px;
    }

    .blog-post h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog {
        padding: 15px;
    }

    .blog h2 {
        font-size: 1.8rem;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-post h3 {
        font-size: 1.2rem;
    }
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#post-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

#post-date {
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

#post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

#post-content {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.7;
}
