
/* =========================================================
   5TV DISCOVER
   ========================================================= */

.ftv-discover {
    width: 100%;
    padding: 34px 0 64px;
}

.ftv-discover__container {
    width: min(
        1540px,
        calc(100% - 36px)
    );

    margin-inline: auto;
}


/* Hero */

.ftv-discover__hero {
    margin-bottom: 30px;
}

.ftv-discover__eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #e6b94f;

    font-size: 9px;
    font-weight: 850;
}

.ftv-discover__hero h1 {
    margin: 0;

    color: var(
        --ftv-text,
        #fff
    );

    font-size: clamp(
        26px,
        2.4vw,
        38px
    );

    font-weight: 900;
}

.ftv-discover__accent {
    display: block;

    width: 42px;
    height: 3px;

    margin-top: 8px;

    border-radius: 999px;

    background:
        rgba(
            230,
            185,
            79,
            .58
        );
}


/* Sections */

.ftv-discover-section {
    margin-top: 34px;
}

.ftv-discover-section__head {
    margin-bottom: 15px;
}

.ftv-discover-section__head h2 {
    position: relative;

    display: inline-block;

    margin: 0;

    padding-bottom: 8px;

    color:
        var(
            --ftv-text,
            #fff
        );

    font-size: 17px;
    font-weight: 850;
}

.ftv-discover-section__head h2::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 31px;
    height: 2px;

    border-radius: 999px;

    background:
        rgba(
            230,
            185,
            79,
            .48
        );
}


/* =========================================================
   PRIMARY CATEGORIES
   ========================================================= */

.ftv-discover-categories {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 11px;
}

.ftv-discover-category {
    position: relative;

    min-height: 88px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        17px
        18px;

    overflow: hidden;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .075
        );

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(
                255,
                255,
                255,
                .052
            ),
            rgba(
                255,
                255,
                255,
                .018
            )
        );

    color: inherit;
    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.ftv-discover-category:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(
            230,
            185,
            79,
            .32
        );
}

.ftv-discover-category__name {
    max-width: calc(100% - 35px);

    color:
        var(
            --ftv-text,
            #fff
        );

    font-size: 14px;
    font-weight: 850;
}

.ftv-discover-category__count {
    margin-top: 6px;

    color: #969ca6;

    font-size: 8px;
    font-weight: 700;
}

.ftv-discover-category__arrow {
    position: absolute;

    left: 16px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(
            230,
            185,
            79,
            .10
        );

    color: #e6b94f;

    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   CHIPS
   ========================================================= */

.ftv-discover-chips {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.ftv-discover-chips a {
    min-height: 35px;

    display: inline-flex;
    align-items: center;

    padding:
        0
        13px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .075
        );

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .035
        );

    color:
        #c3c6cb;

    font-size: 10px;
    font-weight: 750;

    text-decoration: none;

    transition:
        border-color .16s ease,
        color .16s ease,
        background .16s ease;
}

.ftv-discover-chips a:hover {
    border-color:
        rgba(
            230,
            185,
            79,
            .32
        );

    background:
        rgba(
            230,
            185,
            79,
            .075
        );

    color:
        #e6b94f;
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.ftv-discover-quick {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.ftv-discover-quick a {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding:
        0
        16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .075
        );

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            .032
        );

    color:
        var(
            --ftv-text,
            #fff
        );

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}

.ftv-discover-quick b {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(
            230,
            185,
            79,
            .10
        );

    color:
        #e6b94f;

    font-size: 20px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ftv-discover {
        padding:
            23px
            0
            46px;
    }

    .ftv-discover__container {
        width:
            calc(100% - 20px);
    }

    .ftv-discover__hero {
        margin-bottom:
            23px;
    }

    .ftv-discover__hero h1 {
        font-size:
            23px;
    }

    .ftv-discover-section {
        margin-top:
            27px;
    }

    .ftv-discover-section__head {
        margin-bottom:
            12px;
    }

    .ftv-discover-section__head h2 {
        font-size:
            14px;
    }


    /*
     * 2 primary category cards per row.
     */
    .ftv-discover-categories {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            8px;
    }

    .ftv-discover-category {
        min-height:
            76px;

        padding:
            13px
            12px;

        border-radius:
            11px;
    }

    .ftv-discover-category__name {
        max-width:
            calc(100% - 27px);

        font-size:
            10px;

        line-height:
            1.45;
    }

    .ftv-discover-category__count {
        margin-top:
            4px;

        font-size:
            7px;
    }

    .ftv-discover-category__arrow {
        left:
            9px;

        width:
            23px;

        height:
            23px;

        font-size:
            18px;
    }


    /*
     * Horizontal scroll for discovery chips.
     */
    .ftv-discover-chips {
        flex-wrap:
            nowrap;

        overflow-x:
            auto;

        overflow-y:
            hidden;

        padding-bottom:
            4px;

        scrollbar-width:
            none;

        -webkit-overflow-scrolling:
            touch;
    }

    .ftv-discover-chips::-webkit-scrollbar {
        display: none;
    }

    .ftv-discover-chips a {
        flex:
            0 0 auto;

        min-height:
            32px;

        padding-inline:
            11px;

        font-size:
            8.5px;
    }


    .ftv-discover-quick {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            8px;
    }

    .ftv-discover-quick a {
        min-height:
            58px;

        padding:
            0
            12px;

        font-size:
            9px;

        border-radius:
            11px;
    }

    .ftv-discover-quick b {
        width:
            23px;

        height:
            23px;

        font-size:
            17px;
    }
}


