/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

/* Blog Container */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Blog Title */
.blog-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px;
}

/* Blog Text */
.blog-text {
    padding: 0 15px;
    color: #555;
}

/* Read More Button */
.read-more {
    display: block;
    text-align: center;
    background: #007bff;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    margin: 15px;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.read-more:hover {
    background: #0056b3;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
