.posts-post-nav img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
    overflow: hidden;
}

.posts-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    padding-right: 16px;
    padding-left: 16px;
}

.posts-post-nav {
    margin-bottom: 32px;
}

.posts-post-nav .menu {
    padding: 16px 0;
    display: flex;
    border-bottom: 1px solid #f2f0f5;
}

.posts-post-nav .menu .item {
    flex-grow: 1;
    text-align: center;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    color: var(--e-global-color-text);
    padding: 8px 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 150ms ease;
}

.posts-post-nav .menu .item:not(:last-child) {
    border-right: 1px solid #f2f0f5;
}

.posts-post-nav .menu .item.active {
    color: var(--e-global-color-secondary);
    pointer-events: none;
}

.posts-post-card {
    position: relative;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posts-post-card .image {
    display: block;
    position: relative;
    overflow: hidden;
}

.posts-post-card .image::before {
    display: block;
    float: left;
    padding-top: 70%;
    content: "";
}

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

.posts-post-card .image.no-image {
    background-color: #f5f5f5;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.posts-container .bg-purple-100 {
    background-color: var(--e-global-color-secondary);
}

.posts-tag {
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
}

.posts-post-card .content {
    flex: 1;
    padding: 24px 0;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
}

.posts-post-card .content .data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.posts-post-card .content .data .category {
    display: flex;
    gap: 4px;
}

.posts-post-card .content .title {
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
}

.posts-post-card .content .text {
    margin-bottom: 16px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.posts-btn {
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    height: 40px;
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: var(--e-global-color-text);
    background: transparent;
    margin-top: auto;
}

.posts-btn:after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.75 12.75L12.75 5.25L5.25 5.25' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.25 12.75L12.75 5.25' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 150ms ease;
}

.posts-btn:hover:after {
    transform: translateX(2px);
}

.posts-post-card.is-main {
    flex-direction: row;
    align-items: center;
    margin-bottom: 32px;
    gap: 128px;
}

.posts-post-card.is-main .image {
    flex-shrink: 0;
    border-radius: 16px;
    width: 50%;
}

.posts-post-card.is-main .image::before {
    padding-top: 110%;
}

.posts-post-card.is-main .image.no-image {
    min-height: 400px;
}

.posts-post-card.is-main .content .title {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -0.96px;
}

.posts-post-card.is-main .content .text {
    margin-top: 16px;
}

.posts-container .posts-post-card img {
    border-radius: 16px;
}

.posts-container .grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    flex-wrap: wrap;
    margin: -12px;
}

.posts-container .grid-row>* {
    padding: 12px;
}

@media (max-width: 991.98px) {
    .posts-container .grid-row {
        grid-template-columns: 1fr 1fr;
    }
    .posts-post-nav .menu .item {
        border: 1px solid #f2f0f5;
    }
    .posts-post-nav .menu {
        display: grid;
        gap: 24px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .posts-post-card.is-main .content .title {
        font-size: 34px;
        line-height: 34px;
    }
}

@media (max-width: 767.98px) {
    .posts-container .grid-row {
        grid-template-columns: 1fr;
    }
    .posts-post-nav .menu {
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        flex-wrap: wrap;
    }
    .posts-post-card.is-main {
        flex-direction: column;
        gap: 24px;
    }
    .posts-post-card.is-main .image {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .posts-post-nav .menu {
        grid-template-columns: 1fr;
    }
    .posts-container h3 {
        font-size: 24px;
    }
    .posts-container {
        max-width: 100%;
    }
}