/* =========================================================
   DISCOVER — RTL NAVIGATION ARROWS
   ========================================================= */

.ftv-discover-category__arrow {
    left: 16px !important;
    right: auto !important;

    direction: ltr !important;
}

.ftv-discover-quick b {
    direction: ltr !important;
}


/* Mobile */

@media (max-width: 767px) {

    .ftv-discover-category__arrow {
        left: 9px !important;
        right: auto !important;
    }

}


/* =========================================================
   DISCOVER — LIGHT THEME FIX
   ========================================================= */

/*
 * نحاول دعم أكثر من شكل ممكن
 * لتفعيل الـ Light Theme عندك.
 */
html[data-theme="light"] .ftv-discover,
body[data-theme="light"] .ftv-discover,
body.light-theme .ftv-discover,
body.is-light .ftv-discover {

    color: #1b1f24;
}


/* Headings */

html[data-theme="light"] .ftv-discover__hero h1,
html[data-theme="light"] .ftv-discover-section__head h2,

body[data-theme="light"] .ftv-discover__hero h1,
body[data-theme="light"] .ftv-discover-section__head h2,

body.light-theme .ftv-discover__hero h1,
body.light-theme .ftv-discover-section__head h2,

body.is-light .ftv-discover__hero h1,
body.is-light .ftv-discover-section__head h2 {
    color: #181b20 !important;
}


/* Primary category cards */

html[data-theme="light"] .ftv-discover-category,
body[data-theme="light"] .ftv-discover-category,
body.light-theme .ftv-discover-category,
body.is-light .ftv-discover-category {

    border-color: rgba(0,0,0,.08) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(245,246,248,.96)
        ) !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.045);
}


html[data-theme="light"] .ftv-discover-category__name,
body[data-theme="light"] .ftv-discover-category__name,
body.light-theme .ftv-discover-category__name,
body.is-light .ftv-discover-category__name {
    color: #1d2025 !important;
}


html[data-theme="light"] .ftv-discover-category__count,
body[data-theme="light"] .ftv-discover-category__count,
body.light-theme .ftv-discover-category__count,
body.is-light .ftv-discover-category__count {
    color: #858b94 !important;
}


/* Arrow */

html[data-theme="light"] .ftv-discover-category__arrow,
body[data-theme="light"] .ftv-discover-category__arrow,
body.light-theme .ftv-discover-category__arrow,
body.is-light .ftv-discover-category__arrow {

    background:
        rgba(230,185,79,.14) !important;

    color: #b48718 !important;
}


/* Chips */

html[data-theme="light"] .ftv-discover-chips a,
body[data-theme="light"] .ftv-discover-chips a,
body.light-theme .ftv-discover-chips a,
body.is-light .ftv-discover-chips a {

    border-color:
        rgba(0,0,0,.08) !important;

    background:
        #fff !important;

    color:
        #626872 !important;
}


html[data-theme="light"] .ftv-discover-chips a:hover,
body[data-theme="light"] .ftv-discover-chips a:hover,
body.light-theme .ftv-discover-chips a:hover,
body.is-light .ftv-discover-chips a:hover {

    border-color:
        rgba(180,135,24,.30) !important;

    background:
        rgba(230,185,79,.10) !important;

    color:
        #9b7312 !important;
}


/* Quick links */

html[data-theme="light"] .ftv-discover-quick a,
body[data-theme="light"] .ftv-discover-quick a,
body.light-theme .ftv-discover-quick a,
body.is-light .ftv-discover-quick a {

    border-color:
        rgba(0,0,0,.08) !important;

    background:
        #fff !important;

    color:
        #1d2025 !important;

    box-shadow:
        0 4px 16px rgba(0,0,0,.04);
}


html[data-theme="light"] .ftv-discover-quick b,
body[data-theme="light"] .ftv-discover-quick b,
body.light-theme .ftv-discover-quick b,
body.is-light .ftv-discover-quick b {

    background:
        rgba(230,185,79,.14) !important;

    color:
        #b48718 !important;
}


/* Accent stays gold but slightly stronger in light mode */

html[data-theme="light"] .ftv-discover__accent,
html[data-theme="light"] .ftv-discover-section__head h2::after,

body[data-theme="light"] .ftv-discover__accent,
body[data-theme="light"] .ftv-discover-section__head h2::after,

body.light-theme .ftv-discover__accent,
body.light-theme .ftv-discover-section__head h2::after,

body.is-light .ftv-discover__accent,
body.is-light .ftv-discover-section__head h2::after {

    background:
        rgba(196,145,20,.70) !important;
}

