/*
|--------------------------------------------------------------------------
| UBEX Home
|--------------------------------------------------------------------------
*/

.watch-ubex-home {
    --ubex-cyan: #2ec5f0;
    --ubex-navy: #173f73;
    --ubex-dark-navy: #081837;

    background: #080b11;
    color: #fff;

    min-height: 100vh;

    overflow-x: clip;
}


/*
|--------------------------------------------------------------------------
| Hero Slider
|--------------------------------------------------------------------------
*/

.ubex-home-hero {
    position: relative;

    width: 100%;

    height:
        clamp(
            520px,
            52vw,
            780px
        );

    background: #000;

    overflow: hidden;
}


.ubex-home-slides {
    position: absolute;
    inset: 0;
}


.ubex-home-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    background-color: #000;
    background-size: cover;
    background-position: center;

    transition:
        opacity 0.8s ease;

    pointer-events: none;
}


.ubex-home-slide.active {
    opacity: 1;

    pointer-events: auto;

    z-index: 2;
}


/*
 * LEFT BLACK GRADIENT
 */

.ubex-home-slide-left-gradient {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 24, 55, 0.98) 0%,
            rgba(23, 63, 115, 0.92) 20%,
            rgba(46, 197, 240, 0.48) 42%,
            rgba(46, 197, 240, 0) 67%
        );

    z-index: 1;
}


/*
 * LOWER THIRD GRADIENT
 */

.ubex-home-slide-bottom-gradient {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.88) 15%,
            rgba(0,0,0,0.42) 34%,
            rgba(0,0,0,0) 58%
        );

    z-index: 1;
}


.ubex-home-slide-content {
    position: relative;

    z-index: 3;

    width: min(92%, 1400px);

    height: 100%;

    margin: auto;

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

    align-items: flex-start;

    padding-bottom: 50px;

    box-sizing: border-box;
}


.ubex-home-slide-content > * {
    max-width: 610px;
}


