/**
 * Nexus Events – Shared design for event archive and single event
 * Public-Facing Hepatology Website
 */

/* Smooth scroll for in-page anchors (e.g. View registration options) */
.nexus-events-page {
    scroll-behavior: smooth;
}

/* ---- Design tokens ---- */
:root {
    --nexus-events-primary: #0d5c8c;
    --nexus-events-primary-dark: #094670;
    --nexus-events-primary-light: #e8f2f8;
    --nexus-events-text: #1a1a1a;
    --nexus-events-text-muted: #555;
    --nexus-events-text-light: #666;
    --nexus-events-border: #e0e4e8;
    --nexus-events-bg: #ffffff;
    --nexus-events-bg-alt: #f7f9fb;
    --nexus-events-radius: 12px;
    --nexus-events-radius-sm: 8px;
    --nexus-events-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --nexus-events-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --nexus-events-max-width: 1140px;
    --nexus-events-max-width-narrow: 720px;
}

/* ---- Shared page wrapper ---- */
.nexus-events-page {
    min-height: 40vh;
}

/* ---- Archive: Hero ---- */
.nexus-events-archive-hero {
    background: linear-gradient(135deg, var(--nexus-events-primary) 0%, var(--nexus-events-primary-dark) 100%);
    color: #fff;
    padding: 48px 24px 56px;
    text-align: center;
    margin-bottom: 48px;
}

.nexus-events-archive-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nexus-events-archive-hero-desc {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ---- Breadcrumb ---- */
.nexus-events-breadcrumb {
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 0.9rem;
}

.nexus-events-breadcrumb a {
    color: var(--nexus-events-primary);
    text-decoration: none;
}

.nexus-events-breadcrumb a:hover {
    text-decoration: underline;
}

.nexus-events-breadcrumb span {
    color: var(--nexus-events-text-muted);
    margin: 0 6px;
}

.nexus-events-breadcrumb .nexus-events-breadcrumb-current {
    color: var(--nexus-events-text);
    margin: 0;
}

/* ---- Archive: Content ---- */
.nexus-events-archive-wrap {
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 0 24px 64px;
}

.nexus-events-archive-header {
    margin-bottom: 32px;
}

.nexus-events-archive-header .nexus-events-archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nexus-events-text);
    margin: 0;
}

.nexus-events-list .nexus-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* ---- Event card (archive) ---- */
.nexus-event-card {
    background: var(--nexus-events-bg);
    border-radius: var(--nexus-events-radius);
    overflow: hidden;
    box-shadow: var(--nexus-events-shadow);
    border: 1px solid var(--nexus-events-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.nexus-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nexus-events-shadow-hover);
    border-color: transparent;
}

.nexus-event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nexus-event-card-image {
    position: relative;
    height: 220px;
    background: var(--nexus-events-bg-alt);
    overflow: hidden;
}

.nexus-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nexus-event-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eef2 0%, #dce4ea 100%);
}

.nexus-event-card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--nexus-events-primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--nexus-events-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nexus-event-card-content {
    padding: 24px;
}

.nexus-event-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--nexus-events-text);
}

.nexus-event-card-excerpt {
    font-size: 0.95rem;
    color: var(--nexus-events-text-muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

.nexus-event-card-venue {
    font-size: 0.9rem;
    color: var(--nexus-events-text-light);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nexus-event-card-venue::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.8;
}

.nexus-event-card-cta {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nexus-events-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nexus-event-card-cta::after {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nexus-event-card:hover .nexus-event-card-cta {
    text-decoration: none;
}

.nexus-events-notice {
    text-align: center;
    padding: 48px 24px;
    color: var(--nexus-events-text-muted);
    font-size: 1.05rem;
}

/* ---- Pagination ---- */
.nexus-events-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nexus-events-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nexus-events-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--nexus-events-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--nexus-events-text);
    background: var(--nexus-events-bg);
    border: 1px solid var(--nexus-events-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.nexus-events-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.nexus-events-pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--nexus-events-text);
}

/* ==================== SINGLE EVENT – REDESIGNED ==================== */

/* Extra token */
:root {
    --nxe-accent: #a855f7;
    --nxe-accent-light: #f3e8ff;
    --nxe-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

.nexus-events-single {
    margin-bottom: 0;
    padding-bottom: 80px;
}

/* ── Two-column layout (70 / 30) ── */
.nxe-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

.nxe-main-col {
    min-width: 0;
}

.nxe-sidebar-col {
    min-width: 0;
}

.nxe-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.nxe-sidebar-col .nexus-event-register {
    background: var(--nexus-events-bg);
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius);
    padding: 24px;
    box-shadow: var(--nexus-events-shadow);
}

.nxe-sidebar-col .nexus-event-section-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* Override body padding when inside two-col layout */
.nxe-two-col-layout .nexus-event-body {
    padding: 0;
    max-width: 100%;
}

/* ── Hero ── */
.nxe-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.nxe-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--nexus-events-primary-dark);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.5);
    transform: scale(1.15);
}

