/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f4f4;
    color: #333;
}

/* Container for Blogs */
.blog-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

/* Title of the Blog Section */
.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

/* Blog List (Display vertically) */
.blog-list {
    display: block;
}

/* Individual Blog Card */
.blog-card {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 30px; /* Added space between blog cards */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Banner Image (Top of the Card) */
.blog-banner {
    width: 100%;
    height: 450px; /* Fixed height for all images */
    overflow: hidden;
}

.blog-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

/* Blog Content inside Card */
.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.short-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    text-decoration: none;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container h1 {
        font-size: 2rem;
    }

    .blog-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .blog-container h1 {
        font-size: 1.6rem;
    }

    .blog-card {
        box-shadow: none;
    }

    .short-description {
        font-size: 1rem;
    }

    .read-more {
        padding: 8px 12px;
    }
}
