:root {
	--inheritance-navy: #10283f;
	--inheritance-blue: #1d466b;
	--inheritance-gold: #bd9145;
	--inheritance-gold-light: #ead8b6;
	--inheritance-cream: #f7f3eb;
	--inheritance-paper: #fffdf9;
	--inheritance-line: #0a9c54;
	--inheritance-text: #000000;
	--inheritance-muted: #000000;
	--inheritance-border: rgba(16, 40, 63, 0.14);
	--inheritance-shadow: 0 16px 42px rgba(16, 40, 63, 0.1);
	--inheritance-section-space: clamp(2.25rem, 3.4vw, 3.5rem);
	--inheritance-subsection-space: clamp(1.5rem, 2vw, 2rem);
	--inheritance-spacer-height: var(--inheritance-section-space);
}

.inheritance-service-page {
	font-family: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
	color: var(--inheritance-text);
}

.inheritance-service-page h1,
.inheritance-service-page h2,
.inheritance-service-page h3,
.inheritance-service-page h4,
.inheritance-service-page .stk-button {
	font-family: "Prompt", "Leelawadee UI", Tahoma, sans-serif;
}

.inheritance-service-page .entry-content {
	overflow-wrap: anywhere;
}

.inheritance-service-page .entry-content p,
.inheritance-service-page .entry-content li {
	font-size: clamp(1rem, 0.97rem + 0.14vw, 1.1rem);
	line-height: 1.85;
}

.inheritance-service-page .entry-content > p {
	color: var(--inheritance-muted);
}

.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
	position: relative;
	isolation: isolate;
	margin: 0 0 clamp(1rem, 2.5vw, 2rem);
	padding: clamp(1.4rem, 3.5vw, 2.8rem) clamp(1rem, 4vw, 3.5rem);
	border: 1px solid rgba(234, 216, 182, 0.38);
	border-radius: 22px;
	background:
		radial-gradient(circle at 90% 15%, rgba(189, 145, 69, 0.35), transparent 34%),
		linear-gradient(135deg, #0c2135 0%, var(--inheritance-blue) 100%);
	box-shadow: var(--inheritance-shadow);
	color: #fff;
	font-size: clamp(1.65rem, 1.2rem + 2vw, 2.8rem);
	line-height: 1.45;
	letter-spacing: -0.02em;
}

.inheritance-service-page .entry-content > h2.wp-block-heading:first-child::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin: 1rem auto 0;
	border-radius: 999px;
	background: var(--inheritance-gold);
}

.inheritance-service-page .entry-content > h2.wp-block-heading:not(:first-child) {
	margin-top: var(--inheritance-section-space);
	margin-bottom: 1.2rem;
	padding: clamp(0.9rem, 2vw, 1.3rem) clamp(1rem, 2.5vw, 1.6rem);
	border-left: 5px solid var(--inheritance-gold);
	border-radius: 0 14px 14px 0;
	background: linear-gradient(90deg, var(--inheritance-cream), rgba(247, 243, 235, 0.25));
	color: var(--inheritance-navy);
	font-size: clamp(1.45rem, 1.15rem + 1.15vw, 2.25rem);
	line-height: 1.45;
}

.inheritance-service-page .entry-content > h3.wp-block-heading {
	position: relative;
	margin-top: var(--inheritance-subsection-space);
	margin-bottom: 1rem;
	padding: 0.8rem 1rem 0.8rem 1.25rem;
	border-bottom: 0 !important;
	color: var(--inheritance-blue);
	font-size: clamp(1.18rem, 1.02rem + 0.7vw, 1.65rem);
	line-height: 1.55;
}

.inheritance-service-page .entry-content > h2.wp-block-heading:not(:first-child),
.inheritance-service-page .entry-content > h3.wp-block-heading {
	border-right: 0 !important;
	border-bottom: 0 !important;
}

.inheritance-service-page .entry-content > h3.wp-block-heading::before {
	content: "";
	position: absolute;
	top: 0.95rem;
	bottom: 0.95rem;
	left: 0;
	width: 4px;
	border-radius: 999px;
	background: var(--inheritance-gold);
}

.inheritance-service-page .entry-content > figure.wp-block-image,
.inheritance-service-page .entry-content .wp-block-image img {
	border-radius: 18px;
}

.inheritance-service-page .entry-content > figure.wp-block-image {
	overflow: hidden;
	box-shadow: var(--inheritance-shadow);
}

.inheritance-service-page .entry-content > ul.wp-block-list,
.inheritance-service-page .entry-content > ol.wp-block-list {
	margin: 1.4rem 0 2rem;
	padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.6rem) clamp(2.5rem, 5vw, 3.5rem);
	border: 1px solid var(--inheritance-border);
	border-radius: 16px;
	background: var(--inheritance-paper);
	box-shadow: 0 10px 30px rgba(16, 40, 63, 0.06);
}

