/* =========================================================
   FOODA CINEMATIC CARDS ELEMENTOR WIDGET
   Styles & Responsive Layout
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

.fooda-courses,
.fooda-courses * {
    box-sizing: border-box;
}

.fooda-courses {
    --fooda-red: #d6000b;
    --fooda-card-bg: radial-gradient(circle at 45% 100%, rgba(255,255,255,.04), transparent 45%), linear-gradient(120deg, rgba(16,16,16,.98), rgba(5,5,5,.99));
    --fooda-card-border: rgba(151, 32, 32, .66);
    --fooda-card-shadow: 0 24px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.025);
    
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #fff;
    font-family: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    overflow: visible !important;
    isolation: isolate;
}

/* STICKY STAGE */
.fooda-courses-stage {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

/* Background image overlay */
.fooda-courses-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
    opacity: 1;
}

.fooda-courses-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.52) 100%), rgba(0,0,0,.12);
}

/* INNER CONTAINER */
.fooda-courses-inner {
    position: relative;
    z-index: 5;
    width: min(1280px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

/* HEADING */
.fooda-courses-heading {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    flex-shrink: 0;
}

.fooda-courses-heading .eyebrow {
    margin: 0 0 8px;
    padding: 0;
    color: #e01823;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}

.fooda-courses-heading h2 {
    margin: 0 0 10px;
    padding: 0;
    color: #fff;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.fooda-courses-heading h2 span.highlighted {
    color: var(--fooda-red);
}

.fooda-courses-heading .description {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

/* CARD ZONE */
.fooda-card-zone {
    position: relative;
    width: min(1180px, 86vw);
    height: 430px;
    flex-shrink: 0;
    overflow: visible;
}

/* INDIVIDUAL CARD */
.fooda-course-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    direction: ltr;
    border: 1px solid var(--fooda-card-border);
    border-radius: 27px;
    overflow: hidden;
    background: var(--fooda-card-bg);
    box-shadow: var(--fooda-card-shadow);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

/* CARD MEDIA / IMAGE */
.fooda-course-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: center;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fooda-course-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 16px;
    background: transparent;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* CARD BODY */
.fooda-course-body {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    direction: rtl;
    text-align: right;
    padding: 94px 42px 30px 38px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
}

/* BIG BACKGROUND NUMBER (e.g. 01, 02) */
.fooda-course-number {
    position: absolute;
    top: 27px;
    left: 27px;
    margin: 0;
    color: rgba(255, 255, 255, .055);
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* BADGE */
.fooda-course-badge {
    position: absolute;
    top: 31px;
    right: 42px;
    min-height: 42px;
    max-width: 62%;
    padding: 0 20px 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fooda-red);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 22px rgba(214, 0, 11, .23);
    z-index: 3;
}

/* CARD TITLE */
.fooda-course-body h3 {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

/* CARD PARAGRAPH */
.fooda-course-body .card-description {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, .74) !important;
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
}

.fooda-course-body .card-description span {
    color: var(--fooda-red);
}

/* TIMELINE INDICATOR */
.fooda-course-timeline {
    position: absolute;
    top: 50%;
    right: -65px;
    z-index: 2000;
    transform: translateY(-50%);
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: pan-y;
    user-select: none;
}

.fooda-ct-item {
    width: 36px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.fooda-ct-line {
    width: 1px;
    height: 14px;
    flex: none;
    background: rgba(255, 255, 255, .16);
    transition: background .25s ease;
}

.fooda-ct-item:first-child .fooda-ct-line {
    visibility: hidden;
}

.fooda-ct-dot {
    width: 27px;
    height: 27px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 13, 13, .88);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .40);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.fooda-ct-item:hover .fooda-ct-dot {
    border-color: rgba(255, 255, 255, .4);
    color: rgba(255, 255, 255, .8);
}

.fooda-ct-item.is-active .fooda-ct-dot {
    background: var(--fooda-red);
    border-color: #ef3038;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(214, 0, 11, .12), 0 0 18px rgba(214, 0, 11, .24);
}

/* =========================================================
   TABLET RESPONSIVE (768px - 1200px)
========================================================= */
@media (min-width: 768px) and (max-width: 1200px) {
    .fooda-courses-inner {
        width: 91vw;
        gap: 24px;
    }

    .fooda-courses-heading .eyebrow {
        font-size: 19px;
    }

    .fooda-courses-heading h2 {
        font-size: 38px;
    }

    .fooda-courses-heading .description {
        font-size: 14px;
    }

    .fooda-card-zone {
        width: 82vw;
        height: 420px;
    }

    .fooda-course-card {
        grid-template-columns: 43% 57%;
    }

    .fooda-course-media {
        padding: 0 16px;
    }

    .fooda-course-body {
        padding: 88px 30px 24px 28px;
    }

    .fooda-course-badge {
        right: 30px;
        font-size: 12px;
    }

    .fooda-course-body h3 {
        font-size: 20px !important;
    }

    .fooda-course-body .card-description {
        font-size: 13px !important;
        line-height: 1.75 !important;
    }
}

/* =========================================================
   MOBILE RESPONSIVE (<= 767px)
========================================================= */
@media (max-width: 767px) {
    .fooda-courses-stage {
        padding: 20px 0;
    }

    .fooda-courses-stage::before {
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .fooda-courses-stage::after {
        background: rgba(0, 0, 0, .32);
    }

    .fooda-courses-inner {
        width: 90vw;
        max-height: calc(100svh - 18px);
        gap: 12px;
    }

    .fooda-courses-heading {
        width: 88vw;
        max-width: 88vw;
    }

    .fooda-courses-heading .eyebrow {
        margin: 0 0 3px;
        font-size: 14px;
    }

    .fooda-courses-heading h2 {
        margin: 0 0 4px;
        font-size: 26px;
        line-height: 1.28;
        letter-spacing: -.2px;
    }

    .fooda-courses-heading .description {
        font-size: 11.5px;
        line-height: 1.6;
    }

    .fooda-card-zone {
        width: 84vw;
        height: min(680px, calc(100svh - 138px));
        min-height: 500px;
        max-height: 680px;
    }

    .fooda-course-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 20px;
    }

    .fooda-course-media {
        width: 100%;
        height: clamp(135px, 23svh, 190px);
        aspect-ratio: auto;
        flex: none;
        padding: 10px 10px 0;
    }

    .fooda-course-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 13px;
    }

    .fooda-course-body {
        width: 100%;
        height: auto;
        flex: 1;
        min-height: 0;
        padding: 52px 16px 14px;
        justify-content: flex-start;
        overflow: hidden;
    }

    .fooda-course-number {
        top: 12px;
        left: 14px;
        font-size: 38px;
    }

    .fooda-course-badge {
        top: 12px;
        right: 15px;
        min-height: 30px;
        max-width: 68%;
        padding: 0 12px 2px;
        font-size: 9px;
    }

    .fooda-course-body h3 {
        margin: 0 0 7px !important;
        font-size: 17px !important;
        line-height: 1.45 !important;
    }

    .fooda-course-body .card-description {
        font-size: 13px !important;
        line-height: 1.55 !important;
        color: rgba(255, 255, 255, .78) !important;
    }

    .fooda-course-timeline {
        right: -28px;
    }

    .fooda-ct-item {
        width: 25px;
        height: 30px;
    }

    .fooda-ct-line {
        height: 9px;
    }

    .fooda-ct-dot {
        width: 20px;
        height: 20px;
        font-size: 6px;
    }
}

/* =========================================================
   SMALL MOBILE (<= 390px)
========================================================= */
@media (max-width: 390px) {
    .fooda-courses-inner {
        gap: 9px;
    }

    .fooda-courses-heading h2 {
        font-size: 23px;
    }

    .fooda-courses-heading .description {
        font-size: 10.5px;
    }

    .fooda-card-zone {
        width: 83vw;
        height: min(625px, calc(100svh - 128px));
        min-height: 480px;
    }

    .fooda-course-media {
        height: clamp(125px, 21svh, 165px);
    }

    .fooda-course-body {
        padding: 49px 14px 12px;
    }

    .fooda-course-body h3 {
        font-size: 15px !important;
        line-height: 1.38 !important;
    }

    .fooda-course-body .card-description {
        font-size: 10.5px !important;
        line-height: 1.5 !important;
    }
}
