/* Hùng Vũ Event Manager - Frontend. Prefix riêng: hvem- */
.hvem-event-card,
.hvem-event-card *,
.hvem-event-info,
.hvem-event-info *,
.hvem-event-summary,
.hvem-event-summary *,
.hvem-event-modal,
.hvem-event-modal * {
    box-sizing: border-box;
}

.hvem-event-card,
.hvem-event-info,
.hvem-event-summary,
.hvem-event-modal {
    font-family: inherit;
    color: inherit;
}

.hvem-event-card a,
.hvem-event-info a,
.hvem-event-summary a {
    color: inherit;
    text-decoration: none;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.hvem-event-card a:hover,
.hvem-event-info a:hover,
.hvem-event-summary a:hover {
    text-decoration: none;
    opacity: .82;
}

.hvem-event-card {
    width: 100%;
    max-width: 100%;
    margin: 1.4rem 0 1.8rem;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%);
    overflow: hidden;
    box-shadow: 0 10px 30px color-mix(in srgb, currentColor 7%, transparent);
}

.hvem-event-card--full {
    display: block;
}

.hvem-event-card__date-top {
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.hvem-event-date {
    display: inline-flex;
    align-items: center;
    gap: clamp(.65rem, 2vw, 1.15rem);
    line-height: 1;
}

.hvem-event-date__item {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 3.75rem;
}

.hvem-event-date__day,
.hvem-event-date__separator {
    display: block;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 700;
    letter-spacing: .01em;
    color: inherit;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.hvem-event-date__month-year {
    display: block;
    font-size: clamp(.82rem, 1.45vw, 1rem);
    font-weight: 400;
    opacity: .72;
}

.hvem-event-card__media {
    display: block;
    overflow: hidden;
}

.hvem-event-card__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hvem-event-card__body {
    padding: 1.15rem 1.35rem 1.25rem;
    background: color-mix(in srgb, Canvas 99%, currentColor 1%);
}

.hvem-event-card__meta {
    font-size: clamp(.84rem, 1.2vw, .98rem);
    font-weight: 700;
    line-height: 1.35;
    opacity: .72;
    margin: 0 0 .55rem;
}

.hvem-event-card__title,
.hvem-event-card__compact-title {
    font-family: inherit;
    color: inherit;
    line-height: 1.18;
    margin: 0 0 .65rem;
    font-weight: 700;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.hvem-event-card__title {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.hvem-event-card__description,
.hvem-event-card__compact-description {
    font-size: clamp(.92rem, 1.45vw, 1.05rem);
    line-height: 1.58;
    margin: 0;
    opacity: .78;
}

.hvem-event-info {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: .95rem;
    padding: 1.15rem 1.35rem 1.3rem;
    background: color-mix(in srgb, currentColor 6%, transparent);
    margin: 0;
    border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.hvem-event-info__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    border: 1.5px solid currentColor;
    opacity: .86;
    margin-top: .12rem;
}

.hvem-event-info__row {
    margin: 0 0 .65rem;
    line-height: 1.55;
    font-size: clamp(.9rem, 1.35vw, 1rem);
}

.hvem-event-info__row:last-child {
    margin-bottom: 0;
}

.hvem-event-info__location {
    display: flex;
    gap: .42rem;
    flex-wrap: wrap;
}

.hvem-event-info__location-lines {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.hvem-event-info__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: .85rem;
}

.hvem-event-link,
.hvem-event-join-button,
.hvem-event-form__submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: .55rem .9rem;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: color-mix(in srgb, Canvas 95%, currentColor 5%);
    color: inherit;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}

.hvem-event-link:hover,
.hvem-event-join-button:hover,
.hvem-event-form__submit:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
    text-decoration: none;
    transform: translateY(-1px);
}

.hvem-event-card--compact {
    display: grid;
    grid-template-columns: minmax(150px, 26%) 1fr;
    gap: 1.1rem;
    align-items: stretch;
    padding: 1rem;
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.hvem-event-card__compact-date {
    background: color-mix(in srgb, Canvas 94%, currentColor 6%);
    padding: .9rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hvem-event-card__compact-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hvem-event-card__compact-title {
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.hvem-event-list {
    display: grid;
    gap: 1.1rem;
    margin: 1.35rem 0;
}

.hvem-event-list-cols-1 { grid-template-columns: 1fr; }
.hvem-event-list-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hvem-event-list-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hvem-event-list-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hvem-event-list .hvem-event-card--compact {
    grid-template-columns: 1fr;
    height: 100%;
}

.hvem-event-list .hvem-event-date__day,
.hvem-event-list .hvem-event-date__separator {
    font-size: clamp(1.7rem, 3.5vw, 2.55rem);
}

.hvem-event-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .42rem .62rem;
    margin: .65rem 0 .75rem;
    padding: .58rem .7rem;
    border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, currentColor 4%, transparent);
    font-size: .86rem;
    line-height: 1.42;
    clear: both;
}

.hvem-event-summary__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: .1rem .5rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .86;
}

.hvem-event-summary__item {
    opacity: .82;
}

.hvem-event-summary--inline {
    margin-top: .2rem;
    padding: .45rem .55rem;
}

.hvem-no-events {
    margin: 0;
}

.hvem-modal-is-open,
body.hvem-modal-is-open {
    overflow: hidden;
}

.hvem-event-modal[aria-hidden="true"] {
    display: none !important;
}

.hvem-event-modal[aria-hidden="false"] {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: auto;
}

.hvem-event-modal__overlay {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, currentColor 46%, transparent);
}

.hvem-event-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.45rem;
    margin: auto;
    border-radius: 14px;
    background: Canvas;
    color: CanvasText;
    box-shadow: 0 22px 70px color-mix(in srgb, currentColor 24%, transparent);
}