.inheritance-service-page .entry-content > ul.wp-block-list li,
.inheritance-service-page .entry-content > ol.wp-block-list li {
	padding: 0.35rem 0 0.35rem 0.35rem;
	border-bottom: 1px solid rgba(16, 40, 63, 0.08);
}

.inheritance-service-page .entry-content > ul.wp-block-list li:last-child,
.inheritance-service-page .entry-content > ol.wp-block-list li:last-child {
	border-bottom: 0;
}

.inheritance-service-page .entry-content > ul.wp-block-list li::marker,
.inheritance-service-page .entry-content > ol.wp-block-list li::marker {
	color: var(--inheritance-gold);
	font-weight: 700;
}

.inheritance-service-page .entry-content .stk-a22bdc3 .stk-block-column__content {
	height: 100%;
	padding: clamp(0.85rem, 2vw, 1.25rem) !important;
	border: 1px solid var(--inheritance-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(16, 40, 63, 0.06);
}

.inheritance-service-page .entry-content .stk-a22bdc3 .stk-block-icon-list__item {
	color: var(--inheritance-navy);
	font-weight: 600;
}

.inheritance-service-page .entry-content .stk-block-columns:has(a.stk-button) {
	margin-block: clamp(1.4rem, 3vw, 2.5rem);
	padding: clamp(1rem, 2.8vw, 2rem) !important;
	border: 1px solid rgba(189, 145, 69, 0.28);
	border-radius: 18px;
	background: linear-gradient(135deg, #fffdf9 0%, var(--inheritance-cream) 100%);
	box-shadow: 0 12px 34px rgba(16, 40, 63, 0.08);
}

.inheritance-service-page .entry-content .stk-94ba451 {
	border-right: 0 !important;
	border-left: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"],
.inheritance-service-page .entry-content a.stk-button[href*="line.me"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.85rem 1.4rem !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 20px rgba(16, 40, 63, 0.18) !important;
	font-size: clamp(0.96rem, 0.9rem + 0.2vw, 1.08rem) !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
	background: var(--inheritance-navy) !important;
	color: #fff !important;
}

@media (min-width: 769px) {
	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) {
		display: grid !important;
		grid-template-columns: 360px 270px;
		align-items: center;
		justify-content: center;
		gap: clamp(12px, 2vw, 22px) !important;
	}

	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) > .stk-block-column {
		width: 100% !important;
		min-width: 0 !important;
		flex: none !important;
	}

	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) > .stk-block-column > .stk-column-wrapper {
		margin-inline: 0 !important;
	}

	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) .stk-button-group {
		justify-content: center !important;
	}

	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) .stk-block-button-group,
	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) .stk-button-group,
	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) .stk-block-button,
	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) a.stk-button {
		width: 100% !important;
		max-width: 100% !important;
	}

	.inheritance-service-page .entry-content .stk-9b67bde-column {
		display: grid !important;
		grid-template-columns: 150px minmax(0, 1fr) 150px;
		align-items: center;
		gap: 20px !important;
	}

	.inheritance-service-page .entry-content .stk-9b67bde-column > .stk-block-column {
		width: 100% !important;
		min-width: 0 !important;
		flex: none !important;
	}

	.inheritance-service-page .entry-content .stk-9b67bde-column .stk-button-group {
		justify-content: center !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
		min-width: 0;
		max-width: 100%;
		padding-inline: 1rem !important;
		font-size: 0.95rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__inner-text {
		white-space: nowrap;
	}
}

.inheritance-service-page .entry-content a.stk-button[href*="line.me"] {
	background: var(--inheritance-line) !important;
	color: #fff !important;
}

.inheritance-service-page .entry-content a.stk-button .stk-button__inner-text {
	color: inherit !important;
}

.inheritance-service-page .entry-content .inheritance-phone-number::before {
	content: " ";
}

.inheritance-service-page .entry-content a.stk-button .stk-button__icon svg {
	color: inherit !important;
	fill: currentColor !important;
}

.inheritance-service-page .entry-content a.stk-button .stk-button__icon svg path {
	color: inherit !important;
	fill: currentColor !important;
}

