/*------------------------------------*\
    
    Hide/Show Text Area - Global styling for all hide/show text

    This method is CSS heavy and light on JS, which is important for good SEO and CWV results
    Find the code snippet here: https://webfxcodelibrary.webpagefxstage.com/#intermediate_cssshowhidetext

\*------------------------------------*/

.read-more__content {
	position: relative;
}

.expand {
	display: inline-block;
	border: none;
	position: relative;
	margin-top: 20px;
}

.expand::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	height: 3px;
	width: 0;
	background: rgba(58,112,176,.2);
	transition: all ease-in-out 0.3s;
}

.expand:hover::after {
	width: calc(100% - 20px);
}

.read-more__content .expand {
	display: none;
}

.read-more__content.ddd-truncated .expand {
	display: inline-block;
}

.expand--less,
.fx-untruncated .expand--more {
	display: none;
}

.fx-untruncated .expand--less {
	display: inline;
}

.read-more__box.fx-untruncated {
	max-height: 100% !important;
}

.read-more__box.ddd-truncated p:last-of-type:has(> a.btn) {
	display: none;
}

.read-more__box.ddd-truncated p:last-of-type:has(> a.btn) ~ .expand {
	margin-top: 0;
}