/* Extracted from ui/templates/components/events/featured_events.html. Linked via sekizai so a page loads it once,
   however many instances it renders. */

.featured-events-component,
.featured-events-component * {
    box-sizing: border-box;
    font-family: "NYU Perstare", system-ui, sans-serif;
}

.featured-events-component {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent;
}

.featured-events-component__inner {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.featured-events-component .events-dynamic-title {
    margin: 0;
    font-family: "NYU Perstare", system-ui, sans-serif;
    font-size: clamp(42px, 3.47vw, 60px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
}

.events-dynamic-title b,
.events-dynamic-title strong {
    color: #8B00FF;
    font-weight: 800;
}

.events-dynamic-title p {
    display: inline;
    margin: 0;
}

.featured-events-component__heading {
    margin-top: 16px;
    margin-bottom: 64px;
    text-align: center;
}

.featured-events-component__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px 32px;
    width: 100%;
}

@media (min-width: 1024px) {
    .featured-events-component__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.featured-events-component__grid-item {
    height: 100%;
    min-width: 0;
}

.featured-events-component__actions {
    margin-top: 48px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.featured-events-component__actions .button-component__wrapper {
    width: auto;
}

@media (min-width: 640px) {
    .featured-events-component__actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .featured-events-component__actions {
        margin-top: 80px;
    }
}

.featured-events-component__button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 2px solid #4B0082;
    padding: 14px 48px;
    font-family: "NYU Perstare", system-ui, sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    color: #4B0082;
    background: transparent;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        opacity 180ms ease;
}

.featured-events-component__button:hover,
.featured-events-component__button:focus-visible {
    background: #F7F7F7;
    outline: none;
}

.featured-events-component__button--primary {
    background: #4B0082;
    color: #FFFFFF;
}

.featured-events-component__button--primary:hover,
.featured-events-component__button--primary:focus-visible {
    background: #3A0066;
    color: #FFFFFF;
}

.featured-events-component__empty {
    margin: 0;
    padding: 40px 0;
    font-family: "NYU Perstare", system-ui, sans-serif;
    font-size: 16px;
    line-height: 21px;
    font-weight: 400;
    text-align: center;
    color: #6B7280;
}

.fe-featured {
    --fe-img-h: 360px;
}

@media (min-width: 1024px) {
    .fe-featured {
        min-height: var(--fe-img-h);
    }

    .fe-featured .fe-featured__media {
        height: var(--fe-img-h);
    }

    .fe-featured .fe-featured__badge {
        margin-bottom: clamp(12px, calc(var(--fe-img-h) * 0.045), 26px);
    }

    .fe-featured .fe-featured__title {
        margin-bottom: clamp(12px, calc(var(--fe-img-h) * 0.05), 28px);
    }

    .fe-featured .fe-featured__meta {
        margin-bottom: clamp(16px, calc(var(--fe-img-h) * 0.07), 40px);
    }

    .fe-featured .fe-featured__btn {
        padding-top: clamp(10px, calc(var(--fe-img-h) * 0.028), 18px);
        padding-bottom: clamp(10px, calc(var(--fe-img-h) * 0.028), 18px);
    }
}

@media (max-width: 767px) {
    .featured-events-component {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .featured-events-component .events-dynamic-title {
        font-size: 28px;
        line-height: 32px;
    }

    .featured-events-component__heading {
        margin-top: 0;
        margin-bottom: 24px;
    }

    .featured-events-component__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .featured-events-component__grid-item {
        width: 100%;
        height: auto;
    }

    .featured-events-component__actions {
        margin-top: 22px;
        gap: 10px;
    }

    .featured-events-component__button {
        width: 100%;
        min-height: 38px;
        padding: 10px 16px;
        font-size: 10px;
        line-height: 13px;
    }
}
