body {
    font-family: 'Aptos Display', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
}
#blogs {
    max-width: 80%;
    margin: auto;
    padding: 20px;

}
.blog-container {
    overflow: hidden;
    position: relative;
    max-width: 80%;
    margin: auto;
}
.blog-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.blog-card {
    flex: 0 0 calc(100% / 3 - 20px);
    background: white;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 280px;
}
.blog-card img {
    width: 100%;
    height: auto;
}
.blog-content {
    padding: 15px;
}
.category {
    display: inline-block;
    background: #0b213c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}
.date {
    color: gray;
    font-size: 12px;
}
h3 {
    font-size: 18px;
    margin: 10px 0;
}
.pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 5px;
    background-color: gray;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active {
    background-color: #0b213c;
}

/****** Media Queries for Responsiveness *****/
@media (max-width: 1024px) {
    #blogs {
        margin-top: 490px;
    }
    .blog-card {
        flex: 0 0 calc(100% / 2 - 20px); /* Two cards per row on tablets */
    }
}

@media (max-width: 768px) {
    #blogs {
        margin-top: 490px;
    }
    .blog-card {
        flex: 0 0 calc(100% - 20px); /* One card per row on mobile */
    }

    .blog-wrapper {
        justify-content: flex-start; /* Align cards to the start on mobile */
    }

    .pagination {
        margin-top: 10px; /* Further reduced margin for mobile */
    }
}

@media (max-width: 480px) {
    #blogs {
        max-width: 90%; /* Increase width for smaller screens */
        padding: 10px; /* Reduce padding for smaller screens */
        margin-top: 490px;
    }

    .blog-card {
        margin: 5px; /* Reduce margin for smaller screens */
    }

    h3 {
        font-size: 16px; /* Smaller font size for mobile */
    }
}