.hvem-event-modal__close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 2;
    width: 2.3rem;
    height: 2.3rem;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, Canvas 92%, currentColor 8%);
    color: inherit;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

.hvem-event-modal__title {
    margin: 0 3rem .35rem 0;
    font-family: inherit;
    color: inherit;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.24;
    font-weight: 700;
}

.hvem-event-modal__event-title {
    margin: 0 3rem .7rem 0;
    font-size: .98rem;
    font-weight: 700;
    opacity: .86;
}

.hvem-event-modal__intro {
    margin: 0 0 1rem;
    font-size: .95rem;
    opacity: .78;
}

.hvem-event-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem .95rem;
}

.hvem-event-form__field {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
}

.hvem-event-form__field--full {
    grid-column: 1 / -1;
}

.hvem-event-form__field em,
.hvem-event-form__note em {
    font-style: normal;
    font-weight: 800;
}

.hvem-event-form__field input,
.hvem-event-form__field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 2.45rem;
    height: auto;
    margin: 0;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 7px;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%);
    color: inherit;
    font-family: inherit;
    padding: .55rem .65rem;
    font-size: .95rem;
    line-height: 1.35;
    box-shadow: none;
}

.hvem-event-form__field textarea {
    min-height: 6.2rem;
    resize: vertical;
}

.hvem-event-form__note {
    margin: .75rem 0;
    font-size: .85rem;
    opacity: .72;
}

.hvem-event-form__result {
    display: none;
    margin: .7rem 0;
    padding: .65rem .75rem;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 700;
}

.hvem-event-form__result.is-success,
.hvem-event-form__result.is-error {
    display: block;
}

.hvem-event-form__submit[disabled] {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 768px) {
    .hvem-event-info,
    .hvem-event-card--compact,
    .hvem-event-form__grid {
        grid-template-columns: 1fr;
    }

    .hvem-event-list-cols-2,
    .hvem-event-list-cols-3,
    .hvem-event-list-cols-4 {
        grid-template-columns: 1fr;
    }

    .hvem-event-info__location {
        display: block;
    }

    .hvem-event-info__location-lines {
        margin-top: .25rem;
    }

    .hvem-event-modal__dialog {
        width: calc(100vw - 1.25rem);
        max-height: calc(100dvh - 1.25rem);
        padding: 1.1rem;
        border-radius: 12px;
    }

    .hvem-event-modal__title,
    .hvem-event-modal__event-title {
        margin-right: 2.6rem;
    }
}

/* Version 1.2.0: GTAI-style split event display + compact document-card styling. */
.hvem-event-card,
.hvem-event-header,
.hvem-event-detail-card,
.hvem-event-catalog-card,
.hvem-event-summary--mini {
    font-family: inherit;
    color: inherit;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.hvem-event-card--full {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin: 1.1rem 0 1.6rem;
}

.hvem-event-header {
    width: 100%;
    margin: 1.1rem 0 1.35rem;
}

.hvem-event-header--inside {
    margin: 0 0 1rem;
}

.hvem-event-header__media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.hvem-event-header__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hvem-event-header__body,
.hvem-event-card__body {
    padding: 0;
    background: transparent;
}

.hvem-event-card__meta,
.hvem-event-summary__meta {
    margin: 0 0 .35rem;
    font-size: .92rem;
    line-height: 1.35;
    font-weight: 700;
    opacity: .72;
}

.hvem-event-header__title,
.hvem-event-card__title,
.hvem-event-card__compact-title,
.hvem-event-detail-card__title,
.hvem-event-catalog-card__title {
    margin: 0 0 .45rem;
    font-family: inherit;
    color: inherit !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    line-height: 1.18;
    letter-spacing: 0;
}

.hvem-event-header__title,
.hvem-event-card__title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
    font-weight: 700;
}

