/* ==========================================================
   Tradeshows & Events — based on History layout
   File: assets/css/tradeshows.css
   ========================================================== */

/* ---- optional shared styles from History ---- */

.general-hero-title {
	font-size: clamp(2.5rem, 5.5vw, 6rem);
	font-weight:700;
}

.page-template-tradeshows-events .container {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: 16px;
}

.page-template-tradeshows-events .site.grid-container.container{
	max-width: none;
	padding-inline: 0px;
	padding-bottom: 0;
}

.page-template-tradeshows-events #content {
		padding-bottom:0px;
}

blockquote {
    padding: 0 !important;
    border: 0 !important;
    color: var(--global-color-blue);
    font-size: 100% !important;
    font-weight: 700;
}
blockquote p {
    font-weight: 700;
}
.one-container .general-content .container.flex {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}
.one-container .general-content .container.flex .entry-content {
    max-width: 55%;
    margin-left: 5%;
    margin-top: 0;
}
.image-next-to-content {
    max-width: 40%;
}

/* ==========================================================
   WRAPPER + TITLE
   ========================================================== */

.tradeshows-wrapper {
    background: #ffffff;
    padding: 20px 0 80px;
	padding-bottom: 0px;
}

.tradeshows-inner-title {

}

.tradeshows-inner-title h3 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Main inner container (single column) */
.tradeshows-inner {
    margin: 0 auto;
    padding: 0 0px;
}

/* ==========================================================
   TOP BAR: PREVIOUS EVENTS + MONTH DOTS (DESKTOP)
   ========================================================== */

.tradeshows-month-nav {
    margin-top: 20px;
    margin-bottom: 60px;
    position: sticky;
    top: 50px; /* adjust to your header height */
    z-index: 9;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Put button on the left */
.tradeshows-prev-btn {
    order: -1;
}

/* "Previous events" button */
.tradeshows-prev-btn {
    display: inline-flex;
	position: absolute;
	z-index: 9;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid #111827;
    background: #f9fafb;
    color: #000 !important;
    font-size: 1rem;
	left: 2%;
    bottom: -3%;	
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.tradeshows-prev-btn:hover {
	color:#000;
    transform: translateX(-1px);
}

.tradeshows-prev-btn::before{
    content: "";
    width: 19px;
    height:22px;
    display: inline-block;
    background: url(../images/chevron-prev.svg) center center / contain no-repeat;
    transition: transform 0.2s 
ease, opacity 0.2s 
ease;
}

.tradeshows-prev-btn.is-past-view::before {
	display:none;
}

.tradeshows-prev-btn.is-past-view::after{
    content: "";
    width: 19px;
    height:22px;
    display: inline-block;
    background: url(../images/chevron-prev.svg) center center / contain no-repeat;
    transition: transform 0.2s 
ease, opacity 0.2s 
ease;
	transform: rotate(180deg);
}


/* Month dots strip */
.tradeshows-months {
    position: relative;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0 8px 40px;
    display: flex;
align-items: center;
    justify-content: space-evenly;
}

/* light horizontal line under the dots */
.tradeshows-months::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    height: 2px;
    background: #D1D5DC;
    z-index: 0;
}

/* each month item (including "All") */
.tradeshows-months li {
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-align: center;
    opacity: 1;
    padding-top: 45px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #4b5563;
}

/* circle dot created via pseudo-element */
.tradeshows-months li::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    margin: auto;
    border: 2px solid var(--global-color-blue);
	box-shadow: 0 0 18px rgba(37, 99, 235, 0.28);
}


.tradeshows-months li.has-no-events {
    opacity: 0.35;
    cursor: default;
    pointer-events: auto; /* click is blocked in JS anyway */
}


/* "All" behaves like label without dot (optional) */
.tradeshows-months li.is-all::before {
    display: none;
    padding-top: 0;
}

