/**
 * Testimonials Pro demo / example pages (non-homepage)
 */

/* ---- Page canvas ---- */
.tp-demo-page #sp-main-body {
	padding: 0;
	background: #FAFBFF;
}

.tp-demo-page #sp-left {
	display: none !important;
}

.tp-demo-page #sp-component {
	flex: 0 0 100%;
	max-width: 100%;
}

.tp-demo-page .row > #sp-component.col-lg-9,
.tp-demo-page .row > #sp-component.col-md-9 {
	flex: 0 0 100%;
	max-width: 100%;
}

.tp-demo-page #sp-component .sp-column {
	padding-top: 0;
}

.tp-demo-page .article-header,
.tp-demo-page .article-info,
.tp-demo-page .page-header,
.tp-demo-page .article-can-edit,
.tp-demo-page .article-details > .page-header {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden;
}

.tp-demo-page #sp-header {
	background: #FAFBFF;
	border-bottom: 1px solid rgba(24, 25, 237, 0.06);
}

.tp-demo-page #sp-header.tp-header-scrolled {
	background: rgba(250, 251, 255, 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 16px rgba(24, 25, 237, 0.06);
}

.tp-demo-page [itemprop="articleBody"],
.tp-demo-page #sp-component > .sp-column > div:first-child {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 8px;
}

.tp-demo-page .breadcrumb-container,
.tp-demo-page .mod-breadcrumbs {
	display: none;
}

/* ---- Page hero ---- */
.tp-demo-page .tp-page-hero {
	position: relative;
	text-align: center;
	padding: 36px 24px 32px;
	margin: 0 -15px 0;
	background: #FAFBFF;
	overflow: hidden;
	isolation: isolate;
}

.tp-demo-page .tp-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(24, 25, 237, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(24, 25, 237, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 20%, transparent 75%);
	z-index: 0;
}

.tp-demo-page .tp-page-hero::after {
	content: "";
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 500px;
	background: radial-gradient(ellipse, var(--tp-brand-glow) 0%, transparent 68%);
	opacity: 0.45;
	z-index: 0;
	pointer-events: none;
}

.tp-demo-page .tp-page-hero > * {
	position: relative;
	z-index: 1;
}

.tp-demo-page .tp-page-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--tp-brand);
	margin-bottom: 14px;
	padding: 6px 14px;
	background: var(--tp-white);
	border: 1px solid var(--tp-border);
	border-radius: 100px;
}

.tp-demo-page .tp-page-hero__title {
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--tp-text);
	margin: 0 auto 16px;
	max-width: 720px;
	line-height: 1.1;
}

.tp-demo-page .tp-page-hero__sub {
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.65;
	color: var(--tp-text-muted);
	max-width: 640px;
	margin: 0 auto 28px;
}

/* ---- Example subnav ---- */
.tp-demo-page .tp-subnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 0;
}

.tp-demo-page .tp-subnav__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tp-text-muted);
	background: var(--tp-white);
	border: 1px solid var(--tp-border);
	border-radius: 100px;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tp-demo-page .tp-subnav__link:hover {
	color: var(--tp-brand);
	border-color: rgba(24, 25, 237, 0.2);
	background: var(--tp-brand-light);
}

.tp-demo-page .tp-subnav__link.is-active {
	color: var(--tp-white);
	background: var(--tp-brand);
	border-color: var(--tp-brand);
}

/* ---- Sections ---- */
.tp-demo-page .tp-section {
	padding: 56px 0;
}

.tp-demo-page .tp-page-hero + .tp-section,
.tp-demo-page .tp-page-hero + .tp-section-wrap .tp-section:first-child {
	padding-top: 40px;
}

.tp-demo-page .tp-section--alt {
	position: relative;
	padding: 56px 32px;
	margin: 0 -15px;
	background: var(--tp-brand-light);
	border-radius: 24px;
	border: 1px solid var(--tp-border);
}

