/* Flat-design featured short video inside .dentistry_post_main_left */
.dentistry_post_main_left .jw-home-video {
	--jwhq-video-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	color: var(--primary-color-main, #004250);
}

.dentistry_post_main_left .jw-home-video__primary {
	min-width: 0;
	border: 1px solid var(--primary-color-gray-light, #e5e6e8);
	border-radius: 12px;
	background: var(--white-color-text, #fff);
	overflow: hidden;
	transition:
		opacity 260ms var(--jwhq-video-ease-out),
		transform 260ms var(--jwhq-video-ease-out);
}

.dentistry_post_main_left .jw-home-video.is-ready:not(.is-in-view) .jw-home-video__primary {
	opacity: 0;
	transform: translateY(10px);
}

.dentistry_post_main_left .jw-home-video.is-ready.is-in-view .jw-home-video__primary {
	opacity: 1;
	transform: translateY(0);
}

.dentistry_post_main_left .jw-home-video__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--primary-color-main, #004250);
}

.dentistry_post_main_left .jw-home-video__poster,
.dentistry_post_main_left .jw-home-video__player,
.dentistry_post_main_left .jw-home-video__player iframe {
	width: 100%;
	height: 100%;
}

.dentistry_post_main_left .jw-home-video__poster {
	display: block;
	object-fit: cover;
	transition: opacity 220ms var(--jwhq-video-ease-out);
}

.dentistry_post_main_left .jw-home-video__player {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.dentistry_post_main_left .jw-home-video__player iframe {
	display: block;
	border: 0;
}

.dentistry_post_main_left .jw-home-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--white-color-text, #fff);
	border-radius: 999px;
	background: rgb(0 66 80 / 0.88);
	color: var(--white-color-text, #fff);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition:
		transform 180ms var(--jwhq-video-ease-out),
		background-color 180ms ease,
		color 180ms ease,
		border-color 180ms ease;
}

.dentistry_post_main_left .jw-home-video__play svg {
	width: 24px;
	height: 24px;
	margin-left: 3px;
	fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
	.dentistry_post_main_left .jw-home-video__play:hover {
		background: var(--secondary-color-main, #cde65b);
		border-color: var(--secondary-color-main, #cde65b);
		color: var(--primary-color-main, #004250);
		transform: translate(-50%, -50%) scale(1.06);
	}
}

.dentistry_post_main_left .jw-home-video__play:active {
	transform: translate(-50%, -50%) scale(0.96);
	transition-duration: 120ms;
}

.dentistry_post_main_left .jw-home-video__play:focus-visible {
	outline: 3px solid var(--secondary-color-main, #cde65b);
	outline-offset: 3px;
}

.dentistry_post_main_left .jw-home-video__duration {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgb(0 66 80 / 0.9);
	color: var(--white-color-text, #fff);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.dentistry_post_main_left .jw-home-video__stage.has-player .jw-home-video__poster,
.dentistry_post_main_left .jw-home-video__stage.has-player .jw-home-video__play,
.dentistry_post_main_left .jw-home-video__stage.has-player .jw-home-video__duration {
	opacity: 0;
	pointer-events: none;
}

.dentistry_post_main_left .jw-home-video__details {
	padding: 14px 16px;
	background: var(--accent-fill-color, #e6f3f6);
	border-top: 1px solid var(--primary-color-gray-light, #e5e6e8);
}

.dentistry_post_main_left .jw-home-video__title {
	margin: 0;
	color: var(--primary-color-main, #004250);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {

	.dentistry_post_main_left .jw-home-video__primary,
	.dentistry_post_main_left .jw-home-video__poster,
	.dentistry_post_main_left .jw-home-video__play {
		transition: opacity 180ms ease;
	}

	.dentistry_post_main_left .jw-home-video.is-ready:not(.is-in-view) .jw-home-video__primary {
		transform: none;
	}

	.dentistry_post_main_left .jw-home-video__play:hover,
	.dentistry_post_main_left .jw-home-video__play:active {
		transform: translate(-50%, -50%);
	}
}

/* Balanced flat-design layout for .jwhq-home-post-section & .dentistry_post_main_right */
.jwhq-home-post-section {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.jwhq-home-post-section .dentistry_post_main_right {
	min-width: 0;
}

.jwhq-home-post-section .dentistry_post_main_right ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
}

.jwhq-home-post-section .dentistry_post_main_right li {
	min-width: 0;
	list-style: none;
}

.jwhq-home-post-section .dentistry_post_main_right_single {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--primary-color-gray-light, #e5e6e8);
	border-radius: 12px;
	background: var(--white-color-text, #fff);
	overflow: hidden;
	transition: border-color 180ms ease;
}

.jwhq-home-post-section .dentistry_post_main_right_thumb {
	display: block;
	aspect-ratio: 300 / 157;
	overflow: hidden;
	background: var(--accent-fill-color, #e6f3f6);
}

.jwhq-home-post-section .dentistry_post_main_right_thumb .custom-thumbnail-size {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.jwhq-home-post-section .dentistry_post_main_right_single_title {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px 14px;
}

.jwhq-home-post-section .category-name-single-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 8px;
}

.jwhq-home-post-section .category-name-single {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--accent-fill-color, #e6f3f6) !important;
	font-size: 0.75rem !important;
	font-weight: 600;
	line-height: 1.3;
}

.jwhq-home-post-section .category-name-single a {
	color: var(--primary-color-main, #004250);
}

.jwhq-home-post-section .text-date {
	color: rgb(0 66 80 / 0.72);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
}

.jwhq-home-post-section .dentistry_post_main_right_link {
	display: block;
	color: var(--primary-color-main, #004250);
}

.jwhq-home-post-section .dentistry_post_main_right_single_title h4 {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--primary-color-main, #004250);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.42;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (hover: hover) and (pointer: fine) {
	.jwhq-home-post-section .dentistry_post_main_right_single:hover {
		border-color: var(--primary-color-main, #004250);
	}

	.jwhq-home-post-section .dentistry_post_main_right_single:hover .custom-thumbnail-size {
		transform: scale(1.03);
	}
}

.jwhq-home-post-section .dentistry_post_main_right_thumb:focus-visible,
.jwhq-home-post-section .dentistry_post_main_right_link:focus-visible {
	outline: 2px solid var(--primary-color-main, #004250);
	outline-offset: 2px;
}

@media (max-width: 991.98px) {
	.jwhq-home-post-section {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

@media (max-width: 575.98px) {
	.jwhq-home-post-section .dentistry_post_main_right ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.jwhq-home-post-section .dentistry_post_main_right_single {
		display: grid;
		grid-template-columns: 124px minmax(0, 1fr);
		align-items: stretch;
	}

	.jwhq-home-post-section .dentistry_post_main_right_thumb {
		align-self: center;
		width: 100%;
		height: auto;
		aspect-ratio: 300 / 157;
		border-radius: 8px;
		margin-left: 10px;
	}

	.jwhq-home-post-section .dentistry_post_main_right_single_title {
		justify-content: center;
		padding: 10px 12px;
	}

	.jwhq-home-post-section .dentistry_post_main_right_single_title h4 {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {

	.jwhq-home-post-section .dentistry_post_main_right_single,
	.jwhq-home-post-section .dentistry_post_main_right_thumb .custom-thumbnail-size {
		transition: none;
	}

	.jwhq-home-post-section .dentistry_post_main_right_single:hover .custom-thumbnail-size {
		transform: none;
	}
}

/* Popular news ("Xem nhiều") flat-design revamp aligned with .jwhq-home-post-section */
.jwhq-popular-news {
	--jwhq-popular-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.jwhq-popular-news .posts_main_hot {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--primary-color-gray-light, #e5e6e8);
}

.jwhq-popular-news .posts_main_hot h3 {
	margin: 0;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--primary-color-main, #004250);
	color: var(--primary-color-main, #004250);
}

.jwhq-popular-news .news_content ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}

.jwhq-popular-news .news_content ul li.postview__items {
	min-width: 0;
	padding: 0;
	border-right: 0;
	list-style: none;
}

.jwhq-popular-news.is-ready .postview__items {
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 240ms var(--jwhq-popular-ease-out),
		transform 240ms var(--jwhq-popular-ease-out);
}

.jwhq-popular-news.is-ready.is-in-view .postview__items {
	opacity: 1;
	transform: translateY(0);
}

.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(2) {
	transition-delay: 35ms;
}

.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(3) {
	transition-delay: 70ms;
}

.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(4) {
	transition-delay: 105ms;
}

.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(5) {
	transition-delay: 140ms;
}

.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(6) {
	transition-delay: 175ms;
}

.jwhq-popular-news__link {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--primary-color-gray-light, #e5e6e8);
	border-radius: 12px;
	background: var(--white-color-text, #fff);
	color: var(--primary-color-main, #004250);
	text-decoration: none;
	transition:
		transform 120ms var(--jwhq-popular-ease-out),
		border-color 180ms ease,
		background-color 180ms ease;
}

.jwhq-popular-news__rank {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--accent-fill-color, #e6f3f6);
	color: var(--primary-color-main, #004250);
	font-size: 0.9375rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: background-color 180ms ease;
}

.jwhq-popular-news .news_content ul li h4.postview-title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 0;
	margin: 0;
	padding: 0;
	color: var(--primary-color-main, #004250);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.jwhq-popular-news__arrow {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	color: rgb(0 66 80 / 0.56);
	transition:
		transform 180ms var(--jwhq-popular-ease-out),
		color 180ms ease;
}

.jwhq-popular-news__arrow svg {
	width: 18px;
	height: 18px;
}

@media (hover: hover) and (pointer: fine) {
	.jwhq-popular-news__link:hover {
		border-color: var(--primary-color-main, #004250);
		background: var(--accent-fill-color, #e6f3f6);
	}

	.jwhq-popular-news__link:hover .jwhq-popular-news__rank {
		background: var(--secondary-color-main, #cde65b);
	}

	.jwhq-popular-news__link:hover .jwhq-popular-news__arrow {
		color: var(--primary-color-main, #004250);
		transform: translateX(3px);
	}
}

.jwhq-popular-news__link:active {
	transform: scale(0.99);
}

.jwhq-popular-news__link:focus-visible {
	outline: 2px solid var(--primary-color-main, #004250);
	outline-offset: 2px;
}

@media (max-width: 767.98px) {
	.jwhq-popular-news .news_content ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.jwhq-popular-news__link {
		grid-template-columns: 36px minmax(0, 1fr) 18px;
		gap: 12px;
		padding: 12px 14px;
	}

	.jwhq-popular-news__rank {
		width: 36px;
		height: 36px;
		font-size: 0.875rem;
	}

	.jwhq-popular-news .news_content ul li h4.postview-title {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jwhq-popular-news.is-ready .postview__items {
		transform: none;
		transition: opacity 180ms ease;
	}

	.jwhq-popular-news.is-ready.is-in-view .postview__items:nth-child(n) {
		transition-delay: 0ms;
	}

	.jwhq-popular-news__link,
	.jwhq-popular-news__arrow {
		transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
	}

	.jwhq-popular-news__link:active,
	.jwhq-popular-news__link:hover .jwhq-popular-news__arrow {
		transform: none;
	}
}

/* Flat-design revamp for .team-doctors-tab aligned with .jwhq-home-post-section tokens */
.team-doctors-tab {
	--jwhq-doctors-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
	padding: 0;
}

.team-doctors-tab .team-doctors-tab-left,
.team-doctors-tab .team-doctors-tab-right {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.team-doctors-tab .tab_services_n_id_doctors,
.team-doctors-tab .tabcontentdoctors,
.team-doctors-tab .tabcontent-item-doctors,
.team-doctors-tab .tabcontent-item-doctors .tabcontent-item-n-box {
	height: 100%;
}

.team-doctors-tab .tabcontentdoctors {
	padding: 0;
}

.team-doctors-tab .tabcontent-item-doctors .tabcontent-item-n-box {
	width: 100%;
	border: 1px solid var(--primary-color-gray-light, #e5e6e8);
	border-radius: 12px;
	background: var(--white-color-text, #fff);
	overflow: hidden;
	transition: border-color 180ms ease;
}

.team-doctors-tab .tabcontent-item-doctors .tabcontent-item-n-box:hover {
	filter: none;
	border-color: var(--primary-color-main, #004250);
}

.team-doctors-tab .doctors_profile_left .tabcontent-item-doctors .tabcontent-item-n-box .tabcontent-image {
	width: 100%;
	overflow: hidden;
	background: var(--accent-fill-color, #e6f3f6);
}

.team-doctors-tab .tabcontent-item-doctors .tabcontent-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	object-fit: cover;
	transition: transform 240ms var(--jwhq-doctors-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.team-doctors-tab .tabcontent-item-doctors .tabcontent-item-n-box:hover img {
		border-radius: 0;
		transform: scale(1.02);
	}
}

.team-doctors-tab .tabcontent-title {
	padding: 18px 22px 20px;
	color: var(--primary-color-main, #004250);
}

.team-doctors-tab .tabcontent-title-title strong {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--accent-fill-color, #e6f3f6);
	color: var(--primary-color-main, #004250);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.team-doctors-tab .tabcontent-title-title h3 {
	margin: 0 0 6px;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
}

.team-doctors-tab .tabcontent-title-title p,
.team-doctors-tab .tabcontent-title-text p {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgb(var(--primary-color-spectrum, 0, 66, 80) / 0.86);
}

.team-doctors-tab .block-border hr {
	margin: 12px 0;
	border: 0;
	border-top: 1px solid var(--primary-color-gray-light, #e5e6e8);
	opacity: 1;
}

/* Right-hand doctor selector list: equal-column cards sized to match left profile height */
.team-doctors-tab .team-doctors-tab-right-mb1390 {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 0;
}

.team-doctors-tab .team-doctors-tab-right .tablinks-services {
	display: flex;
	flex: 1;
	align-items: center;
	width: 100%;
	padding: 16px 20px;
	border: 1px solid var(--primary-color-gray-light, #e5e6e8);
	border-radius: 12px;
	background: var(--white-color-text, #fff);
	text-align: left;
	filter: none;
	transition:
		border-color 180ms ease,
		background-color 180ms ease,
		transform 140ms var(--jwhq-doctors-ease-out);
}

.team-doctors-tab .team-doctors-tab-right .tablinks-services:active {
	transform: scale(0.985);
}

.team-doctors-tab .team-doctors-tab-right .tablinks-services.active_services_doctors {
	filter: none;
	border-color: var(--primary-color-main, #004250);
	background: var(--accent-fill-color, #e6f3f6);
}

@media (hover: hover) and (pointer: fine) {
	.team-doctors-tab .team-doctors-tab-right .tablinks-services:hover {
		border-color: var(--primary-color-main, #004250);
	}
}

.team-doctors-tab .doctors-tab-right-profile {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 18px;
	align-items: center !important;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	background: transparent;
	border-radius: 0;
}

.team-doctors-tab .tablinks-services-image {
	width: 140px;
	height: auto;
	border-radius: 10px;
	overflow: hidden;
	background: var(--accent-fill-color, #e6f3f6);
}

.team-doctors-tab .doctors-tab-right-profile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.team-doctors-tab .tablinks-services-title-doctors {
	min-width: 0;
	text-align: left;
	color: var(--primary-color-main, #004250);
}

.team-doctors-tab .tablinks-services-title-doctors>*+*:not(:last-child) {
	margin-bottom: 4px;
}

.team-doctors-tab .tablinks-services-title-doctors strong {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--accent-fill-color, #e6f3f6);
	color: var(--primary-color-main, #004250);
	font-size: 0.825rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.team-doctors-tab .tablinks-services.active_services_doctors .tablinks-services-title-doctors strong {
	background: var(--white-color-text, #fff);
}

.team-doctors-tab .tablinks-services-title-doctors h3 {
	margin: 0 0 4px;
	font-size: clamp(1.0625rem, 1.25vw, 1.25rem) !important;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.team-doctors-tab .tablinks-services-title-doctors p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
	color: rgb(var(--primary-color-spectrum, 0, 66, 80) / 0.78);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 1199.98px) {
	.team-doctors-tab {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 18px;
	}

	.team-doctors-tab .team-doctors-tab-right .tablinks-services {
		padding: 14px 16px;
	}

	.team-doctors-tab .doctors-tab-right-profile {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
	}

	.team-doctors-tab .tablinks-services-image {
		width: 96px;
		height: 96px;
	}
}

@media (max-width: 991.98px) {
	.team-doctors-tab {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {

	.team-doctors-tab .tabcontent-item-doctors .tabcontent-image img,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services {
		transition: none;
	}

	.team-doctors-tab .tablinks-services:active,
	.team-doctors-tab .tabcontent-item-doctors .tabcontent-item-n-box:hover img {
		transform: none;
	}
}