.container {
    background-color: #141414;
    padding: 40px;
    border-radius: 0px;
    width: 90%;
    max-width: 1300px;
    box-sizing: border-box;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid container for all blog items */
.blog-items-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 24px; /* space between cards */
    padding: 20px;
    justify-items: center; /* center cards in each grid cell */
}

/* Individual blog card link (whole card clickable) */
.blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effect */
.blog-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-decoration: none;
}

/* Card content */
.blog-item .compact-container {
    background-color: #1c1c1c;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 360px; /* smaller card width */
    width: 100%;
}

/* Image styling */
.blog-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #2a2a2a;
}

/* Meta info */
.blog-meta {
    padding: 12px 15px;
    text-align: center;
}

/* Text inside card */
.blog-date, .blog-title, .blog-excerpt {
    text-decoration: none;
    color: inherit;
}

.blog-date {
    font-size: 0.8rem;
    color: #7a7a7a;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 0.95rem;
    line-height: 22px;
    font-weight: 500;
    color: #e0e0e0;
    font-weight: bold;
    margin-bottom: 12px;
    margin-left: 18px;
    margin-right: 18px;
}

.blog-excerpt {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-left: 8px;
    margin-right: 8px;
    color: #b5b5b5;
}

@media (max-width: 1024px) {
    .blog-items-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }

    .blog-title {
        font-size: 0.95rem;
    }

    .blog-excerpt {
        font-size: 0.8rem;
    }

    .blog-date {
        font-size: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .blog-items-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }

    .blog-items-container {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 0.93rem;
    }

    .blog-excerpt {
        font-size: 0.75rem;
    }

    .blog-date {
        font-size: 0.7rem;
    }
}
