@import url('/wp-content/themes/nws-advisors/fonts/Bellefair-Regular.ttf');

/* 
 * DYNAMIC CSS VARIABLES 
 * These are injected by the plugin but defined here for reference.
 */
:root {
    --emc-color-navy: #1e2d45;
    --emc-color-navy-dark: #1E2833;
    --emc-color-black: #000000;
    --emc-color-cream: #F7F3DF;
    --emc-color-accent: #EFE8BF;
    --emc-color-gold: #CBB42F;
    --emc-color-white: #ffffff;
    --emc-color-text-muted: #8a9ab5;
    --emc-font-display: "Bellefair", serif;
    --emc-font-body: 'Gotham', sans-serif;
}

.container {
    max-width: 1200px;
    padding-inline: 20px;
    margin-inline: auto;
    width: 100%;
}

/* HERO BANNER */
.emc-event-hero {
    background-color: var(--emc-color-navy);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    padding-top: 160px;
    color: var(--emc-color-white);
}

.emc-event-hero:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(90deg, rgba(30, 40, 51, 0.8) 39.14%, rgba(88, 117, 151, 0.8) 100%);
    left: 0;
    top: 0;
}

.emc-event-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: 40px;
}

.emc-event-hero__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.emc-event-hero__content {
    max-width: 590px;
}

.emc-event-hero__back:hover {
    opacity: 1;
}

.emc-event-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--emc-color-white) !important;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
    font-family: var(--emc-font-body);
    font-weight: 500;
    opacity: .5;
    line-height: 36px;
    transition: all .3s ease;
    letter-spacing: -2%;
}

.emc-event-hero__back svg {
    width: 14px;
    height: 14px;
}

.emc-event-hero__title {
    font-family: var(--emc-font-display);
    color: var(--emc-color-white);
    line-height: 1;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: -2%;
    text-transform: uppercase;
}

.emc-event-hero__title span {
    display: block;
    color: var(--emc-color-accent);
}

.emc-event-hero__image-wrap {
    border-radius: 8px;
    overflow: hidden;
    max-width: 470px;
    position: relative;
}

.emc-event-hero__image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.emc-event-hero__image {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* META BAR */
.emc-event-meta {
    background: var(--emc-color-cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.emc-event-meta__inner {
    display: flex;
    align-items: flex-start;
    padding: 32px 20px;
}

.emc-event-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    position: relative;
}


.emc-event-meta__icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: .5rem;
}

.emc-event-meta__label {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: -2%;
    text-transform: capitalize;
    color: var(--emc-color-black);
    line-height: 36px;
}

.emc-event-meta__icon svg {
    width: 24px;
    height: 24px;
}

.emc-event-meta__value {
    font-size: 20px;
    color: var(--emc-color-black);
    font-weight: 350;
}

/* DESCRIPTION */
.emc-event-desc {
    padding-block: 80px;
}

.emc-event-desc__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.emc-event-desc__title {
    font-family: var(--emc-font-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: -2%;
    text-transform: uppercase;
    color: var(--emc-color-navy);
}

.emc-event-desc__title p {
    margin-bottom: 0;
}

/* HOST */
.emc-event-desc__body {
    font-family: var(--emc-font-body);
    font-weight: 325;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -2%;
}

.emc-event-host__image {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.emc-event-host {
    margin-bottom: 80px;
}

.emc-event-host__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding-block: 56px;
    position: relative;
}

.emc-event-host__inner:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--emc-color-navy-dark);
    z-index: -1;
    border-radius: 8px;
    max-width: calc(100% - 20%);
    right: 20px;
}

.emc-event-host__card {
    color: var(--emc-color-white);
    padding-right: 2rem;
}

.emc-event-host__image-wrap {
    max-width: 564px;
}

h3.emc-event-host__name,
.emc-event-details__title {
    font-family: var(--emc-font-display);
    font-weight: 400;
    font-size: 42px;
    line-height: 56px;
    letter-spacing: -2%;
    text-transform: uppercase;
}

span.emc-event-host__label {
    font-family: var(--emc-font-body);
    font-weight: bold;
    font-size: 18px;
    line-height: 56px;
    letter-spacing: -2%;
    text-transform: uppercase;
}

.emc-event-host__name-accent {
    color: var(--emc-color-accent);
}

/* CONTENT & SIDEBAR */
.emc-event-content {
    padding-bottom: 80px;
}

