/* =========================================================
   CARIPULSE EVENTS PAGE
========================================================= */


/* =========================================================
   IMPORTANT HIDDEN STATE
========================================================= */

.events-page [hidden] {
    display: none !important;
}


/* =========================================================
   PAGE
========================================================= */

.events-page {
    width: 100%;

    background: #ffffff;

    color: #081221;
}


/* =========================================================
   INTRO
========================================================= */

.events-page-intro {
    padding:
        175px
        0
        70px;

    background: #ffffff;
}


.events-page-intro-content {
    max-width: 820px;
}


.events-page-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #FF0F7B;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}


.events-page-intro h1 {
    margin:
        0
        0
        18px;

    color: #081221;

    font-size: 56px;
    line-height: 1.12;
    font-weight: 800;
}


.events-page-intro p {
    max-width: 720px;

    margin: 0;

    color: #687280;

    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   DISCOVERY SECTION
========================================================= */

.events-discovery {
    padding:
        30px
        0
        110px;

    background: #ffffff;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.events-filter-panel {
    position: relative;

    z-index: 20;

    margin-bottom: 75px;

    padding: 30px;

    border:
        1px solid
        #e7ebf2;

    border-radius: 24px;

    background: #ffffff;
}


/* =========================================================
   SEARCH
========================================================= */

.events-search-field {
    position: relative;

    margin-bottom: 26px;
}


.events-search-field > i {
    position: absolute;

    left: 21px;
    top: 50%;

    transform:
        translateY(-50%);

    color: #8b94a3;

    font-size: 16px;

    pointer-events: none;
}


.events-search-field input {
    width: 100%;
    min-height: 58px;

    padding:
        0
        20px
        0
        52px;

    border:
        1px solid
        #dfe4ec;

    border-radius: 16px;

    background: #ffffff;

    color: #081221;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color .25s ease;
}


.events-search-field input::placeholder {
    color: #929aa7;
}


.events-search-field input:focus {
    border-color: #FF0F7B;
}


/* =========================================================
   FILTER GRID
========================================================= */

.events-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 20px;
}


.events-filter-field {
    position: relative;

    min-width: 0;
}


.events-filter-field > label {
    display: block;

    margin-bottom: 9px;

    color: #596273;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CUSTOM DROPDOWNS
========================================================= */

.events-dropdown {
    position: relative;

    width: 100%;
}


.events-dropdown-native {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;
}


.events-dropdown-button {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding:
        0
        18px;

    border:
        1px solid
        #dfe4ec;

    border-radius: 15px;

    background: #ffffff;

    color: #081221;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        border-color .25s ease,
        background .25s ease;
}


.events-dropdown-button:hover {
    border-color: #ccd3de;
}


.events-dropdown.is-open
.events-dropdown-button {
    border-color: #FF0F7B;
}


.events-dropdown-button span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.events-dropdown-button i {
    flex-shrink: 0;

    color: #6f7887;

    font-size: 11px;

    transition:
        transform .2s ease;
}


.events-dropdown.is-open
.events-dropdown-button i {
    transform:
        rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.events-dropdown-menu {
    position: absolute;

    top:
        calc(100% + 8px);

    left: 0;
    right: 0;

    z-index: 100;

    max-height: 280px;

    display: none;

    overflow-y: auto;

    padding: 7px;

    border:
        1px solid
        #e3e7ee;

    border-radius: 15px;

    background: #ffffff;
}


.events-dropdown.is-open
.events-dropdown-menu {
    display: block;
}


.events-dropdown-option {
    width: 100%;

    display: flex;
    align-items: center;

    min-height: 44px;

    padding:
        10px
        13px;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #4e5867;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.events-dropdown-option:hover {
    background: #f5f7fa;

    color: #081221;
}


.events-dropdown-option.is-selected {
    background: #fff0f6;

    color: #FF0F7B;

    font-weight: 600;
}


/* =========================================================
   CLEAR FILTERS
========================================================= */

.events-filter-action {
    display: flex;
    align-items: flex-end;
}


.events-clear-filters {
    width: 100%;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding:
        0
        18px;

    border:
        1px solid
        #dfe4ec;

    border-radius: 15px;

    background: #f8f9fc;

    color: #081221;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease;
}


.events-clear-filters:hover {
    background: #f1f4f8;

    border-color: #ccd3de;
}


/* =========================================================
   RESULTS HEADING
========================================================= */

.events-results-heading {
    margin-bottom: 38px;
}


.events-results-heading
.events-page-eyebrow {
    margin-bottom: 8px;
}


.events-results-heading h2 {
    margin:
        0
        0
        10px;

    color: #081221;

    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
}


.events-results-heading p {
    min-height: 24px;

    margin: 0;

    color: #687280;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   EVENTS GRID
========================================================= */

.events-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 26px;
}


/* =========================================================
   EVENT CARD
========================================================= */

.event-card {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        #e7ebf2;

    border-radius: 24px;

    background: #ffffff;

    transition:
        transform .25s ease,
        border-color .25s ease;
}


.event-card:hover {
    transform:
        translateY(-5px);

    border-color: #d4dae4;
}


/* =========================================================
   EVENT IMAGE
========================================================= */

.event-card-image {
    position: relative;

    display: block;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background: #eef2f7;

    text-decoration: none;
}


.event-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.event-card:hover
.event-card-image img {
    transform:
        scale(1.035);
}


.event-card-image-fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #081b46,
            #00053D
        );

    color: #FDB52B;

    font-size: 50px;
}


