body {
    background-color: #F9F7F2;
    font-family: 'Poppins', sans-serif;
    /* overflow-x: hidden; */
}

/* ----------------------------------divider--------------------------------- */

.title-wrapper {
    text-align: center;
}

.title-inner {
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
}

.divider {
    /* margin-bottom: 50px; */
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(192, 132, 61, 0) 0%,
            #C0843D 48.56%,
            rgba(192, 132, 61, 0) 100%);
}

.main-heading{
    margin-right: 50px;
}

.recipe-section {
    position: relative;
}

.hero-main-container {
    margin-left: -40px;
    margin-top: -20px;
}

/* The grey arch background behind the dish */
.image-bg-shape {
    position: absolute;
    top: 0;
    left: -20px;
    width: 110%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}


/* ------------------------DIVIDER----------------- */

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(192, 132, 61, 0) 0%,
            #C0843D 48.56%,
            rgba(192, 132, 61, 0) 100%);
}


.dish-name {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 500;
}

.description {
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
}

.yt-text{
    font-size:1rem;
    font-weight: 400;
}

/* Buttons */
.btn-watch {
    border: 1px solid #CCCCCC;
    border-radius: 10px;
    padding: 4px 10px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Recipe Cards */
.recipe-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px 15px 15px 15px;
    text-align: center;
    position: relative;
    margin-top: 50px;
    border: none;
    color: black;
}

.card-img-top {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    border: 3px solid var(--bg-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Floating Sushi (Desktop only) */
.sushi-float {
    position: absolute;
    bottom: -100px;
    right: 20px;
    height: 316px;
    width: 210px;
    opacity: 0.5 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 20px;
    }

    .text-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .image-bg-shape {
        width: 100%;
        left: 0;
    }

    .sushi-float {
        display: none;
    }

    /* Hide extra cards on mobile to match your screenshot */
    .mobile-hide {
        display: none;
    }
}


/* ------------------------Explore More Recipes------------------------ */
/* Filter Buttons */
.btn-filter {
    background: var(--bg-color);
    border: 1px solid #00000059;
    border-radius: 15px;
    padding: 6px 18px;
    font-weight: 500;
}

.btn-filter.active {
    background: #4F5F3A2E;
    color: black;
    border: 1px solid #4F5F3A;
}

.btn-filter:hover {
    background-color: #82a05a2e;
}

/* Main Recipe Card */
.recipe-card-video {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 320px;
    min-height: 310px;
    background: #F6F3EC;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: -1px 1px 3px 0px #4545451A,
        -4px 5px 6px 0px #45454517,
        -8px 11px 8px 0px #4545450D,
        -15px 19px 10px 0px #45454503,
        -23px 30px 11px 0px #45454500;
}

.recipe-card-video .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes everything below it down */
}

.recipe-card-video .card-text {
    font-size: 0.85rem;
    color: #888;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* number of lines before ... */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-img-wrapper {
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-red);
    font-size: 2rem;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
}

.card-text {
    font-size: 0.85rem;
    color: #888;
}

/* Sidebar Styling */
.sidebar-widget {
    background: #F6F3EC;
    border-radius: 25px;
    padding: 25px;
    box-shadow: -1px 1px 3px 0px #4545451A,
        -4px 5px 6px 0px #45454517,
        -8px 11px 8px 0px #4545450D,
        -15px 19px 10px 0px #45454503,
        -23px 30px 11px 0px #45454500;
}

.latest-item {
    background: #D7D7D7;
    border: 1px solid #00000059;
    justify-content: space-between;
    border-radius: 20px;
    padding: 10px;
}

.btn-watch-sm {
    text-decoration: none;
    color: #AA5200;
    font-weight: 500;
    font-size: 0.8rem;
}