.emc-event-content__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.emc-event-checklist__list {
    list-style: none;
    display: flex;
    flex-direction: column !important;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.emc-event-checklist__item {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    font-size: 18px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 20px;
    width: 100%;
}

.emc-event-checklist__item:not(:last-child):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.emc-event-checklist__icon {
    color: var(--emc-color-gold);
}

.emc-event-details {
    background: rgba(239, 232, 191, 0.3);
    padding: 32px;
    border-radius: 8px;
}

.emc-event-details__title {
    font-family: var(--emc-font-display);
    font-size: 32px;
    margin-bottom: 20px;
}

.emc-event-details__group {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-block: 20px;
}

.emc-event-details__row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
}

.emc-event-details__icon {
    color: var(--emc-color-navy);
    width: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 4px;
}

.emc-event-details__key {
    opacity: 0.7;
    flex: 1;
}

.emc-event-details__value {
    font-weight: bold;
    text-align: right;
    flex: 2;
}

.emc-event-details__value a {
    color: inherit;
    text-decoration: none;
}

.emc-event-details__value a:hover {
    text-decoration: underline;
}

.emc-event-details__calendar-btn {
    width: 100%;
    background: var(--emc-color-gold);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.emc-event-details__calendar-btn:hover {
    background: #b8a32a;
}

.emc-calendar-dropdown {
    position: relative;
}

.emc-calendar-options a:hover {
    background: #f5f5f5;
}

.emc-event-details__icon i,
.emc-event-card__meta-item i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* CTA BUTTON */
.emc-cta-button {
    /* display: inline-block;
    padding: 16px 32px;
    background: var(--emc-color-gold);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 24px;
    font-family: var(--emc-font-body);
    text-align: center; */

    display: inline-block;
    padding: 16px;
    background: var(--emc-color-gold);
    color: rgba(0, 0, 0, 0.8) !important;
    text-decoration: none;
    font-weight: bold;
    /* text-transform: uppercase; */
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    font-family: var(--emc-font-body);
    text-align: center;
    margin-top: 24px;
}

.emc-cta-button:hover {
    /* background: var(--emc-color-navy);
    color: #fff !important; */
    background: #b8a32a;
    border-color: #ccc #bbb #aaa;
}

.emc-event-details .emc-cta-button {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ARCHIVE PAGE */
.emc-archive-page {
    background: #fff;
}

.emc-archive-hero {
    background: var(--emc-color-navy);
    padding-block: 100px;
    color: #fff;
    text-align: center;
}

.emc-archive-hero__title {
    font-family: var(--emc-font-display);
    font-size: 64px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: -2%;
}

.emc-archive-hero__desc {
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
    margin-inline: auto;
}

/* FILTERS */
.emc-archive-filters {
    padding-block: 40px;
    border-bottom: 1px solid #eee;
    background: #fcfcfc;
}

.emc-filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.emc-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.emc-filter-tab {
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--emc-color-navy);
    background: #fff;
    border: 1px solid #ddd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.emc-filter-tab.active,
.emc-filter-tab:hover {
    background: var(--emc-color-navy);
    color: #fff;
    border-color: var(--emc-color-navy);
}

.emc-filter-dropdowns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.emc-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emc-filter-group select {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 180px;
    background: #fff;
    cursor: pointer;
    font-family: 'Gotham';
}

.emc-datepicker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.emc-datepicker-icon {
    position: absolute;
    left: 12px;
    color: var(--emc-color-gold);
    pointer-events: none;
    z-index: 1;
}

.emc-datepicker-wrapper input {
    width: 15rem;
    margin-left: 50px;
    padding: 9px;
}

#emc-date-picker+.flatpickr-input,
#emc-date-picker {
    padding: 10px 15px 10px 35px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 220px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.emc-filter-reset {
    color: #666 !important;
    text-decoration: none;
    font-size: 14px;
}

.emc-filter-reset:hover {
    text-decoration: underline;
}

/* EVENT GRID (1x1 LIST) */
.emc-archive-list {
    padding-block: 80px;
}

.emc-event-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.emc-event-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.emc-event-card:hover {
    transform: translateY(-5px);
}

.emc-event-card__image {
    height: 100%;
}

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

.emc-event-card__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emc-event-card__title {
    font-family: var(--emc-font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -2%;
    margin-bottom: 20px;
}

.emc-event-card__title a {
    color: var(--emc-color-navy);
    font-weight: 400;
    letter-spacing: -2%;
    text-decoration: none;
}

#animation-container.container {
    padding: 0 !important;
}

.emc-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.emc-event-card__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
}

.emc-event-card__meta-item i {
    color: var(--emc-color-gold);
}

.emc-event-card__excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.emc-event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--emc-color-navy) !important;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.emc-event-card__link:hover {
    color: var(--emc-color-gold);
}