.nxe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 70, 112, 0.88) 0%, rgba(13, 92, 140, 0.65) 100%);
}

.nxe-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 56px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.nxe-hero-content {
    color: #fff;
}

.nxe-hero-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.nxe-hero-back:hover {
    color: #fff;
}

.nxe-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: #fff;
}

.nxe-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 28px;
}

.nxe-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.nxe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.nxe-hero-badge svg {
    flex-shrink: 0;
}

.nxe-hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--nexus-events-primary-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--nexus-events-radius-sm);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nxe-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--nexus-events-primary-dark);
}

.nxe-hero-image {
    border-radius: var(--nexus-events-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4/3;
}

.nxe-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Countdown + Stats ── */
.nxe-layout-shifted {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.nxe-countdown-wrap {
    background: var(--nexus-events-bg);
    border-radius: var(--nexus-events-radius);
    box-shadow: var(--nexus-events-shadow-hover);
    padding: 24px 32px;
    text-align: center;
    margin-bottom: 40px;
}

.nxe-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.nxe-countdown-unit {
    text-align: center;
}

.nxe-cd-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--nexus-events-text);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.nxe-cd-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nexus-events-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.nxe-cd-sep {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nexus-events-text-muted);
    margin: 0 4px;
    align-self: flex-start;
    padding-top: 4px;
}

.nxe-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8faf0;
    color: #0f9d58;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nxe-cd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f9d58;
    animation: nxe-pulse 1.5s infinite;
}

@keyframes nxe-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.nxe-sold-out-notice {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
    letter-spacing: 0.05em;
    padding: 16px;
    border: 3px solid #e74c3c;
    border-radius: var(--nexus-events-radius-sm);
    display: inline-block;
}

.nxe-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.nxe-stat {
    background: var(--nexus-events-bg);
    border-radius: var(--nexus-events-radius);
    box-shadow: var(--nexus-events-shadow);
    padding: 24px 32px;
    text-align: center;
}

.nxe-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--nexus-events-text);
}

.nxe-stat-label {
    font-size: 0.85rem;
    color: var(--nexus-events-text-muted);
    font-weight: 500;
}

/* ── Body ── */
.nexus-events-single .nexus-event-body {
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 56px 24px 0;
}

.nexus-events-single .nexus-event-section {
    margin-bottom: 64px;
}

.nexus-events-single .nexus-event-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--nexus-events-text);
    padding-bottom: 14px;
    border-bottom: 3px solid var(--nexus-events-primary);
    letter-spacing: -0.01em;
}

/* ── Who is it for (tag pills) ── */
.nxe-who-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nxe-who-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--nexus-events-bg-alt);
    border: 1px solid var(--nexus-events-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--nexus-events-text);
    transition: background 0.2s, border-color 0.2s;
}

.nxe-who-tag:hover {
    background: var(--nexus-events-primary-light);
    border-color: var(--nexus-events-primary);
}

/* ── Speakers Carousel ── */
.nxe-speakers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.nxe-speakers-header .nexus-event-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nxe-speakers-nav {
    display: flex;
    gap: 8px;
}

