/* Extra Description Read More Styles */
.wd-extra-desc-with-readmore {
	position: relative;
}

.wd-extra-desc-content {
	position: relative;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
	max-height: 140px; /* Hiển thị khoảng 6 dòng */
}

.wd-extra-desc-content.expanded {
	max-height: none;
}

/* Overlay mờ dần chỉ khi collapsed */
.wd-extra-desc-content::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
	transition: opacity 0.3s;
	opacity: 1;
	z-index: 2;
}
.wd-extra-desc-content.expanded::after {
	opacity: 0;
	visibility: hidden;
}

.wd-extra-desc-readmore {
	text-align: center;
	margin-top: 15px;
	display: none; /* Hide by default, show via JS if needed */
	z-index: 3;
	position: relative;
}

.wd-readmore-btn {
	background: none;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	padding: 8px 20px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.wd-readmore-btn:hover {
	background-color: #f5f5f5;
	border-color: #ccc;
}

.wd-readmore-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.wd-readmore-text-hidden {
	display: none;
}

.wd-extra-desc-with-readmore.expanded .wd-readmore-text {
	display: none;
}

.wd-extra-desc-with-readmore.expanded .wd-readmore-text-hidden {
	display: inline;
}

/* Responsive */
@media (max-width: 768px) {
	.wd-extra-desc-content {
		max-height: 100px;
	}
	.wd-extra-desc-content::after {
		height: 32px;
	}
	.wd-readmore-btn {
		padding: 6px 16px;
		font-size: 13px;
	}
}
