/* Section Headings */
#blogs-heading {
    text-align: center;
    font-size: 1.172rem; /* Reduced from 1.563rem */
    color: var(--secondary-color);
    margin: 0.938rem 0; /* Reduced from 1.25rem */
}

/* Projects Container */
.blogs-container {
    display: flex;
    padding: 0.938rem; /* Reduced from 1.25rem */
    gap: 0.938rem; /* Reduced from 1.25rem */
    flex-direction: column;
}




/* Project List Container */
#blog-list-container {
    flex-grow: 1;
    transition: margin-left 0.3s ease;
}

/* Project Grid Layout */
#blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.063rem, 1fr)); /* Reduced from 18.75rem */
    gap: 0.938rem; /* Reduced from 1.25rem */
    padding: 0.938rem; /* Reduced from 1.25rem */
}

/* Project Card */
.blog-card {
    background-color: var(--navbar-bg-color);
    border-radius: 0.469rem; /* Reduced from 0.625rem */
    padding: 0.938rem; /* Reduced from 1.25rem */
    box-shadow: 0 0.188rem 0.375rem rgba(0, 0, 0, 0.2); /* Reduced from 0.25rem 0.5rem */
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28rem; /* Reduced from 37.5rem */
    opacity: 0;
    transform: translateY(-9.375rem); /* Reduced from -12.5rem */
    transition: opacity 0.5s ease, transform 1.0s ease;
}

/* When in view */
.blog-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.blog-card .date {
    font-size: 0.75rem; /* Reduced from 0.563rem */
    font-weight: bold;
    background-color: var(--list-color);
    color: var(--secondary-color);
    padding: 0.234rem 0.563rem; /* Reduced from 0.313rem 0.75rem */
    border-radius: 0.375rem; /* Reduced from 0.5rem */
    display: inline-block;
    margin: 0.469rem; /* Reduced from 0.625rem */
    box-shadow: 0 0.094rem 0.188rem rgba(0, 0, 0, 0.1); /* Reduced from 0.125rem 0.25rem */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-card p.desc {
    flex-grow: 1;
    font-size: 0.75rem;
}

/* Consistent Tag List Placement */
.blog-card .tag-list {
    margin-top: auto;
}

/* Hover Effects */
.blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0.281rem 0.563rem rgba(0, 0, 0, 0.3); /* Reduced from 0.375rem 0.75rem */
}

.blog-card img {
    width: 100%;
    height: 9.375rem; /* Reduced from 12.5rem */
    object-fit: cover;
    border-radius: 0.234rem; /* Reduced from 0.313rem */
    margin-bottom: 0.703rem; /* Reduced from 0.938rem */
}

/* Project Title and Description */
.blog-card h2 {
    font-size: 0.9rem; /* Reduced from 0.938rem */
    font-weight: bold;
    margin: 0 0 0.469rem 0; /* Reduced from 0.625rem */
    flex-grow: 1;
}

/* Responsive Design for Mobile */
@media (max-width: 36rem) { /* Reduced from 48rem */
    #blog-list {
        grid-template-columns: repeat(auto-fit, minmax(11.719rem, 1fr)); /* Reduced from 15.625rem */
    }

    .tag-list li {
        font-size: 0.563rem; /* Reduced from 0.75rem */
        padding: 0.188rem 0.469rem; /* Reduced from 0.25rem 0.625rem */
    }

    .blog-card .date {
        font-size: 0.375rem; /* Reduced from 0.5rem */
        padding: 0.188rem 0.469rem; /* Reduced from 0.25rem 0.625rem */
    }

}