.hvem-event-detail-card__title,
.hvem-event-catalog-card__title {
    font-size: clamp(1.05rem, 1.55vw, 1.35rem) !important;
    font-weight: 700;
}

.hvem-event-header__description,
.hvem-event-card__description,
.hvem-event-card__compact-description,
.hvem-event-catalog-card__description {
    margin: 0;
    font-size: .98rem;
    line-height: 1.58;
    opacity: .8;
}

.hvem-event-detail-card,
.hvem-event-catalog-card {
    display: grid;
    grid-template-columns: minmax(175px, 26%) 1fr;
    gap: 0;
    width: 100%;
    margin: 1.1rem 0 1.5rem;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, Canvas 96%, currentColor 4%);
    overflow: hidden;
    box-shadow: 0 8px 22px color-mix(in srgb, currentColor 5%, transparent);
}

.hvem-event-detail-card--inside {
    margin: .9rem 0 0;
}

.hvem-event-detail-card__date,
.hvem-event-catalog-card__date {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: color-mix(in srgb, Canvas 93%, currentColor 7%);
    border-right: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.hvem-event-detail-card__content,
.hvem-event-catalog-card__content {
    padding: 1.05rem 1.15rem;
    min-width: 0;
}

.hvem-event-detail-card__facts {
    margin-top: .65rem;
}

.hvem-event-detail-card__row {
    margin: 0 0 .42rem;
    font-size: .94rem;
    line-height: 1.5;
}

.hvem-event-detail-card__location {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.hvem-event-detail-card__location-lines {
    display: flex;
    flex-direction: column;
    gap: .06rem;
}

.hvem-event-date {
    gap: .75rem;
}

.hvem-event-date__item {
    min-width: 3.05rem;
}

.hvem-event-date__day,
.hvem-event-date__separator {
    font-size: clamp(1.9rem, 3.8vw, 3rem) !important;
    font-weight: 700;
    color: inherit !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.hvem-event-date__month-year {
    font-size: .88rem !important;
    line-height: 1.2;
}

.hvem-event-detail-card .hvem-event-date,
.hvem-event-catalog-card .hvem-event-date,
.hvem-event-summary--mini .hvem-event-date {
    width: 100%;
    justify-content: center;
}

.hvem-event-catalog-card {
    margin: 0 0 1rem;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%);
}

.hvem-event-catalog-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-top: .65rem;
    font-size: .88rem;
    opacity: .76;
}

.hvem-event-list--catalog {
    grid-template-columns: 1fr !important;
    gap: 1rem;
}

.hvem-event-summary--mini {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: .85rem;
    align-items: center;
    margin: .65rem 0 .8rem;
    padding: .75rem;
    border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, Canvas 97%, currentColor 3%);
    clear: both;
}

.hvem-event-summary--mini .hvem-event-summary__date {
    display: flex;
    justify-content: center;
    padding: .55rem;
    border-radius: 7px;
    background: color-mix(in srgb, Canvas 92%, currentColor 8%);
}

.hvem-event-summary--mini .hvem-event-date {
    gap: .45rem;
}

.hvem-event-summary--mini .hvem-event-date__item {
    min-width: 2rem;
}

.hvem-event-summary--mini .hvem-event-date__day,
.hvem-event-summary--mini .hvem-event-date__separator {
    font-size: 1.25rem !important;
}

.hvem-event-summary--mini .hvem-event-date__month-year {
    font-size: .68rem !important;
}

.hvem-event-summary__content {
    min-width: 0;
}

.hvem-event-summary__line {
    font-size: .86rem;
    line-height: 1.38;
    opacity: .82;
}

.hvem-event-info__actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: .55rem !important;
    margin-top: .8rem !important;
}

.hvem-event-info__actions > *,
.hvem-event-join-wrap {
    margin: 0 !important;
}

.hvem-event-join-wrap {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: top !important;
    line-height: 1 !important;
}

.hvem-event-link,
.hvem-event-join-button,
.hvem-event-form__submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    vertical-align: top !important;
}