.tp-demo-page .tp-section__header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 36px;
}

.tp-demo-page .tp-section__eyebrow {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--tp-brand);
	margin-bottom: 12px;
	padding: 6px 14px;
	background: var(--tp-white);
	border: 1px solid var(--tp-border);
	border-radius: 100px;
}

.tp-demo-page .tp-section__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--tp-text);
	margin: 0 0 12px;
	line-height: 1.15;
}

.tp-demo-page .tp-section__desc {
	font-size: 16px;
	line-height: 1.65;
	color: var(--tp-text-muted);
	margin: 0;
}

.tp-demo-page .tp-section__actions {
	text-align: center;
	margin-top: 32px;
}

/* ---- Demo preview frame ---- */
.tp-demo-page .tp-demo-box {
	background: var(--tp-white);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 0;
	box-shadow: var(--tp-shadow-lg);
	overflow: hidden;
}

.tp-demo-page .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);
}

.tp-demo-page .tp-demo-box__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

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

.tp-demo-page .tp-demo-box__label {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	color: var(--tp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tp-demo-page .tp-demo-box__inner {
	padding: 28px 24px;
}

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

/* ---- Product card (usage example) ---- */
.tp-demo-page .tp-product-card {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 32px;
	align-items: center;
	padding: 32px;
	background: var(--tp-white);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow);
	margin-bottom: 0;
}

.tp-demo-page .tp-product-card__media {
	aspect-ratio: 4/3;
	border-radius: var(--tp-radius-sm);
	background: linear-gradient(135deg, var(--tp-brand-light) 0%, var(--tp-brand-muted) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: var(--tp-brand);
}

.tp-demo-page .tp-product-card__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 12px;
	color: var(--tp-text);
}

.tp-demo-page .tp-product-card__price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tp-brand);
	margin-bottom: 16px;
}

.tp-demo-page .tp-product-card__desc {
	font-size: 15px;
	line-height: 1.65;
	color: var(--tp-text-muted);
	margin: 0;
}

@media (max-width: 767px) {
	.tp-demo-page .tp-product-card {
		grid-template-columns: 1fr;
		padding: 24px;
	}
}

