/**
 * Workshop Tabs — [workshop_tabs]
 * ------------------------------------------------------------------
 * Mirrors the Elementor build of /services/workshop/ (nested tabs
 * widget e53fc80 + loop items 6349 / 6322) so the shortcode can drop
 * straight in where the static section used to be.
 *
 * Colours resolve from the Elementor kit when it is present, with the
 * kit's current values as fallbacks so the CSS still stands alone.
 */

.ttcw-wrap {
	--ttcw-primary:      var( --e-global-color-primary, #1980D6 );
	--ttcw-primary-dark: var( --e-global-color-secondary, #0E5EAF );
	--ttcw-text:         var( --e-global-color-text, #333333 );
	--ttcw-rail:         13%;
	--ttcw-gap:          55px;
	--ttcw-cols:         3;
	--ttcw-grid-gap:     30px;
	--ttcw-panel-top:    49px;
	--ttcw-card-min-h:   345px;

	display: flex;
	align-items: flex-start;
	gap: var( --ttcw-gap );
}

/* ------------------------------------------------------------------
   Tab rail
   ------------------------------------------------------------------ */
.ttcw-sidebar {
	flex: 0 0 var( --ttcw-rail );
	width: var( --ttcw-rail );
}

.ttcw-tablist {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Scoped through .ttcw-wrap so these beat hello-elementor's reset.css,
   which styles [type="button"] at the same specificity but loads later. */
.ttcw-wrap .ttcw-tab {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 10px 0 17px;
	border: 0;
	border-bottom: 1px solid #E7F0FE;
	border-radius: 0;
    background-color: transparent !important;
	box-shadow: none;
	color: #000000;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.ttcw-wrap .ttcw-tab:last-child {
	border-bottom: 0;
}

.ttcw-wrap .ttcw-tab:hover {
	background: transparent;
}

.ttcw-wrap .ttcw-tab:focus-visible {
	outline: 2px solid var( --ttcw-primary );
	outline-offset: 2px;
}

.ttcw-tab-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	font-family: "Belleza", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 100%;
	color: #000000;
	transition: padding .2s ease;
}

.ttcw-tab.is-active .ttcw-tab-text {
	padding: 0 9px;
	border-left: 4px solid var( --ttcw-primary );
}

.ttcw-tab-count {
	font-family: "Inter", Sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 15px;
	letter-spacing: 0;
	display: flex;
	color: #203E57;
}

/* ------------------------------------------------------------------
   Main column
   ------------------------------------------------------------------ */
.ttcw-main {
	flex: 1 1 auto;
	min-width: 0;
}

.ttcw-heading {
	margin: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid #D9D9D9;
	font-family: "Belleza", Sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 150%;
	color: var( --ttcw-primary );
}

.ttcw-panel {
	position: relative;
	padding-top: var( --ttcw-panel-top );
	outline: none;
}

.ttcw-panel.is-loading {
	opacity: .45;
	pointer-events: none;
	transition: opacity .15s ease;
}

.ttcw-empty {
	margin: 0;
	font-family: "Inter", Sans-serif;
	font-size: 15px;
	line-height: 24px;
	color: var( --ttcw-text );
}

/* ------------------------------------------------------------------
   Card grid
   ------------------------------------------------------------------ */
.ttcw-grid {
	display: grid;
	grid-template-columns: repeat( var( --ttcw-cols ), minmax( 0, 1fr ) );
	gap: var( --ttcw-grid-gap );
}

.ttcw-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: var( --ttcw-card-min-h );
	background-color: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 12px 30px 0 rgba( 0, 0, 0, .10196078431372549 );
}

.ttcw-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.ttcw-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 5px;
	margin: 0 0 8px;
	padding: 4px 12px;
	border-radius: 100px;
	background-color: var( --ttcw-primary );
	font-family: "Inter", Sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	color: #FFFFFF;
	text-transform: uppercase;
}

.ttcw-badge svg {
	width: 14px;
	height: 14px;
	flex: none;
	fill: currentColor;
}

.ttcw-card-title {
	margin: 0;
	font-family: "Belleza", Sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 25px;
	color: #000000;
}

.ttcw-card-title a {
	color: inherit;
	text-decoration: none;
}

.ttcw-card-title a:hover,
.ttcw-card-title a:focus {
	color: var( --ttcw-primary-dark );
}

.ttcw-card-excerpt {
	flex: 1;
	margin: 8px 0 0;
	font-family: "Inter", Sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: var( --ttcw-text );
}

.ttcw-card-meta {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.ttcw-card-meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-family: "Inter", Sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: var( --ttcw-text );
}

.ttcw-card-meta li:first-child {
	margin-top: 0;
}

.ttcw-card-meta li svg {
	width: 15px;
	height: 15px;
	flex: none;
}

/* Excerpt takes the slack when it is there; otherwise the meta list does. */
.ttcw-card-body > .ttcw-card-meta:last-child {
	margin-top: auto;
	padding-top: 10px;
}

.ttcw-card-foot {
	padding: 0 0 24px 24px;
}
.ttcw-card-foot .ttcw-explore a{
	text-decoration: underline;
}
.ttcw-explore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px 12px 0;
	font-family: "Inter", Sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 14px;
	
	color: var( --ttcw-primary );
	fill: var( --ttcw-primary );
	text-decoration: underline !important;
}

