@media only screen and (min-width: 0rem) {
    #posts {
        padding: 4rem 8%;
        min-height: 100vh;
    }

    .posts-header {
        text-align: center;
        margin-bottom: 3rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .posts-header .title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #2d3748;
    }

    .posts-header .subtitle {
        font-size: 1.1rem;
        color: #4a5568;
        line-height: 1.6;
    }

    .posts-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .post-card {
        background: #f7f7f7;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .post-image-container {
        position: relative;
        padding-top: 56.25%; /* 16:9 aspect ratio */
        overflow: hidden;
    }

    .post-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .post-title a {
        color: #2d3748;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .post-title a:hover {
        color: #3AC0C7;
    }

    .post-excerpt {
        color: #4a5568;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

@media only screen and (min-width: 48rem) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #posts {
        padding: 4rem 5%;
    }
}

@media only screen and (min-width: 64rem) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .post-title {
        font-size: 1.75rem;
    }
}

@media only screen and (min-width: 80rem) {
    #posts {
        padding: 4rem 8%;
    }
}