#community {
    padding-top: 100px;
}
.community-title {
    color: #fb0a01;
    font-size: 3rem;
    font-family: zlb;
}
#community .cookingclass {
    background: url(../img/community/bg-cookingclass.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    z-index: 0;
    position: relative;
}
#community .cookingclass .items {
    padding: 2rem 0;
}
#community .cookingclass .left {
    position: relative;
}
#community .cookingclass .left .bgBlack {
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 15px;
}
#community .cookingclass .left .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: #ff0000;
    padding: 5px;
    left: -50px;
    border-radius: 50%;
}
#community .cookingclass .left .swiper-button-next {
    width: 50px;
    height: 50px;
    background: #ff0000;
    padding: 5px;
    right: -50px;
    border-radius: 50%;
}
#community .cookingclass .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
#community .cookingclass .left .swiper-button-prev img {
    width: auto;
    height: auto;
}
#community .cookingclass .left .swiper-button-next img {
    width: auto;
    height: auto;
}
#community .cookingclass .right img {
    width: 200px;
}
#community .cookingclass .right h2 {
    font-size: 1rem;
    color: #ffff;
    width: 70%;
    margin-top: 15px;
    font-family: poppinsreg;
}
#community .cookingclass .right h2 span {
    color: #6d655e;
    font-weight: 700;
}
#community .cookingclass .right a {
    background: #ee3638;
    padding: 3px 15px;
    color: #fff;
    margin-top: 30px;
    border-radius: 30px;
    font-family: poppinsreg;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: none;
}
#community .cookingclass .swiper-button-next:after,
#community .cookingclass .swiper-button-prev:after {
    font-size: 2rem;
    color: #fff;
    display: none;
}
.community-videos {
    padding: 3rem 0 4rem;
}

.videos-track-outer {
    overflow: hidden;
    width: 100%;
}

.videos-track {
    display: flex;
    gap: 10px;
    align-items: stretch;
    height: 500px;
}

.video-slide {
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #000;
    cursor: pointer;
    width: 100px;
    height: 100%; /* tambah ini */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-slide.is-active {
    width: calc(100% - 220px);
    height: 100%;
    cursor: default;
}

.video-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.video-slide.is-active .video-slide__overlay {
    background: rgba(0, 0, 0, 0.08);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.video-play-btn .icon-play {
    width: 50px;
}

.video-slide.is-active .video-play-btn {
    pointer-events: auto;
    cursor: pointer;
}

.video-slide__iframe {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 5;
}

.video-slide.playing .video-slide__img,
.video-slide.playing .video-slide__overlay,
.video-slide.playing .video-play-btn {
    display: none;
}

.video-slide.playing .video-slide__iframe {
    display: block;
}

.video-caption {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-caption__title {
    font-family: jkt;
    font-size: 1rem;
    font-weight: 700;
    color: #606060;
}

.videos-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.videos-nav__btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fb0a01;
    background: #fff;
    color: #fb0a01;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.videos-nav__btn:hover {
    background: #fb0a01;
    color: #fff;
}

@media (max-width: 768px) {
    .community-title {
        font-size: 2rem;
    }
    #community .cookingclass {
        padding: 0;
        background: url(../img/community/bg-cookingclass-mobile.png);
        background-repeat: no-repeat;
        background-position: bottom;
        height: 60vh;
        background-size: cover;
    }
    #community .cookingclass .right {
        text-align: center;
        margin-top: 15px;
    }
    #community .cookingclass .right .mbl {
        text-align: left;
        margin-left: 15px;
    }
    #community .cookingclass .right h2 {
        width: 100%;
        font-size: 0.8rem;
        margin-top: 0;
    }
    #community .cookingclass .right a {
        margin-top: 15px;
    }
    #community .cookingclass .right .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #community .cookingclass .right img {
        width: 75px;
    }
    #community .cookingclass .left {
        padding: 0 50px;
        margin-top: 30px;
    }
    #community .cookingclass .left .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    #community .cookingclass .left .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    #community .cookingclass .left .swiper-button-prev img {
        width: 10px;
        height: 10px;
    }
    #community .cookingclass .left .swiper-button-next img {
        width: 10px;
        height: 10px;
    }
    #community .cookingclass .left .swiper-button-prev {
        left: 15px;
    }
    #community .cookingclass .left .swiper-button-next {
        right: 15px;
    }
    .video-slide {
        width: 50px;
        height: 100%;
    }
    .video-slide.is-active {
        width: calc(100vw - 120px);
        height: 100%;
    }
    .video-caption__title {
        font-size: 0.8rem;
    }
    .video-play-btn .icon-play {
        width: 25px;
    }
    .videos-track {
        height: 200px;
    }
}
