/* ==========================================================================
   TT Events — front-end card grid styles
   All class names are prefixed with .tt- to avoid conflicts.
   ========================================================================== */

/* Grid container */
.tt-events-grid {
	display: grid;
	gap: 1.5rem;
	width: 100%;
}

.tt-events-grid.tt-cols-1 { grid-template-columns: 1fr; }
.tt-events-grid.tt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tt-events-grid.tt-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Collapse to 1 column on small screens */
@media ( max-width: 768px ) {
	.tt-events-grid.tt-cols-2,
	.tt-events-grid.tt-cols-3 {
		grid-template-columns: 1fr;
	}
}

/* 2 columns on medium screens for 3-col grids */
@media ( min-width: 769px ) and ( max-width: 1024px ) {
	.tt-events-grid.tt-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.tt-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #FAF0E9 !important;
}



/* Image */
.tt-event-image {
	width: 100%;
	overflow: hidden;
	background: #f3f4f6;
}

.tt-event-image img {
	width: 100%;
	height: 250px !important;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}



/* Body */
.tt-event-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem 1.25rem 2rem;
	gap: 0.4rem;
	background-color: #FAF0E9;
}

/* Date + time wrapper */
.tt-event-datetime {
	display: flex;
	flex-direction: column;
	margin: 0 0 2px;
}

/* Date */
.tt-event-date {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #000000;      
}

/* Time (and optional end time) */
.tt-event-time {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #000000;
}

.tt-event-time-sep {
	margin: 0 3px;
	color: #9ca3af;
}

/* Title */
h3.tt-event-name {
	font-size: 1.3rem;
	font-weight: 600;
	color: #c54408 !important;
	line-height: 1.35;
	margin: 0 0 0;
}

/* Venue */
.tt-event-venue {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0;
}

/* CTA button — pushed to bottom of card */
.tt-event-btn {
	display: inline-block;
	margin-top: auto;
	padding-top: 1rem;
	align-self: flex-start;
	background: #007744;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.6rem 1.25rem;
	border-radius: 6px;
	margin-top: 1rem;
	transition: background 0.15s ease;
}

a.tt-event-btn {text-decoration: none !important;}

.tt-event-btn:hover {
	background: #006379;
	color: #fff;
	text-decoration: none;
}

/* Empty state */
.tt-no-events {
	color: #6b7280;
	font-style: italic;
}

/* ==========================================================================
   Infinite scroll / load more
   ========================================================================== */

.tt-load-more-wrap {
	text-align: center;
	margin-top: 2rem;
}

.tt-load-more-btn {
	display: inline-block;
	padding: 0.65rem 2rem;
	background: transparent;
	border: 1.5px solid #111827;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.tt-load-more-btn:hover {
	background: #111827;
	color: #fff;
}

.tt-load-more-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.tt-loading {
	font-size: 0.875rem;
	color: #6b7280;
	padding: 0.5rem 0;
}

.tt-scroll-sentinel {
	height: 1px;
	width: 100%;
}