/* active month */
.tradeshows-months li.active,
.tradeshows-months li.is-active {
    color: var(--global-color-blue);
}
.tradeshows-months li.active::before,
.tradeshows-months li.is-active::before {
    width: 25px;
    height: 25px;
    top: 14px;
    border: 10px solid var(--global-color-blue);
}

/* ==========================================================
   MAIN CONTENT + INTRO
   ========================================================== */

.tradeshows-main {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* Intro text under hero */
.tradeshows-page-content {
    margin-top: 24px;
    margin-bottom: 30px;
    max-width: 700px;
}

.tradeshows-page-content p {
    color: #000;
    line-height: 1.6;
}

/* Mobile month dropdown (instead of dots) */
.tradeshows-months-dropdown {
    display: none;
    width: 100%;
    max-width: 260px;
    margin: 16px 0 24px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* No results message */
.tradeshows-no-results {
    display: none;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

/* ==========================================================
   VERTICAL TIMELINE
   ========================================================== */

.tradeshows-loop {
    position: relative;
    margin-top: 10px;
}

.tradeshows-timeline {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 80px;
}

/* CENTER SPINE */
.tradeshows-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--global-color-blue);
    transform: translateX(-50%);
}

/* ==========================================================
   MONTH GROUP HEADINGS
   ========================================================== */

.tradeshows-month-group {
    position: relative;
    margin-bottom: 160px;
}

.tradeshows-month-header {
    position: relative;
    width: fit-content;
    left: -114px; /* nudge left, like history */
    right: 0;
    margin: 0 auto 50px;
    text-align: left;
}

.tradeshows-month-label {
    font-weight: 700;
    font-size: 3rem;
	color:#000;
    text-transform: uppercase;
    display: inline-block;
}

/* underline under month label */
.tradeshows-month-header::after {
    content: "";
    width: 100%;
    height: 3px;
    background: var(--global-color-blue);
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* first month a bit more left (optional, like decade-1) */
.tradeshows-month-group:first-of-type .tradeshows-month-header {
    left: -120px;
}

/* ==========================================================
   EVENT ITEMS (TRADESHOW CARDS)
   ========================================================== */

.tradeshow-item {
    position: relative;
    width: 100%;
    margin-bottom: 140px;
    min-height: 180px;
}

/* event dot always on the spine */
.tradeshow-item .timeline-inner-dot {
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--global-color-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px 7px rgba(0,0,0,0.15);
    transform: translateX(-50%);
    top: 50%;
    z-index: 3;
    outline: 5px solid #fff;
}

/* internal layout row (meta + image) */
.tradeshows-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tradeshow-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

/* LEFT side events */
.tradeshow-item.is-left .tradeshow-layout {
    flex-direction: row;
}

.tradeshow-item.is-left .tradeshow-meta {
    width: 420px;
    margin-right: 80px;
}

.tradeshow-item.is-left .tradeshow-thumb {
    width: 420px;
}

/* RIGHT side events */
.tradeshow-item.is-right .tradeshow-layout {
    flex-direction: row-reverse;
}

.tradeshow-item.is-right .tradeshow-meta {
    width: 420px;
    margin-left: 80px;
}

.tradeshow-item.is-right .tradeshow-thumb {
    width: 420px;
}

/* meta “card” */
.tradeshow-meta {
    background: #fff;
    padding: 30px;
}

.tradeshow-item-title {
    font-size: 3rem;
	color: var(--global-color-blue);
    font-weight: 700;
	line-height: 1;
    font-weight: 700;
    margin: 0px;
}

/* date + excerpt */
.tradeshows-excerpt {
    font-size: 75%;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 12px;
}

.event-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}


.tradeshows-excerpt .event-meta{
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tradeshows-excerpt .event-location{
  font-size: 1.5rem;
  color: var(--global-color-blue);
  font-weight:600;
}

.tradeshows-excerpt .hall-booth {
	display:flex;
	gap: 10px;
}

.tradeshows-excerpt .event-booth::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: var(--global-color-blue);
    vertical-align: middle;
}



.tradeshows-excerpt .event-hall, .tradeshows-excerpt .event-booth{
  font-size: 1rem;
  color: var(--global-color-blue);
}


.event-excerpt {
    font-size: 1rem;
    line-height: 1.3;
	color: var(--global-color-blue);
}

/* CTA button */
.tradeshows-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 14px;
    border-radius: 0px;
    background: var(--global-color-blue);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase; 
    font-weight: 600;
    margin-top: 10px;
	border: 1px solid var(--global-color-blue);
	gap: 7px;
}

