.custom-featured-image-card,
.custom-featured-links,
.custom-image-card,
.custom-banner-card,
.custom-year-card,
.speaker-hero {
    --color-accent:  #425CC7;
    --color-dark:    #3C3C3C;
    --color-white:   #ffffff;

    --gap-card:      8px;
    --padding-sm:    24px;
    --padding-md:    32px;
    --padding-lg:    48px;

    --arrow-blue:  url("data:image/svg+xml,%3Csvg width='20' height='14' viewBox='0 0 20 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7L13 14L11.6 12.6L16.175 8H0L0 6L16.175 6L11.575 1.4L13 0L20 7Z' fill='%23425CC7'/%3E%3C/svg%3E");
    --arrow-dark:  url("data:image/svg+xml,%3Csvg width='20' height='14' viewBox='0 0 20 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7L13 14L11.6 12.6L16.175 8H0L0 6L16.175 6L11.575 1.4L13 0L20 7Z' fill='%233C3C3C'/%3E%3C/svg%3E");
    --arrow-white: url("data:image/svg+xml,%3Csvg width='20' height='14' viewBox='0 0 20 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7L13 14L11.6 12.6L16.175 8H0L0 6L16.175 6L11.575 1.4L13 0L20 7Z' fill='white'/%3E%3C/svg%3E");
}

.custom-featured-image-card,
.custom-featured-links,
.custom-image-card,
.custom-banner-card {
    position: relative;
}

.custom-featured-image-card a.elementor-icon::after,
.custom-featured-links a.elementor-icon::after,
.custom-image-card a.elementor-icon::after {
    content: '';
    position: absolute;
    inset: 0;
}

.custom-featured-links a.elementor-icon,
.custom-featured-links a.elementor-icon svg {
    width: 100%;
}

.custom-featured-links .elementor-icon-box-title,
.custom-featured-image-card .elementor-image-box-content a.custom-arrow-link,
.custom-image-card .elementor-image-box-content a.custom-arrow-link {
    display: flex;
    align-items: center;
    gap: var(--gap-card);
    margin: 0;
    justify-content: center;
}

.custom-featured-image-card .elementor-image-box-content a.custom-arrow-link,
.custom-image-card .elementor-image-box-content a.custom-arrow-link {
    justify-content: flex-start;
}

.custom-featured-links .elementor-icon-box-title::after,
.custom-featured-image-card .elementor-image-box-content a.custom-arrow-link::after,
.custom-image-card .elementor-image-box-content a.custom-arrow-link::after {
    content: var(--arrow-blue);
}

.custom-image-card .elementor-image-box-content a.custom-arrow-link.black::after,
.custom-image-card:hover .elementor-image-box-content a.custom-arrow-link.hover-black::after {
    content: var(--arrow-dark);
}

.custom-featured-image-card:hover .elementor-image-box-content a.custom-arrow-link::after,
.custom-image-card .elementor-image-box-content a.custom-arrow-link.white::after,
.custom-image-card:hover .elementor-image-box-content a.custom-arrow-link.hover-white::after {
    content: var(--arrow-white);
}

.custom-arrow-button:hover span.elementor-button-text,
.custom-featured-links:hover .elementor-icon-box-title .accssme-widget-text,
.custom-featured-image-card:hover .elementor-image-box-content a.custom-arrow-link,
.custom-image-card:hover .elementor-image-box-content a.custom-arrow-link {
    text-decoration: underline;
}

.custom-featured-image-card:hover .elementor-image-box-content a,
.custom-featured-image-card:hover .elementor-image-box-content p,
.custom-image-card .elementor-image-box-content a.white,
.custom-image-card:hover .elementor-image-box-content a.hover-white {
    color: var(--color-white);
}

.custom-image-card .elementor-image-box-content a.black,
.custom-image-card:hover .elementor-image-box-content a.hover-black {
    color: var(--color-dark);
}

.custom-featured-image-card figure,
.custom-image-card figure {
    margin: 0 !important;
}

.custom-featured-image-card .elementor-image-box-content {
    width: 30% !important;
    padding: var(--padding-lg);
}

.custom-featured-image-card .elementor-image-box-img,
.custom-image-card .elementor-image-box-img {
    align-self: stretch;
    min-height: 260px;
}

