/**
 * Testimonial Fader — demo site polish for module + component
 */

.tp-fader-controls [class^="in-"]:before,
.tp-fader-controls [class*=" in-"]:before {
	display: none;
}

.tp-fader-controls__quote-svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
	color: #64748b;
}

.tp-fader-demo .tp-demo-box--showcase {
	background: var(--tp-white, #fff);
	border: 1px solid var(--tp-border, rgba(24, 25, 237, 0.08));
	border-radius: var(--tp-radius, 16px);
	padding: 0;
	box-shadow: var(--tp-shadow-lg, 0 8px 32px rgba(24, 25, 237, 0.08));
	overflow: hidden;
	margin-bottom: 4px;
}

.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 18px;
	background: linear-gradient(180deg, #F8F9FF 0%, #F0F1FA 100%);
	border-bottom: 1px solid var(--tp-border, rgba(24, 25, 237, 0.08));
}

.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #E2E4F0;
}

.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__dot:nth-child(1) { background: #FF5F57; }
.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__dot:nth-child(2) { background: #FFBD2E; }
.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__dot:nth-child(3) { background: #28CA41; }

.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__label {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	color: var(--tp-text-muted, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tp-fader-demo .tp-demo-box--showcase .tp-demo-box__inner {
	padding: 32px 28px;
}

.tp-fader-demo .tp-demo-box--showcase .sp-module {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
}

/* ---- Module fader (.tfader) in demo boxes ---- */
/* Parent .tp-animate scroll-reveal uses opacity:0 which multiplies into slides and hides them. */
.itemid-101 .tp-animate:has(.tp-showcase-demo),
.tp-demo-page .tp-animate:has(.tp-showcase-demo) {
	opacity: 1 !important;
	transform: none !important;
}

.tp-showcase-demo {
	min-height: 220px;
}

.tp-showcase-demo .tfader,
.tp-showcase-demo .jx-tf {
	width: 100% !important;
	max-width: 100% !important;
}

.tp-showcase-demo .jx-tf__track,
.tp-showcase-demo .ftestimonial,
.tp-layout-gallery .jx-tf__track,
.tp-layout-gallery .ftestimonial {
	width: 100% !important;
	max-width: 100% !important;
}

.tp-layout-gallery .jx-tf,
.tp-layout-gallery .tfader {
	width: 100% !important;
	max-width: 100% !important;
}

/* ---- Live preset switcher ---- */
.tp-fader-demo {
	max-width: 920px;
	margin: 0 auto;
}

.tp-fader-controls--panel {
	background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
	border: 1px solid rgba(24, 25, 237, 0.1);
	border-radius: 20px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	padding: 0;
	margin-top: 24px;
	overflow: hidden;
}

.tp-fader-controls__banner {
	padding: 16px 22px;
	background: linear-gradient(135deg, rgba(24, 25, 237, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
	border-bottom: 1px solid rgba(24, 25, 237, 0.08);
}

.tp-fader-controls__banner-title {
	display: block;
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--tp-text, #0f172a);
	margin-bottom: 4px;
}

.tp-fader-controls__banner-desc {
	display: block;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--tp-text-muted, #64748b);
	max-width: 52rem;
}

.tp-fader-controls {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 100%;
}

.tp-fader-controls__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 0;
	padding: 20px 22px 8px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tp-fader-controls__group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 0 12px;
}

.tp-fader-controls__group + .tp-fader-controls__group {
	border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.tp-fader-controls__group--tuning {
	align-items: stretch;
}

.tp-fader-controls__group--effects {
	flex: 1 1 100%;
	width: 100%;
	padding: 18px 22px 22px;
	border-left: none !important;
}

.tp-fader-controls__tuning-row {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.tp-fader-controls__tuning-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tp-fader-controls__tuning-block--auto {
	align-items: center;
}

.tp-fader-controls__micro-label {
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tp-text-muted, #94a3b8);
}

.tp-fader-controls__pills--speed,
.tp-fader-controls__pills--scale {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.tp-fader-controls__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: "Figtree", system-ui, sans-serif;
}

.tp-fader-controls__toggle-track {
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: 100px;
	background: rgba(15, 23, 42, 0.12);
	transition: background 0.2s ease;
}

.tp-fader-controls__toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
	transition: transform 0.2s ease;
}

.tp-fader-controls__toggle.is-active .tp-fader-controls__toggle-track {
	background: var(--tp-brand, #1819ED);
}

.tp-fader-controls__toggle.is-active .tp-fader-controls__toggle-thumb {
	transform: translateX(18px);
}

.tp-fader-controls__toggle-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tp-text-muted, #64748b);
	min-width: 1.5rem;
	text-align: left;
}

.tp-fader-controls__toggle.is-active .tp-fader-controls__toggle-label {
	color: var(--tp-brand, #1819ED);
}

.tp-fader-controls__effects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.tp-fader-controls__effect {
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 100px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #fff;
	color: var(--tp-text, #0f172a);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.tp-fader-controls__effect:hover {
	border-color: rgba(24, 25, 237, 0.35);
	background: #f8f9ff;
	transform: translateY(-1px);
}

.tp-fader-controls__effect.is-active {
	background: var(--tp-brand, #1819ED);
	border-color: var(--tp-brand, #1819ED);
	color: #fff;
	box-shadow: 0 4px 14px rgba(24, 25, 237, 0.28);
}

.tp-fader-controls__head--effects {
	min-height: auto;
}

.tp-fader-controls__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	min-height: 44px;
}

.tp-fader-controls__label {
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tp-text-muted, #64748b);
}

.tp-fader-controls__hint {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 0.75rem;
	color: var(--tp-text-muted, #64748b);
	text-align: center;
	max-width: 220px;
	line-height: 1.35;
}

.tp-fader-controls__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.tp-fader-controls__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.tp-fader-controls__swatch {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 3px solid #fff;
	background: var(--swatch-color, #1819ED);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tp-fader-controls__swatch:hover {
	transform: scale(1.08);
	box-shadow: 0 0 0 1px rgba(24, 25, 237, 0.25), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.tp-fader-controls__swatch.is-active {
	transform: scale(1.12);
	box-shadow: 0 0 0 2px var(--tp-brand, #1819ED), 0 4px 14px rgba(24, 25, 237, 0.3);
}

.tp-fader-controls__pill {
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid rgba(24, 25, 237, 0.12);
	background: #fff;
	color: var(--tp-text, #0f172a);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.tp-fader-controls__pill:hover {
	border-color: rgba(24, 25, 237, 0.35);
	background: #f8f9ff;
}

.tp-fader-controls__pill.is-active {
	background: var(--tp-brand, #1819ED);
	border-color: var(--tp-brand, #1819ED);
	color: #fff;
	box-shadow: 0 4px 14px rgba(24, 25, 237, 0.25);
}

.tp-fader-controls__pill--grey.is-active { background: #757575; border-color: #757575; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.tp-fader-controls__pill--green.is-active { background: #2ba84a; border-color: #2ba84a; box-shadow: 0 4px 14px rgba(43,168,74,0.25); }
.tp-fader-controls__pill--orange.is-active { background: #f68e13; border-color: #f68e13; box-shadow: 0 4px 14px rgba(246,142,19,0.25); }
.tp-fader-controls__pill--black.is-active { background: #171717; border-color: #171717; }
.tp-fader-controls__pill--blue.is-active { background: #1819ED; border-color: #1819ED; }
.tp-fader-controls__pill--red.is-active { background: #ed145b; border-color: #ed145b; box-shadow: 0 4px 14px rgba(237,20,91,0.25); }

.tp-fader-controls__quotes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.tp-fader-controls__quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid rgba(24, 25, 237, 0.12);
	background: #fff;
	color: #64748b;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tp-fader-controls__quote-svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
	color: #64748b;
}

.tp-fader-controls__quote.is-active .tp-fader-controls__quote-svg {
	color: var(--tp-brand, #1819ED);
}

.tp-fader-controls__quote:hover {
	border-color: rgba(24, 25, 237, 0.35);
	background: #f8f9ff;
}

.tp-fader-controls__quote.is-active {
	border-color: var(--tp-brand, #1819ED);
	background: rgba(24, 25, 237, 0.06);
	box-shadow: 0 0 0 1px rgba(24, 25, 237, 0.15);
	color: var(--tp-brand, #1819ED);
}

@media (max-width: 991px) {
	.tp-fader-controls__grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding-bottom: 16px;
	}

	.tp-fader-controls__group + .tp-fader-controls__group {
		border-left: none;
		border-top: 1px solid rgba(15, 23, 42, 0.06);
		padding-top: 16px;
	}
}

@media (max-width: 767px) {
	.tp-fader-controls__banner {
		padding: 14px 16px;
	}

	.tp-fader-controls__grid {
		padding: 16px;
	}

	.tp-fader-controls__group--effects {
		padding: 16px;
	}

	.tp-fader-controls__pills {
		justify-content: flex-start;
	}
}

.tp-showcase-demo .jx-tf__stage {
	width: 100%;
}

.tp-showcase-demo .sp-module-title,
.tp-demo-page .tp-showcase-demo .sp-module-title,
.itemid-101 .tp-showcase-demo .sp-module-title {
	display: none !important;
}

/* Card layout demo — typography (colors via --jx-tf-* theme vars) */
.tp-showcase-demo .jx-tf--card .fauthor {
	font-family: "Figtree", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--jx-tf-author-color);
}

.tp-showcase-demo .jx-tf--card .jx-tf__text,
.tp-showcase-demo .jx-tf--card .fwrapper {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.7;
}

/* Demo theme — pager follows live color picker via CSS vars (read-more uses jx-tf--readmore-pill from demo JS) */

#showcase .jx-tf__dot,
#layouts .jx-tf__dot {
	background: var(--jx-tf-pager-bg);
}

#showcase .jx-tf__dot.is-active,
#layouts .jx-tf__dot.is-active {
	background: var(--jx-tf-pager-active);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--jx-tf-pager-active);
}

#showcase .jx-tf--card .jx-tf__slide-inner,
#showcase .jx-tf--bubble .jx-tf__slide-inner,
#layouts .jx-tf--card .jx-tf__slide-inner,
#layouts .jx-tf--bubble .jx-tf__slide-inner {
	background: var(--jx-tf-bg);
	border: var(--jx-tf-border);
}

/* ---- Form module (v8 jx-tf-form + legacy tf-form classes) ---- */
.tp-showcase-demo .jx-tf-form,
.tp-fader-form .jx-tf-form,
.tp-showcase-demo .tf-form-wrapper,
.tp-fader-form .tf-form-wrapper {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.tp-showcase-demo .jx-tf-form__inner,
.tp-fader-form .jx-tf-form__inner {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.tp-showcase-demo .jx-tf-form__label,
.tp-showcase-demo .tf-form label,
.tp-fader-form .jx-tf-form__label,
.tp-fader-form .tf-form label {
	font-family: "Figtree", system-ui, sans-serif;
	font-weight: 600;
	color: var(--tp-text);
}

.tp-showcase-demo .jx-tf-form__input,
.tp-showcase-demo .jx-tf-form__textarea,
.tp-showcase-demo .tf-form input[type="text"],
.tp-showcase-demo .tf-form input[type="email"],
.tp-showcase-demo .tf-form textarea,
.tp-fader-form .jx-tf-form__input,
.tp-fader-form .jx-tf-form__textarea,
.tp-fader-form .tf-form input[type="text"],
.tp-fader-form .tf-form input[type="email"],
.tp-fader-form .tf-form textarea {
	border: 1px solid rgba(24, 25, 237, 0.12) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-family: "DM Sans", system-ui, sans-serif;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-showcase-demo .jx-tf-form__input:focus,
.tp-showcase-demo .jx-tf-form__textarea:focus,
.tp-showcase-demo .tf-form input:focus,
.tp-showcase-demo .tf-form textarea:focus,
.tp-fader-form .jx-tf-form__input:focus,
.tp-fader-form .jx-tf-form__textarea:focus,
.tp-fader-form .tf-form input:focus,
.tp-fader-form .tf-form textarea:focus {
	border-color: var(--tp-brand) !important;
	box-shadow: 0 0 0 3px rgba(24, 25, 237, 0.1) !important;
	outline: none;
}

.tp-showcase-demo .jx-tf-form__submit,
.tp-showcase-demo .tf_submit,
.tp-fader-form .jx-tf-form__submit,
.tp-fader-form .tf_submit {
	background: var(--tp-brand) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 12px 28px !important;
	font-weight: 600 !important;
	font-family: "Figtree", system-ui, sans-serif;
	box-shadow: 0 4px 16px rgba(24, 25, 237, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.tp-showcase-demo .jx-tf-form__submit:hover,
.tp-showcase-demo .tf_submit:hover,
.tp-fader-form .jx-tf-form__submit:hover,
.tp-fader-form .tf_submit:hover {
	background: #3D38FF !important;
	transform: translateY(-1px);
}

/* ---- Component quote preview controls ---- */
.tp-fader-controls--component {
	margin-bottom: 24px;
}

.tp-fader-controls__grid--compact {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
	.tp-fader-controls__grid--compact {
		grid-template-columns: 1fr;
	}
}

/* ---- Component view in demo box ---- */
.tp-fader-component .jx-testimonial-wrapper > h1,
.tp-demo-page .page-header,
.tp-demo-page .article-header,
.tp-demo-page .article-info {
	display: none !important;
}

/* Card look (bg, radius, padding) comes from component menu params — not overridden here */

.tp-fader-component .jx-testimonial-text {
	font-family: "DM Sans", system-ui, sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.65 !important;
	color: #374151 !important;
	font-style: normal !important;
}

.tp-fader-component .jx-testimonial-author {
	font-family: "Figtree", system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 0.9375rem !important;
	color: var(--tp-brand, #1819ED) !important;
	margin-top: 12px !important;
}

.tp-fader-component .jx-testimonial-row--masonry,
.tp-fader-component .jx-testimonial-row--grid,
.tp-fader-component .jx-testimonial-row--flex {
	gap: 24px !important;
}

.tp-fader-component .jx-tf__readmore,
.tp-fader-component .freadmore {
	color: var(--jx-tf-readmore-color, var(--tp-brand, #1819ED)) !important;
	font-weight: 600;
	text-decoration: none;
}

.tp-fader-component .jx-tf__readmore:hover,
.tp-fader-component .freadmore:hover {
	color: var(--jx-tf-readmore-hover, #3D38FF) !important;
}

/* ---- Module grid demo on homepage ---- */
.itemid-101 .tp-fader-grid-demo .tp-demo-box__inner,
.itemid-101 .tp-fader-grid .tp-demo-box__inner {
	padding: 32px 28px;
	min-height: 280px;
}

.itemid-101 .tp-fader-grid .jx-tf--grid .jx-tf__slide,
.itemid-101 .tp-fader-grid .jx-tf--grid .fwrapper {
	opacity: 1 !important;
	visibility: visible !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.itemid-101 .tp-fader-grid .jx-tf--grid .jx-tf__grid-item .jx-tf__slide-inner {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.itemid-101 .tp-fader-grid .jx-tf--grid .jx-tf__grid-item:hover .jx-tf__slide-inner {
	box-shadow: 0 8px 28px rgba(24, 25, 237, 0.1);
	transform: translateY(-2px);
}

.itemid-101 .tp-component-grid-footer {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 20px;
	margin-top: 28px;
}

.itemid-101 .tp-component-grid-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
}

.itemid-101 .tp-component-grid-footer__list li {
	font-size: 0.9375rem;
	color: #4B5563;
	position: relative;
	padding-left: 18px;
}

.itemid-101 .tp-component-grid-footer__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tp-brand, #1819ED);
}

.tp-fader-component .jx-tf-form .jx-tf-form__label,
.tp-fader-component .jx-testimonial-form .jx-tf-form__label {
	font-family: "Figtree", system-ui, sans-serif;
	font-weight: 600;
	color: #374151;
}

.tp-fader-component .jx-tf-form .jx-tf-form__input,
.tp-fader-component .jx-tf-form .jx-tf-form__textarea,
.tp-fader-component .jx-testimonial-form .jx-tf-form__input,
.tp-fader-component .jx-testimonial-form .jx-tf-form__textarea {
	border: 1px solid rgba(24, 25, 237, 0.12) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	font-family: "DM Sans", system-ui, sans-serif;
}

.tp-fader-component .jx-tf-form .jx-tf-form__input:focus,
.tp-fader-component .jx-tf-form .jx-tf-form__textarea:focus,
.tp-fader-component .jx-testimonial-form .jx-tf-form__input:focus,
.tp-fader-component .jx-testimonial-form .jx-tf-form__textarea:focus {
	border-color: var(--tp-brand, #1819ED) !important;
	box-shadow: 0 0 0 3px rgba(24, 25, 237, 0.1) !important;
	outline: none;
}

.tp-fader-component .jx-tf-form .jx-tf-form__submit,
.tp-fader-component .jx-testimonial-form .jx-tf-form__submit {
	background: var(--tp-brand, #1819ED) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 100px !important;
	padding: 12px 28px !important;
	font-weight: 600 !important;
	font-family: "Figtree", system-ui, sans-serif;
}

.tp-fader-component .jx-tf-toggle-btn,
.tp-fader-component .jx-testimonial-toggle {
	background: var(--tp-brand, #1819ED) !important;
	border-radius: 100px !important;
	font-family: "Figtree", system-ui, sans-serif;
	font-weight: 600;
	color: #fff !important;
}

.tp-fader-component .jx-tf-pagination a,
.tp-fader-component .jx-testimonial-pagination a {
	border-radius: 8px !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.tp-fader-component .jx-tf-pagination .active a,
.tp-fader-component .jx-testimonial-pagination .active a,
.tp-fader-component .jx-testimonial-pagination li.active a,
.tp-fader-component .jx-testimonial-pagination a.jx-testimonial-pagination__active {
	background: var(--tp-brand, #1819ED) !important;
	color: #fff !important;
}

.tp-fader-component .jx-testimonial-toggle-wrapper,
.tp-fader-component .jx-testimonial-toggle-container {
	margin-top: 8px;
	text-align: center;
}

.tp-fader-component .jx-testimonial-modal__content {
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(15, 15, 20, 0.12);
}

.tp-fader-component .jx-testimonial-wrapper {
	padding: 0;
}

.tp-demo-page .tp-demo-box__inner.tp-fader-component {
	padding: 40px 36px;
}

@media (max-width: 767px) {
	.tp-demo-page .tp-demo-box__inner.tp-fader-component {
		padding: 28px 20px;
	}
}

.tp-demo-page .tp-page-hero + .tp-section {
	padding-top: 24px;
}

/* ---- v8 layout template gallery ---- */
.tp-layout-demo.is-effect-preview .tp-demo-box {
	box-shadow: 0 0 0 2px var(--tp-brand, #1819ED), 0 8px 28px rgba(24, 25, 237, 0.15);
	transition: box-shadow 0.35s ease;
}

@keyframes tp-layout-flash {
	0% { box-shadow: 0 0 0 0 rgba(24, 25, 237, 0.35); }
	50% { box-shadow: 0 0 0 4px rgba(24, 25, 237, 0.2); }
	100% { box-shadow: 0 0 0 0 rgba(24, 25, 237, 0); }
}

.tp-layout-demo.is-effect-preview .tp-demo-box {
	animation: tp-layout-flash 0.55s ease;
}

#layouts.is-synced .tp-layout-gallery {
	position: relative;
}

.tp-layout-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.tp-layout-demo__head {
	margin-bottom: 14px;
	text-align: center;
}

.tp-layout-demo__title {
	font-family: "Figtree", system-ui, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tp-text, #0f172a);
	margin: 0 0 6px;
}

.tp-layout-demo__desc {
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--tp-text-muted, #64748b);
	margin: 0;
}

.tp-demo-box--compact .tp-demo-box__inner {
	padding: 20px 18px;
	min-height: 180px;
}

.tp-demo-box--compact .tp-showcase-demo {
	min-height: 160px;
}

.tp-layout-gallery .jx-tf__pager,
.tp-layout-gallery [class*="_tabs"] {
	margin-top: 14px !important;
}

@media (max-width: 991px) {
	.tp-layout-gallery {
		grid-template-columns: 1fr;
		max-width: 640px;
	}
}