.tradeshows-cta::after {
    content: "";
    width: 12px;
    height: 9px;
    display: inline-block;
    background: url(../images/chevron-right.svg) center center / contain no-repeat;
    transition: transform 0.2s 
ease, opacity 0.2s 
ease;
}

/* image */

.tradeshow-thumb {
    border-radius: 8px;
    overflow: hidden; /* REQUIRED so the image clips inside */
}


.tradeshow-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* ==========================================================
   PAGINATION
   ========================================================== */

.tradeshows-pagination {
    margin-top: 24px;
    text-align: center;
}

.tradeshows-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 2px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    text-decoration: none;
    color: #6b7280;
}

.tradeshows-pagination .page-numbers.current {
    background: var(--global-color-blue);
    color: #ffffff;
}

.tradeshows-pagination .page-numbers:hover:not(.current) {
    border-color: #e5e7eb;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {

    .tradeshows-month-nav {
        flex-direction: column;
        align-items: flex-start;
        position: static;
        margin-bottom: 30px;
    }

    .tradeshows-months {
        display: none; /* hide dot bar */
    }

    .tradeshows-months-dropdown {
        display: block; /* show dropdown */
    }

    .tradeshows-timeline::before {
        left: 30px; /* move rail to left */
        transform: none;
    }

    .tradeshow-item .timeline-inner-dot {
        left: 30px;
        transform: none;
    }

    .tradeshow-layout {
        flex-direction: column;
        align-items: center;
    }

    .tradeshow-item.is-left .tradeshow-meta,
    .tradeshow-item.is-right .tradeshow-meta,
    .tradeshow-item.is-left .tradeshow-thumb,
    .tradeshow-item.is-right .tradeshow-thumb {
        width: 90%;
        margin: 0 0 10px;
    }

    .tradeshows-month-header,
    .tradeshows-month-group:first-of-type .tradeshows-month-header {
        left: auto;
        margin-left: 60px;
        text-align: left;
    }
}

@media (max-width: 768px) {

    .one-container .general-content .container.flex {
        flex-direction: column;
    }
    .one-container .general-content .container.flex .entry-content {
        max-width: 100%;
        margin-left: 0;
    }

    /* on small screens, hide rail + dots (like History) */
    .tradeshows-timeline::before,
    .tradeshow-item .timeline-inner-dot,
    .tradeshows-month-nav {
        display: none;
    }

    .tradeshows-month-header {
        left: auto;
        margin: 0 auto 40px;
        text-align: center;
    }

    .tradeshow-item {
        margin-bottom: 7vh;
    }

    .tradeshow-layout {
        flex-direction: column;
        align-items: center;
    }
	
	.page-template-tradeshows-events #content {
		padding-top: 0px;
	}	
	
	.tradeshows-inner-title h3 {
		font-size: 2rem;
		text-align: center;
	}	
	
    .tradeshows-months-dropdown {
        margin:auto;
    }	
	
	.tradeshow-item-title {
		font-size: 2rem;
	}

	.tradeshow-item.is-left .tradeshow-layout {
		flex-direction: column-reverse;
	}	
	
	.tradeshows-month-group
	 {
		position: relative;
		margin-bottom: 10px;
	}
	
	.tradeshow-item.is-left .tradeshow-meta {
		width: 100%;
		margin:0px;
	}	
			
	
}