.nxe-speakers-prev,
.nxe-speakers-next {
    width: 40px;
    height: 40px;
    border: 1px solid var(--nexus-events-border);
    border-radius: 50%;
    background: var(--nexus-events-bg);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.nxe-speakers-prev:hover,
.nxe-speakers-next:hover {
    background: var(--nexus-events-primary);
    border-color: var(--nexus-events-primary);
    color: #fff;
}

.nxe-speakers-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nxe-speakers-carousel::-webkit-scrollbar {
    height: 6px;
}

.nxe-speakers-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.nxe-speakers-carousel::-webkit-scrollbar-thumb {
    background: var(--nexus-events-border);
    border-radius: 3px;
}

.nxe-speaker-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--nexus-events-radius);
    overflow: hidden;
    border: 1px solid var(--nexus-events-border);
    background: var(--nexus-events-bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nxe-speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nexus-events-shadow-hover);
}

.nxe-speaker-img-wrap {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #e8eef2 0%, #dce4ea 100%);
    overflow: hidden;
}

.nxe-speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nxe-speaker-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eef2 0%, #dce4ea 100%);
}

.nxe-speaker-social {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nxe-speaker-social.nxe-linkedin {
    background: #0077b5;
    color: #fff;
}

.nxe-speaker-social:hover {
    transform: scale(1.1);
}

.nxe-speaker-info {
    padding: 20px;
}

.nxe-speaker-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.nxe-speaker-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--nexus-events-text);
}

.nxe-speaker-arrow {
    font-size: 1.2rem;
    color: var(--nexus-events-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nxe-speaker-arrow:hover {
    color: var(--nexus-events-primary);
}

.nxe-speaker-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--nxe-accent-light);
    color: var(--nxe-accent);
    margin-bottom: 8px;
}

.nxe-speaker-title {
    font-size: 0.85rem;
    color: var(--nexus-events-primary);
    margin: 0 0 8px;
    font-weight: 500;
}

.nxe-speaker-bio {
    font-size: 0.85rem;
    color: var(--nexus-events-text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Schedule / Program (timeline design) ── */
/* Category colours */
.nxe-cat-keynote {
    --nxe-sched-color: #14b8a6;
}

.nxe-cat-workshop {
    --nxe-sched-color: #3b82f6;
}

.nxe-cat-panel {
    --nxe-sched-color: #a855f7;
}

.nxe-cat-conference {
    --nxe-sched-color: #f97316;
}

.nxe-cat-networking {
    --nxe-sched-color: #22c55e;
}

.nxe-cat-break {
    --nxe-sched-color: #94a3b8;
}

.nxe-schedule-section .nexus-event-section-title {
    border-bottom: none;
    text-align: center;
    margin-bottom: 8px;
}

.nxe-schedule-header {
    text-align: center;
    margin-bottom: 36px;
}

.nxe-schedule-subtitle {
    font-size: 0.95rem;
    color: var(--nexus-events-text-muted);
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.nxe-schedule-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.nxe-schedule-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid var(--nexus-events-border);
    background: var(--nexus-events-bg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nexus-events-text-muted);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nxe-schedule-filter:hover {
    border-color: var(--nexus-events-primary);
    color: var(--nexus-events-text);
}

.nxe-schedule-filter.nxe-filter-active {
    background: var(--nexus-events-primary);
    border-color: var(--nexus-events-primary);
    color: #fff;
}

.nxe-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: var(--nxe-sched-color, #94a3b8);
}

/* Timeline list */
.nxe-schedule-list {
    position: relative;
}

.nxe-schedule-item {
    display: grid;
    grid-template-columns: 24px 140px 1fr;
    gap: 16px;
    align-items: start;
    min-height: 56px;
    transition: opacity 0.3s;
}

.nxe-schedule-item.nxe-sched-hidden {
    display: none;
}

/* Dot + vertical line */
.nxe-sched-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 6px;
}

.nxe-sched-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--nxe-sched-color, #94a3b8);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--nxe-sched-color, #94a3b8);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.nxe-sched-line {
    width: 2px;
    flex: 1;
    background: var(--nexus-events-border);
    margin-top: 4px;
}

.nxe-schedule-item:last-child .nxe-sched-line {
    display: none;
}

/* Time */
.nxe-sched-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nexus-events-text-muted);
    padding-top: 4px;
    white-space: nowrap;
}

