

:root {
    --font-family400: "eurofurence400", sans-serif;
    --second-family: "Healthy-Innovation", sans-serif;
}
body {
    padding-top: 0vw !important;
}

.recipes-content section header {
    height: 20vw !important;
}

.single_section_wrapper {
    grid-template-columns: repeat(12, 1fr );

    & .blog-title {
        text-align:left;  grid-column: 5/13;
        font-size: 3vw;
        max-width: 55vw;
    }
}

@media(max-width: 768px) {
    .single_section_wrapper {
        & .blog-title {
            font-size: 4vw;
            padding-top: 2vw;
            text-align: center;
            grid-column: 12 span;
            max-width: none;
        }
    }
}

.single {
    & .breadcrumbs a:last-child {
        max-width: 30vw;
    }

    .breadcrumbs-item {
        font-size: 1.5vw !important;
    }

    & .recipes-content>section:first-child {
        min-height: 18vw !important;
        height: 18vw !important;
        width: 100% !important;
        overflow: hidden;

        & .main-banner {
            bottom: 0;
            /* top: unset; */
            height: 100%;
        }
    }

    .to-recipes{
        color: grey;
    }

    & .single_section {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        /* gap: 8vw; */
        padding-left: 8vw;
        padding-right: 8vw;
        /* padding-top: 4.5vw; */
        padding-bottom: 8vw;

        & time {
            font-size: 1.3vw;
            font-weight: 700;
            color: #654a85;
        }

        & .single_section_line {
            border: none;
            height: 2px;
            background-color: #7d4799;
            margin: 2.5vw 0;
        }
    }

    & aside {
        grid-column: 4 span;
        /* padding-right: 5vw; */
        max-width: 22.2vw;
    }

    @media (max-width: 768px) {
        & aside {
            display: none;
            grid-column: unset;
        }
    }

    & article {
        grid-column: 8 span;

        & h2,
        & h3,
        & h4,
        & h5,
        & h6 {
            padding-bottom: 2.7vw;
            font-weight: 700;
            line-height: 90%;
            text-transform: uppercase;
            color: #654a85;

            &:not(:first-child) {
                padding-top: 2.7vw;
            }
        }

        & h2 {
            font-size: 2.3vw;

            &+h2,
            &+h3,
            &+h4,
            &+h5,
            &+h6 {
                padding-top: 0 !important;
            }
        }

        & h3 {
            font-size: 2.1vw;
            padding: 2.5vw;

            &+h2,
            &+h3,
            &+h4,
            &+h5,
            &+h6 {
                padding-top: 0 !important;
            }
        }

        & h4 {
            font-size: 1.9vw;
            padding: 2.1vw;

            &+h2,
            &+h3,
            &+h4,
            &+h5,
            &+h6 {
                padding-top: 0 !important;
            }
        }

        & h5 {
            font-size: 1.7vw;
            padding: 1.9vw;

            &+h2,
            &+h3,
            &+h4,
            &+h5,
            &+h6 {
                padding-top: 0 !important;
            }
        }

        & h6 {
            font-size: 1.5vw;
            padding: 1.7vw;

            &+h2,
            &+h3,
            &+h4,
            &+h5,
            &+h6 {
                padding-top: 0 !important;
            }
        }

        & p {
            font-family: var(--font-family400) !important;
            font-weight: 400;
            font-size: 1.7vw;
            line-height: 120%;
            color: #000;
            margin-top: 0.3vw;
            margin-bottom: 1vw;
        }

        & ol {
            list-style: decimal;
            font-family: var(--font-family400);
            padding-left: 1.7vw;

            & li {
                padding-left: 1.7vw;
                padding-top: 0.5vw;
                padding-bottom: 0.5vw;
                line-height: 120%;

            }
        }

        & ul {
            list-style: disc;
            font-family: var(--font-family400);
            padding-left: 1.7vw;

            & li {
                padding-left: 1.7vw;
                padding-top: 0.5vw;
                padding-bottom: 0.5vw;
                line-height: 120%;

            }
        }
    }

    @media (max-width: 768px) {
        & article {
            grid-column: 12 span;

            & h2 {
                font-size: 4.5vw;
            }

            & h3 {
                font-size: 4.3vw;
            }

            & h4 {
                font-size: 4.1vw;
            }

            & h5 {
                font-size: 3.9vw;
            }

            & h6 {
                font-size: 3.7vw;
            }

            & p,
            & ul,
            & ol,
            & li {
                font-size: 3.2vw;
            }
        }
    }

    & .single_content {
        position: sticky;
        top: 45px;

        & ul {
            display: flex;
            flex-direction: column;
            gap: 2.4vw;

            & li>a {
                font-weight: 400;
                font-family: var(--font-family400);
                color: #000;
                font-size: 1.6vw;
                line-height: 120%;
                text-decoration: none;
                transition: all 0.3s linear;

                & strong {
                    font-weight: inherit;
                    font-family: inherit;
                }

                &:hover {
                    color: #653081;
                    /* font-weight: 700; */
                }
            }

            & li {
                position: relative;
                transition: all 0.3s linear;

            }

            & li a.active {
                font-family: 'eurofurence';
                color: #653081;
                font-weight: 700;
                padding-left: 2.4vw;
                display: inline-flex;
                align-items: center;

                &::before {
                    transition: all 0.3s linear;
                    content: '';
                    background-color: #653081;
                    width: 0.6vw;
                    height: 0.6vw;
                    flex-shrink: 0;
                    display: inline-flex;
                    margin-right: 1.2vw;
                    /* position: absolute; */
                    /* left: 1.2vw; */
                    /* top: calc(50% - 0.3vw); */
                    /* z-index: 1; */
                    border-radius: 50%;
                }

                & a,
                & strong {
                    color: inherit;
                    font-weight: inherit;
                }
            }
        }
    }
}