.hvem-event-modal[aria-hidden="false"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hvem-event-modal__dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 22px;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.hvem-event-modal__close {
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 4px !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.hvem-event-modal__title {
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    margin-right: 52px;
}

.hvem-event-modal__event-title,
.hvem-event-modal__intro {
    font-size: .92rem;
}

.hvem-event-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem .9rem;
}

.hvem-event-form__field {
    font-size: .84rem;
    line-height: 1.32;
}

.hvem-event-form__field input,
.hvem-event-form__field textarea {
    min-height: 38px;
    border-radius: 4px;
    font-size: .92rem;
    padding: .45rem .55rem;
}

.hvem-event-form__field textarea {
    min-height: 100px;
}

@media (max-width: 768px) {
    .hvem-event-detail-card,
    .hvem-event-catalog-card,
    .hvem-event-summary--mini,
    .hvem-event-form__grid {
        grid-template-columns: 1fr;
    }

    .hvem-event-detail-card__date,
    .hvem-event-catalog-card__date {
        border-right: 0;
        border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
        justify-content: flex-start;
    }

    .hvem-event-detail-card .hvem-event-date,
    .hvem-event-catalog-card .hvem-event-date,
    .hvem-event-summary--mini .hvem-event-date {
        justify-content: flex-start;
    }

    .hvem-event-summary--mini .hvem-event-summary__date {
        justify-content: flex-start;
    }

    .hvem-event-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }
}

/* Version 1.2.1: single-title card + Flatsome Blog Posts / category card refinement. */
.hvem-event-single-card,
.hvem-event-summary--mini,
.hvem-event-detail-card,
.hvem-event-catalog-card {
    --hvem-accent: var(--primary-color, currentColor);
    --hvem-soft-bg: color-mix(in srgb, currentColor 4%, transparent);
    --hvem-soft-bg-2: color-mix(in srgb, currentColor 7%, transparent);
    --hvem-border: color-mix(in srgb, currentColor 12%, transparent);
    --hvem-text-muted: color-mix(in srgb, currentColor 72%, transparent);
    font-family: inherit !important;
    color: inherit !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.hvem-event-single-card {
    display: grid;
    grid-template-columns: minmax(128px, 18%) 1fr;
    gap: 0;
    width: 100%;
    margin: .95rem 0 1.85rem;
    border: 1px solid var(--hvem-border);
    border-radius: 12px;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%);
    overflow: hidden;
    box-shadow: 0 10px 24px color-mix(in srgb, currentColor 5%, transparent);
}

.hvem-event-single-card__date {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .85rem .75rem;
    background: var(--hvem-soft-bg-2);
    border-right: 1px solid var(--hvem-border);
}

.hvem-event-single-card__body {
    min-width: 0;
    padding: .9rem 1.05rem .95rem;
}

.hvem-event-single-card__meta,
.hvem-event-summary__meta,
.hvem-event-card__meta {
    color: inherit !important;
    font-size: .88rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    opacity: .74 !important;
    margin: 0 0 .35rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.hvem-event-single-card__date-line,
.hvem-event-summary__line {
    margin: 0 0 .35rem !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
    color: inherit !important;
    opacity: .86 !important;
}

.hvem-event-single-card__description,
.hvem-event-summary__description {
    margin: .35rem 0 0 !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
    color: inherit !important;
    opacity: .78 !important;
}

.hvem-event-single-card .hvem-event-date,
.hvem-event-summary--mini .hvem-event-date,
.hvem-event-detail-card .hvem-event-date,
.hvem-event-catalog-card .hvem-event-date {
    width: 100%;
    justify-content: center;
    gap: .52rem !important;
}

.hvem-event-single-card .hvem-event-date__item,
.hvem-event-summary--mini .hvem-event-date__item {
    min-width: 2.25rem !important;
}

.hvem-event-single-card .hvem-event-date__day,
.hvem-event-single-card .hvem-event-date__separator {
    font-size: clamp(1.45rem, 3vw, 2.25rem) !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: inherit !important;
}

.hvem-event-single-card .hvem-event-date__month-year {
    font-size: .74rem !important;
    line-height: 1.2 !important;
    opacity: .72 !important;
}

/* Archive/category and Flatsome Blog Posts card: date + meta + short description. */
.hvem-event-summary--mini {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: .58rem 0 .8rem !important;
    padding: 0 !important;
    border: 1px solid var(--hvem-border) !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%) !important;
    overflow: hidden !important;
    box-shadow: 0 8px 18px color-mix(in srgb, currentColor 4%, transparent) !important;
    clear: both !important;
}

.hvem-event-summary--mini .hvem-event-summary__date {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .65rem .55rem !important;
    border-radius: 0 !important;
    background: var(--hvem-soft-bg-2) !important;
    border-right: 1px solid var(--hvem-border) !important;
}

.hvem-event-summary--mini .hvem-event-summary__content {
    min-width: 0 !important;
    padding: .68rem .78rem .72rem !important;
}

.hvem-event-summary--mini .hvem-event-date__day,
.hvem-event-summary--mini .hvem-event-date__separator {
    font-size: 1.22rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: inherit !important;
}

