/* ==========================================================================
   Events & Conferences — listing (events.php) + details (event-details.php)
   Builds on inner-pages.css tokens (--gold, --ivory, --radius-*, --shadow-*)
   ========================================================================== */
:root {
    --ev-navy: rgb(1, 50, 99);
    --ev-navy-rgb: 1, 50, 99;
}

/* ---------- Cards (listing + "more events") ---------- */
.event_card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    margin-bottom: 40px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: box-shadow .6s var(--ease), transform .6s var(--ease), border-color .6s var(--ease);
}

.event_card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
    border-color: var(--line);
}

.event_card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ivory-deep);
}

.event_card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.event_card:hover .event_card__media img { transform: scale(1.06); }

.event_card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--ev-navy-rgb), 0) 55%, rgba(var(--ev-navy-rgb), .55) 100%);
    pointer-events: none;
}

.event_card__date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 9px 10px 8px;
    background: var(--paper);
    border-radius: 3px 14px 3px 14px;
    box-shadow: 0 10px 24px -12px rgba(33, 32, 28, .5);
    line-height: 1;
    text-align: center;
}

.event_card__date strong {
    font-size: 26px;
    font-weight: 400;
    color: var(--ev-navy);
}

.event_card__date span {
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.event_card__role {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 20px;
    background: rgba(255, 252, 246, .94);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.event_card__role::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.event_card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 26px 24px;
}

.event_card__org {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.event_card__title {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
    margin: 0 0 10px;
}

.event_card__title a { color: var(--ev-navy); transition: color .3s; }
.event_card__title a:hover { color: var(--gold); }

.event_card__theme {
    font-style: italic;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.event_card__excerpt {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event_card__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event_card__meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-soft);
}

.event_card .cta_link { margin: 0; }

/* ---------- Details: header ---------- */
.event_breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.event_breadcrumb li { color: rgba(255, 255, 255, .6); }
.event_breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-soft); }
.event_breadcrumb a { color: rgba(255, 255, 255, .85); }
.event_breadcrumb a:hover { color: var(--gold-soft); }

.event_head_meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .85);
}

.event_head_meta span { display: inline-flex; align-items: center; gap: 8px; }
.event_head_meta svg { width: 16px; height: 16px; stroke: var(--gold-soft); fill: none; stroke-width: 1.6; }

/* ---------- Details: lead image ---------- */
.event_lead {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    background: var(--ivory-deep);
    aspect-ratio: 16 / 8;
}

.event_lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.event_lead:hover img { transform: scale(1.03); }

.event_zoom_hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 252, 246, .92);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.event_zoom_hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Details: content + at-a-glance ---------- */
.event_content p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.event_content .event_theme_quote {
    position: relative;
    margin: 0 0 28px;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--gold);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.35;
    font-style: italic;
    color: var(--ev-navy);
}

.event_sessions {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.event_sessions li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 18px 22px;
    background: var(--ivory);
    border-radius: var(--radius-md);
}

.event_sessions li span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.event_sessions li strong {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ev-navy);
}

.event_topics_label {
    margin: 32px 0 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.event_topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event_topics li {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 30px;
    font-size: 14px;
    color: var(--ink-2);
    background: var(--paper);
}

.event_glance {
    position: sticky;
    top: 120px;
    padding: 30px 30px 26px;
    background: var(--ev-navy);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}

.event_glance h2 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
}

.event_glance dl { margin: 0; }

.event_glance dl > div {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.event_glance dt {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 5px;
}

.event_glance dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #fff;
}

.event_glance .btn-theme { margin-top: 18px; }

/* ---------- Details: gallery ---------- */
.event_gallery_head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.event_gallery_count {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--text-soft);
}

.event_gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.event_gallery_grid > a + a { margin-left: 0; }

.event_gallery_item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: var(--ivory-deep);
    box-shadow: var(--shadow-1);
}

.event_gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.event_gallery_item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--ev-navy-rgb), 0) 45%, rgba(var(--ev-navy-rgb), .78) 100%);
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.event_gallery_item figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.event_gallery_item:hover img { transform: scale(1.07); }
.event_gallery_item:hover::after,
.event_gallery_item:hover figcaption { opacity: 1; transform: none; }

/* first photo spans 2 columns / 2 rows for a featured feel when there are enough photos */
.event_gallery_grid.is-featured .event_gallery_item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.event_disclaimer { margin: 16px 0 0; font-size: 12.5px; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .event_lead { aspect-ratio: 16 / 10; }
    .event_glance { position: static; margin-top: 40px; }
    .event_gallery_grid { grid-template-columns: repeat(2, 1fr); }
    .event_gallery_grid.is-featured .event_gallery_item:first-child { grid-row: span 1; aspect-ratio: 16 / 9; }
    .event_gallery_item figcaption { opacity: 1; transform: none; font-size: 13px; }
    .event_gallery_item::after { opacity: 1; }
}

@media (max-width: 575px) {
    .event_card__body { padding: 20px 20px 20px; }
    .event_card__title { font-size: 20px; }
    .event_lead { aspect-ratio: 4 / 3; }
    .event_sessions li { grid-template-columns: 1fr; gap: 6px; }
    .event_gallery_grid { gap: 10px; }
    .event_gallery_item figcaption { display: none; }
    .event_gallery_item::after { display: none; }
    .event_content p { font-size: 16px; }
}
#event-gallery { scroll-margin-top: 110px; }
