/* ==========================================================
   DIGBANG — RECIPES PRODUCTS BANNER
========================================================== */

.db-recipes-products-banner {
    position: relative;

    width: calc(100% - 120px);
    max-width: 1320px;
    height: 627px;

    margin: 88px auto 0;

    overflow: hidden;

    border-radius: 24px;

    direction: rtl;
    box-sizing: border-box;
}


.db-recipes-products-banner__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}


.db-recipes-products-banner__content {
    position: absolute;

    top: 188.36px;
    right: 42px;
    z-index: 2;

    width: 500px;

    text-align: right;
}


.db-recipes-products-banner__title {
    margin: 0;

    color: #FFFFFF;

    font-family: "Vazirmatn", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.3;
}


.db-recipes-products-banner__description {
    width: 389px;
    min-height: 84px;

    margin: 26px 0 0;

    color: #FFFFFF;

    font-family: "Vazirmatn", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}


.db-recipes-products-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 190.26px;
    height: 35.28px;

    margin-top: 26px;

    color: #FFFFFF;
    background: #FF6600;

    border: 0;
    border-radius: 5.23px;

    font-family: "Vazirmatn", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.db-recipes-products-banner__button:hover,
.db-recipes-products-banner__button:focus-visible {
    color: #FFFFFF;
    background: #CC5200;
}


.db-recipes-products-banner__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1399px) {

    .db-recipes-products-banner {
        width: calc(100% - 64px);
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .db-recipes-products-banner {
        position: relative;

        width: calc(100% - 32px);
        max-width: none;

        height: auto;
        aspect-ratio: 1320 / 627;

        margin: 56px auto 0;

        overflow: hidden;

        border-radius: 16px;
    }


    .db-recipes-products-banner__image {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        border-radius: inherit;
    }


    .db-recipes-products-banner__content {
        position: absolute;

        /* معادل تقریبی 188px در طراحی 627px دسکتاپ */
        top: 30%;
        right: 3.18%;
        bottom: auto;
        left: auto;

        width: 37.88%;

        text-align: right;
    }


    .db-recipes-products-banner__title {
        margin: 0;

        font-size: 15px;
        line-height: 1.3;

        white-space: nowrap;
    }


    .db-recipes-products-banner__description {
        width: 77.8%;
        min-height: 0;

        margin: 7px 0 0;

        font-size: 8px;
        line-height: 1.5;
    }


    .db-recipes-products-banner__button {
        width: 51px;
        height: 10px;

        margin-top: 7px;

        padding: 0;

        border-radius: 2px;

        font-size: 5px;
        line-height: 1;
    }

}