.video-thumbnail-1 {
    width: 97px;
    height: 55px;
    background-image: url("https://img.youtube.com/vi/07CAfHkiqIc/maxresdefault.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.video-thumbnail-2 {
    width: 97px;
    height: 55px;
    background-image: url("https://img.youtube.com/vi/ssqx0zNILak/hqdefault.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.video-thumbnail-3 {
    width: 97px;
    height: 55px;
    background-image: url("https://img.youtube.com/vi/KMMP7FqJESw/maxresdefault.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.widget-title {
    font-weight: 500;
}

.latest-img-box {
    position: relative;
    width: 97px;
    height: 55px;
    border-radius: 15px;
}

/* .latest-img-box img {
    border-radius: 12px;
} */

.latest-img-box .fa-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    background-color: white;
    font-size: 14px;
}

.btn-outline-youtube-danger {
    border: 3px solid #FF0000;
}

.btn:hover {
    background-color: inherit !important;
    color: inherit !important;
    border-color: red;
    box-shadow: none !important;
    transform: none !important;
}

.yt-widget .btn-outline-danger {
    color: #333;
    border-color: var(--accent-red);
}

.x-small {
    font-size: 0.75rem;
}

.rounded-circle {
    width: 52px;
    height: 52px;
    opacity: 1;
    border-radius: 25px;

}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .yt-widget {
        margin-top: -90px;
        margin-bottom: 5px;
    }

    .recipe-card-video {
        margin: 0 auto 20px;
        max-width: 350px;
    }
}

.pagination .page-item.active .page-link {
    background-color: #4a5d43;
    /* border-color: #4a5d43; */
    color: white;
}

/* Pagination Arrow Styling */
.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

/* Pagination Arrow Styling */
.pagination .page-link {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    /* border: 1px solid #4a5d43; */
    color: #4a5d43;
    background: white;
}

/* Forzar 4 cards por fila en pantallas grandes */
@media (min-width: 1200px) {
    #recipe-grid .col-xl-3 {
        width: 25%;
    }
}

/* -------------------video container--------------------- */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 ratio */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Navigation Buttons --- */

/* Arrows — directly below arch, no giant gap */
.hero-nav {
    margin-top: 70px !important;
    margin-left: 10rem !important;
    display: flex;
    gap: 10px;
    padding-left: 10px;
}

.hero-nav .nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #d9d3d3;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-nav .nav-btn:hover {
    background: #a8bb8e;
}

/* --- Most Liked Cards Styling --- */
.recipe-card {
   background: #4F5F3A33;
    border-radius: 15px;
    padding: 40px 15px 15px 15px;
    text-align: center;
    position: relative;
    margin-top: 50px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Most Liked Card Active State */
.recipe-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
    /* Dim inactive cards */
    cursor: pointer;
}

.recipe-card.active-card {
    opacity: 1;
    transform: translateY(-15px) scale(1.05);
    background-color: #c4cdc0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.recipe-card.active-card .card-img-top {
    transform: translateX(-50%) scale(1.1);
}

.card-img-top {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    border: 3px solid var(--bg-color);
}

/* --- Floating Sushi --- */
.sushi-float {
    position: absolute;
    bottom: -60px;
    right: 20px;
    height: 250px;
    width: auto;
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 768px) {

    .sushi-float,
    .mobile-hide {
        display: none;
    }

    .image-container {
        min-height: auto !important;
        width: 250px;
        height: 220px;
        position: relative;
        overflow: hidden;
    }

}


/* Position arrows outside cards, centered below */
#likedCarousel {
    padding-bottom: 60px;
    /* space for arrows */
}

#likedCarousel .liked-prev,
#likedCarousel .liked-next {
    /* Pull arrows below the cards */
    top: auto;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0 !important;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Position: prev left of center, next right of center */
#likedCarousel .liked-prev {
    left: 35%;
}

#likedCarousel .liked-next {
    right: 35%;
}

#likedCarousel .liked-prev i,
#likedCarousel .liked-next i {
    color: #333;
    font-size: 1rem;
}

/* Hide default Bootstrap icons */
#likedCarousel .carousel-control-prev-icon,
#likedCarousel .carousel-control-next-icon {
    display: none;
}

/* Active card — same as desktop selected style */
.recipe-card.active-card {
    opacity: 1 !important;
    transform: translateY(-15px) scale(1.05) !important;
    background-color: #c4cdc0 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile recipe carousel arrows */
.recipe-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
}

.recipe-carousel-prev {
    left: 5px;
}

.recipe-carousel-next {
    right: 5px;
}

.recipe-carousel-btn i {
    color: #333;
    font-size: 0.9rem;
}

/* Counter */
.carousel-counter {
    padding-bottom: 10px;
}

/* ------------------------------------------------------------------------------- */
/* ============================================
   HERO - Complete Fix
   ============================================ */

.recipe-section {
    padding-top: 10px !important;
    overflow: hidden;
}

/* Left column — bring it in */
.col-md-5.order-1 {
    padding-left: 40px !important;
}

/* Shrink the SVG arch container */
.image-container {
    min-height: auto !important;
    width: 400px;
    height: 320px;
    position: relative;
    overflow: hidden;
}

/* Force SVG to fit */
.image-container svg {
    width: 350px !important;
    height: 320px !important;
    display: block;
}

/* Update the base class to remove positioning conflicts */
.main-dish {
    width: 210px !important;
    height: 210px !important;
    position: absolute !important;
    top: 70% !important;
    left: 70% !important;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10;
    object-fit: cover;
}

