@font-face {
    font-family: "Isidora";
    src: url("./assets/fonts/isidora-light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.dev1-cbox-home-featured-upcoming-events {
    --home-featured-bg: #15111b;
    --home-featured-white: #ffffff;
    --home-featured-muted: #c8c4cd;
    --home-featured-yellow: #ffd044;
    --home-featured-border: rgba(255, 255, 255, 0.35);

    width: 100%;
    overflow: hidden;
    background: var(--home-featured-bg);
    color: var(--home-featured-white);
    font-family: "Isidora", sans-serif;
}


.dev1-cbox-home-featured-upcoming-events *,
.dev1-cbox-home-featured-upcoming-events *::before,
.dev1-cbox-home-featured-upcoming-events *::after {
    box-sizing: border-box;
    font-family: "Isidora", sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.dev1-cbox-home-featured-upcoming-events__container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 38px 47px 55px;
}


/* =========================================================
   HEADER
========================================================= */

.dev1-cbox-home-featured-upcoming-events__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}


.dev1-cbox-home-featured-upcoming-events__heading-wrap {
    flex: 1 1 auto;
    min-width: 0;
}


.dev1-cbox-home-featured-upcoming-events__eyebrow {
    display: block;
    margin-bottom: 14px;

    color: var(--home-featured-yellow);

    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;

    letter-spacing: 2.2px;
    text-transform: uppercase;
}


.dev1-cbox-home-featured-upcoming-events__title {
    margin: 0;

    color: #f7f5f8;

    font-family: "Isidora", sans-serif;
    font-size: clamp(48px, 4.15vw, 66px);
    font-weight: 300;
    line-height: 0.96;

    letter-spacing: -2.7px;
    text-transform: uppercase;
}

.dev1-cbox-home-featured-upcoming-events__description {
    flex: 0 0 545px;

    max-width: 545px;
    padding-top: 82px;

    color: #ded9e1;

    font-size: 18px;
    font-weight: 300;
    line-height: 1.75;
}


/* =========================================================
   FILTERS
========================================================= */

.dev1-cbox-home-featured-upcoming-events__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    margin-top: 42px;
    margin-bottom: 32px;
}


.dev1-cbox-home-featured-upcoming-events__filter {
    min-height: 40px;
    padding: 7px 20px;

    border: 1px solid var(--home-featured-border);
    border-radius: 999px;

    background: transparent;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

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


.dev1-cbox-home-featured-upcoming-events__filter:hover {
    border-color: #ffffff;
}


.dev1-cbox-home-featured-upcoming-events__filter.is-active {
    border-color: var(--home-featured-yellow);
    background: var(--home-featured-yellow);
    color: #17121b;
}


.dev1-cbox-home-featured-upcoming-events__filter:active {
    transform: scale(0.97);
}


/* =========================================================
   CAROUSEL
========================================================= */

.dev1-cbox-home-featured-upcoming-events__carousel {
    position: relative;
    width: 100%;
}


.dev1-cbox-home-featured-upcoming-events__viewport {
    width: 100%;
    overflow: hidden;
}


.dev1-cbox-home-featured-upcoming-events__track {
    display: flex;

    gap: 21px;

    will-change: transform;

    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* =========================================================
   CARD
========================================================= */

.dev1-cbox-home-featured-upcoming-events__card {
    flex: 0 0 calc((100% - 63px) / 4);

    min-width: 0;
}


.dev1-cbox-home-featured-upcoming-events__card-image {
    position: relative;

    width: 100%;
    aspect-ratio: 0.875 / 1;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 25px;

    background: #24202a;
}


.dev1-cbox-home-featured-upcoming-events__card-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1);

    transition: transform 0.7s ease;
}


.dev1-cbox-home-featured-upcoming-events__card:hover
.dev1-cbox-home-featured-upcoming-events__card-image img {
    transform: scale(1.035);
}


/* =========================================================
   CARD GRADIENT
========================================================= */

