/****************************/
/* RECENT FEATURED PAGE     */
/****************************/

.recent-featured-page {
    padding-block: 56px 80px;
    background-color: #1d8b8b; /*f8fbfb*/
    background-color: red;
}

.recent-featured-page .tebarato-container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
    background-color: burlywood;
}

.recent-featured-page__header {
    max-width: 780px;
    margin-bottom: 40px;
}

.recent-featured-page__title {
    margin: 0 0 14px;
    color: #263247;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.recent-featured-page__introduction {
    margin: 0;
    color: #5c6678;
    font-size: 1.08rem;
    line-height: 1.7;
}

/*****************************************/
/**********CONTENT WRAPPER ***************/

.tebarato-recent-featured-page-content__wrapper {
    display: grid;
    grid-template-columns: 55fr 45fr;
    max-width: 1180px;
    width:100%;
    margin: 0 auto;
    height: auto;
    column-gap: 20px;

}

.recent-featured-page__left-pane{
    min-width: 0;
    width: calc(100% - 20px);
}

.recent-featured-page__right-pane{
    min-width: 0;
    width: calc(100%-40px);
    border: #00ccff;
    border-right: 1px;
    border-left: 1px;

    background: #495353;
}

/****************************/
/* ARTICLE LIST             */
/****************************/
.recent-featured-list {
    display: grid;
    gap: 22px;
    /* max-width: 1180px; */
}



.recent-featured-card {
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgb(38 50 71 / 6%);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.recent-featured-card:hover {
    border-color: #acd3d0;
    box-shadow: 0 16px 34px rgb(38 50 71 / 11%);
    transform: translateY(-2px);
}

.recent-featured-card__link {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 170px;
    color: inherit;
    text-decoration: none;
}

.recent-featured-card__image {
    overflow: hidden;
    min-height: 170px;
    background-color: #eaf4f3;
}

.recent-featured-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.recent-featured-card:hover .recent-featured-card__image img {
    transform: scale(1.035);
}

.recent-featured-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    background-image: linear-gradient(
        135deg,
        #007a74 0%,
        #43b3ae 100%
    );
}

.recent-featured-card__content {
    align-self: center;
    padding: 26px 32px;
}

.recent-featured-card__title {
    margin: 0 0 12px;
    color: #263247;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.3;
}

.recent-featured-card__answer {
    color: #5c6678;
    font-size: 1rem;
    line-height: 1.65;
}

.recent-featured-card__answer p {
    margin: 0;
}

.recent-featured-card__link:hover .recent-featured-card__title,
.recent-featured-card__link:focus-visible .recent-featured-card__title {
    color: #007a74;
    text-decoration: underline;
}

.recent-featured-card__link:focus-visible {
    outline: 3px solid #00ccff;
    outline-offset: -3px;
}

/****************************/
/* PAGINATION               */
/****************************/

.recent-featured-pagination {
    margin-top: 40px;
}

.recent-featured-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-featured-pagination a,
.recent-featured-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #b9cfcd;
    border-radius: 7px;
    text-decoration: none;
}

.recent-featured-pagination a {
    color: #007a74;
    background-color: #ffffff;
}

.recent-featured-pagination .current {
    color: #ffffff;
    background-color: #007a74;
    border-color: #007a74;
}

.recent-featured-page__empty {
    max-width: 760px;
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #dce5ea;
    border-radius: 14px;
}

.recent-featured-page__empty h2 {
    margin-top: 0;
    color: #263247;
    font-family: "Poppins", sans-serif;
}

/****************************/
/* RESPONSIVE               */
/****************************/

@media (max-width: 700px) {
    .recent-featured-page {
        padding-block: 40px 60px;
    }

    .recent-featured-page .tebarato-container {
        width: min(100% - 32px, 1180px);
    }

    .recent-featured-card__link {
        grid-template-columns: 130px minmax(0, 1fr);
        min-height: 150px;
    }

    .recent-featured-card__image,
    .recent-featured-card__placeholder {
        min-height: 150px;
    }

    .recent-featured-card__content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .recent-featured-page .tebarato-container {
        width: min(100% - 24px, 1180px);
    }

    .recent-featured-card__link {
        grid-template-columns: 105px minmax(0, 1fr);
        min-height: 132px;
    }

    .recent-featured-card__image,
    .recent-featured-card__placeholder {
        min-height: 132px;
    }

    .recent-featured-card__content {
        padding: 16px;
    }

    .recent-featured-card__answer {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        -webkit-line-clamp: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recent-featured-card,
    .recent-featured-card__image img {
        transition: none;
    }
}