/**
 * Trinity Events — front-end styles.
 * Colors and fonts mirror the site's Elementor global kit. Override any
 * variable from your theme or Customizer > Additional CSS if needed.
 */

.tbc-events {
	/* Theme tokens (from the Elementor global kit). */
	--tbc-primary: #064C00;     /* dark green   */
	--tbc-accent: #F0D9A5;      /* gold button  */
	--tbc-text: #1d0d00;
	--tbc-muted: #5b5048;
	--tbc-card-bg: #F8F1EF;     /* cream rows   */
	--tbc-border: rgba(29, 13, 0, 0.14);
	--tbc-overlay: rgba(6, 76, 0, 0.62); /* green photo overlay */
	--tbc-radius: 0px;       /* cards / rows */
	--tbc-btn-radius: 0px;   /* buttons — square, matching the placeholders */
	--tbc-heading-font: "Forum", Georgia, serif;
	--tbc-body-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	font-family: var(--tbc-body-font);
	color: var(--tbc-text);
}

.tbc-events * {
	box-sizing: border-box;
}

/* ---- Optional section header ------------------------------------------- */
.tbc-section-head {
	text-align: center;
	margin-bottom: 36px;
}
.tbc-eyebrow {
	display: inline-block;
	font-family: var(--tbc-body-font);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--tbc-primary);
	margin-bottom: 10px;
}
.tbc-heading {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 45px;
	line-height: 1.3;
	color: var(--tbc-primary);
	margin: 0;
}

/* ---- Shared meta row (time / location) --------------------------------- */
.tbc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-bottom: 6px;
}
.tbc-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--tbc-body-font);
	font-weight: 500;
	font-size: 15px;
	color: var(--tbc-muted);
}
.tbc-meta__icon {
	display: inline-flex;
	color: var(--tbc-accent);
}
.tbc-meta--light .tbc-meta__item { color: rgba(255, 255, 255, 0.92); }