.ubex-home-slide-eyebrow {
    margin-bottom: 14px;

    color:
        var(--ubex-cyan);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.ubex-home-slide h1 {
    margin:
        0 0 20px;

    color: #fff;

    font-size:
        clamp(
            30px,
            4vw,
            60px
        );

    line-height: 1;

    font-weight: 700;
}


.ubex-home-slide-description {
    margin:
        0 0 18px;

    color:
        rgba(255,255,255,0.92);

    font-size:
        clamp(
            16px,
            1.3vw,
            20px
        );

    line-height: 1.55;
}


.ubex-home-slide-meta {
    margin-bottom: 26px;

    color:
        rgba(255,255,255,0.72);

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Solid Buttons
|--------------------------------------------------------------------------
*/

.ubex-home-slide-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


.ubex-home-button {
    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding:
        0 24px;

    border: 0;

    border-radius: 5px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.ubex-home-button-primary {
    background:
        var(--ubex-cyan);

    color:
        #061323;
}


.ubex-home-button-primary:hover {
    background: #5bd6f5;

    transform:
        translateY(-1px);
}


.ubex-home-button-secondary {
    background:
        var(--ubex-navy);

    color: #fff;
}


.ubex-home-button-secondary:hover {
    background: #21558f;

    color: #fff;
}


.ubex-home-button-play {
    width: 0;
    height: 0;

    border-top:
        7px solid transparent;

    border-bottom:
        7px solid transparent;

    border-left:
        11px solid currentColor;
}


/*
|--------------------------------------------------------------------------
| Slider Dots
|--------------------------------------------------------------------------
*/

.ubex-home-slider-dots {
    position: absolute;

    left: 50%;

    bottom: 26px;

    transform:
        translateX(-50%);

    display: flex;

    gap: 9px;

    z-index: 10;
}


.ubex-home-slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,0.38);

    cursor: pointer;
}


.ubex-home-slider-dot.active {
    background:
        var(--ubex-cyan, #2ec5f0);
}


/*
|--------------------------------------------------------------------------
| Hero Scrolling Announcement
|--------------------------------------------------------------------------
*/

.ubex-home-announcement {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 18px;

    height: 38px;

    display: flex;
    align-items: center;

    overflow: hidden;

    z-index: 8;

    background: transparent;

    pointer-events: none;
}

.ubex-home-announcement-track {
    position: absolute;

    white-space: nowrap;

    color: #fff;

    font-size: 15px;
    font-weight: 500;

    line-height: 38px;

    animation:
        ubexAnnouncementScroll
        40s linear infinite;
}

@keyframes ubexAnnouncementScroll {

    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}


/*
|--------------------------------------------------------------------------
| Home Sections
|--------------------------------------------------------------------------
*/

.ubex-home-section {
    width: 100%;

    padding:
        15px 0 80px;
}


.ubex-home-section-header {
    width:
        min(92%, 1400px);

    margin:
        0 auto 20px;
}


.ubex-home-section-header h2 {
    margin: 0;

    color: #fff;

    font-size:
        clamp(
            21px,
            2vw,
            28px
        );
}




/*
|--------------------------------------------------------------------------
| All Access Infinite Rail
|--------------------------------------------------------------------------
*/

.ubex-all-access {
    /*
     * Extra room allows the hover details to appear
     * without moving the next section.
     */
    padding-bottom: 190px;
}


/*
|--------------------------------------------------------------------------
| All Access Circular Carousel
|--------------------------------------------------------------------------
*/

.ubex-all-access {
    position: relative;

    /*
     * Room for expanded hover cards.
     */
    padding-bottom: 170px;
}


.ubex-all-access-rail {
    position: relative;

    width: 100%;

    box-sizing: border-box;
}


/*
 * Clips horizontal cards that are outside the viewing area.
 *
 * Extra bottom padding allows the hover details to expand
 * without being clipped.
 */
.ubex-all-access-viewport {
    width: 100%;

    overflow: hidden;

    box-sizing: border-box;

    padding:
        18px 4vw 180px;

    margin-bottom: -180px;
}


.ubex-all-access-track {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    width: max-content;

    transform:
        translate3d(0, 0, 0);

    will-change: transform;
}


/*
|--------------------------------------------------------------------------
| Carousel Arrows
|--------------------------------------------------------------------------
*/

.ubex-carousel-arrow {
    position: absolute;

    top:
        clamp(
            82px,
            7vw,
            110px
        );

    transform:
        translateY(-50%);

    width: 46px;
    height: 68px;

    padding: 0;

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

    border: 0;

    border-radius: 4px;

    background:
        rgba(23, 63, 115, 0.94);

    color: #fff;

    font-size: 42px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 150;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.ubex-carousel-prev {
    left: 8px;
}


.ubex-carousel-next {
    right: 8px;
}


.ubex-carousel-arrow:hover,
.ubex-carousel-arrow:focus-visible {
    background:
        var(--ubex-cyan, #2ec5f0);

    color: #061323;
}


.ubex-carousel-arrow:active {
    transform:
        translateY(-50%)
        scale(0.95);
}


/*
|--------------------------------------------------------------------------
| All Access Cards
|--------------------------------------------------------------------------
*/

.ubex-all-access-card {
    position: relative;

    width:
        clamp(
            290px,
            25vw,
            390px
        );

    flex:
        0 0 auto;

    aspect-ratio:
        16 / 9;

    z-index: 1;
    
}
div.all-access-viewport {
    border: 3px solid var(--ubex-cyan);
}

.ubex-all-access-preview {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    background:
        #111720;

    border-radius:
        7px;

    overflow: visible;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;

    transform-origin:
        center center;
}


.ubex-all-access-image {
    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    border-radius:
        7px;

    background:
        #161b24;
}


.ubex-all-access-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.ubex-all-access-fallback {
    width: 100%;
    height: 100%;

    background:
        var(--ubex-dark-navy);
}


/*
|--------------------------------------------------------------------------
| Hover Description Panel
|--------------------------------------------------------------------------
*/

.ubex-all-access-details {
    position: absolute;

    top:
        calc(100% - 4px);

    left: 0;

    width: 100%;

    box-sizing:
        border-box;

    padding:
        18px;

    background:
        #111720;

    color: #fff;

    border-radius:
        0 0 7px 7px;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-10px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.ubex-all-access-details h3 {
    margin:
        0 0 10px;

    color: #fff;

    font-size: 17px;
}


.ubex-all-access-details p {
    margin:
        0 0 15px;

    color:
        rgba(255,255,255,0.72);

    font-size: 13px!important;

    line-height: 1.3;
}


.ubex-all-access-details p {
    display: -webkit-box;
    /*-webkit-line-clamp: 3;*/
    -webkit-box-orient: vertical;
    padding-bottom: 5px;

    overflow: hidden;

    min-height: 4.5em;
    max-height: 4.5em;
}

.ubex-all-access-details .ubex-home-button {
    min-height: 30px;
    padding: 0 18px;
    font-size: 14px;
}



.ubex-all-access-card:hover,
.ubex-all-access-card:focus-within {
    z-index: 100;
}
 

.ubex-all-access-card:hover
.ubex-all-access-preview,
.ubex-all-access-card:focus-within
.ubex-all-access-preview {

    transform: scale(1.08);
    box-shadow: 0 20px 55px rgba(0,0,0,0.7);
}


.ubex-all-access-card:hover
.ubex-all-access-details,
.ubex-all-access-card:focus-within
.ubex-all-access-details {

    opacity: 1;
    
    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .ubex-home-hero {
        height: 600px;
    }


    .ubex-home-slide {
        background-position: 65% center;
    }


    .ubex-home-slide-left-gradient {
        background:
            linear-gradient(
                to top,
                rgba(0,0,0,1) 0%,
                rgba(0,0,0,0.94) 42%,
                rgba(0,0,0,0.28) 76%,
                rgba(0,0,0,0) 100%
            );
    }
    .ubex-home-slide-bottom-gradient {
        position: absolute;
        inset: 0;

        background:
            linear-gradient(
                to top,
                rgba(8, 24, 55, 1) 0%,
                rgba(23, 63, 115, 0.92) 15%,
                rgba(46, 197, 240, 0.45) 34%,
                rgba(46, 197, 240, 0) 58%
            );

        z-index: 1;
    }


    .ubex-home-slide-content {
        justify-content: flex-end;

        align-items: center;

        text-align: center;

        padding-bottom: 85px;
    }


    .ubex-home-slide-eyebrow,
    .ubex-home-slide h1,
    .ubex-home-slide-description,
    .ubex-home-slide-meta {
        width: 100%;

        text-align: center;
        align-items: center;
    }


    .ubex-home-slide-actions {
        width: 100%;

        justify-content: center;
    }


    .ubex-all-access-card {
        width: 280px;
    }

}