.recipe-carousel {
    margin: 120px 0;
}

.recipe-carousel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 33px;
}

.recipe-carousel-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    width: 592px;
    height: 592px;
    overflow: hidden;
    position: relative;
}

.recipe-carousel-content .label {
    max-width: 80px;
    height: 32px;
    border: 1px solid #265F50;
    border-radius: 4px;
    color: #265F50;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.recipe-carousel-content h4 {
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    text-align: left;
    color: #0D2620;
    margin: 0;
    padding-bottom: 8px;
}

.recipe-carousel-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #7B797C;
    margin: 0;
    padding-bottom: 32px;
    min-height: 110px;
}
.recipe-carousel-content .ingredients {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #22453C;
    margin-bottom: 40px;
    height: 165px;
    overflow: hidden;
}
.recipe-carousel-content .buttons {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.recipe-carousel-content .buttons .secondary-button{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    color: #22453C;
    border: 1px solid #22453C;
}
.recipe-carousel-content .buttons .recipe-link {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #22453C;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease-in-out;
}
.recipe-carousel-content .buttons .recipe-link svg g path {
    transition: all 0.2s ease-in-out;
}
.recipe-carousel-content .buttons .recipe-link:hover ,
.recipe-carousel-content .buttons .recipe-link:hover svg g path {
    color: var(--e-global-color-accent) !important;
    stroke: var(--e-global-color-accent) !important;
    transition: all 0.2s ease-in-out;
}

.recipe-carousel-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 592px;
    height: 592px;
    overflow: hidden;
    position: relative;
}

.recipe-carousel-image img {
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    aspect-ratio: 1;
}

.recipe-carousel-nav {
    text-align: center;
    margin-top: 20px;
}

.recipe-carousel .owl-nav {
    position: relative;
    width: 50%;
    z-index: 10;
    transform: translate(0%, 0);
    margin-top: -4%;
    margin-left: -1%;
    display: block;
}
.recipe-carousel .owl-nav button{
    color: #22453C !important;
    margin: 0 !important;
}

.recipe-carousel .owl-dots {
    margin: 0;
    margin-left: 5%;
    padding: 0;
    text-align: left;
    z-index: -1;
    text-align: left !important;
}

.recipe-carousel .owl-theme .owl-dots .owl-dot span {
    display: none;
}

.recipe-carousel .owl-stage .owl-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.1s;
}
.recipe-carousel .owl-stage .owl-item.active {
    opacity: 1;
}
.recipe-carousel .owl-carousel .animated {
    animation-duration: 0.4s;
}

.recipe-carousel .bottom {
    height: 80px;
    border-top: 1px solid #B0AFB1;
    width: 100%;
}

.autoplay-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px !important;
    background-color: #FFFFFF !important;
    color: #B0AFB1 !important;
    border: 1px solid #B0AFB1 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    text-align: center;
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    z-index: 99;
}

.autoplay-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: progress 3s linear infinite;
    transform: rotate(-90deg);
    transform-origin: center;
    visibility: hidden;
}

.autoplay-toggle.autoplay::before {
    visibility: visible;
}

.autoplay-anim-container {
    position: absolute;
    width: 45px;
    height: 45px;
    bottom: 22px;
    right: 22px;
    background: transparent;
}
.halfclip {
    width: 50%;
    height: 100%;
    right: 0;
    position: absolute;
    overflow: hidden;
    transform-origin: left center;
   animation: cliprotate 6s steps(2) infinite; 
}

.halfcircle {
    box-sizing: border-box;
    height: 100%;
    right: 0;
    position: absolute;
    border: solid 5px transparent;
    border-top-color: #389479;
    border-left-color: #389479;
    border-radius: 50%;
}

.clipped {
    width: 200%;
    animation: rotate 3s linear infinite;
}

.fixed {
    width: 100%;
    transform: rotate(135deg);
    animation: showfixed 6s steps(2) infinite; 
}
  


@keyframes cliprotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate {
    0% { transform: rotate(-45deg); }
    100% { transform: rotate(135deg); }
}

@keyframes showfixed {
    0% { opacity: 0; }
    49.9% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

.paused .halfclip,
.paused .clipped,
.paused .fixed {
    animation-play-state: paused;
}

#controls {
    margin-top: 20px;
    text-align: center;
}




/* Responsive */

@media only screen and (max-width: 1280px) {
    .recipe-carousel-content {
        padding-left:15px;
    }
}

@media only screen and (max-width: 1024px) {
    .recipe-carousel{
        margin: 54px 0;
    }
    .recipe-carousel-item{
        flex-direction: column-reverse;
    }
    .recipe-carousel-content .ingredients, .recipe-carousel-content .buttons .secondary-button, .recipe-carousel-content .label{
        display: none;
    }
    .autoplay-toggle, .autoplay-toggle::before{
        display: none;
        position: unset;
    }
    .autoplay-anim-container{
        display: none;
        position: unset;
    }
    .recipe-carousel-image {
        width: 480px;
        height: 480px;
        max-width:100%;
    }
    .recipe-carousel-content {
        width:100%;
    }
    .recipe-carousel-image .mobile-label{
        max-width: 80px;
        height: 32px;
        border: 1px solid #FFFFFF;
        border-radius: 4px;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 900;
        line-height: 20px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 24px;
        position: absolute;
        top: 8px;
        left:8px;
        padding: 8px 16px;
    }
    .recipe-carousel .bottom{
        height: auto;
        border-top: none;
    }
    .recipe-carousel-content {
        padding-left:15px;
        padding-right:15px;
        height:auto;
    }
    .recipe-carousel-content .top{
        width: 100%;
    }
    .recipe-carousel-content .buttons{
        justify-content: center;
        margin: 0;
    }
    .recipe-carousel-content h4{
        font-weight: 900;
    }
    .recipe-carousel-content h4, .recipe-carousel-content p{
        text-align: center;
        margin: 0 auto;
    }
    .recipe-carousel-content p{
        min-height: unset;
        margin-bottom: 24px;
        padding: 0;
    }
    .recipe-carousel .owl-stage-outer{
        padding: 0;
    }
    .recipe-carousel .owl-nav{
        margin: 0;
        padding: 0;
        position: absolute;
        top: 200px;
        left: 0;
        width: 100% !important;
    }
    .recipe-carousel .owl-dots{
        margin: 0;
        padding: 0;
        position: absolute;
        top: 450px;
        left: 0;
        width: 100% !important;
        z-index: 10;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .recipe-carousel .owl-dots button.owl-dot.active{
        background-color: #FFD600 !important;
    }
    
}
@media only screen and (max-width: 550px) {
    .recipe-carousel-content h4{
        font-size: 24px;
        font-weight: 900;
        line-height: 32px;
        text-align: center;
        display: -webkit-box;
            -webkit-line-clamp: 1; 
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 1.5em; 
    }
    .recipe-carousel-content p{
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        text-align: center;
            display: -webkit-box;
            -webkit-line-clamp: 4; /* Maximum number of lines to show */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 6em; /* Adjust based on line-height */
    }

    .recipe-carousel-image {
        width: 100%;
        height: auto;
        max-width:100%;
    }
    .recipe-carousel-image img {
        position:relative;
        top:0;
        left:0;
        transform: none;
    }
    .recipe-carousel .owl-nav {
        top: 38vw;
    }
    .recipe-carousel .owl-dots {
        top: 85vw;
    }
}

