/* =========================
   ALL RECIPES PAGE
========================= */

.recipes-page {
    width: 100%;
    padding: 2rem 6vw;
    box-sizing: border-box;
    background: #ffffff;
}

.recipes-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.recipes-header {
    display: grid;
    grid-template-columns: 2fr 2.8fr 1.30fr;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.recipes-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recipes-title-area-heading {
    font-family: CocoSharp XL;
    font-weight: 800;
    font-style: Italic;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #06543D;

}

.recipes-back-button {
    text-decoration: none;
    font-size: 28px;
    color: #222;
    line-height: 1;
}


/* =========================
   SORT
========================= */

.recipes-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: CocoSharp XL;
    font-weight: 700;
    font-style: Bold;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #5DD37C;
}

.recipes-sort label {
    font-weight: 700;
    font-size: 14px;
}

.recipes-sort select {
    border: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    font-family: CocoSharp XL;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #5DD37C;
    padding: 10px 10px;
    width: unset;
    text-decoration: underline;
}


/* =========================
   GRID
========================= */

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 3rem;
}


/* =========================
   CARD
========================= */

.recipe-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 3.39px 11.03px 0px #00000040;
    border: 1px solid #eeeeee;
    transition: transform 0.2s ease;
    padding: 10px;
}

.recipe-card:hover {
    transform: translateY(-2px);
}


/* =========================
   IMAGE
========================= */

.recipe-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.25 / .95;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.recipe-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #777777;
}


/* =========================
   PLAY BUTTON
========================= */

.recipe-play-button {
    /* position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 42px;
    height: 42px;

    border: 1px solid #ffffff;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.25);

    color: #ffffff;

    cursor: pointer;

    font-size: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 3px; */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: 1px solid hsla(0, 0%, 100%, .8);
    border-radius: 50%;
    color: #fff;
    font-size: 8px;
    padding-left: 1px;
    cursor: pointer;
}

.recipe-play-button:hover {
    background: rgba(0, 0, 0, 0.5);
}


/* =========================
   CONTENT
========================= */

.recipe-content {
    padding: 10px 0px 0px;
}

.recipe-title {
    margin: 0 0 10px;

    font-size: 18px;
    line-height: 120%;

    font-weight: 800;
    min-height: 2.7rem;
}
.recipe-title a{
    color: #06543D;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-meta {
    display: flex;
    gap: 10px;
    font-weight: 400;
    line-height: 120%;
    font-size: 10px;
    color: #808080;
    margin-bottom: 1rem;
}

.circle_recipe-meta{
    line-height: 100%;
}

.recipe-description {
    color: #808080;
    min-height: 31px;
    margin-bottom: 8px;
    font-family: CocoSharp XL;
    font-weight: 400;
    font-style: Regular;
    font-size: 14.96px;
    line-height: 120%;
    letter-spacing: 0%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
        min-height: 2.3rem;
    height:unset;

}

.recipe-read-button {
    display: inline-block;

    color: #5DD37C;


    font-size: 15px;
    font-weight: 700;

    text-decoration: underline;

    cursor: pointer;
}

.recipe-read-button:hover {
    text-decoration: underline;
}

.recipe-read-disabled {
    opacity: 0.5;
    cursor: default;
}


/* =========================
   VIDEO MODAL
========================= */

.recipe-video-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;
}

.recipe-video-modal.active {
    display: flex;
}

.recipe-video-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
}

.recipe-video-container {
    position: relative;
    width: 100%;
    max-width: 60vw;
    background: #feffed;
    padding: 3rem 2rem;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.recipe-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    margin-top: 12px;
    overflow: hidden;
    background: #000;
}

.recipe-video-wrapper iframe {
    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    border: 0;
}

.recipe-video-close {
    position: absolute;
    top: 3%;
    right: 2%;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
}

.recipe-popup-title{
        margin: 1.5rem 0;
    color: #06543d;
    font-size: 25px;
    line-height: 131%;
    font-weight: 700;
}
.recipe-popup-read-button{
    border: none;
    background: transparent;
    padding: 0;
    color: #285f37;
    font-size: 15px;
    font-weight: 700;
    line-height: 150%;
    cursor: pointer;
}


/* =========================
   EMPTY
========================= */

.recipes-empty {
    grid-column: 1 / -1;

    text-align: center;

    padding: 60px 20px;

    color: #777777;
}
.recipes-sort-mobile{
    display: none;
}

.recipe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.recipe-pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #777;
    font-size: 16px;
    border-radius: 50%;
}

.recipe-pagination .page-numbers.current {
    background: #55cf7a;
    color: #fff;
}

.recipe-pagination .page-numbers.next,
.recipe-pagination .page-numbers.prev {
    font-size: 28px;
    color: #075f4d;
    width: 45px;
}

.recipe-pagination .page-numbers.dots {
    pointer-events: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {
    .recipes-sort-desktop{
        display: none;
    }
    .recipes-sort-mobile{
        display: block;
    }
    .recipes-title-area-heading{
        font-family: CocoSharp XL;
        font-weight: 800;
        font-style:Italic;
        font-size: 32px;
        line-height: 120%;
        letter-spacing: 0%;

    }
    .recipes-title-area-heading h2{
        font-size: 32px;
                line-height: 120%;
                margin: 0px;
    }
    .recipes-back-button svg{
        height: 17px;
        width: 17px;
    }

    .recipes-page {
        padding: 20px 15px 1rem;
    }

    .recipes-header {
        align-items: flex-start;
        gap: 2rem;
        display: flex;
        justify-content: unset;
        margin-bottom: 5px;
        align-items: center;
    }

    .recipes-title-area h1 {
        font-size: 25px;
    }

    .recipes-sort {
        flex-direction: column;
        align-items: flex-end;
        text-align: end;
        margin-bottom: 10px;
    }

    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
        column-gap: 15px;
    }

    .recipe-content {
        padding: 8px 0px 0px;
    }
    .recipe-card{
        padding: 8px;
        border-radius: 4px;
    }
    .recipe-image {
        border-radius: 4px;
    }

    .recipe-title {
        font-size: 12px;
        min-height: 1.8rem;
    }

    .recipe-description {
        font-size: 10px;
        min-height: 1.5rem;
        margin-bottom: 5px;
    }
    .recipe-read-button{
        font-size: 10px;
    }
    .recipe-meta{
        font-size: 8px;
        margin-bottom: 10px;
    }
    .recipe-video-container {
      padding: 12px;
      max-width: 85vw;
    }
    .recipe-video-close{
        height: 9px;
        width: 9px;
    }
    .recipe-video-wrapper {
       margin-top: 15px;
       aspect-ratio: 16 / 11;
    }
    .recipe-popup-title{
        font-size: 16px;
    margin: 1rem 0 5px;
    line-height: 160%;
    }
    .recipe-popup-read-button{
        display: inline-block;
    font-size: 12px;
    line-height: 150%;
    }
    .recipe-pagination{
        margin-top: 1rem;
        margin-bottom: 0px;
    }
    .recipe-pagination .page-numbers{
        height: 30px;
        width: 30px;
    }

}


@media (max-width: 400px) {

    .recipes-grid {
        /* grid-template-columns: 1fr; */
    }

}