.ttcw-explore:hover,
.ttcw-explore:focus {
	color: var( --ttcw-primary );
	opacity: .8;
}

.ttcw-explore svg {
	width: 19px;
	height: 8px;
	flex: none;
	fill: currentColor;
}

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

.ttcw-page-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ttcw-wrap .ttcw-page-link {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #E7F0FE;
	border-radius: 4px;
	background: #FFFFFF;
	font-family: "Inter", Sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: var( --ttcw-text );
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ttcw-wrap .ttcw-page-link:focus{
	background-color:transparent !important;
}
.ttcw-wrap .ttcw-page-link:hover:not( [disabled] ) {
	border-color: var( --ttcw-primary );
	background: #FFFFFF;
	color: var( --ttcw-primary );
}

.ttcw-wrap .ttcw-page-link[aria-current="page"] {
	border-color: var( --ttcw-primary );
	background: var( --ttcw-primary );
	color: #FFFFFF;
}

.ttcw-wrap .ttcw-page-link[disabled] {
	opacity: .4;
	cursor: default;
}

.ttcw-ellipsis {
	padding: 0 2px;
	font-family: "Inter", Sans-serif;
	font-size: 13px;
	color: var( --ttcw-text );
}

/* ------------------------------------------------------------------
   Schedule panel (FullCalendar)
   ------------------------------------------------------------------ */
.ttcw-schedule {
	padding-top: var( --ttcw-panel-top );
}

.ttcw-schedule[hidden],
.ttcw-panel[hidden] {
	display: none;
}

.ttcw-schedule .calendar-wrapper {
	margin-top: 0;
}

/* ------------------------------------------------------------------
   Card entrance — applied by the JS after an AJAX swap
   ------------------------------------------------------------------ */
@keyframes ttcw-card-in {
	from { opacity: 0; transform: translateY( 12px ); }
	to   { opacity: 1; transform: none; }
}

.ttcw-card-in {
	animation: ttcw-card-in .35s ease both;
}

@media ( prefers-reduced-motion: reduce ) {
	.ttcw-card-in { animation: none; }
	.ttcw-tab-text { transition: none; }
}

/* ------------------------------------------------------------------
   Breakpoints — same stops as the Elementor kit
   ------------------------------------------------------------------ */
@media ( max-width: 1320px ) {
	.ttcw-wrap {
		--ttcw-rail: 17%;
		--ttcw-cols: 2;
	}
}

@media ( max-width: 1024px ) {
	.ttcw-wrap {
		--ttcw-rail: 20%;
		--ttcw-cols: 2;
		--ttcw-grid-gap: 24px;
		--ttcw-panel-top: 40px;
	}
}

@media ( max-width: 991px ) {
	.ttcw-wrap {
		--ttcw-rail: 22%;
		--ttcw-gap: 32px;
		--ttcw-cols: 1;
		--ttcw-grid-gap: 24px;
		--ttcw-panel-top: 32px;
		--ttcw-card-min-h: 250px;
	}

	.ttcw-heading {
		font-size: 28px;
	}
}

@media ( max-width: 768px ) {
	.ttcw-wrap {
		--ttcw-gap: 20px;
		--ttcw-cols: 1;
		--ttcw-grid-gap: 20px;
		--ttcw-panel-top: 24px;
		--ttcw-card-min-h: 200px;

		flex-direction: column;
	}

	.ttcw-sidebar {
		flex: 0 0 auto;
		width: 100%;
	}

	.ttcw-tablist {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 20px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ttcw-wrap .ttcw-tab {
		flex: 1;
		min-width: 160px;
		white-space: nowrap;
	}

	.ttcw-wrap .ttcw-tab:last-child {
		border-bottom: 1px solid #E7F0FE;
	}

	.ttcw-heading {
		font-size: 24px;
		line-height: 1.3;
	}

	.ttcw-card-body {
		padding: 20px;
	}

	.ttcw-card-foot {
		padding: 0 0 20px 20px;
	}

	.ttcw-explore {
		padding: 0;
	}
}

@media ( max-width: 575px ) {
	.ttcw-wrap {
		--ttcw-gap: 20px;
		--ttcw-grid-gap: 20px;
		--ttcw-panel-top: 0px;
	}

	.ttcw-tablist {
		gap: 16px;
	}

	.ttcw-heading {
		margin-bottom: 20px;
	}
}
