/**
 * Gold elongated diamond / spindle underline for headings (all pages/posts).
 * Applies to H1 and H2 only.
 *
 * Elementor Heading → Advanced → CSS Classes:
 *   no_heading_shape  — disable shape (also accepts: no_shape)
 */

.elementor-widget-heading:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title {
	position: relative;
	padding-bottom: 0.15em;
}

.elementor-widget-heading:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title::after {
	content: "";
	display: block;
	width: min(200px, 68%);
	height: 6px;
	margin: 14px auto 0;
	background: linear-gradient(
		90deg,
		rgba(247, 213, 22, 0) 0%,
		#f7d516 16%,
		#ffe566 50%,
		#f7d516 84%,
		rgba(247, 213, 22, 0) 100%
	);
	clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
	-webkit-clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}

/* JS-detected alignment */
.elementor-widget-heading.is-shape-center:not(.no_heading_shape):not(.no_shape) :is(h1, h2).elementor-heading-title::after {
	margin-left: auto !important;
	margin-right: auto !important;
}

.elementor-widget-heading.is-shape-left:not(.no_heading_shape):not(.no_shape) :is(h1, h2).elementor-heading-title::after {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Disable shape — add class on the Heading widget */
.elementor-widget-heading.no_heading_shape :is(h1, h2).elementor-heading-title::after,
.elementor-widget-heading.no_shape :is(h1, h2).elementor-heading-title::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

@media (max-width: 767px) {
	/* H1/H2 with shape: centre text + accent on mobile */
	.elementor-widget-heading:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title,
	.elementor-widget-heading.heading_up:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title,
	.elementor-widget-heading.heading_left_mobile:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title {
		text-align: center !important;
	}

	.elementor-widget-heading:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title::after,
	.elementor-widget-heading.is-shape-left:not(.no_heading_shape):not(.no_shape):not(.top_rated_txt) :is(h1, h2).elementor-heading-title::after {
		width: min(160px, 72%);
		height: 5px;
		margin-top: 12px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
