/* posts.css */
.posts {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box; /* To not overflow */
}

.post {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.post-text {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-text h3 {
    margin: 0 0 15px 0;
    /* color: #333; */
    font-size: 24px;
    font-family: 'Jost', sans-serif;
}

.post-text p {
    margin: 0;
    /* color: #666; */
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Jost', sans-serif;
}

.post-text p a[href^="#"] {
    color: #1a73e8;
    text-decoration: none;
}

@media (min-width: 769px) {
    .posts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 40px auto;
    }

    .post {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .posts {
        padding: 10px;
    }

    .post {
        width: 100%;
    }

    .post img {
        height: 200px;
    }

    .post-text {
        padding: 20px;
    }

    .post-text h3 {
        font-size: 20px;
    }

    .post-text p {
        font-size: 14px;
    }
}