@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

#blog {
    padding: 8vw 8vw 0 8vw;
    text-align: center;
    background-color: #ffffff;
}

#blog h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #545454;
    letter-spacing: 1px;
}

#blog p {
    font-size: 1.5rem;
    margin-top: 20px;
    letter-spacing: 1px;
    color: #545454;
}

.blog-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 2.5rem;
    margin-top: 50px;
    margin-bottom: 40px;
}

.blog-post {
    background: #f9f9ff;
    text-align: start;
    transition: 0.3s ease;
}

.blog-post:hover {
    transform: scale(1.15);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-position: center;
}

.blog-post .details {
    padding: 15px;
    line-height: 30px;
}

.blog-post .details span {
    font-size: 0.9rem;
    color: #545454;
}

.blog-post .details h6 {
    font-size: 1.1rem;
    color: #545454;
    font-weight: 600;
}

.blog-post .details p {
    font-size: 1rem;
    color: #545454;
    margin: 10px 0;
}

.blog-post .read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #424067;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}

.blog-post .read-more:hover {
    background-color: #a138ef;
}

/* Responsive Design */
@media (max-width: 769px) {
    #blog {
        padding: 8vw 4vw 0 4vw;
    }

    #blog h1 {
        font-size: 2.5rem;
    }

    #blog p {
        font-size: 1.3rem;
    }
}

@media (max-width: 475px) {
    #blog {
        padding: 8vw 4vw 0 4vw;
    }

    #blog h1 {
        font-size: 2rem;
    }

    #blog p {
        font-size: 1.2rem;
    }

    .blog-post img {
        height: 150px;
    }

    .blog-post .details h6 {
        font-size: 1rem;
    }

    .blog-post .details p {
        font-size: 0.9rem;
    }
}