.custom-featured-image-card .elementor-image-box-title,
.custom-image-card .elementor-image-box-title {
    margin-top: 0;
}

.custom-image-card .elementor-image-box-content {
    width: 50% !important;
    padding: var(--padding-sm);
}

.custom-banner-card .custom-arrow-button {
    position: static;
}

.custom-banner-card a.elementor-button::after {
    content: '';
    position: absolute;
    inset: 0;
}

.custom-banner-card:hover * {
    color: var(--color-dark);
}

.custom-banner-card:hover .elementor-button-text {
    text-decoration: underline;
}

.custom-banner-card:hover .elementor-button-icon svg path {
    fill: var(--color-dark) !important;
}

.custom-video-banner,
.custom-video-banner .elementor-open-inline {
    height: 100%;
    aspect-ratio: auto !important;
}

.custom-arrow-button a {
    text-align: left;
}

/* ─── Year Selector ── */
.custom-year-selector-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.custom-year-trigger {
    display: flex;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    color: #3b4fc4;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
}

.custom-year-trigger .selector-arrows {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 12px;
    color: #3b4fc4;
    gap: 8px;
}

.custom-year-dropdown {
    display: none;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    width: 245px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0;
    scrollbar-width: thin;
    scrollbar-color: #677794 #fff;
    position: absolute;
    top: 100%;
    z-index: 99;
}

.custom-year-dropdown::-webkit-scrollbar {
    width: 8px;
}
.custom-year-dropdown::-webkit-scrollbar-thumb {
    background: #8a91c7;
    border-radius: 4px;
}

.custom-year-dropdown.open {
    display: block;
}

.custom-year-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    transition: background 0.15s;
}

.custom-year-option:hover {
    background: #f0f2ff;
    color: #3b4fc4;
    font-weight: 600;
}


/* ─── Year Card ── */
.custom-year-card {
    max-width: 286px;
}

.custom-year-card .custom-year-image img,
.custom-year-title span {
    transition: all .3s;
}

.custom-year-image img {
    height: 411px !important;
    object-fit: cover;
}

.custom-year-card:hover .custom-year-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3) !important;
}

.custom-year-card:hover .custom-year-title span {
    font-size: 16px !important;
    font-weight: bold;
    color: #425CC7 !important;
    transition: all .3s;
}