.inheritance-service-page .entry-content a.stk-button .stk-button__icon {
	color: inherit !important;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__icon *,
.inheritance-service-page .entry-content a.stk-button[href*="line.me"] .stk-button__icon * {
	color: #fff !important;
	fill: #fff !important;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk--svg-wrapper,
.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk--svg-wrapper *,
.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk--inner-svg,
.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk--inner-svg * {
	color: #fff !important;
	fill: #fff !important;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk--inner-svg [stroke]:not([stroke="none"]) {
	stroke: #fff !important;
}

.inheritance-service-page .entry-content .stk-9b67bde .stk-block-heading__text {
	color: var(--inheritance-navy) !important;
}

.inheritance-service-page .entry-content .stk-9b67bde .stk-block-text__text {
	color: var(--inheritance-muted) !important;
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"]:hover,
.inheritance-service-page .entry-content a.stk-button[href*="line.me"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(16, 40, 63, 0.24) !important;
	filter: brightness(1.04);
}

.inheritance-service-page .entry-content a.stk-button[href^="tel:"]:focus-visible,
.inheritance-service-page .entry-content a.stk-button[href*="line.me"]:focus-visible,
.inheritance-mobile-cta a:focus-visible {
	outline: 3px solid #f4c66f;
	outline-offset: 3px;
}

.inheritance-service-page .entry-content hr.wp-block-separator {
	display: none;
}

.inheritance-service-page .entry-content .stk-block-spacer {
	max-height: var(--inheritance-spacer-height) !important;
}

.inheritance-service-page .entry-content > .stk-block-spacer {
	height: var(--inheritance-spacer-height) !important;
}

.inheritance-service-page .entry-content > .stk-block-spacer:has(+ hr.wp-block-separator),
.inheritance-service-page .entry-content > hr.wp-block-separator + .stk-block-spacer {
	display: none;
}

.inheritance-service-page .entry-content .stk-ac2218b {
	margin-bottom: var(--inheritance-section-space) !important;
}

.inheritance-service-page .entry-content .stk-f3e0099 .stk-cd971fd {
	display: none !important;
}

.inheritance-service-page .entry-content .stk-block-accordion__item,
.inheritance-service-page .entry-content details {
	margin-bottom: 0.75rem;
	border: 1px solid var(--inheritance-border) !important;
	border-radius: 12px !important;
	background: #fff;
	box-shadow: 0 6px 18px rgba(16, 40, 63, 0.05);
}

.inheritance-service-page .entry-content details > summary {
	padding: 0.95rem 1.25rem;
	color: var(--inheritance-navy);
	font-weight: 600;
	line-height: 1.65;
	cursor: pointer;
}

.inheritance-service-page .entry-content details > p {
	margin: 0.25rem 0 1.15rem !important;
	padding: 0 1.25rem;
	color: var(--inheritance-text);
}

.inheritance-service-page .entry-content details[open] > summary {
	padding-bottom: 0.7rem;
}

.inheritance-service-page .entry-content .stk-block-carousel,
.inheritance-service-page .entry-content iframe {
	max-width: 100%;
	border-radius: 16px;
}

.inheritance-service-page .entry-content .wp-block-embed,
.inheritance-service-page .entry-content .wp-block-video {
	overflow: hidden;
	border-radius: 16px;
	box-shadow: var(--inheritance-shadow);
}

.inheritance-mobile-cta {
	display: none;
}

/* Mobile S: 320–374 px */
@media (min-width: 320px) and (max-width: 374px) {
	.inheritance-service-page .entry-content p,
	.inheritance-service-page .entry-content li {
		font-size: 0.98rem;
		line-height: 1.78;
	}

	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		padding: 1.25rem 0.85rem;
		border-radius: 15px;
		font-size: 1.42rem;
	}

	.inheritance-service-page .entry-content > ul.wp-block-list,
	.inheritance-service-page .entry-content > ol.wp-block-list {
		padding-right: 0.8rem;
		padding-left: 2.2rem;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
		padding-inline: 1.4rem !important;
		font-size: 0.78rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__icon svg {
		width: 22px !important;
		height: 22px !important;
	}
}

/* Mobile M: 375–424 px */
@media (min-width: 375px) and (max-width: 424px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		padding: 1.45rem 1rem;
		font-size: 1.55rem;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
		padding-inline: 1.4rem !important;
		font-size: 0.82rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__icon svg {
		width: 22px !important;
		height: 22px !important;
	}
}

@media (min-width: 320px) and (max-width: 424px) {
	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__inner-text {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		line-height: 1.35;
		text-align: center;
	}

	.inheritance-service-page .entry-content .inheritance-phone-label,
	.inheritance-service-page .entry-content .inheritance-phone-number {
		display: block;
		white-space: nowrap;
	}

	.inheritance-service-page .entry-content .inheritance-phone-number::before {
		content: none;
	}
}

/* Mobile L: 425 px */
@media (min-width: 425px) and (max-width: 425px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		font-size: 1.65rem;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
		padding-inline: 0.75rem !important;
		font-size: 0.86rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__inner-text {
		white-space: nowrap;
	}
}

@media (max-width: 425px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:not(:first-child) {
		padding: 0.85rem 0.9rem;
		border-left-width: 4px;
		border-radius: 0 10px 10px 0;
		font-size: 1.35rem;
	}

	.inheritance-service-page .entry-content > h3.wp-block-heading {
		padding-right: 0.35rem;
		font-size: 1.12rem;
	}

	.inheritance-service-page .entry-content .stk-block-columns:has(a.stk-button) {
		padding: 0.9rem !important;
		border-radius: 14px;
	}

	.inheritance-service-page .entry-content .stk-button-group,
	.inheritance-service-page .entry-content .stk-block-button,
	.inheritance-service-page .entry-content a.stk-button[href^="tel:"],
	.inheritance-service-page .entry-content a.stk-button[href*="line.me"] {
		width: 100% !important;
		max-width: none !important;
	}

	.inheritance-service-page .entry-content details > summary {
		padding: 0.8rem 0.9rem;
		line-height: 1.55;
	}

	.inheritance-service-page .entry-content details > p {
		margin-bottom: 0.9rem !important;
		padding-inline: 0.9rem;
	}
}

/* Tablet: 426–768 px */
@media (min-width: 426px) and (max-width: 768px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		padding: 1.8rem 1.4rem;
		font-size: clamp(1.7rem, 4.6vw, 2.15rem);
	}

	.inheritance-service-page .entry-content .stk-block-columns:has(a.stk-button) {
		padding: 1.3rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] {
		padding-inline: 0.75rem !important;
		font-size: 0.86rem !important;
	}

	.inheritance-service-page .entry-content a.stk-button[href^="tel:"] .stk-button__icon svg {
		width: 24px !important;
		height: 24px !important;
	}
}

@media (max-width: 768px) {
	body.postid-1643 #chaty-widget-0,
	body.postid-1643 .chaty.chaty-id-0 {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	.inheritance-service-page {
		padding-bottom: 74px;
	}

	.inheritance-service-page .entry-content .stk-block-spacer {
		max-height: 44px;
	}

	.inheritance-mobile-cta {
		position: fixed;
		z-index: 9998;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
		border: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		pointer-events: none;
	}

	.inheritance-mobile-cta a {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		min-width: 0;
		min-height: 48px;
		padding: 0.7rem 0.45rem;
		border-radius: 10px;
		color: #fff;
		font-family: "Prompt", "Leelawadee UI", Tahoma, sans-serif;
		font-size: clamp(0.82rem, 3.3vw, 0.98rem);
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
		text-decoration: none;
		box-shadow: 0 8px 22px rgba(16, 40, 63, 0.24);
		pointer-events: auto;
	}

	.inheritance-mobile-cta a::after {
		content: "";
		position: absolute;
		top: -55%;
		left: -48%;
		width: 34%;
		height: 210%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
		transform: skewX(-22deg) translateX(0);
		animation: inheritance-mobile-cta-shine 3.8s ease-in-out infinite;
		pointer-events: none;
		will-change: transform, opacity;
	}

	.inheritance-mobile-cta a.inheritance-mobile-cta__line::after {
		animation-delay: 0.55s;
	}

	.inheritance-mobile-cta__phone {
		background: var(--inheritance-blue);
	}

	.inheritance-mobile-cta__line {
		background: var(--inheritance-line);
	}
}

/* Laptop: 769–1024 px */
@keyframes inheritance-mobile-cta-shine {
	0%,
	52% {
		opacity: 0;
		transform: skewX(-22deg) translateX(0);
	}

	58% {
		opacity: 0.85;
	}

	78%,
	100% {
		opacity: 0;
		transform: skewX(-22deg) translateX(620%);
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		font-size: 2.25rem;
	}

	.inheritance-service-page .entry-content > h2.wp-block-heading:not(:first-child) {
		font-size: 1.85rem;
	}
}

/* Laptop L: 1025–1440 px */
@media (min-width: 1025px) and (max-width: 1440px) {
	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		padding-inline: clamp(2rem, 5vw, 4.5rem);
	}
}

/* Desktop / Large Desktop: 1441 px and up */
@media (min-width: 1441px) {
	.inheritance-service-page .entry-content :is(.stk-1adcdb7-column, .stk-ac2218b-column) {
		grid-template-columns: 360px 270px;
	}

	.inheritance-service-page .entry-content > h2.wp-block-heading:first-child {
		padding-inline: 4.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inheritance-service-page .entry-content a.stk-button[href^="tel:"],
	.inheritance-service-page .entry-content a.stk-button[href*="line.me"] {
		transition: none;
	}

	.inheritance-mobile-cta a::after {
		display: none;
		animation: none;
	}
}