.emc-no-results {
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 12px;
}

.emc-event-card__meta-item--seats {
    color: var(--emc-color-gold);
    font-weight: bold;
}

.emc-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.emc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--emc-color-navy);
    font-weight: 600;
    transition: all 0.3s ease;
}

.emc-pagination .page-numbers.current,
.emc-pagination .page-numbers:hover {
    background: var(--emc-color-navy);
    color: #fff;
    border-color: var(--emc-color-navy);
}

@media (max-width: 992px) {
    .emc-event-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .emc-event-hero__wrapper,
    .emc-event-desc__inner,
    .emc-event-host__inner,
    .emc-event-content__inner {
        grid-template-columns: 1fr;
    }

    .emc-filter-dropdowns {
        flex-direction: column;
    }

    .emc-datepicker-wrapper,
    .emc-datepicker-wrapper input,
    .emc-filter-group {
        width: 100%;
    }

    .emc-datepicker-wrapper input,
    .emc-filter-group,
    .emc-filter-group select {
        flex: 1;
    }

    .emc-filter-group select {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .emc-event-card__title {
        font-size: 28px;
        line-height: 1.4;
    }

    .emc-event-card__content {
        padding: 20px;
    }

    a.emc-filter-tab {
        padding-inline: 1rem;
        font-size: 14px;
    }

    .emc-archive-hero__title {
        font-size: 45px;
    }

    .emc-archive-list {
        padding-block: 60px;
    }
}


/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .emc-event-hero__wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .emc-event-hero__content,
    .emc-event-hero__image-wrap {
        max-width: 100%;
    }

    .emc-event-desc__inner,
    .emc-event-host__inner,
    .emc-event-content__inner {
        grid-template-columns: 1fr;
    }

    .emc-event-host__inner:before {
        max-width: calc(100% - 40px);
        right: 0;
        left: 0;
        margin: 0 auto;
    }

    .emc-event-host__inner.container {
        padding-inline: 40px !important;
    }
}

@media (max-width: 768px) {
    .emc-event-hero {
        padding-top: 80px;
    }
    .emc-event-host__bio {
        margin-top: 1rem;
    }

    ul.emc-event-checklist__list {
        margin: 0;
        padding: 0;
    }

    .emc-event-host__card {
        padding: 0;
    }

    .emc-event-hero__title {
        font-size: 48px;
        line-height: 100%;
        letter-spacing: -2%;
    }

    .emc-event-hero__wrapper,
    .emc-event-desc__inner,
    ul.emc-event-checklist__list {
        gap: 20px;
    }

    li.emc-event-checklist__item:not(:last-child)::before {
        bottom: -10px;
    }

    .emc-event-desc {
        padding-block: 40px;
    }

    .emc-event-host__inner {
        padding-block: 20px;
    }

    p.emc-event-host__bio {
        font-size: 16px;
        line-height: 24px;
        margin-top: 20px;
    }

    h2.emc-event-desc__title,
    h3.emc-event-host__name,
    .emc-event-details__title {
        font-size: 32px;
        line-height: 100%;
        letter-spacing: -2%;
    }

    li.emc-event-checklist__item {
        font-size: 16px;
        line-height: 24px;
        padding-block: 5px;
    }

    span.emc-event-host__label {
        font-size: 12px;
        line-height: 24px;
    }

    section.emc-event-host {
        margin-bottom: 40px;
    }

    .emc-event-hero__inner {
        flex-direction: column-reverse;
        padding: 32px 24px;
        align-items: flex-start;
    }

    aside.emc-event-details {
        padding: 16px;
    }

    .emc-event-hero__image-wrap {
        width: 100%;
    }

    .emc-event-content__inner {
        gap: 40px;
    }

    .emc-event-meta__inner {
        flex-direction: column;
        padding: 0 24px;
        align-items: flex-start;
    }

    .emc-event-meta__item {
        padding: 20px 0;
        border-left: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
    }

    .emc-event-meta__item:first-child {
        border-top: none;
    }

    span.emc-event-details__key {
        font-size: 14px;
        line-height: 24px;
    }

    span.emc-event-details__value {
        font-size: 16px;
        padding-left: .5rem;
    }

    section.emc-event-content {
        padding-bottom: 40px;
    }
}

@media (max-width: 390px) {
    span.emc-event-details__value {
        padding-left: 0;
    }

    .emc-event-details__row {
        grid-template-columns: 1fr;
    }

    span.emc-event-details__value {
        text-align: left;
    }

    .emc-event-details__map {
        margin: 12px 0;
    }
}
