/* ==========================================================
   DIGBANG SINGLE RECIPE — HERO
========================================================== */

.db-recipe-hero {
    width: 100%;
    direction: rtl;
}

.db-recipe-hero__container {
    width: calc(100% - 40px);
    max-width: 1320px;
    margin-inline: auto;
}

/* =======================
   BREADCRUMB
======================= */

.db-recipe-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 32px;

    color: #A39082;

    font-family: Vazirmatn, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
}

.db-recipe-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.db-recipe-breadcrumb a:hover,
.db-recipe-breadcrumb a:focus-visible {
    color: #CC5200;
}

/* =======================
   TITLE
======================= */

.db-recipe-hero__title {
    margin: 56px 0 0;

    color: #000000;

    font-family: Vazirmatn, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

/* =======================
   META
======================= */

.db-recipe-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    margin-top: 16px;

    color: #A39082;

    font-family: Vazirmatn, sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
}

.db-recipe-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.db-recipe-meta__item:not(:last-child)::after {
    content: "";

    display: block;
    width: 1px;
    height: 16px;
    margin-inline: 8px;

    background: #DFDFDF;
}

.db-recipe-meta__icon {
    display: block;
    flex: 0 0 16px;

    width: 16px;
    height: 16px;

    object-fit: contain;
}

/* =======================
   MEDIA LAYOUT
======================= */

.db-recipe-hero__media-grid {
    display: grid;
    grid-template-columns: 336px 896px;
    grid-template-areas: "banner main";
    column-gap: 88px;
    align-items: start;

    margin-top: 55px;

    direction: ltr;
}

.db-recipe-side-banner {
    grid-area: banner;

    position: relative;

    width: 336px;
    height: 430px;

    overflow: hidden;
    border-radius: 16px;

    direction: rtl;
}

.db-recipe-side-banner__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.db-recipe-side-banner__button {
    position: absolute;

    right: 80.37px;
    bottom: 32.72px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 175px;
    height: 35px;
    padding: 0;

    color: #FFFFFF;
    background: #CC5200;

    border: 0;
    border-radius: 8px;

    font-family: Vazirmatn, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition: background-color 0.25s ease;
}

.db-recipe-side-banner__button:hover,
.db-recipe-side-banner__button:focus-visible {
    color: #FFFFFF;
    background: #FF8533;
}

.db-recipe-hero__main-column {
    grid-area: main;

    width: 896px;
    min-width: 0;

    direction: rtl;
}

.db-recipe-featured-image {
    width: 896px;
    height: 424px;
    margin: 0;

    overflow: hidden;
    border-radius: 24px;
}

.db-recipe-featured-image__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =======================
   EXCERPT
======================= */

.db-recipe-excerpt {
    width: 896px;
    margin-top: 56px;

    color: #524841;

    font-family: Vazirmatn, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 2;
}

.db-recipe-excerpt p {
    margin: 0;
}

/* =======================
   TABLET
======================= */

@media (max-width: 1399px) {

    .db-recipe-hero__media-grid {
        grid-template-columns: minmax(240px, 336px) minmax(0, 1fr);
        grid-template-areas: "banner main";
        column-gap: 40px;
    }

    .db-recipe-side-banner {
        width: 100%;
        max-width: 336px;
    }

    .db-recipe-side-banner__button {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .db-recipe-hero__main-column,
    .db-recipe-featured-image,
    .db-recipe-excerpt {
        width: 100%;
    }
}

/* =======================
   MOBILE
======================= */

@media (max-width: 767px) {

    .db-recipe-hero__container {
        width: calc(100% - 32px);
    }

    .db-recipe-breadcrumb {
        margin-top: 24px;
        font-size: 11px;
    }

    .db-recipe-hero__title {
        margin-top: 32px;
        font-size: 26px;
    }

    .db-recipe-meta {
        row-gap: 10px;
    }

    .db-recipe-hero__media-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;

        margin-top: 32px;

        direction: rtl;
    }

    .db-recipe-hero__main-column {
        order: 1;
        width: 100%;
    }

    .db-recipe-side-banner {
        order: 2;

        width: 100%;
        max-width: 336px;
        height: auto;
        aspect-ratio: 336 / 430;

        margin-inline: auto;
    }

    .db-recipe-featured-image {
        width: 100%;
        height: auto;
        aspect-ratio: 896 / 424;
    }

    .db-recipe-excerpt {
        width: 100%;
        margin-top: 32px;

        font-size: 16px;
        line-height: 1.9;
    }
}