/* Blog Section */
.blog {
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
    margin-top: 200px;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.blog-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.blog-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0077cc;
}

.blog-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.blog-item a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-item a:hover {
    color: #005fa3;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog h2 {
        font-size: 1.8rem;
    }

    .blog-item h3 {
        font-size: 1.3rem;
    }

    .blog-item p {
        font-size: 0.95rem;
    }

    .blog-item a {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .blog h2 {
        font-size: 1.5rem;
    }

    .blog-container {
        grid-template-columns: 1fr; /* Single column for small screens */
    }
}
