/* ==========================================
   FEATURED NEWS HERO SLIDER
   Shortcode: [bsw_news_slider]
========================================== */


/* ==========================================
   MAIN SLIDER
========================================== */

.bsw-news-hero-slider {
    position: relative !important;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 0 !important;

    overflow: hidden;

    background: #071a52;

    box-sizing: border-box;

    isolation: isolate;
}


/* ==========================================
   SLIDER TRACK
========================================== */

.bsw-news-hero-track {
    position: relative;

    width: 100%;
    max-width: none;

    height: clamp(
        420px,
        54vw,
        720px
    );

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* ==========================================
   SLIDE
========================================== */

.bsw-news-hero-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}


.bsw-news-hero-slide.is-active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}


/* ==========================================
   SLIDE LINK
========================================== */

.bsw-news-hero-link {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    text-decoration: none !important;
}


/* ==========================================
   FEATURED IMAGE
========================================== */

.bsw-news-hero-image {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;

    object-position: center center;

    border: 0 !important;
}


/* ==========================================
   DARK IMAGE OVERLAY
========================================== */

.bsw-news-hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: block;

    background:
        linear-gradient(
            0deg,
            rgba(2, 11, 39, .92) 0%,
            rgba(2, 11, 39, .60) 30%,
            rgba(2, 11, 39, .30) 55%,
            rgba(2, 11, 39, .08) 82%
        );

    pointer-events: none;
}


/* ==========================================
   CONTENT
========================================== */

.bsw-news-hero-content {
    position: absolute;

    left: max(
        32px,
        calc((100vw - 1376px) / 2)
    );

    right: max(
        32px,
        calc((100vw - 1376px) / 2)
    );

    bottom: 64px;

    z-index: 3;

    display: block;

    max-width: 900px;

    margin: 0;
    padding: 0;
}


/* ==========================================
   CATEGORY TAG
========================================== */

.bsw-news-hero-tag {
    display: table;

    width: auto;

    margin: 0 0 13px 0;

    padding: 7px 11px;

    border-radius: 7px;

    background: #ffffff;

    color: #071a52;

    font-size: 10px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: .4px;

    text-transform: uppercase;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, .10);
}


/* ==========================================
   NEWS TITLE
========================================== */

.bsw-news-hero-title {
    display: block;

    max-width: 900px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        32px,
        4.4vw,
        68px
    );

    line-height: 1.02;

    font-weight: 900;

    letter-spacing: -1.8px;

    text-shadow:
        0 3px 18px
        rgba(0, 0, 0, .22);
}


/* ==========================================
   ARROWS
========================================== */

.bsw-news-hero-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 !important;

    transform:
        translateY(-50%);

    border:
        1px solid
        rgba(255, 255, 255, .35);

    border-radius: 50%;

    background:
        rgba(5, 17, 55, .28);

    color: #ffffff;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity .2s ease,
        background .2s ease,
        transform .2s ease;

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);
}


.bsw-news-hero-slider:hover
.bsw-news-hero-arrow {
    opacity: 1;
}


.bsw-news-hero-arrow:hover {
    background:
        rgba(5, 17, 55, .68);
}


.bsw-news-hero-prev {
    left: 22px;
}


.bsw-news-hero-next {
    right: 22px;
}


/* ==========================================
   NAVIGATION DOTS
========================================== */

.bsw-news-hero-dots {
    position: absolute;

    z-index: 10;

    right: max(
        32px,
        calc((100vw - 1376px) / 2)
    );

    bottom: 34px;

    display: flex;

    align-items: center;

    gap: 7px;
}


.bsw-news-hero-dot {
    width: 8px;
    height: 8px;

    min-width: 8px;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .48);

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease;
}


.bsw-news-hero-dot.is-active {
    width: 28px;

    background: #ffffff;
}


/* ==========================================
   TABLET
========================================== */

@media (
    min-width: 768px
)
and (
    max-width: 1100px
) {

    .bsw-news-hero-track {
        height: 560px;
    }


    .bsw-news-hero-content {
        left: 28px;

        right: 28px;

        bottom: 60px;

        max-width: 760px;
    }


    .bsw-news-hero-title {
        max-width: 760px;

        font-size: 46px;
    }


    .bsw-news-hero-dots {
        right: 28px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (
    max-width: 767px
) {

    .bsw-news-hero-slider {
        width: 100vw !important;

        max-width: 100vw !important;

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;
    }


    .bsw-news-hero-track {
        height: 500px;
    }


    .bsw-news-hero-content {
        left: 18px;

        right: 18px;

        bottom: 55px;

        max-width: none;
    }


    .bsw-news-hero-tag {
        margin-bottom: 10px;

        padding: 6px 9px;

        font-size: 9px;

        border-radius: 6px;
    }


    .bsw-news-hero-title {
        max-width: 100%;

        font-size: 32px;

        line-height: 1.05;

        letter-spacing: -.8px;
    }


    /*
     * Hide arrows on mobile.
     * Mobile uses swipe + dots.
     */
    .bsw-news-hero-arrow {
        display: none !important;
    }


    .bsw-news-hero-dots {
        left: 18px;

        right: auto;

        bottom: 22px;
    }


    .bsw-news-hero-dot {
        width: 7px;

        height: 7px;

        min-width: 7px;
    }


    .bsw-news-hero-dot.is-active {
        width: 24px;
    }
}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (
    max-width: 420px
) {

    .bsw-news-hero-track {
        height: 460px;
    }


    .bsw-news-hero-content {
        left: 16px;

        right: 16px;

        bottom: 52px;
    }


    .bsw-news-hero-title {
        font-size: 28px;
    }


    .bsw-news-hero-dots {
        left: 16px;

        bottom: 20px;
    }
}