/* =========================================
   FEED
========================================= */

.feed-section {
    width: 100%;
    padding: 40px 20px;
}

.feed-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================
   CARD
========================================= */

.feed-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 48px;

    width: 100%;
    min-height: 490px;

    padding: 48px;

    margin-bottom: 30px;

    box-sizing: border-box;

    background: #fff;

    border-radius: 30px;

    overflow: hidden;

    animation: feedCardIn .5s ease both;
}


/* =========================================
   ALTERNÂNCIA
========================================= */

/*
 * CARD ÍMPAR
 * imagem esquerda
 * texto direita
 */

.feed-card:nth-child(odd) .feed-image {
    order: 1;
}

.feed-card:nth-child(odd) .feed-content {
    order: 2;
}


/*
 * CARD PAR
 * texto esquerda
 * imagem direita
 */

.feed-card:nth-child(even) .feed-image {
    order: 2;
}

.feed-card:nth-child(even) .feed-content {
    order: 1;
}


/* =========================================
   IMAGEM
========================================= */

.feed-image {
    width: 100%;
    height: 395px;

    overflow: hidden;

    border-radius: 24px;

    background: #eee;
}

.feed-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}




/* =========================================
   CONTEÚDO
========================================= */

.feed-content {
    width: 100%;
}

.feed-title {
    margin: 0 0 14px;

    font-size: clamp(24px, 2vw, 30px);

    line-height: 1.2;

    font-weight: 700;

    color: #080808;
}

.feed-text {
    margin: 0 0 18px;

    font-size: 17px;

    line-height: 1.55;

    color: #171717;
}

.feed-list {
    list-style: none;

    padding: 0;

    margin: 20px 0 0;
}

.feed-list li {
    position: relative;

    padding: 11px 0 11px 22px;

    font-size: 16px;

    line-height: 1.4;

    color: #171717;

    border-bottom: 1px dashed #e5e5e5;
}

.feed-list li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #183bb7;
}


/* =========================================
   BOTÃO
========================================= */

.feed-more {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    padding: 16px 24px;

    border: 0;

    border-radius: 14px;

    background: #183bb7;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease;
}

.feed-more:hover {
    background: #102d91;

    transform: translateY(-2px);
}

.feed-more-icon {
    font-size: 20px;

    transition: transform .25s ease;
}

.feed-more.active .feed-more-icon {
    transform: rotate(180deg);
}


/* =========================================
   ANIMAÇÃO
========================================= */

@keyframes feedCardIn {

    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .feed-section {
        padding: 20px 14px;
    }


    .feed-card {

        grid-template-columns: 1fr;

        gap: 24px;

        min-height: auto;

        padding: 20px;

        border-radius: 22px;

    }


    /*
     * No mobile:
     * imagem sempre primeiro
     */

    .feed-card:nth-child(n) .feed-image {
        order: 1;
    }

    .feed-card:nth-child(n) .feed-content {
        order: 2;
    }


    .feed-image {
        height: 280px;

        border-radius: 18px;
    }


    .feed-title {
        font-size: 23px;
    }


    .feed-text {
        font-size: 15px;
    }


    .feed-list li {
        font-size: 14px;
    }

}