@media only screen and (min-width: 0rem) {
    #posts {
        padding: 3rem 2rem;
        max-width: 62rem;
        margin: 0 auto;
        background-color: #fff;
    }

    #posts h1.title {
        font-size: 2.2rem;
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 2rem;
    }

    #posts ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #posts li {
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 12px;
        overflow: hidden;
        transition: box-shadow 0.25s ease, transform 0.2s ease;
        padding: 0;
        margin: 0;
    }

    #posts li:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .post-image-container {
        width: 100%;
        height: 380px;
        overflow: hidden;
    }


    .post-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0;
        border-radius: 0;
    }

    .post-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #posts li h2 {
        margin: 0 0 0.75rem 0;
        padding: 0;
    }

    #posts h2 a {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--secondary);
        text-decoration: none;
        line-height: 1.3;
        transition: color 0.2s ease;
    }

    #posts h2 a:hover {
        color: #5a3ca0;
        text-decoration: none;
    }

    #posts .post-content p {
        padding: 0;
        margin: 0 0 1.25rem 0;
        font-size: 1.1rem;
        line-height: 1.65;
        color: #555;
    }

    .read-more {
        display: inline-block;
        padding: 0.75rem 2.25rem;
        background-color: var(--secondary);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-size: 1.15rem;
        font-weight: 600;
        transition: background-color 0.2s ease, transform 0.15s ease;
    }

    .read-more:hover {
        background-color: #5a3ca0;
        transform: translateY(-1px);
        text-decoration: none;
    }
}

@media only screen and (max-width: 63.9375rem) {
    #posts {
        padding: 2rem 1.25rem;
    }

    #posts h1.title {
        font-size: 1.75rem;
    }

    .post-image-container {
        height: 260px;
    }

    #posts h2 a {
        font-size: 1.25rem;
    }
}