/* ---- Screenshot gallery ---- */
.tp-demo-page .tp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.tp-demo-page .tp-gallery-grid img,
.tp-demo-page .photogallery img,
.tp-demo-page .jx-photogallery img {
	width: 100%;
	height: auto;
	border-radius: var(--tp-radius-sm);
	border: 1px solid var(--tp-border);
	box-shadow: var(--tp-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-demo-page .tp-gallery-grid img:hover,
.tp-demo-page .photogallery img:hover {
	transform: translateY(-2px);
	box-shadow: var(--tp-shadow-lg);
}

/* ---- Showcase module polish ---- */
.tp-demo-page .tp-showcase-demo .jx-m-testimonials .jx-testimonial-item,
.tp-demo-page .jx-m-testimonials .jx-testimonial-item {
	transition: transform 0.25s ease;
}

.tp-demo-page .jx-m-testimonials .jx-testimonial-bubble,
.tp-demo-page .jx-m-testimonials .jx-testimonial-bubble-squared,
.tp-demo-page .jx-m-testimonials .jx-testimonial-bubble-round,
.tp-demo-page .jx-m-testimonials .jx-testimonial-bubble-rounded {
	box-shadow: 0 2px 12px rgba(15, 15, 20, 0.05) !important;
	border: 1px solid rgba(24, 25, 237, 0.06) !important;
}

.tp-demo-page .tp-showcase-demo .jx-testimonial-author-top,
.tp-demo-page .tp-showcase-demo .jx-testimonial-author-bottom,
.itemid-101 .tp-showcase-demo .jx-testimonial-author-top,
.itemid-101 .tp-showcase-demo .jx-testimonial-author-bottom {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 12px 0 !important;
	margin-top: 0;
	box-shadow: none !important;
}

.tp-demo-page .tp-showcase-demo .jx-testimonial-author-left,
.tp-demo-page .tp-showcase-demo .jx-testimonial-author-right {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 12px 8px !important;
	margin-top: 0;
	box-shadow: none !important;
}

/* Left/right author layouts: breathing room between author block and bubble */
.tp-demo-page .tp-showcase-demo .jx-testimonial-layout.jx-layout-left,
.tp-demo-page .tp-showcase-demo .jx-testimonial-layout.jx-layout-right,
.itemid-101 .tp-showcase-demo .jx-testimonial-layout.jx-layout-left,
.itemid-101 .tp-showcase-demo .jx-testimonial-layout.jx-layout-right {
	gap: 20px !important;
}

.tp-demo-page .tp-demo-box__inner.tp-showcase-demo > .moduletable.tp-showcase-demo ~ .moduletable.tp-showcase-demo,
.itemid-101 .tp-demo-box__inner.tp-showcase-demo > .moduletable.tp-showcase-demo ~ .moduletable.tp-showcase-demo {
	margin-top: 28px;
}

.tp-demo-page .tp-showcase-demo .jx-testimonials-wrapper > .jx-testimonial-item,
.itemid-101 .tp-showcase-demo .jx-testimonials-wrapper > .jx-testimonial-item {
	margin-top: 16px;
}

@media (max-width: 768px) {
	.tp-demo-page .tp-showcase-demo .jx-testimonial-layout.jx-layout-left,
	.tp-demo-page .tp-showcase-demo .jx-testimonial-layout.jx-layout-right,
	.itemid-101 .tp-showcase-demo .jx-testimonial-layout.jx-layout-left,
	.itemid-101 .tp-showcase-demo .jx-testimonial-layout.jx-layout-right {
		gap: 12px !important;
	}

	.tp-demo-page .tp-showcase-demo .jx-testimonial-author-left,
	.itemid-101 .tp-showcase-demo .jx-testimonial-author-left {
		margin-right: 0 !important;
		padding-right: 0 !important;
	}

	.tp-demo-page .tp-showcase-demo .jx-testimonial-author-right,
	.itemid-101 .tp-showcase-demo .jx-testimonial-author-right {
		margin-left: 0 !important;
		padding-left: 0 !important;
	}
}

.tp-demo-page .tp-showcase-demo .jx-testimonial-item:has(.jx-testimonial-author-left):not(:has(.jx-testimonial-author-top)),
.tp-demo-page .tp-showcase-demo .jx-testimonial-item:has(.jx-testimonial-author-right):not(:has(.jx-testimonial-author-top)),
.itemid-101 .tp-showcase-demo .jx-testimonial-item:has(.jx-testimonial-author-left):not(:has(.jx-testimonial-author-top)),
.itemid-101 .tp-showcase-demo .jx-testimonial-item:has(.jx-testimonial-author-right):not(:has(.jx-testimonial-author-top)) {
	gap: 20px !important;
}

.tp-demo-page .tp-showcase-demo .jx-testimonial-author-left,
.itemid-101 .tp-showcase-demo .jx-testimonial-author-left {
	margin-right: 4px !important;
	padding-right: 12px !important;
}

.tp-demo-page .tp-showcase-demo .jx-testimonial-author-right,
.itemid-101 .tp-showcase-demo .jx-testimonial-author-right {
	margin-left: 4px !important;
	padding-left: 12px !important;
}

.tp-demo-page .jx-m-testimonials .jx-testimonial-author-name,
.tp-demo-page .jx-m-testimonials .jx-testimonial-author-name a {
	font-weight: 700 !important;
	color: var(--tp-brand) !important;
}

.tp-demo-page .jx-m-testimonials .jx-rating-star,
.tp-demo-page .jx-m-testimonials .fa-star {
	color: #F59E0B !important;
}

.tp-demo-page .jx-m-testimonials .bx-pager-item a.active,
.tp-demo-page .jx-m-testimonials .bx-pager-link.active {
	background: var(--tp-brand) !important;
}

/* ---- Component view styling ---- */
.tp-demo-page .jx-c-testimonials-wrapper,
.tp-demo-page .jx-c-testimonials {
	/* inherits DM Sans from body.site */
}

.tp-demo-page .jx-c-testimonial-item {
	border-radius: var(--tp-radius-sm);
}

.tp-demo-page .jx-c-testimonial-bubble,
.tp-demo-page .jx-c-testimonial-bubble-squared,
.tp-demo-page .jx-c-testimonial-bubble-round {
	border: 1px solid var(--tp-border) !important;
	box-shadow: var(--tp-shadow) !important;
}

.tp-demo-page .jx-c-testimonial-author-name,
.tp-demo-page .jx-c-testimonial-author-name a {
	color: var(--tp-brand) !important;
	font-weight: 700 !important;
}

.tp-demo-page .pagination > .page-item > .page-link {
	border-radius: 8px;
	border-color: var(--tp-border);
	color: var(--tp-brand);
}

.tp-demo-page .pagination > .page-item.active > .page-link {
	background: var(--tp-brand);
	border-color: var(--tp-brand);
}

.tp-demo-page .jx-m-testimonialspro-form-wrapper {
	border-radius: var(--tp-radius-sm);
}

.tp-demo-page .jx-m-testimonialspro-form-wrapper input[type="text"],
.tp-demo-page .jx-m-testimonialspro-form-wrapper input[type="email"],
.tp-demo-page .jx-m-testimonialspro-form-wrapper select,
.tp-demo-page .jx-m-testimonialspro-form-wrapper textarea {
	border-radius: 10px !important;
	border-color: #E4E6EF !important;
}

.tp-demo-page .jx-m-testimonialspro-form-wrapper input:focus,
.tp-demo-page .jx-m-testimonialspro-form-wrapper select:focus,
.tp-demo-page .jx-m-testimonialspro-form-wrapper textarea:focus {
	border-color: var(--tp-brand) !important;
	box-shadow: 0 0 0 3px rgba(24, 25, 237, 0.12) !important;
}

.tp-demo-page .jx-m-testimonialspro-form-wrapper button[type="submit"] {
	border-radius: 100px !important;
	font-weight: 600 !important;
}

/* ---- Component page title fallback ---- */
.tp-demo-page.option-com_testimonial_pro #sp-component h1,
.tp-demo-page.option-com_testimonial_pro #sp-component .page-header h1,
.tp-demo-page.option-com_testimonial_fader #sp-component h1,
.tp-demo-page.option-com_testimonial_fader #sp-component .page-header h1 {
	display: block !important;
	height: auto !important;
	overflow: visible !important;
	text-align: center;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 800;
	padding: 36px 24px 8px;
	margin: 0;
	color: var(--tp-text);
	background: #FAFBFF;
}

.tp-demo-page.option-com_testimonial_pro #sp-component > .sp-column,
.tp-demo-page.option-com_testimonial_fader #sp-component > .sp-column {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 8px;
}

.tp-demo-page.option-com_testimonial_pro .testimonialFormPro > h1 {
	display: none;
}

/* ---- Animations ---- */
.tp-demo-page .tp-animate {
	opacity: 1;
	transform: none;
}

.tp-demo-page.tp-js-ready .tp-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.tp-demo-page.tp-js-ready .tp-animate.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 767px) {
	.tp-demo-page .tp-page-hero { padding: 28px 16px 24px; }
	.tp-demo-page .tp-section { padding: 40px 0; }
	.tp-demo-page .tp-section--alt { padding: 40px 20px; }
	.tp-demo-page .tp-subnav__link { font-size: 12px; padding: 7px 12px; }
}
