.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 355px), 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.button-small {
    box-sizing: border-box;
    display: flex;
    width: 180px;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #22408f;
    border-radius: 8px;
    cursor: pointer;
}

.button-text {
    width: fit-content;
    font-family: var(--h7-font-family);
    font-weight: var(--h7-font-weight);
    color: #ffffff;
    font-size: var(--h7-font-size);
    letter-spacing: var(--h7-letter-spacing);
    line-height: var(--h7-line-height);
    white-space: nowrap;
    font-style: var(--h7-font-style);
}

.calendar-icon {
    width: 16px;
    height: 16px;
}

.card {
    width: 100%;
    max-width: 355px;
    margin: 0px auto;
    box-shadow: 0px 0px 35px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: grid;
    grid-template-rows: 195px auto;
}

.overlap {
    padding: 24px;
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 0 12px 12px;
    gap: 24px;
}

.frame {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-wrapper {
    font-family: var(--FAQ-headline-font-family);
    font-weight: var(--FAQ-headline-font-weight);
    color: #22408f;
    font-size: 24px;
    line-height: 1.25;
}

.p {
    font-family: var(--p4-font-family);
    font-weight: var(--p4-font-weight);
    color: var(--black);
    font-size: var(--p4-font-size);
    line-clamp: 3;
    line-height: var(--p4-line-height);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
}

.date {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px;
    background-color: var(--green);
    border-radius: 0 4px 0 0;
}

.date-text {
    font-family: var(--p6-font-family);
    font-weight: var(--p6-font-weight);
    color: var(--white);
    font-size: var(--p6-font-size);
    line-height: var(--p6-line-height);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .text-wrapper {
        font-size: 20px;
    }

    .p {
        font-size: 16px;
    }

    .card {
        grid-template-rows: auto auto;
    }

    .img-wrapper {
        height: 100%;
    }
}