.sec-posts {
    max-width: var(--width-c);
    margin: 0 auto;
    padding: 5rem var(--space-x) 0;
}

.sec-posts__main {
    flex: 1;
}

.sec-posts__head {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sec-posts__head-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: center;
}

.sec-posts__title {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.sec-posts__desc {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #697F8D;
}


.sec-posts__wrapper {
    position: relative;
}



.sec-posts__item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sec-posts__img-wrap {
    width: 100%;
    aspect-ratio: 9 / 5;
    overflow: hidden;
    background: #EBEFF7;
    flex-shrink: 0;
}

.sec-posts__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sec-posts__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    margin-top: 2rem;
}

.sec-posts__item-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.sec-posts__item-title:hover {
    color: var(--c-primary);
}

.sec-posts__excerpt {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #697F8D;
}

.sec-posts__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #697F8D;
    margin-top: auto;
    transition: all 0.3s ease;
}

.sec-posts__read-more i {
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #000;
}

.sec-posts__read-more:hover {
    color: #000;
}

.sec-posts__read-more:hover i {
    transform: translateX(0.5rem);
    color: var(--c-primary);
}

.sec-posts__sidebar {
    display: none;
}

.sec-posts__main .btn--mobile {
    width: 100%;
    margin-top: 2rem;
}

.sec-posts__wrapper .swiper-slide {
    width: 37rem;
}

.footer-wrapper {
    padding-top: 6rem;
}

@media (width >=1024px) {
    .footer-wrapper {
        padding-top: 10rem;
    }

    .sec-posts {
        padding: 12rem var(--space-x) 0;
    }

    .sec-posts__head-left {
        align-items: start;
        text-align: left;
    }

    .sec-posts__head {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
        margin-bottom: 3.4rem;
    }

    .sec-posts__title {
        font-size: 3.2rem;
    }

    .sec-posts__grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 3.5rem;
        padding-bottom: 0;
    }

    .sec-posts__item {
        flex-direction: row;
        gap: 2rem;
    }

    .sec-posts__img-wrap {
        width: 32.9rem;
    }

    .sec-posts__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0;
        margin-top: 0;
    }

    .sec-posts__item-title {
        font-size: 2.2rem;
    }

    .sec-posts__excerpt {
        font-size: 1.6rem;
    }

    .sec-posts {
        display: flex;
        gap: 3.2rem;
    }


}

@media (width >=1280px) {
    .sec-posts__sidebar {
        display: flex;
        width: 26rem;
        flex: none;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .sec-posts__sidebar-bg img {
        width: 100%;
        height: 100%;
        /* object-fit: cover; */
    }

    .sec-posts__sidebar-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        aspect-ratio: 1 / 1;
        height: 110%;
        transform: translate(-50%, -50%);
        animation: spin 50s linear infinite;
    }

    @keyframes spin {
        from {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .sec-posts__sidebar-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        font-size: 4rem;
        font-weight: bold;
        color: #fff;
        letter-spacing: 1rem;
        position: relative;
        z-index: 2;
    }

}