.single_item_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8vw;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 4.5vw !important;

    & li {
        padding-left: 0 !important;

        & a {
            font-size: 1.7vw;
            font-family: var(--font-family400);
            font-weight: 400;
            text-transform: lowercase;
            color: #a1a1a1;
            border-radius: 5px;
            background: #f0f0f0;
            padding: 0.6vw 0.4vw;
            text-decoration: none;
            /* pointer-events: none; */
            transition: all 0.3s linear;

            &:hover {
                color: #604c81;
                background-color: #f0f0f0;
            }
        }
    }
}

@media (max-width: 768px) {
    .single_item_tags {
        & a {
            font-size: 3.2vw !important;
        }
    }
}

.list-reset {
    list-style: none !important;
    padding: 0;
    margin: 0;
}



.blog,
.aside_blog {

    & .flex-row *,
    & article *,
    & .blog_load_more {
        font-family: "eurofurence", sans-serif;
    }

    & article {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2vw;
        row-gap: 4vw;

        @media (max-width:720px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width:470px) {
            grid-template-columns: 1fr;
        }
    }

    & .blog_item {
        display: flex;
        flex-direction: column;

        & a {
            text-decoration: none;

            & h2 {
                transition: all 0.3s linear;

                &:hover {
                    color: #437e9b;
                }
            }

        }
    }

    & article {
        padding-left: 14vw;
        padding-right: 14vw;
    }

    & .recipes-content>section {
        height: unset !important;
        width: 100% !important;
    }

    & .blog_item {
        display: flex;
        flex-direction: column;
        position: relative;


        &.right::after,
        &.left::before {
            transition: all 0.3s linear;
            position: absolute;
            content: '';
            width: 11vw;
            height: 39vw;
            z-index: -1;
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;

        }

        &.right::after {
            background-image: url('/wp-content/themes/hi-food/assets/images/green_right.webp');
            right: -14vw;
            top: 5vw;

        }

        &.left::before {
            background-image: url('/wp-content/themes/hi-food/assets/images/green_left.webp');
            left: -14vw;
            top: -9vw;
        }
    }

    @media (max-width: 720px) {

        & .blog_item.right::after {
            background-image: url('/wp-content/themes/hi-food/assets/images/green_left.webp');
            right: unset;
            left: -14vw;
        }

        & .blog_item.left::before {
            background-image: url('/wp-content/themes/hi-food/assets/images/green_right.webp');
            left: unset;
            right: -14vw;
        }
    }

    & .img-wrap {
        width: 22vw;
        height: 22vw;

        & img {
            width: 100% !important;
            height: auto;
            max-width: unset !important;
        }

    }

    @media (max-width: 720px) {
        & .img-wrap {
            width: 33vw;
            height: 33vw;
        }
    }

    @media (max-width:470px) {
        & .img-wrap {
            width: 48vw;
            height: 48vw;
            margin-left: auto;
            margin-right: auto;
        }
    }

    & time {
        font-family: var(--font-family400);
        font-weight: 400;
        font-size: 1.3vw;
        color: #654a85;
        display: block;
        margin-top: 2vw;
    }

    @media (max-width:470px) {
        & time {
            font-size: 2.5vw;
            text-align: center;
        }
    }

    & .blog_item_title {
        font-weight: 700;
        font-size: 2.15vw;
        line-height: 90%;
        text-align: center;
        color: #654a85;
        display: block;
        margin-top: 2.5vw;
        flex-grow: 1;
        text-transform: none;
        padding-bottom: unset;
    }

    @media (max-width:470px) {
        & .blog_item_title {
            font-size: 4vw;
            text-align: center;
        }
    }

    & .blog_item_tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3vw;
        margin-top: 1.2vw;
        padding-left: unset;

        & li {
            padding: unset;
            margin: unset;
        }

        & a {
            font-family: var(--font-family400);
            font-weight: 400;
            font-size: 1.7vw;
            text-transform: lowercase;
            color: #a1a1a1;
            text-decoration: none;
            /* pointer-events: none; */
            transition: all 0.3s linear;


            &:hover {
                color: #654a85;
            }
        }
    }

    @media (max-width:768px) {
        & .blog_item_tags li {
            line-height: 1.3;
        }
    }

    @media (max-width:530px) {
        & .blog_item_tags {
            justify-content: center;
            margin-top: 2.7vw;
            gap: 2vw;
            row-gap: 0;
        }

        & .blog_item_tags a {
            font-size: 3.7vw;
        }
    }

    & .blog_load_more {
        width: 18vw;
        height: 4vw;
        display: block;
        margin: 4vw auto 6vw;
        background-image: url('/wp-content/themes/hi-food/files/img/translate-bg.webp');
        border-radius: 29px;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.9vw;
        text-align: center;
        color: #7d4797;
        transition: all 0.3s linear;

        &:hover {
            color: #437e9b;
        }
    }

    @media (max-width:530px) {
        & .blog_load_more {
            font-size: 3.2vw;
            width: 28vw;
            height: 9vw;
            margin-top: 12vw;
            margin-bottom: 15vw;
        }
    }

    & .blog_inner_title {
        font-weight: 700;
        font-size: 2.7vw;
        line-height: 90%;
        text-transform: uppercase;
        text-align: center;
        color: #654a85;
        display: block;
        margin-bottom: 4.2vw;
    }

    @media (max-width:768px) {
        & .blog_inner_title {
            font-size: 4.7vw;
            margin-bottom: 6vw;
            margin-top: 3vw;
        }
    }

    & .flex-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 1.7vw;

        & time {
            margin-top: 0;
        }

        & .count_view,
        & time,
        & .reading_time {
            font-family: var(--font-family400);
            font-weight: 400;
            font-size: 1.3vw;
            color: #654a85;

            & img {
                width: 2vw;
            }
        }

        & .count_view,
        & .reading_time {
            display: flex;
            align-items: center;
            gap: 1vw;
        }
    }

    @media (max-width: 768px) {
        .flex-row {
            gap: 1vw;
        }

        & .blog_item {
            align-items: center;

            & a {
                display: block;
                width: 100%;
                height: 100%;
            }

            & img-wrap img {
                width: 100%;
            }
        }

        & .count_view,
        & time,
        & .reading_time {
            font-size: 2vw !important;
        }

        .blog_item_title {
            font-size: 3.5vw;
        }
    }

    @media (max-width: 530px) {
        & .flex-row {
            margin-top: 2.7vw;
        }

        & .count_view,
        & time,
        & .reading_time {
            font-size: 3vw !important;

            & img {
                max-width: 18px;
                height: auto;
            }
        }

        .blog_item_title {
            font-size: 5vw;
        }
    }
}

