/* ==========================================================
   DIGBANG — RECIPE CARD COMPONENT
========================================================== */

.db-recipe-card {
    position: relative;

    display: block;

    width: 275px;
    height: 325px;

    color: #000000;
    text-decoration: none;

    direction: rtl;
    box-sizing: border-box;
}

/* ==========================================================
   RECTANGULAR BODY
========================================================== */

.db-recipe-card__body {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 275px;
    height: 254px;

    padding-top: 83px;

    background: #FFFFFF;

    border: 1px solid #DFDFDF;
    border-radius: 24px;

    box-sizing: border-box;
}

/* ==========================================================
   CIRCULAR IMAGE
========================================================== */

.db-recipe-card__image-wrap {
    position: absolute;

    top: 0;
    left: 50%;
    z-index: 2;

    width: 141px;
    height: 141px;

    overflow: visible;

    background: #FFFFFF;

    border: 3px solid #FFFFFF;
    border-radius: 50%;

    transform: translateX(-50%);

    box-sizing: border-box;
}
.db-recipe-card__image-wrap{

    position:absolute;

    top:0;
    left:50%;

    width:141px;
    height:141px;

    transform:translateX(-50%);

    border:3px solid #FFFFFF;
    border-radius:50%;

    overflow:hidden;

    background:#FFFFFF;

    box-shadow:
        0 0 8px rgba(255,103,0,.16),
        0 0 18px rgba(255,103,0,.10),
        0 0 28px rgba(255,103,0,.05);

    z-index:5;

    transition:box-shadow .25s ease;
}

.db-recipe-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}

/* ==========================================================
   TITLE
========================================================== */

.db-recipe-card__title {
    width: calc(100% - 32px);

    margin: 0;

    overflow: hidden;

    color: #000000;

    font-family: "Vazirmatn", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================
   EXCERPT
========================================================== */

.db-recipe-card__excerpt {
    display: -webkit-box;

    width: 189px;
    height: 54px;

    margin: 4px 0 0;

    overflow: hidden;

    color: #000000;

    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;

    text-align: center;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ==========================================================
   BUTTON
========================================================== */

.db-recipe-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 125px;
    height: 26px;

    margin-top: 24px;

    color: #CC5200;
    background: transparent;

    border: 1px solid #CC5200;
    border-radius: 5.23px;

    font-family: "Vazirmatn", sans-serif;
    font-size: 10.45px;
    font-weight: 600;
    line-height: 1;

    box-sizing: border-box;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* ==========================================================
   HOVER / FOCUS
========================================================== */

.db-recipe-card:hover .db-recipe-card__button,
.db-recipe-card:focus-visible .db-recipe-card__button {
    color: #FFFFFF;
    background: #FF6700;
    border-color: #FF6700;
}

.db-recipe-card:focus-visible {
    outline: 3px solid rgba(255, 103, 0, 0.35);
    outline-offset: 4px;
    border-radius: 24px;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .db-recipe-card {
        width: 240px;
        height: 300px;
    }


    .db-recipe-card__body {
        width: 240px;
        height: 236px;

        padding-top: 76px;

        border-radius: 20px;
    }


    .db-recipe-card__image-wrap {
        width: 128px;
        height: 128px;
    }


    .db-recipe-card__title {
        width: calc(100% - 24px);

        font-size: 24px;
        line-height: 1.4;
    }


    .db-recipe-card__excerpt {
        width: 184px;
        height: 54px;

        font-size: 12px;
        line-height: 18px;
    }


    .db-recipe-card__button {
        width: 125px;
        height: 28px;

        margin-top: 18px;

        font-size: 10px;
    }

}