/* =========================================================
   CATEGORY
========================================================= */

.event-card-category {
    position: absolute;

    left: 18px;
    bottom: 18px;

    display: inline-flex;
    align-items: center;

    min-height: 31px;

    padding:
        6px
        12px;

    border-radius: 30px;

    background:
        rgba(
            8,
            18,
            33,
            .90
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.event-card-content {
    padding: 24px;
}


.event-card-date-row {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: #FF0F7B;

    font-size: 13px;
    font-weight: 700;
}


.event-card h3 {
    margin:
        0
        0
        18px;

    color: #081221;

    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}


.event-card h3 a {
    color: inherit;

    text-decoration: none;
}


/* =========================================================
   CARD META
========================================================= */

.event-card-meta {
    display: flex;
    flex-direction: column;

    gap: 11px;

    margin-bottom: 22px;
}


.event-card-meta > div {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: #687280;

    font-size: 14px;
    line-height: 1.55;
}


.event-card-meta i {
    width: 16px;

    flex-shrink: 0;

    margin-top: 3px;

    color: #8a94a3;

    text-align: center;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.event-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 16px;

    padding-top: 20px;

    border-top:
        1px solid
        #edf0f4;
}


.event-card-price {
    min-width: 0;
}


.event-card-price span {
    display: block;

    color: #081221;

    font-size: 14px;
    font-weight: 700;
}


.event-card-price small {
    display: block;

    max-width: 180px;

    margin-top: 4px;

    overflow: hidden;

    color: #7a8391;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.event-card-action {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    flex-shrink: 0;

    color: #FF0F7B;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


.event-card-action i {
    font-size: 11px;

    transition:
        transform .25s ease;
}


.event-card-action:hover i {
    transform:
        translateX(3px);
}


/* =========================================================
   LOADING / EMPTY / ERROR
========================================================= */

.events-loading-state,
.events-message-state {
    min-height: 170px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin:
        15px
        0
        20px;

    padding:
        40px
        20px;

    border:
        1px solid
        #e7ebf2;

    border-radius: 22px;

    background: #fafbfe;

    text-align: center;
}


.events-loading-state {
    display: flex;
}


.events-message-state:not([hidden]) {
    display: flex;
}


.events-loading-state i,
.events-message-state i {
    margin-bottom: 6px;

    color: #FF0F7B;

    font-size: 30px;
}


.events-loading-state strong,
.events-message-state strong {
    color: #081221;

    font-size: 18px;
}


.events-message-state span {
    color: #687280;

    font-size: 14px;
}


.events-message-state button {
    margin-top: 8px;

    padding:
        12px
        23px;

    border: none;

    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #FF0F7B,
            #FDB52B
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   LOAD MORE
========================================================= */

.events-load-more-wrap:not([hidden]) {
    display: flex;
}


.events-load-more-wrap {
    justify-content: center;

    margin-top: 50px;
}


.events-load-more {
    min-width: 220px;

    padding:
        15px
        26px;

    border:
        1px solid
        #081221;

    border-radius: 40px;

    background: #ffffff;

    color: #081221;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease;
}


.events-load-more:hover {
    background: #081221;

    color: #ffffff;
}


/* =========================================================
   INNER PAGE FOOTER
========================================================= */

.footer-pages
.footer-main {
    padding-top: 75px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .events-page-intro {
        padding:
            155px
            0
            60px;
    }


    .events-page-intro h1 {
        font-size: 48px;
    }


    .events-filter-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .events-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .events-page-intro {
        padding:
            130px
            0
            45px;
    }


    .events-page-intro h1 {
        font-size:
            clamp(
                38px,
                10vw,
                46px
            );
    }


    .events-page-intro p {
        font-size: 16px;
    }


    .events-discovery {
        padding:
            20px
            0
            80px;
    }


    .events-filter-panel {
        margin-bottom: 55px;

        padding: 22px;

        border-radius: 20px;
    }


    .events-filter-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .events-results-heading {
        margin-bottom: 30px;
    }


    .events-results-heading h2 {
        font-size: 34px;
    }


    .events-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .event-card-footer {
        align-items: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .events-page-intro {
        padding:
            120px
            0
            40px;
    }


    .events-filter-panel {
        padding: 18px;
    }


    .event-card-content {
        padding: 21px;
    }


    .event-card-footer {
        flex-direction: column;

        gap: 14px;
    }


    .event-card-price small {
        max-width: 230px;
    }


    .events-load-more {
        width: 100%;
    }

}