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


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #f7f4ef;

    font-family:
        "Isidora",
        Arial,
        sans-serif;

    color: #3d145d;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.dev1-cbox-upcoming-event-listing {
    width: 100%;

    padding:
        0
        40px
        30px;

    background: #f7f4ef;
}


.dev1-cbox-upcoming-event-listing__container {
    width: 100%;

    max-width: 1700px;

    margin: 0 auto;
}


/* =========================================================
   OFFICIAL LISTINGS
========================================================= */

.dev1-cbox-upcoming-event-listing__header {
    width: 100%;

    margin: 0;
    padding: 0;
}


.dev1-cbox-upcoming-event-listing__eyebrow {
    display: flex;

    align-items: center;

    gap: 10px;

    height: 18px;

    color: #74338f;

    font-size: 11px;

    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.dev1-cbox-upcoming-event-listing__eyebrow span:first-child {
    width: 38px;

    height: 2px;

    flex-shrink: 0;

    display: block;

    background: #dcae3c;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.dev1-cbox-upcoming-event-listing__title {
    margin:
        5px
        0
        0;

    padding: 0;

    color: #66318b;

    font-size: clamp(
        38px,
        3.6vw,
        58px
    );

    font-weight: 300;

    line-height: 1.02;

    letter-spacing: -1px;

    white-space: nowrap;
}


.dev1-cbox-upcoming-event-listing__count {
    margin:
        10px
        0
        0;

    color: #81718d;

    font-size: 11px;

    line-height: 1.2;
}


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

.dev1-cbox-upcoming-event-listing__category {
    width: 100%;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-top: 43px;

    padding:
        0
        0
        10px;

    border-bottom:
        1px solid
        #d9cedf;
}


/* =========================================================
   CATEGORY LEFT
========================================================= */

.dev1-cbox-upcoming-event-listing__category-left {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;
}


.dev1-cbox-upcoming-event-listing__category-line {
    width: 38px;

    height: 2px;

    flex-shrink: 0;

    background:
        linear-gradient(
            90deg,
            #dcae3c 0%,
            #ed5d8e 100%
        );
}


.dev1-cbox-upcoming-event-listing__category-left span {
    color: #74338f;

    font-size: 11px;

    line-height: 1.2;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   CITY OF DREAMS TITLE
   Works with an h2 inside category-left
========================================================= */

.dev1-cbox-upcoming-event-listing__category-title {
    margin:
        2px
        0
        0;

    padding: 0;

    color: #66318b;

    font-size: clamp(
        30px,
        2.7vw,
        45px
    );

    font-weight: 300;

    line-height: 1;

    letter-spacing: -0.5px;

    text-transform: uppercase;
}


/* =========================================================
   CATEGORY RIGHT DESCRIPTION
========================================================= */

.dev1-cbox-upcoming-event-listing__category-note {
    margin:
        0
        0
        2px;

    color: #81718d;

    font-size: 11px;

    line-height: 1.3;

    text-align: right;
}


/* =========================================================
   EVENT GRID
========================================================= */

.dev1-cbox-upcoming-event-listing__grid {
    width: 100%;

    display: grid;

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

    gap: 20px;

    padding-top: 15px;
}


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

.dev1-cbox-upcoming-event-listing__card {
    width: 100%;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        #ddd5df;

    border-radius:
        28px
        0
        28px
        0;

    box-shadow:
        0
        8px
        22px
        rgba(
            67,
            40,
            81,
            0.06
        );

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.dev1-cbox-upcoming-event-listing__card:hover {
    transform: translateY(-3px);

    box-shadow:
        0
        12px
        26px
        rgba(
            67,
            40,
            81,
            0.10
        );
}


/* =========================================================
   IMAGE
========================================================= */

.dev1-cbox-upcoming-event-listing__image-wrap {
    width: 100%;

    height: 255px;

    overflow: hidden;

    background: #eee7ef;
}


.dev1-cbox-upcoming-event-listing__image {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.4s ease;
}


.dev1-cbox-upcoming-event-listing__card:hover
.dev1-cbox-upcoming-event-listing__image {
    transform: scale(1.02);
}


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

.dev1-cbox-upcoming-event-listing__content {
    width: 100%;

    padding:
        14px
        21px
        17px;
}


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

.dev1-cbox-upcoming-event-listing__meta {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 14px;
}


.dev1-cbox-upcoming-event-listing__type {
    min-height: 31px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        6px
        13px;

    border:
        1px solid
        #e2b6e8;

    border-radius: 20px;

    background: #faf3fb;

    color: #81359d;

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;

    white-space: nowrap;
}


.dev1-cbox-upcoming-event-listing__date {
    min-width: 118px;

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        5px
        12px;

    border:
        1px solid
        #f0d39b;

    border-radius:
        17px
        0
        17px
        0;

    background: #fffaf2;

    color: #9a620b;
}


.dev1-cbox-upcoming-event-listing__date strong {
    font-size: 20px;

    font-weight: 300;

    line-height: 1;
}


.dev1-cbox-upcoming-event-listing__date small {
    font-size: 10px;

    letter-spacing: 1px;

    line-height: 1;

    text-transform: uppercase;
}


/* =========================================================
   EVENT TITLE
========================================================= */

.dev1-cbox-upcoming-event-listing__event-title {
    margin:
        0
        0
        8px;

    color: #52206f;

    font-size: 16px;

    font-weight: 300;

    line-height: 1.25;

    text-transform: uppercase;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.dev1-cbox-upcoming-event-listing__description {
    margin:
        0
        0
        15px;

    color: #81718d;

    font-size: 12px;

    line-height: 1.45;
}


/* =========================================================
   VIEW DETAILS BUTTON
========================================================= */

.dev1-cbox-upcoming-event-listing__button {
    min-width: 156px;

    min-height: 55px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        11px
        18px;

    border: 0;

    border-radius:
        30px
        0
        30px
        0;

    background: #71318f;

    color: #ffffff;

    font-family:
        "Isidora",
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 300;

    line-height: 1;

    text-decoration: none;

    text-transform: uppercase;

    cursor: pointer;

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


.dev1-cbox-upcoming-event-listing__button:hover {
    background: #5f2879;

    transform: translateY(-1px);
}


.dev1-cbox-upcoming-event-listing__button span {
    font-size: 14px;

    line-height: 1;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1500px) {

    .dev1-cbox-upcoming-event-listing {
        padding:
            0
            40px
            30px;
    }


    .dev1-cbox-upcoming-event-listing__category {
        margin-top: 45px;
    }


    .dev1-cbox-upcoming-event-listing__image-wrap {
        height: 265px;
    }
}


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

@media (max-width: 1100px) {

    .dev1-cbox-upcoming-event-listing {
        padding:
            0
            25px
            28px;
    }


    .dev1-cbox-upcoming-event-listing__title {
        font-size: 43px;
    }


    .dev1-cbox-upcoming-event-listing__category {
        margin-top: 34px;
    }


    .dev1-cbox-upcoming-event-listing__category-title {
        font-size: 36px;
    }


    .dev1-cbox-upcoming-event-listing__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }


    .dev1-cbox-upcoming-event-listing__image-wrap {
        height: 220px;
    }


    .dev1-cbox-upcoming-event-listing__content {
        padding:
            13px
            16px
            16px;
    }
}


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

@media (max-width: 750px) {

    .dev1-cbox-upcoming-event-listing {
        padding:
            0
            18px
            25px;
    }


    .dev1-cbox-upcoming-event-listing__title {
        font-size: 36px;

        white-space: normal;
    }


    .dev1-cbox-upcoming-event-listing__category {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;

        margin-top: 28px;

        padding-bottom: 9px;
    }


    .dev1-cbox-upcoming-event-listing__category-title {
        font-size: 32px;
    }


    .dev1-cbox-upcoming-event-listing__category-note {
        align-self: flex-end;

        font-size: 10px;

        text-align: right;
    }


    .dev1-cbox-upcoming-event-listing__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .dev1-cbox-upcoming-event-listing__image-wrap {
        height: 190px;
    }


    .dev1-cbox-upcoming-event-listing__meta {
        align-items: flex-start;

        flex-direction: column;
    }


    .dev1-cbox-upcoming-event-listing__date {
        align-self: flex-end;
    }
}


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

@media (max-width: 560px) {

    .dev1-cbox-upcoming-event-listing {
        padding:
            0
            12px
            22px;
    }


    .dev1-cbox-upcoming-event-listing__eyebrow {
        font-size: 9px;
    }


    .dev1-cbox-upcoming-event-listing__title {
        margin-top: 5px;

        font-size: 31px;

        line-height: 1.05;
    }


    .dev1-cbox-upcoming-event-listing__count {
        margin-top: 8px;

        font-size: 10px;
    }


    .dev1-cbox-upcoming-event-listing__category {
        margin-top: 25px;
    }


    .dev1-cbox-upcoming-event-listing__category-left span {
        font-size: 9px;
    }


    .dev1-cbox-upcoming-event-listing__category-title {
        font-size: 28px;
    }


    .dev1-cbox-upcoming-event-listing__category-note {
        font-size: 9px;
    }


    .dev1-cbox-upcoming-event-listing__grid {
        grid-template-columns: 1fr;

        gap: 14px;

        padding-top: 11px;
    }


    .dev1-cbox-upcoming-event-listing__image-wrap {
        height: auto;

        aspect-ratio: 1.72 / 1;
    }


    .dev1-cbox-upcoming-event-listing__content {
        padding:
            13px
            15px
            15px;
    }


    .dev1-cbox-upcoming-event-listing__meta {
        flex-direction: row;

        align-items: center;

        margin-bottom: 13px;
    }


    .dev1-cbox-upcoming-event-listing__type {
        min-height: 29px;

        padding:
            5px
            10px;

        font-size: 8px;
    }


    .dev1-cbox-upcoming-event-listing__date {
        min-width: 100px;

        min-height: 36px;

        align-self: auto;
    }


    .dev1-cbox-upcoming-event-listing__date strong {
        font-size: 17px;
    }


    .dev1-cbox-upcoming-event-listing__date small {
        font-size: 9px;
    }


    .dev1-cbox-upcoming-event-listing__event-title {
        font-size: 14px;
    }


    .dev1-cbox-upcoming-event-listing__description {
        font-size: 10px;
    }


    .dev1-cbox-upcoming-event-listing__button {
        min-width: 140px;

        min-height: 48px;
    }
}


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

@media (max-width: 380px) {

    .dev1-cbox-upcoming-event-listing {
        padding:
            0
            10px
            20px;
    }


    .dev1-cbox-upcoming-event-listing__title {
        font-size: 28px;
    }


    .dev1-cbox-upcoming-event-listing__category {
        margin-top: 23px;
    }


    .dev1-cbox-upcoming-event-listing__category-title {
        font-size: 25px;
    }


    .dev1-cbox-upcoming-event-listing__event-title {
        font-size: 13px;
    }


    .dev1-cbox-upcoming-event-listing__button {
        min-width: 130px;

        min-height: 45px;
    }
}