/* ---- Shared pill button ------------------------------------------------ */
.tbc-btn {
	display: inline-block;
	font-family: var(--tbc-body-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	color: var(--tbc-primary);
	background: var(--tbc-accent);
	padding: 15px 32px;
	border-radius: var(--tbc-btn-radius);
	transition: background-color .25s ease, color .25s ease;
	white-space: nowrap;
}
.tbc-btn:hover,
.tbc-btn:focus {
	background: var(--tbc-primary);
	color: #fff;
}

/* ===== LIST VIEW (homepage style) ====================================== */
.tbc-row {
	display: flex;
	align-items: stretch;
	background: var(--tbc-card-bg);
	border: 1px solid var(--tbc-border);
	border-radius: var(--tbc-radius);
	margin-bottom: 30px;
	overflow: hidden;
}
.tbc-row:last-child { margin-bottom: 0; }

.tbc-row__date {
	flex: 0 0 20%;
	min-width: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	text-align: center;
	text-decoration: none;
	background-color: var(--tbc-primary);
	background-size: cover;
	background-position: center;
}
.tbc-row__date-text {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 25px;
	line-height: 1.3;
	color: #fff;
}
.tbc-row__body {
	flex: 1 1 auto;
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tbc-row__title {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 25px;
	line-height: 1.4;
	margin: 8px 0;
}
.tbc-row__title a {
	color: var(--tbc-primary);
	text-decoration: none;
}
.tbc-row__title a:hover { text-decoration: underline; }
.tbc-row__excerpt {
	font-size: 16px;
	line-height: 1.8;
	color: var(--tbc-muted);
	margin: 4px 0 0;
}
.tbc-row__cta {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 32px 40px 32px 0;
}

.tbc-empty {
	text-align: center;
	font-size: 16px;
	color: var(--tbc-muted);
	padding: 24px;
}

/* ===== GRID VIEW ======================================================= */
.tbc-grid {
	display: grid;
	grid-template-columns: repeat(var(--tbc-cols, 3), 1fr);
	gap: 28px;
}
.tbc-card {
	display: flex;
	flex-direction: column;
	background: var(--tbc-card-bg);
	border: 1px solid var(--tbc-border);
	border-radius: var(--tbc-radius);
	overflow: hidden;
}
.tbc-card__media {
	position: relative;
	display: block;
	text-decoration: none;
}
.tbc-card__img {
	display: block;
	width: 100%;
	padding-top: 60%;
	background-size: cover;
	background-position: center;
	background-color: #e7ddd6;
}
.tbc-card__img--blank {
	background: linear-gradient(135deg, var(--tbc-primary), #0a6b03);
}
.tbc-card__date {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: var(--tbc-primary);
	color: #fff;
	font-family: var(--tbc-heading-font);
	font-size: 17px;
	padding: 8px 14px;
	border-radius: 4px;
}
.tbc-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
}
.tbc-card__title {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.4;
	margin: 2px 0;
}
.tbc-card__title a { color: var(--tbc-primary); text-decoration: none; }
.tbc-card__title a:hover { text-decoration: underline; }
.tbc-card__excerpt {
	font-size: 15px;
	line-height: 1.7;
	color: var(--tbc-muted);
	margin: 0 0 14px;
}
.tbc-card .tbc-btn {
	margin-top: auto;
	align-self: flex-start;
}

/* ===== CALENDAR VIEW =================================================== */
.tbc-cal { width: 100%; }
.tbc-cal__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 18px;
}
.tbc-cal__title {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 30px;
	color: var(--tbc-primary);
	margin: 0;
	min-width: 220px;
	text-align: center;
}
.tbc-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--tbc-card-bg);
	border: 1px solid var(--tbc-border);
	color: var(--tbc-primary);
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.tbc-cal__nav:hover { background: var(--tbc-primary); color: #fff; }

.tbc-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}
.tbc-cal__dow {
	text-align: center;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--tbc-muted);
	padding-bottom: 6px;
}
.tbc-cal__cell {
	min-height: 104px;
	background: var(--tbc-card-bg);
	border: 1px solid var(--tbc-border);
	border-radius: 6px;
	padding: 8px;
}
.tbc-cal__cell--empty {
	background: transparent;
	border-color: transparent;
}
.tbc-cal__cell.is-today {
	outline: 2px solid var(--tbc-primary);
	outline-offset: -2px;
}
.tbc-cal__num {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--tbc-muted);
	margin-bottom: 4px;
}
.tbc-cal__cell.has-events .tbc-cal__num { color: var(--tbc-primary); }
.tbc-cal__event {
	display: block;
	background: var(--tbc-primary);
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	padding: 4px 6px;
	margin-bottom: 4px;
	font-size: 12px;
	line-height: 1.3;
	transition: opacity .2s ease;
}
.tbc-cal__event:hover { opacity: .85; }
.tbc-cal__event-time {
	display: block;
	font-weight: 700;
	opacity: .85;
}
.tbc-cal__event-title {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ===== SINGLE EVENT PAGE =============================================== */
.tbc-single { max-width: none; }
.tbc-single__hero {
	background-color: var(--tbc-primary);
	background-size: cover;
	background-position: center;
	padding: 90px 20px;
	text-align: center;
}
.tbc-single__hero-inner { max-width: 820px; margin: 0 auto; }
.tbc-single__eyebrow {
	display: inline-block;
	color: var(--tbc-accent);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.tbc-single__title {
	font-family: var(--tbc-heading-font);
	font-weight: 500;
	font-size: 56px;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 18px;
}
.tbc-single__hero .tbc-meta { justify-content: center; }
.tbc-single__body {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 20px 72px;
}
.tbc-single__content {
	font-size: 17px;
	line-height: 1.9;
	color: var(--tbc-text);
}
.tbc-single__content p { margin: 0 0 1.2em; }
.tbc-single__cta { margin-top: 32px; }
.tbc-single__back { margin-top: 40px; }
.tbc-single__back a { color: var(--tbc-primary); text-decoration: none; font-weight: 600; }
.tbc-single__back a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ====================================================== */
@media (max-width: 900px) {
	.tbc-grid { grid-template-columns: repeat(2, 1fr); }
	.tbc-heading { font-size: 38px; }
	.tbc-single__title { font-size: 42px; }
}
@media (max-width: 781px) {
	.tbc-row { flex-direction: column; }
	.tbc-row__date { flex-basis: auto; min-height: 120px; }
	.tbc-row__body { padding: 26px 24px 6px; }
	.tbc-row__cta { padding: 0 24px 26px; }
	.tbc-cal__cell { min-height: 84px; }
	.tbc-cal__event-title { font-size: 11px; }
}
@media (max-width: 560px) {
	.tbc-grid { grid-template-columns: 1fr; }
	.tbc-cal__grid { gap: 4px; }
	.tbc-cal__cell { min-height: 64px; padding: 5px; }
	.tbc-cal__dow { font-size: 10px; letter-spacing: 1px; }
	.tbc-cal__event-time { display: none; }
}