/* Card */
.nxe-sched-card {
    background: var(--nexus-events-bg);
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.nxe-sched-card:hover {
    box-shadow: var(--nexus-events-shadow);
}

.nxe-sched-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--nxe-sched-color, var(--nexus-events-text));
}

.nxe-sched-desc {
    font-size: 0.9rem;
    color: var(--nexus-events-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Tagged speakers in schedule */
.nxe-sched-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--nexus-events-border);
}

.nxe-sched-speaker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nxe-sched-speaker-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nxe-sched-speaker-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e5ec 0%, #c8d1da 100%);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nxe-sched-speaker-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--nexus-events-text);
}

/* ── Sponsors ── */
.nxe-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.nxe-sponsor-card {
    text-align: center;
}

.nxe-sponsor-card a {
    text-decoration: none;
    color: inherit;
}

.nxe-sponsor-logo {
    width: 160px;
    height: 80px;
    padding: 16px;
    background: var(--nexus-events-bg-alt);
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nxe-sponsor-card:hover .nxe-sponsor-logo {
    border-color: var(--nexus-events-primary);
    box-shadow: var(--nexus-events-shadow);
}

.nxe-sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nxe-sponsor-name-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nexus-events-text-muted);
}

.nxe-sponsor-badge {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nxe-accent);
    margin-top: 8px;
}

/* ── Pricing Tiers ── */
.nxe-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.nxe-pricing-card {
    background: var(--nexus-events-bg);
    border: 2px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius);
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.nxe-pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--nexus-events-primary);
}

.nxe-pricing-featured {
    border-color: var(--nexus-events-primary);
    background: var(--nexus-events-primary-light);
    position: relative;
}

.nxe-pricing-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--nexus-events-text);
}

.nxe-pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nexus-events-primary);
    margin: 0 0 12px;
}

.nxe-pricing-desc {
    font-size: 0.85rem;
    color: var(--nexus-events-text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
    flex: 1;
}

.nxe-pricing-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--nexus-events-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--nexus-events-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.nxe-pricing-btn:hover {
    background: var(--nexus-events-primary-dark);
    color: #fff;
}

/* ── Registration Form ── */
.nexus-registration-form-wrap {
    margin-top: 8px;
}

.nexus-registration-form .nexus-reg-field,
.nexus-registration-form .nexus-reg-section {
    margin-bottom: 20px;
}

.nexus-registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.nexus-registration-form .required {
    color: #b32d2e;
}

.nexus-registration-form .widefat {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius-sm);
}

.nexus-registration-form .nexus-reg-section h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.nexus-member-block {
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    background: var(--nexus-events-bg-alt);
}

.nexus-payment-instructions ul {
    margin: 8px 0;
    padding-left: 20px;
}

.nexus-reg-notes {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff8e5;
    border-left: 4px solid #dba617;
    border-radius: 0 var(--nexus-events-radius-sm) var(--nexus-events-radius-sm) 0;
}

.nexus-reg-notes ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.nexus-reg-submit {
    margin: 24px 0 0;
}

.nexus-reg-btn {
    padding: 14px 32px;
    background: var(--nexus-events-primary);
    color: #fff;
    border: none;
    border-radius: var(--nexus-events-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.nexus-reg-btn:hover {
    background: var(--nexus-events-primary-dark);
}

.nexus-reg-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nexus-reg-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--nexus-events-radius-sm);
}

.nexus-reg-message.nexus-reg-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.nexus-reg-message.nexus-reg-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.nexus-registration-form .description {
    font-size: 0.85rem;
    color: var(--nexus-events-text-muted);
    margin-top: 4px;
}

/* ── FAQ Accordion ── */
.nxe-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nxe-faq-item {
    border-bottom: 1px solid var(--nexus-events-border);
}

.nxe-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--nexus-events-text);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.nxe-faq-question span {
    flex: 1;
}

.nxe-faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.nxe-faq-open .nxe-faq-icon {
    transform: rotate(180deg);
}

.nxe-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.nxe-faq-open .nxe-faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.nxe-faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--nexus-events-text-muted);
    line-height: 1.65;
}

