/* ==========================================================
   DIGBANG SINGLE RECIPE — STEPS
========================================================== */

.db-recipe-steps {
    display: grid;
    grid-template-columns: 336px 896px;
    column-gap: 88px;

    width: calc(100% - 40px);
    max-width: 1320px;

    margin: 56px auto 0;

    direction: ltr;
}

.db-recipe-steps__container {
    grid-column: 2;

    width: 896px;
    min-width: 0;

    direction: rtl;
}

/* =======================
   TITLE
======================= */

.db-recipe-steps__title {
    margin: 0;

    color: #3D3631;

    font-family: Vazirmatn, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;

    text-align: right;
}

/* =======================
   STEPS LIST
======================= */

.db-recipe-steps__list {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;

    list-style: none;
}

.db-recipe-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    width: 100%;
    box-sizing: border-box;

    padding: 16px 0;

    color: #524841;

    font-family: Vazirmatn, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 2;
}

.db-recipe-steps__item:not(:last-child) {
    border-bottom: 1px solid #DFDFDF;
}

.db-recipe-steps__number {
    flex: 0 0 auto;

    min-width: 24px;

    color: inherit;
    font: inherit;
    text-align: right;
}

.db-recipe-steps__text {
    min-width: 0;
    margin: 0;

    color: inherit;
    font: inherit;
}

/* =======================
   TABLET
======================= */

@media (max-width: 1399px) {

    .db-recipe-steps {
        grid-template-columns:
            minmax(240px, 336px)
            minmax(0, 1fr);

        column-gap: 40px;
    }

    .db-recipe-steps__container {
        width: 100%;
    }
}

/* =======================
   MOBILE
======================= */

@media (max-width: 767px) {

    .db-recipe-steps {
        display: block;

        width: calc(100% - 32px);
        margin-top: 40px;

        direction: rtl;
    }

    .db-recipe-steps__container {
        width: 100%;
    }

    .db-recipe-steps__title {
        font-size: 22px;
    }

    .db-recipe-steps__list {
        margin-top: 12px;
    }

    .db-recipe-steps__item {
        gap: 6px;
        padding: 14px 0;

        font-size: 16px;
        line-height: 1.9;
    }

    .db-recipe-steps__number {
        min-width: 22px;
    }
}