.custom-year-title {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.custom-year-card:hover .custom-year-title::after {
    content: var(--arrow-blue);
}

/* ─── Year Page ── */
.custom-fair-gallery .gallery-size-full {
    display: flex;
    flex-wrap: wrap;
}

.custom-fair-gallery figure > div,
.custom-fair-gallery figure a,
.custom-fair-gallery figure img {
    height: 100%;
    display: block;
}

.custom-fair-gallery figure img {
    object-fit: cover;
}

/* ─── Speaker hero ── */
.speaker-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.speaker-hero__back {
    margin-bottom: 5px;
}

.speaker-hero__back a {
    color: var(--color-white) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    line-height: 1.1;
    font-size: 14px !important;
    font-weight: 500;
}

.speaker-hero__back a:hover {
    text-decoration: underline !important;
}

.speaker-hero__back a:before {
    content: var(--arrow-white);
    transform: rotate(180deg);
}

.speaker-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.speaker-hero__group {
    color: var(--color-white);
    font-size: 14px !important;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 500;
    margin: 0 !important;
}

.speaker-hero__title {
    color: var(--color-white) !important;
    font-size: 36px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    text-align: center !important;
}

.speaker-hero__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.speaker-hero__socials a {
    color: var(--color-white) !important;
    text-decoration: underline !important;
}

.speaker-hero__socials a:not(.website) {
    text-decoration: none !important;
}

.speaker-hero__address {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.speaker-hero__address span {
    color: var(--color-white);
    font-size: 16px !important;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
}

.speaker-hero__address a {
    color: var(--color-white) !important;
    font-size: 14px !important;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 8px;
    text-decoration: underline !important;
}

.flm-weather-alert {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Top bar ── */
.flm-alert-bar {
    padding: 16px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    text-align: left;
}

.flm-alert-bar img {
    flex-shrink: 0;
}

.flm-alert-bar .flm-bar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 38px;
}

.flm-alert-bar .flm-bar-text * {
    color: inherit !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: left;
}

.flm-alert-bar .flm-bar-link {
    font-size: 12px;
    text-decoration: underline;
    font-weight: 500;
}

/* ── Overlay ── */
.flm-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    max-width: 100vw;
    max-height: 100vh;
    box-sizing: border-box;
}

.flm-alert-overlay.flm-open {
    display: flex;
    animation: flmFadeIn .18s ease;
}

@keyframes flmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ── Modal card ── */
.flm-alert-card-wrapper {
    padding: 32px;
    position: relative;
    animation: flmSlideUp .2s ease;
}

.flm-alert-card {
    background: #fff;
    border-radius: 16px;
    max-width: 636px;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
}

.flm-alert-card::-webkit-scrollbar {
    display: none;
}

/* ── Modal content ── */
.flm-alert-card .flm-modal-body {
    padding: 24px;
}

.flm-alert-card .flm-modal-icon {
    text-align: center;
    margin-bottom: 24px;
    height: 96px;
}

.flm-alert-card .flm-modal-icon img {
    height: 96px;
    width: auto;
}

.flm-alert-card .flm-modal-header {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #3C3C3C;
    margin-bottom: 24px;
}

.flm-alert-card .flm-modal-header *:not(span) {
    color: inherit !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: left;
}

.flm-alert-card .flm-modal-content {
    font-size: 14px;
    color: #3C3C3C;
    line-height: 1.7;
    margin-bottom: .75rem;
}

.flm-alert-card .flm-modal-content * {
    margin-top: 0 !important;
    line-height: 1.1 !important;
}

.flm-alert-card .flm-modal-content p:not(:last-child) {
    margin-bottom: 24px;
}

.flm-alert-card .flm-modal-content p:last-child {
    margin-bottom: 0;
}

.flm-alert-card .flm-modal-content strong {
    font-size: 16px;
}

@keyframes flmSlideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Close button ── */
.flm-alert-close {
    position: absolute;
    top: -40px;
    right: 0;
    cursor: pointer;
}


/* ─── Responsive ── */
@media screen and (max-width: 1280px) {
    .custom-featured-image-card .elementor-image-box-content {
        width: 40% !important;
        padding: var(--padding-md);
    }
}

@media screen and (min-width: 881px) and (max-width: 1200px) {
    .custom-cards-container > .e-con-inner {
        flex-wrap: wrap !important;
    }

    .custom-cards-container > .e-con-inner > div {
        width: calc(50% - 12px);
    }
}

@media screen and (max-width: 880px) {
    .custom-video-banner,
    .custom-video-banner .elementor-open-inline {
        height: auto;
        aspect-ratio: 16/9 !important;
    }

    .custom-featured-image-card .elementor-image-box-content {
        width: 100% !important;
        padding: var(--padding-md) var(--padding-sm);
    }

    .custom-featured-image-card .elementor-position-right .elementor-image-box-wrapper {
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        display: flex;
    }

    .custom-featured-image-card .elementor-position-left .elementor-image-box-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        display: flex;
    }

    .custom-featured-image-card .elementor-image-box-img,
    .custom-featured-image-card .elementor-image-box-img img {
        min-height: 132px;
        max-height: 132px;
        width: 100% !important;
    }

    .custom-image-card .elementor-image-box-img {
        min-height: 190px;
    }

    .custom-image-card .elementor-image-box-wrapper {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
    }

    .custom-year-cards-wrapper > div {
        overflow-x: scroll;
        scrollbar-width: none;
    }

    .custom-year-cards-wrapper > div::-webkit-scrollbar {
        display: none;
    }

    .custom-fair-gallery figure.gallery-item {
        padding-right: 16px !important;
        padding-bottom: 16px !important;
    }

    .custom-fair-gallery .gallery-size-full {
        margin: 0 -16px -16px 0 !important;
    }

    .speaker-hero {
        gap: 16px;
    }

    .speaker-hero__back {
        margin-bottom: 0;
    }

    .speaker-hero__address {
        margin-top: 16px;
    }

    .speaker-hero__content {
        gap: 8px;
    }

    .speaker-hero__title {
        font-size: 28px !important;
    }

    .speaker-hero__socials {
        margin-top: 8px;
    }

    .flm-alert-bar {
        gap: 16px;
    }

    .flm-alert-bar .flm-bar-content {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .flm-alert-card .flm-modal-body {
        padding: 40px 16px;
    }
}