.hvem-event-summary--mini .hvem-event-date__month-year {
    font-size: .62rem !important;
    line-height: 1.18 !important;
    opacity: .72 !important;
}

/* Buttons: inherit website typography and use theme primary color when available. */
.hvem-event-info__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .55rem !important;
    margin-top: .75rem !important;
}

.hvem-event-link,
.hvem-event-join-button,
.hvem-event-form__submit {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .35rem !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border: 1px solid var(--primary-color, currentColor) !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--primary-color, currentColor) !important;
    font-family: inherit !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.hvem-event-link:hover,
.hvem-event-join-button:hover,
.hvem-event-form__submit:hover {
    background: var(--primary-color, currentColor) !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: translateY(-1px);
}

.hvem-event-join-wrap,
.hvem-event-info__actions > * {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.hvem-event-modal__dialog {
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent) !important;
}

.hvem-event-modal__close {
    color: inherit !important;
    background: color-mix(in srgb, Canvas 96%, currentColor 4%) !important;
}

@media (max-width: 768px) {
    .hvem-event-single-card,
    .hvem-event-summary--mini {
        grid-template-columns: 1fr !important;
    }

    .hvem-event-single-card__date,
    .hvem-event-summary--mini .hvem-event-summary__date {
        justify-content: flex-start !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--hvem-border) !important;
    }

    .hvem-event-single-card .hvem-event-date,
    .hvem-event-summary--mini .hvem-event-date {
        justify-content: flex-start !important;
    }
}


/* Version 1.2.2: keep old single detail card, remove duplicated date text, date row above info. */
.hvem-event-single-card,
.hvem-event-summary--mini {
    --hvem-accent: var(--primary-color, currentColor);
    --hvem-border: color-mix(in srgb, currentColor 12%, transparent);
    --hvem-row-bg: color-mix(in srgb, currentColor 5%, transparent);
    grid-template-columns: 1fr !important;
    color: inherit !important;
    background: color-mix(in srgb, Canvas 98%, currentColor 2%) !important;
}

.hvem-event-single-card__date,
.hvem-event-summary--mini .hvem-event-summary__date {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: .8rem 1rem !important;
    background: var(--hvem-row-bg) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--hvem-border) !important;
}

.hvem-event-single-card__body,
.hvem-event-summary--mini .hvem-event-summary__content {
    padding: .88rem 1rem 1rem !important;
}

.hvem-event-single-card .hvem-event-date,
.hvem-event-summary--mini .hvem-event-date {
    width: auto !important;
    justify-content: flex-start !important;
    gap: .62rem !important;
}

.hvem-event-single-card .hvem-event-date__item,
.hvem-event-summary--mini .hvem-event-date__item {
    min-width: 2.8rem !important;
}

.hvem-event-single-card .hvem-event-date__day,
.hvem-event-single-card .hvem-event-date__separator {
    font-size: clamp(1.85rem, 3.5vw, 2.85rem) !important;
}

.hvem-event-summary--mini .hvem-event-date__day,
.hvem-event-summary--mini .hvem-event-date__separator {
    font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
}

.hvem-event-single-card .hvem-event-date__month-year,
.hvem-event-summary--mini .hvem-event-date__month-year {
    font-size: .78rem !important;
    opacity: .72 !important;
}

.hvem-event-single-card__meta,
.hvem-event-summary__meta,
.hvem-event-card__meta {
    color: inherit !important;
}

.hvem-event-single-card__date-line,
.hvem-event-summary__line {
    display: none !important;
}

.hvem-event-link,
.hvem-event-join-button,
.hvem-event-form__submit {
    border-color: var(--primary-color, currentColor) !important;
    color: var(--primary-color, currentColor) !important;
    background: transparent !important;
}

.hvem-event-link:hover,
.hvem-event-join-button:hover,
.hvem-event-form__submit:hover {
    border-color: var(--primary-color, currentColor) !important;
    background: var(--primary-color, currentColor) !important;
    color: #fff !important;
}

.hvem-event-detail-card .hvem-event-info__actions {
    align-items: center !important;
}

.hvem-event-detail-card .hvem-event-link,
.hvem-event-detail-card .hvem-event-join-button {
    min-height: 38px !important;
    height: 38px !important;
    line-height: 1 !important;
}

/* Version 1.2.3: category/shortcode card order = date, image, event info, description. */
.hvem-event-summary--mini,
.hvem-event-catalog-card,
.hvem-event-card--compact {
    --hvem-accent: var(--primary-color, currentColor);
    --hvem-border: color-mix(in srgb, currentColor 12%, transparent);
    --hvem-card-bg: color-mix(in srgb, Canvas 98%, currentColor 2%);
    --hvem-date-bg: color-mix(in srgb, var(--hvem-accent) 7%, transparent);
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: .75rem 0 1rem !important;
    border: 1px solid var(--hvem-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--hvem-card-bg) !important;
    color: inherit !important;
    box-shadow: 0 8px 20px color-mix(in srgb, currentColor 4%, transparent) !important;
}

