/* ==========================================================
   DIGBANG RECIPE ARCHIVE — FEATURED GRID
========================================================== */

.db-featured-recipes {
    width: calc(100% - 40px);
    max-width: 1320px;

    margin: 88px auto 0;

    direction: rtl;
}


.db-featured-recipes__grid {
    display: grid;

    grid-template-columns: 424px 872px;
    grid-template-rows: 190px 544px;

    grid-template-areas:
        "top-left top-right"
        "bottom-left bottom-right";

    gap: 24px;

    width: 1320px;
    max-width: 100%;

    min-height: 758px;

    direction: ltr;
}


/* ==========================================================
   CARD POSITIONS
========================================================== */

.db-featured-recipes__card--top-right {
    grid-area: top-right;
}

.db-featured-recipes__card--top-left {
    grid-area: top-left;
}

.db-featured-recipes__card--bottom-right {
    grid-area: bottom-right;
}

.db-featured-recipes__card--bottom-left {
    grid-area: bottom-left;
}


/* ==========================================================
   SHARED CARD
========================================================== */

.db-featured-recipes__card {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 24px;

    text-decoration: none;

    direction: rtl;
}


.db-featured-recipes__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}


/* ==========================================================
   OVERLAY
========================================================== */

.db-featured-recipes__overlay {
    position: absolute;

    right: 0;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 88px;

    display: flex;
    justify-content: flex-end;
    align-items: flex-end;

    padding: 0 20px 20px;

    border-radius: 0 0 24px 24px;

    direction: rtl;

    background: linear-gradient(
        180deg,
        rgba(38, 20, 2, 0.08) 10%,
        rgba(140, 74, 7, 0.80) 100%
    );

    transition: .25s ease;
}


.db-featured-recipes__card:hover
.db-featured-recipes__overlay {
    background: linear-gradient(
        180deg,
        rgba(38, 20, 2, 0.35) 10%,
        rgba(61, 34, 13, 0.95) 100%
    );
}


/* ==========================================================
   TITLE
========================================================== */

.db-featured-recipes__title {
    width: 100%;

    margin: 0;

    color: #FFFFFF;

    font-family: "Vazirmatn", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;

    text-align: right;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.db-featured-recipes__card:focus-visible {
    outline: 3px solid #FF6600;
    outline-offset: 4px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1399px) {

    .db-featured-recipes__grid {
        grid-template-columns:
            minmax(280px, 424px)
            minmax(0, 872px);

        width: 100%;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {

    .db-featured-recipes {
        width: calc(100% - 32px);
        max-width: none;

        margin: 56px auto 0;

        overflow: hidden;
    }


    .db-featured-recipes__grid {
        display: grid;

        grid-template-columns:
            32.12%
            66.06%;

        grid-template-rows:
            25.07%
            71.77%;

        grid-template-areas:
            "top-left top-right"
            "bottom-left bottom-right";

        gap: 1.82%;

        width: 100%;

        aspect-ratio: 1320 / 758;

        min-height: 0;

        direction: ltr;
    }


    .db-featured-recipes__card {
        width: 100%;
        height: 100%;

        aspect-ratio: auto;

        border-radius: 12px;
    }


    .db-featured-recipes__image {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    .db-featured-recipes__overlay {
        height: 22%;

        min-height: 34px;

        padding: 0 10px 8px;

        border-radius: 0 0 12px 12px;
    }


    .db-featured-recipes__title {
        font-size: clamp(11px, 3.4vw, 16px);
        line-height: 1.4;
    }

}