.iwater-topic-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.iwater-topic-post-card {
    overflow: hidden;
    border-radius: 1em;
    background: #fff;
    border: 1px solid rgba(6, 38, 55, 0.08);
}

.iwater-topic-post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.iwater-topic-post-card__link:hover {
    text-decoration: none;
}

.iwater-topic-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.iwater-topic-post-card__content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.iwater-topic-post-card__text-wrap {
    min-width: 0;
}

.iwater-topic-post-card__title {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.25;
    color: var(--global-palette3);
}

.iwater-topic-post-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--global-palette5);
}

.iwater-topic-post-card__arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--global-palette3);
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.iwater-topic-post-card__arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

.iwater-topic-post-card__link:hover .iwater-topic-post-card__arrow {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .iwater-topic-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .iwater-topic-posts {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .iwater-topic-post-card__content {
        padding: 18px;
    }

    .iwater-topic-post-card__title {
        font-size: 18px;
    }

    .iwater-topic-post-card__text {
        font-size: 14px;
    }
}