.hvem-event-summary--mini .hvem-event-summary__date,
.hvem-event-catalog-card__date,
.hvem-event-card__compact-date {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1rem 1.15rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--hvem-border) !important;
    border-radius: 0 !important;
    background: var(--hvem-date-bg) !important;
    color: var(--hvem-accent) !important;
    text-decoration: none !important;
}

.hvem-event-summary--mini .hvem-event-date,
.hvem-event-catalog-card__date .hvem-event-date,
.hvem-event-card__compact-date .hvem-event-date {
    width: auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(.8rem, 2vw, 1.35rem) !important;
    color: var(--hvem-accent) !important;
}

.hvem-event-summary--mini .hvem-event-date__item,
.hvem-event-catalog-card__date .hvem-event-date__item,
.hvem-event-card__compact-date .hvem-event-date__item {
    min-width: clamp(3.4rem, 7vw, 5.4rem) !important;
    text-align: center !important;
}

.hvem-event-summary--mini .hvem-event-date__day,
.hvem-event-summary--mini .hvem-event-date__separator,
.hvem-event-catalog-card__date .hvem-event-date__day,
.hvem-event-catalog-card__date .hvem-event-date__separator,
.hvem-event-card__compact-date .hvem-event-date__day,
.hvem-event-card__compact-date .hvem-event-date__separator {
    font-size: clamp(2.15rem, 5vw, 4.2rem) !important;
    line-height: .95 !important;
    font-weight: 800 !important;
    color: var(--hvem-accent) !important;
    opacity: 1 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.hvem-event-summary--mini .hvem-event-date__month-year,
.hvem-event-catalog-card__date .hvem-event-date__month-year,
.hvem-event-card__compact-date .hvem-event-date__month-year {
    display: block !important;
    margin-top: .22rem !important;
    font-size: clamp(.82rem, 1.25vw, 1rem) !important;
    line-height: 1.15 !important;
    color: inherit !important;
    opacity: .82 !important;
}

.hvem-event-summary__media,
.hvem-event-catalog-card__media,
.hvem-event-card__compact-media {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    background: color-mix(in srgb, currentColor 4%, transparent) !important;
    text-decoration: none !important;
}

.hvem-event-summary__image,
.hvem-event-catalog-card__image,
.hvem-event-card__compact-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hvem-event-summary--mini .hvem-event-summary__content,
.hvem-event-catalog-card__content,
.hvem-event-card__compact-body {
    width: 100% !important;
    padding: 1rem 1.15rem 1.12rem !important;
    min-width: 0 !important;
    background: transparent !important;
}

.hvem-event-summary--mini .hvem-event-summary__meta,
.hvem-event-catalog-card .hvem-event-card__meta,
.hvem-event-card--compact .hvem-event-card__meta {
    color: inherit !important;
    font-size: clamp(.92rem, 1.25vw, 1.06rem) !important;
    line-height: 1.38 !important;
    font-weight: 700 !important;
    opacity: .82 !important;
    margin: 0 0 .45rem !important;
}

.hvem-event-summary--mini .hvem-event-summary__description,
.hvem-event-catalog-card__description,
.hvem-event-card__compact-description {
    margin: .35rem 0 0 !important;
    font-size: clamp(.92rem, 1.2vw, 1rem) !important;
    line-height: 1.55 !important;
    color: inherit !important;
    opacity: .78 !important;
}

.hvem-event-catalog-card__title,
.hvem-event-card__compact-title {
    margin: .15rem 0 .45rem !important;
    font-size: clamp(1.05rem, 1.55vw, 1.35rem) !important;
    line-height: 1.22 !important;
    color: inherit !important;
}

.hvem-event-catalog-card__title a,
.hvem-event-card__compact-title a {
    color: var(--hvem-accent) !important;
    text-decoration: none !important;
}

.hvem-event-catalog-card__facts {
    display: none !important;
}

.hvem-event-list .hvem-event-card--compact {
    height: 100% !important;
}

.hvem-event-list--catalog,
.hvem-event-list--compact {
    gap: 1.15rem !important;
}

@media (min-width: 769px) {
    .hvem-event-list-cols-2.hvem-event-list--compact,
    .hvem-event-list-cols-2:not(.hvem-event-list--catalog) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .hvem-event-list-cols-3.hvem-event-list--compact,
    .hvem-event-list-cols-3:not(.hvem-event-list--catalog) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .hvem-event-list-cols-4.hvem-event-list--compact,
    .hvem-event-list-cols-4:not(.hvem-event-list--catalog) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .hvem-event-summary--mini .hvem-event-summary__date,
    .hvem-event-catalog-card__date,
    .hvem-event-card__compact-date {
        justify-content: center !important;
    }
}


/* Version 1.2.4: date color for all cards + archive date above post thumbnail, no duplicated thumbnail in Event summary. */
.hvem-event-card,
.hvem-event-info,
.hvem-event-summary,
.hvem-event-single-card,
.hvem-event-detail-card,
.hvem-event-catalog-card,
.hvem-event-archive-thumb-date {
    --hvem-accent: var(--primary-color, currentColor);
}

.hvem-event-card .hvem-event-date,
.hvem-event-info .hvem-event-date,
.hvem-event-summary .hvem-event-date,
.hvem-event-single-card .hvem-event-date,
.hvem-event-detail-card .hvem-event-date,
.hvem-event-catalog-card .hvem-event-date,
.hvem-event-archive-thumb-date .hvem-event-date {
    color: var(--hvem-accent) !important;
}

.hvem-event-card .hvem-event-date__day,
.hvem-event-card .hvem-event-date__separator,
.hvem-event-info .hvem-event-date__day,
.hvem-event-info .hvem-event-date__separator,
.hvem-event-summary .hvem-event-date__day,
.hvem-event-summary .hvem-event-date__separator,
.hvem-event-single-card .hvem-event-date__day,
.hvem-event-single-card .hvem-event-date__separator,
.hvem-event-detail-card .hvem-event-date__day,
.hvem-event-detail-card .hvem-event-date__separator,
.hvem-event-catalog-card .hvem-event-date__day,
.hvem-event-catalog-card .hvem-event-date__separator,
.hvem-event-archive-thumb-date .hvem-event-date__day,
.hvem-event-archive-thumb-date .hvem-event-date__separator {
    color: var(--hvem-accent) !important;
}

.hvem-event-card .hvem-event-date__month-year,
.hvem-event-info .hvem-event-date__month-year,
.hvem-event-summary .hvem-event-date__month-year,
.hvem-event-single-card .hvem-event-date__month-year,
.hvem-event-detail-card .hvem-event-date__month-year,
.hvem-event-catalog-card .hvem-event-date__month-year,
.hvem-event-archive-thumb-date .hvem-event-date__month-year {
    color: var(--hvem-accent) !important;
    opacity: .78 !important;
}

.hvem-event-archive-thumb-date {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: .9rem 1rem !important;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    background: color-mix(in srgb, var(--hvem-accent) 7%, transparent) !important;
    color: var(--hvem-accent) !important;
    box-sizing: border-box !important;
}

.hvem-event-archive-thumb-date .hvem-event-date {
    justify-content: center !important;
    gap: clamp(.85rem, 2vw, 1.35rem) !important;
}

.hvem-event-archive-thumb-date .hvem-event-date__item {
    min-width: clamp(3.2rem, 6vw, 5rem) !important;
    text-align: center !important;
}

.hvem-event-archive-thumb-date .hvem-event-date__day,
.hvem-event-archive-thumb-date .hvem-event-date__separator {
    font-size: clamp(2rem, 4.6vw, 3.8rem) !important;
    line-height: .95 !important;
    font-weight: 800 !important;
}

.hvem-event-archive-thumb-date .hvem-event-date__month-year {
    display: block !important;
    margin-top: .22rem !important;
    font-size: clamp(.78rem, 1.2vw, .98rem) !important;
    line-height: 1.15 !important;
}

/* Event summary trong danh mục/Blog Posts chỉ còn thông tin: Event | ngành | thành phố | quốc gia + mô tả ngắn. */
.hvem-event-summary--mini {
    display: block !important;
    padding: .85rem 0 0 !important;
    margin: .55rem 0 .85rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.hvem-event-summary--mini .hvem-event-summary__date,
.hvem-event-summary--mini .hvem-event-summary__media {
    display: none !important;
}

.hvem-event-summary--mini .hvem-event-summary__content {
    padding: 0 !important;
    background: transparent !important;
}

.hvem-event-summary--mini .hvem-event-summary__meta {
    color: inherit !important;
    opacity: .82 !important;
}

.hvem-event-summary--mini .hvem-event-summary__description {
    margin-top: .35rem !important;
}

/* Nút giữ màu theo website. */
.hvem-event-link,
.hvem-event-join-button,
.hvem-event-form__submit {
    border-color: var(--primary-color, currentColor) !important;
    color: var(--primary-color, currentColor) !important;
    background: transparent !important;
}

.hvem-event-link:hover,
.hvem-event-join-button:hover,
.hvem-event-form__submit:hover {
    background: var(--primary-color, currentColor) !important;
    border-color: var(--primary-color, currentColor) !important;
    color: #fff !important;
}


/* Version 1.2.5: bảo đảm ngày tháng Event luôn nằm phía trên ảnh bài viết ở Category/Flatsome Blog Posts. */
.hvem-event-archive-thumb-date,
.hvem-event-archive-thumb-date--hook,
.hvem-event-archive-thumb-date--filter {
    clear: both !important;
    float: none !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: .85rem 1rem !important;
    background: color-mix(in srgb, var(--primary-color, currentColor) 8%, transparent) !important;
    color: var(--primary-color, currentColor) !important;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.hvem-event-archive-thumb-date + img,
.hvem-event-archive-thumb-date + a,
.hvem-event-archive-thumb-date + .box-image,
.hvem-event-archive-thumb-date + .post-thumbnail,
.hvem-event-archive-thumb-date + .entry-image,
.hvem-event-archive-thumb-date + .image-cover,
.hvem-event-archive-thumb-date + .image-tools,
.hvem-event-archive-thumb-date + .col-inner,
.hvem-event-archive-thumb-date + .box-image img {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.post-item .hvem-event-archive-thumb-date,
.blog-post .hvem-event-archive-thumb-date,
.box .hvem-event-archive-thumb-date,
.box-image .hvem-event-archive-thumb-date,
.entry-image .hvem-event-archive-thumb-date,
.archive .hvem-event-archive-thumb-date,
.category .hvem-event-archive-thumb-date {
    margin-bottom: 0 !important;
}

.hvem-event-archive-thumb-date .hvem-event-date {
    width: auto !important;
    justify-content: center !important;
    color: var(--primary-color, currentColor) !important;
}

.hvem-event-archive-thumb-date .hvem-event-date__day,
.hvem-event-archive-thumb-date .hvem-event-date__separator {
    color: var(--primary-color, currentColor) !important;
    font-size: clamp(2.25rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: .95 !important;
}

.hvem-event-archive-thumb-date .hvem-event-date__month-year {
    color: var(--primary-color, currentColor) !important;
    font-size: clamp(.82rem, 1.25vw, 1rem) !important;
    opacity: .78 !important;
}

/* Khi dùng shortcode [hvem_event_list] hoặc [hvem_event_card layout="catalog/compact"], giữ ngày tháng nằm trước ảnh và bỏ thumbnail lặp trong phần tóm tắt. */
.hvem-event-catalog-card__date,
.hvem-event-card__compact-date {
    order: 1 !important;
}
.hvem-event-catalog-card__media,
.hvem-event-card__compact-media {
    order: 2 !important;
}
.hvem-event-catalog-card__content,
.hvem-event-card__compact-body {
    order: 3 !important;
}

/* Version 1.2.6: Category/Flatsome Blog Posts - nền trắng mờ dưới ngày tháng + shadow chữ để dễ đọc trên ảnh. */
.hvem-event-archive-thumb-date,
.hvem-event-archive-thumb-date--hook,
.hvem-event-archive-thumb-date--filter {
    background: rgba(255, 255, 255, .80) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    border-color: rgba(0, 0, 0, .08) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08) !important;
}

.hvem-event-archive-thumb-date .hvem-event-date,
.hvem-event-archive-thumb-date .hvem-event-date__day,
.hvem-event-archive-thumb-date .hvem-event-date__separator,
.hvem-event-archive-thumb-date .hvem-event-date__month-year {
    text-shadow: 0 1px 1px rgba(255, 255, 255, .95), 0 2px 6px rgba(0, 0, 0, .18) !important;
}

/* Khi Flatsome đặt ngày tháng nằm trong khung ảnh, giữ nền trắng mờ phủ dưới phần Date. */
.box-image .hvem-event-archive-thumb-date,
.entry-image .hvem-event-archive-thumb-date,
.post-thumbnail .hvem-event-archive-thumb-date,
.image-cover .hvem-event-archive-thumb-date,
.post-item .box-image .hvem-event-archive-thumb-date,
.blog-post .box-image .hvem-event-archive-thumb-date,
.archive .box-image .hvem-event-archive-thumb-date,
.category .box-image .hvem-event-archive-thumb-date {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 5 !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .80) !important;
    margin: 0 !important;
    padding: .7rem 1rem .75rem !important;
}

.box-image:has(.hvem-event-archive-thumb-date),
.entry-image:has(.hvem-event-archive-thumb-date),
.post-thumbnail:has(.hvem-event-archive-thumb-date),
.image-cover:has(.hvem-event-archive-thumb-date) {
    position: relative !important;
    overflow: hidden !important;
}