.reading-line {
    width: 100%;
    height: 1vw;
    background: #96cf7b;
    position: relative;
    z-index: 29;
}

.active-reading-line {
    height: 1vw;
    width: 0;
    background: #028972;
    width: 0;
    transition: all 0.3s linear;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
}

.blog {
    & article {
        &.left {
            position: relative;

            &.left::before {
                position: absolute;
                content: '';
                width: 10vw;
                height: 37vw;
                z-index: -1;
                background-repeat: no-repeat;
                background-size: contain;
                background-position: center;
            }

            &.left::before {
                background-image: url('/wp-content/themes/hi-food/assets/images/green_left.webp');
                left: 0;
                top: 0;
                transform: translateY(-100%);
            }
        }

        /* @media (max-width: 720px) {

            & .blog_item.left::before {
                background-image: url('/wp-content/themes/hi-food/assets/images/green_right.webp');
                left: unset;
                right: -14vw;
            }
        } */
    }

    @media (max-width: 768px) {
        & article {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 530px) {
        & article {
            grid-template-columns: 1fr;
        }
    }
}

@media (max-width:720px) {
    .breadcrumbs.common-page {
        display: none;
    }
}

.post_content_mobile {
    display: none;

    & .flex-row {
        display: flex;
        align-items: center;
        gap: 8vw;
        justify-content: center;
        margin-top: 1.7vw;

        & time {
            margin-top: 0;
        }

        & .count_view,
        & time,
        & .reading_time {
            font-family: var(--font-family400);
            font-weight: 400;
            font-size: 1.3vw;
            color: #654a85;

            & img {
                width: 2vw;
            }
        }

        & .count_view,
        & .reading_time {
            display: flex;
            align-items: center;
            gap: 1vw;
        }
    }

    @media (max-width: 768px) {
        .flex-row {
            gap: 5vw;
        }

        & .blog_item {
            align-items: center;

            & a {
                display: block;
                width: 100%;
                height: 100%;
            }

            & img-wrap img {
                width: 100%;
            }
        }

        & .count_view,
        & time,
        & .reading_time {
            font-size: 2.8vw !important;

            & img {
                width: 3vw !important;
            }
        }

        & .count_view img {
            width: 4vw !important;
        }

        .blog_item_title {
            font-size: 3.5vw;
        }
    }

    @media (max-width: 530px) {
        & .flex-row {
            margin-top: 2.7vw;
            justify-content: space-between;
        }

        & .count_view,
        & time,
        & .reading_time {
            font-size: 3.8vw !important;

            & img {
                width: 100% !important;
                max-width: 3.5vw;
                height: auto;
            }
        }

        & .count_view img {
            width: 4.5vw !important;
            max-width: 4.5vw !important;
        }

        .blog_item_title {
            font-size: 5vw;
        }
    }

    @media (max-width:768px) {
        display: block;
    }
}

.recipes-content {
    &>section:first-child {
        min-height: 54.5vw !important;
        /* height: 100% !important; */
    }

    & .blog-title {
        padding-bottom: 10vw;
        /* color:#654a85; */
    }
}
.breadcrumbs-item.last {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* или другое значение, чтобы ограничить ширину */
    vertical-align: middle;
}
.post-likes {
    display: flex;
    align-items: center;
    gap: 1vw;

    &:hover {
        & svg {
            fill: #654a85;
            stroke: #fff;
            transform: scale(1.2);
        }
    }

    & svg {
        width: 1.5vw;
        height: 1.5vw;
        transition: all 0.3s linear;
        stroke: #654a85;

        & * {
            transition: all 0.3s linear;
        }
    }
}

.like-count {
    color: #654a85;
    font-family: var(--font-family400) !important;
    font-weight: 400;
    font-size: 1.7vw;
}

.flex-custom-row {
    flex-wrap: wrap;

    & time {
        flex: 1 0 100%;
        margin-bottom: 2vw;
    }
}

.post-share {
    & svg {
        width: 1.6vw;
        height: 1.6vw;
        transition: all 0.3s linear;
        fill: #654a85;
        transition: all 0.3s linear;

        &:hover {
            fill: #a1a1a1;
        }
    }
}
#shareModal {
    display: block;
    transform-origin: 0 0;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: scale(0.8) translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s ease-in-out;
    right: unset;
    bottom: unset;

    & .modal-content {
        background-color: #fff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    & .flex-row:nth-child(1) {
        margin: 10px 0 30px;
        font-size: 2vw;

        & .close{
            position: absolute;
            right: 10px;
            top: 10px;
            font-size: 3vw;
            z-index: 11;
            cursor: pointer;
        }
    }

    & .flex-row:nth-child(2){
        display: flex;
        align-items: center;
        gap: 10px;

        & a{
            display: block;
        }
    }

    & .flex-row:nth-child(3){
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 40px;
        border: 1px solid rgba(155, 81, 224, 0.3);
        border-radius: 20px;
        
        &  .actual_link{
            border-radius: 20px;
            width: 100%;
            padding: 10px 20px;    
        }

        & button{
            background-color: #604c81;
            padding: 10px 20px;
            border-radius: 20px;
            color: #fff;
        }
    }
    
    & .share_buttons img {
        width: 40px;
        height: 40px;
        margin: 0 10px;
        cursor: pointer;
    }
}