.dev1-cbox-home-featured-upcoming-events__card-overlay {
    position: absolute;
    z-index: 1;

    left: 0;
    right: 0;
    bottom: 0;

    height: 57%;

    background:
        linear-gradient(
            to bottom,
            rgba(15, 12, 20, 0) 0%,
            rgba(15, 12, 20, 0.18) 20%,
            rgba(15, 12, 20, 0.78) 67%,
            rgba(15, 12, 20, 0.98) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CARD ARROW
========================================================= */

.dev1-cbox-home-featured-upcoming-events__card-arrow {
    position: absolute;
    z-index: 5;

    top: 21px;
    right: 21px;

    width: 55px;
    height: 55px;

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

    border-radius: 50%;

    background: #ffffff;
    color: #5b218c;

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

    line-height: 1;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}


.dev1-cbox-home-featured-upcoming-events__card-arrow:hover {
    transform: rotate(8deg) scale(1.06);
    background: #f6f3f8;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.dev1-cbox-home-featured-upcoming-events__card-content {
    position: absolute;
    z-index: 4;

    right: 30px;
    bottom: 29px;
    left: 30px;
}


.dev1-cbox-home-featured-upcoming-events__card-category {
    display: inline-flex;
    align-items: center;

    min-height: 31px;
    padding: 6px 13px;

    border-radius: 999px;

    background: rgba(125, 124, 131, 0.65);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.1px;
}


.dev1-cbox-home-featured-upcoming-events__card-title {
    margin: 9px 0 13px;

    color: #ffffff;

    font-size: clamp(25px, 1.65vw, 31px);
    font-weight: 300;
    line-height: 1.12;

    letter-spacing: -0.8px;
    text-transform: uppercase;
}


.dev1-cbox-home-featured-upcoming-events__card-date {
    display: block;

    color: #ffffff;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   NAVIGATION
========================================================= */

.dev1-cbox-home-featured-upcoming-events__navigation {
    position: absolute;
    z-index: 10;

    top: 50%;

    width: 45px;
    height: 70px;

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

    padding: 0;

    border: 0;

    background: transparent;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    font-weight: 200;

    cursor: pointer;

    transform: translateY(-50%);

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


.dev1-cbox-home-featured-upcoming-events__navigation span {
    display: block;
    line-height: 1;
}


.dev1-cbox-home-featured-upcoming-events__navigation:hover {
    transform: translateY(-50%) scale(1.15);
}


.dev1-cbox-home-featured-upcoming-events__navigation--prev {
    left: -45px;
}


.dev1-cbox-home-featured-upcoming-events__navigation--next {
    right: -45px;
}


/* =========================================================
   PAGINATION
========================================================= */

.dev1-cbox-home-featured-upcoming-events__pagination {
    display: flex;
    justify-content: center;
    gap: 7px;

    margin-top: 24px;
}


.dev1-cbox-home-featured-upcoming-events__pagination-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

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

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}


.dev1-cbox-home-featured-upcoming-events__pagination-dot.is-active {
    width: 25px;
    border-radius: 999px;
    background: var(--home-featured-yellow);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .dev1-cbox-home-featured-upcoming-events__container {
        padding-right: 42px;
        padding-left: 42px;
    }


    .dev1-cbox-home-featured-upcoming-events__header {
        gap: 40px;
    }


    .dev1-cbox-home-featured-upcoming-events__description {
        flex-basis: 420px;
        max-width: 420px;
        padding-top: 70px;

        font-size: 16px;
    }


    .dev1-cbox-home-featured-upcoming-events__card {
        flex-basis: calc((100% - 42px) / 3);
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--prev {
        left: -35px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--next {
        right: -35px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 900px) {

    .dev1-cbox-home-featured-upcoming-events__container {
        padding: 35px 32px 48px;
    }


    .dev1-cbox-home-featured-upcoming-events__header {
        display: block;
    }


    .dev1-cbox-home-featured-upcoming-events__description {
        max-width: 650px;

        padding-top: 25px;
    }


    .dev1-cbox-home-featured-upcoming-events__filters {
        margin-top: 30px;
    }


    .dev1-cbox-home-featured-upcoming-events__card {
        flex-basis: calc((100% - 21px) / 2);
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--prev {
        left: -27px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--next {
        right: -27px;
    }

}


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

@media (max-width: 600px) {

    .dev1-cbox-home-featured-upcoming-events__container {
        padding: 30px 18px 40px;
    }


    .dev1-cbox-home-featured-upcoming-events__eyebrow {
        margin-bottom: 13px;

        font-size: 11px;
        letter-spacing: 1.7px;
    }


    .dev1-cbox-home-featured-upcoming-events__title {
        font-size: clamp(38px, 10.5vw, 53px);
        line-height: 0.98;
        letter-spacing: -1.8px;
    }


    .dev1-cbox-home-featured-upcoming-events__description {
        padding-top: 22px;

        font-size: 15px;
        line-height: 1.55;
    }


    .dev1-cbox-home-featured-upcoming-events__filters {
        gap: 8px;

        margin-top: 26px;
        margin-bottom: 25px;

        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 3px;

        scrollbar-width: none;
    }


    .dev1-cbox-home-featured-upcoming-events__filters::-webkit-scrollbar {
        display: none;
    }


    .dev1-cbox-home-featured-upcoming-events__filter {
        flex: 0 0 auto;

        min-height: 38px;
        padding: 6px 17px;

        font-size: 13px;
    }


    .dev1-cbox-home-featured-upcoming-events__track {
        gap: 14px;
    }


    .dev1-cbox-home-featured-upcoming-events__card {
        flex-basis: 100%;
    }


    .dev1-cbox-home-featured-upcoming-events__card-image {
        aspect-ratio: 0.82 / 1;

        border-radius: 20px;
    }


    .dev1-cbox-home-featured-upcoming-events__card-arrow {
        top: 16px;
        right: 16px;

        width: 48px;
        height: 48px;

        font-size: 23px;
    }


    .dev1-cbox-home-featured-upcoming-events__card-content {
        right: 22px;
        bottom: 23px;
        left: 22px;
    }


    .dev1-cbox-home-featured-upcoming-events__card-category {
        min-height: 28px;
        padding: 5px 11px;

        font-size: 10px;
    }


    .dev1-cbox-home-featured-upcoming-events__card-title {
        margin-top: 8px;
        margin-bottom: 11px;

        font-size: 25px;
        line-height: 1.1;
    }


    .dev1-cbox-home-featured-upcoming-events__card-date {
        font-size: 14px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation {
        width: 35px;
        height: 50px;

        font-size: 40px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--prev {
        left: -24px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--next {
        right: -24px;
    }


    .dev1-cbox-home-featured-upcoming-events__pagination {
        margin-top: 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .dev1-cbox-home-featured-upcoming-events__container {
        padding-right: 15px;
        padding-left: 15px;
    }


    .dev1-cbox-home-featured-upcoming-events__title {
        font-size: 36px;
    }


    .dev1-cbox-home-featured-upcoming-events__card-title {
        font-size: 22px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--prev {
        left: -21px;
    }


    .dev1-cbox-home-featured-upcoming-events__navigation--next {
        right: -21px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dev1-cbox-home-featured-upcoming-events__track,
    .dev1-cbox-home-featured-upcoming-events__card-image img,
    .dev1-cbox-home-featured-upcoming-events__card-arrow,
    .dev1-cbox-home-featured-upcoming-events__navigation,
    .dev1-cbox-home-featured-upcoming-events__filter {
        transition: none;
    }

}