/* Base styles for all devices */

.blog-section {
    display: flex;
    flex-wrap: wrap;
    /* Enables wrapping on small screens */
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.blog-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: 100%;
    /* Full width on mobile by default */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 15px;
    text-align: center;
}

.blog-title {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #333;
}

.blog-description {
    font-size: 1rem;
    color: #555;
}

.read-more-btn {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #0056b3;
}

/* Media queries for responsive design */

/* Tablets (768px and above) */

@media (min-width: 768px) {
    .blog-item {
        flex-basis: 48%;
        /* Two items per row on tablets */
    }
}

/* Desktops (1024px and above) */

@media (min-width: 1024px) {
    .blog-item {
        flex-basis: 30%;
        /* Three items per row on desktops */
    }
}