/* ── Contact Form ── */
.nxe-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.nxe-contact-info {
    padding: 24px;
    background: var(--nexus-events-bg-alt);
    border-radius: var(--nexus-events-radius);
    border-left: 4px solid var(--nexus-events-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--nexus-events-text);
}

.nxe-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nxe-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nxe-contact-form input[type="text"],
.nxe-contact-form input[type="email"],
.nxe-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--nexus-events-border);
    border-radius: var(--nexus-events-radius-sm);
    font-size: 0.95rem;
    background: var(--nexus-events-bg);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nxe-contact-form input:focus,
.nxe-contact-form textarea:focus {
    outline: none;
    border-color: var(--nexus-events-primary);
}

.nxe-cf-btn {
    align-self: flex-end;
    padding: 12px 36px;
    background: var(--nexus-events-primary);
    color: #fff;
    border: none;
    border-radius: var(--nexus-events-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nxe-cf-btn:hover {
    background: var(--nexus-events-primary-dark);
}

.nxe-cf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nxe-cf-msg {
    padding: 10px 16px;
    border-radius: var(--nexus-events-radius-sm);
    font-size: 0.9rem;
}

.nxe-cf-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nxe-cf-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Floating Register Bar ── */
.nxe-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--nexus-events-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.nxe-floating-bar.nxe-floating-visible {
    transform: translateY(0);
}

.nxe-floating-inner {
    max-width: var(--nexus-events-max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nxe-floating-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nxe-floating-info strong {
    font-size: 1rem;
    color: var(--nexus-events-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.nxe-floating-info span {
    font-size: 0.85rem;
    color: var(--nexus-events-text-muted);
}

.nxe-floating-btn {
    padding: 12px 32px;
    background: var(--nexus-events-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--nexus-events-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.nxe-floating-btn:hover {
    background: var(--nexus-events-primary-dark);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nxe-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 48px;
    }

    .nxe-hero-title {
        font-size: 2rem;
    }

    .nxe-hero-image {
        aspect-ratio: 16/9;
    }

    .nxe-countdown-section {
        flex-direction: column;
        margin-top: -24px;
        gap: 16px;
    }

    .nxe-cd-num {
        font-size: 2rem;
    }

    .nxe-cd-sep {
        font-size: 1.5rem;
    }

    .nxe-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nxe-cf-row {
        grid-template-columns: 1fr;
    }

    .nxe-pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nxe-floating-info strong {
        max-width: 200px;
        font-size: 0.9rem;
    }

    .nxe-floating-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .nexus-events-single .nexus-event-body {
        padding: 40px 20px 0;
    }

    .nxe-speaker-card {
        flex: 0 0 250px;
    }

    .nxe-schedule-item {
        grid-template-columns: 24px 1fr;
    }

    .nxe-sched-time {
        grid-column: 2;
        font-size: 0.8rem;
        padding-top: 0;
    }

    .nxe-sched-card {
        grid-column: 2;
        padding: 16px 18px;
    }

    .nexus-events-list .nexus-events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nexus-events-archive-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nexus-events-archive-hero {
        padding: 36px 20px 44px;
    }

    .nexus-event-card-content {
        padding: 20px;
    }

    .nxe-hero-inner {
        padding: 32px 16px 40px;
    }

    .nxe-hero-title {
        font-size: 1.65rem;
    }

    .nxe-countdown-wrap {
        padding: 24px 20px;
    }

    .nxe-cd-num {
        font-size: 1.6rem;
    }

    .nxe-pricing-grid {
        grid-template-columns: 1fr;
    }

    .nxe-floating-inner {
        padding: 10px 16px;
    }

    .nexus-events-single .nexus-event-body {
        padding: 28px 16px 0;
    }

    .nxe-speaker-card {
        flex: 0 0 220px;
    }

    .nxe-speakers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nxe-sched-dot-col {
        display: none;
    }

    .nxe-schedule-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .nxe-sched-card {
        grid-column: 1;
    }

    .nxe-sched-time {
        grid-column: 1;
    }

    .nxe-schedule-filters {
        gap: 6px;
    }

    .nxe-schedule-filter {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}