#shareModal.active {
    transform: scale(1) translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.post-likes{
    cursor: pointer;
    transition: all 0.1s linear;
    &:hover{
        stroke: #a1a1a1;
    }
}

@media (max-width:768px){
    .post-share , .like-heart{
        height: 3vw;

        & svg{
            width: 3vw;
            height: 3vw;
        }
    }
    .like-count{
        font-size: 3vw;
    }
}
@media (max-width:540px){
    .post-share , .like-heart{
        height: 3.5vw;
        & svg{
            width: 3.5vw;
            height: 3.5vw;
        }
    }
    .like-count{
        font-size: 3.5vw;
    }

    #shareModal .flex-row:nth-child(1) span{
        font-size: 4.5vw;
    }
    #shareModal .flex-row:nth-child(2){
        gap: 0;
    }
    #shareModal .close{
        font-size: 6vw !important;
    }
}
#button_copy{
    transition: all 0.3s linear;
    &:hover{
        background-color: #a1a1a1 !important;
    }
    &.active{
        background-color: #a1a1a1 !important;
    }
}
.post-share{
    background-color: transparent;
}
.post-likes.active{
    & svg{
        fill: #654a85;
    }
}

.post-likes{
    cursor: pointer;
}
.--accent{
    color: #654a85;
}