/* Next (>) Animation: Drops from Top */
@keyframes dishFromTop {
    0% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Prev (<) Animation: Slides from Left */
@keyframes dishFromLeft {
    0% {
        opacity: 0;
        transform: translate(-150%, -50%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Use !important here to ensure the animation overrides the base transform */
.slide-in-right {
    animation: dishFromTop 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

.slide-in-left {
    animation: dishFromLeft 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Text Reveal stays the same */
.text-reveal {
    animation: textFadeUp 0.6s ease-out forwards;
}

@keyframes textFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RECIPE CARDS — tighter sizing
   ============================================ */

#liked-cards-container {
    margin-top: 10px !important;
}

#liked-cards-container .col-md-3,
#liked-cards-container .col {
    max-width: 160px !important;
    flex: 0 0 160px !important;
}

#liked-cards-container .recipe-card {
    padding: 30px 10px 12px !important;
    margin-top: 38px !important;
}

#liked-cards-container .card-img-top {
    width: 65px !important;
    height: 65px !important;
    top: -32px !important;
}

#liked-cards-container .card-title {
    font-size: 0.85rem !important;
}

#liked-cards-container .card-subtitle {
    font-size: 0.72rem !important;
}

/* ---------------------------------------------------- */
/* The container for the whole rotation logic */
.image-container {
    overflow: visible !important;
    /* Allow plates to be seen as they orbit */
}

.wheel-container {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    /* Center of rotation */
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

/* Individual plate positioning */
.dish-orbit {
    position: absolute;
    width: 210px;
    height: 210px;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

/* Positioning them in the 4 corners/quadrants like your sketch */
.dish-0 {
    top: -105px;
    left: 145px;
}

.dish-1 {
    top: 145px;
    left: 395px;
}

.dish-2 {
    top: 395px;
    left: 145px;
}

.dish-3 {
    top: 145px;
    left: -105px;
}

.orbit-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* This keeps the food from turning upside down when the wheel spins */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make inactive dishes smaller and faded */
.dish-orbit:not(.active-dish) {
    transform: scale(0.6);
}

.active-dish {
    opacity: 1;
    transform: scale(1);
    z-index: 20;
}

.hero-bg-circle {
    position: absolute;
    width: 440px;
    height: 380px;
    border-bottom-right-radius: 100%;
    opacity: 0.85;
    background-size: cover;
    background-position: left;
    z-index: 5;
    top: 0;
    left: 0;
    opacity: 0.4;
}

/* Single plate that rides on top of the arc */
.riding-plate {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 20;
    top: 110px;
    left: 130px;
    transform-origin: -130px -110px;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
}

.enter-from-top-right {
    animation: enterTopRight 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
}

.enter-from-bottom-left {
    animation: enterBottomLeft 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
}

.exit-to-bottom-left {
    animation: exitBottomLeft 0.8s ease forwards;
}

.exit-to-top-right {
    animation: exitTopRight 0.8s ease forwards;
}

@keyframes enterTopRight {
    0% {
        transform: rotate(-90deg);
    }

    /* starts at 12 o'clock */
    100% {
        transform: rotate(0deg);
    }

    /* lands at 3→6 position */
}

@keyframes enterBottomLeft {
    0% {
        transform: rotate(90deg);
    }

    /* starts at 6 o'clock */
    100% {
        transform: rotate(0deg);
    }

    /* lands at 3→6 position */
}

@keyframes exitBottomLeft {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }

    /* sweeps out clockwise to 6 */
}

@keyframes exitTopRight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-90deg);
    }

    /* sweeps out anti-clockwise to 12 */
}

/* Background arc fade */
.hero-bg-circle {
    transition: opacity 0.6s ease, transform 0.6s ease;
}


@media (max-width: 992px) {
    .hero-bg-circle {
        position: absolute;
        width: 280px;
        height: 280px;
        border-bottom-right-radius: 100%;
        opacity: 0.85;
        background-size: cover;
        background-position: left;
        z-index: 5;
        top: 0;
        left: 0;
        opacity: 0.4;
    }

    .riding-plate {
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        z-index: 20;
        top: 150px;
        left: 17px;
        transform-origin: -17px -150px;
        transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
    }

    .hero-nav {
        margin-top: -1px !important;
        margin-left: -10 !important;
        display: flex;
        gap: 2px;
        padding-left: 10px;
    }

    .left-side-container {
        display: flex;
    }

    .title-m {
        margin-top: -50px;
    }

    .hero-text-container {
        margin-top: -40px;
    }

    @keyframes enterTopRight {
        0% {
            transform: rotate(-90deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    @keyframes enterBottomLeft {
        0% {
            transform: rotate(90deg);
        }

        100% {
            transform: rotate(0deg);
        }
    }

    @keyframes exitBottomLeft {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(90deg);
        }
    }

    @keyframes exitTopRight {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(-90deg);
        }
    }

}