/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

h1 {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.blog-card-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-card-footer {
    font-size: 14px;
    color: #888;
    text-align: right;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.blog-card.featured {
    grid-column: span 2;
    grid-row: span 1; /* Reduce vertical span */
    max-height: 500px; /* Limit height */
    display: flex;
    flex-direction: column;
}

.blog-card.featured img {
    height: 250px; /* Adjust image height */
    object-fit: cover;
}

.blog-card-content {
    flex-grow: 1;
    padding: 15px;
    overflow: hidden; /* To avoid content overflow */
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .blog-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-card-description {
        font-size: 14px;
    }
}
