/*
Theme Name: WG
Author: VNVC
Description: landing Cổng thông tin sức khỏe
Version: 2.0
Text Domain: wg
*/

/* --------------------------------------------------------------------------
   Barlow — font mặc định (wp-content/themes/wg/fonts/)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-Regular.woff2') format('woff2'),
		url('fonts/Barlow-Regular.woff') format('woff'),
		url('fonts/Barlow-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-Medium.woff2') format('woff2'),
		url('fonts/Barlow-Medium.woff') format('woff'),
		url('fonts/Barlow-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-SemiBold.woff2') format('woff2'),
		url('fonts/Barlow-SemiBold.woff') format('woff'),
		url('fonts/Barlow-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-Bold.woff2') format('woff2'),
		url('fonts/Barlow-Bold.woff') format('woff'),
		url('fonts/Barlow-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-ExtraBold.woff2') format('woff2'),
		url('fonts/Barlow-ExtraBold.woff') format('woff'),
		url('fonts/Barlow-ExtraBold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Barlow';
	src: url('fonts/Barlow-Black.woff2') format('woff2'),
		url('fonts/Barlow-Black.woff') format('woff'),
		url('fonts/Barlow-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

html {
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

body {
	font-family: inherit;
	line-height: 22px;
}
img{   
    max-width: 100%;
    height: auto;
}
/* Overlay khi gửi form AJAX (body.addClass('load')) */
body.load {
	position: relative;
	pointer-events: none;
}

body.load::before {
	position: fixed;
	content: "Đang xử lý";
	width: 100%;
	height: 50%;
	left: 0;
	top: 50%;
	text-align: center;
	z-index: 10000;
	color: #fff;
	margin-top: -10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

body.load::after {
	background: #000 url("images/loading.gif");
	background-position: center;
	background-repeat: no-repeat;
	position: fixed;
	z-index: 9999;
	content: "";
	opacity: 0.7;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
}

a:focus {
	outline: none;
}
a:focus, a:hover{
	text-decoration: none;
	/* color: #00000000; */
}
#ldp-cttsk-child{
	overflow: hidden;
}
/* --------------------------------------------------------------------------
   Cẩm nang — nav slider (list_cam_nang, dùng chung nhiều trang con)
   -------------------------------------------------------------------------- */
.cttsk-child-nav {
	position: sticky;
	top: var(--cttsk-nav-sticky-top, 0);
	z-index: 999;
	background: #0039A0;
	transition: box-shadow 0.2s ease;
}

.cttsk-child-nav.is-stuck {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.cttsk-child-nav-sentinel {
	height: 1px;
	margin: 0;
	padding: 0;
	pointer-events: none;
	visibility: hidden;
}

.cttsk-child-nav-slider-wrap {
	position: relative;
	min-height: 72px;
	max-height: 100px;
}

.cttsk-child-nav-slider {
	position: relative;
	visibility: hidden;
}

.cttsk-child-nav-slider.slick-initialized {
	visibility: visible;
}

.cttsk-child-nav-slider .slick-slide {
	height: auto;
}

.cttsk-child-nav-slider .slick-slide > .cttsk-child-nav-item {
	box-sizing: border-box;
}

.cttsk-child-nav-item .cttsk-child-nav-item__inner {
	display: flex !important;
	align-items: center !important;
	flex-direction: row !important;
	gap: 10px;
	min-height: 72px;
	height: 100%;
	padding: 10px;
	margin: 5px;
	border-radius: 12px;
	background: #fff;
	color: #0039A0;
	text-decoration: none;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
	transition: background 0.2s ease, color 0.2s ease;
}

.cttsk-child-nav-item .cttsk-child-nav-item__inner:hover {
	text-decoration: none;
	color: #0039A0;
}

.cttsk-child-nav-item.is-active .cttsk-child-nav-item__inner {
	background: #FB8C00;
	color: #ffffff;
}

.cttsk-child-nav-item .cttsk-child-nav-item__inner:hover {
	background: #FB8C00;
	color: #ffffff;
}

.cttsk-child-nav-item__icon {
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cttsk-child-nav-item__icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.cttsk-child-nav-item__title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.25;
}

.slick-next, .slick-prev {
	border: 1px solid #fff0 !important;
}
.cttsk-child-nav-slider-wrap .slick-prev,
.cttsk-child-nav-slider-wrap .slick-next {
	width: 40px;
	height: 40px;
	background-color: #006FFF;
	opacity: 1;
	border: none;
	overflow: hidden;
}

.cttsk-child-nav-slider-wrap .slick-next span {
	transform: rotate(135deg);
	right: 16px;
	top: 16px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	opacity: 1;
	border-radius: 1px;
}

.cttsk-child-nav-slider-wrap .slick-prev span {
	transform: rotate(-45deg);
	left: 16px;
	top: 16px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	opacity: 1;
	border-radius: 1px;
}

.cttsk-child-nav-slider-wrap .slick-prev {
	left: -15px;
	top: calc(50% - 20px);
}

.cttsk-child-nav-slider-wrap .slick-next {
	right: -15px;
	top: calc(50% - 20px);
}

@media (max-width: 767px) {
	.cttsk-child-nav-item .cttsk-child-nav-item__inner {
		min-height: 64px;
	}
}

@media (max-width: 480px) {
	.cttsk-child-nav-slider-wrap .slick-prev {
		left: 0;
	}

	.cttsk-child-nav-slider-wrap .slick-next {
		right: 0;
	}
}

/* --------------------------------------------------------------------------
   Footer — Hỗ trợ tổng đài (ACF Options)
   -------------------------------------------------------------------------- */
.ldp-cttsk-hotline {
	background: #0039A0;
	color: #fff;
}

.ldp-cttsk-hotline__main {
	padding: 48px 0 40px;
}

.hotline-layout {
	align-items: flex-start;
}

.hotline-intro-col,
.list-tong-dai-col {
	margin-bottom: 0;
}

.hotline-intro {
	height: 100%;
}

.hotline-intro__img {
	margin-bottom: 14px;
}

.hotline-intro__img img {
	display: block;
	width: 100%;
	max-width: 180px;
	height: auto;
}

.hotline-intro__title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	line-height: 1.35;
	margin: 10px 0;
}

.hotline-intro__desc {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.55;
	padding-bottom: 10px;
}

.hotline-intro__desc p {
	margin: 0 0 8px;
}

.hotline-intro__desc p:last-child {
	margin-bottom: 0;
}

.list-tong-dai {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
}

.tong-dai-card {
	position: relative;
	display: flex;
	flex-direction: column;
	/* height: 100%;
	min-height: 100%; */
	padding: 0 16px;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.tong-dai-card__title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	line-height: 1.35;
	margin: 0 0 12px;
}

.tong-dai-card__tags {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.tong-dai-card__tag {
	position: relative;
	margin: 0 0 8px;
	padding: 0 0 0 22px;
	color: #89BCFF;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.tong-dai-card__tag:last-child {
	margin-bottom: 0;
}

.tong-dai-card__tag::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 14px;
	height: 14px;
	background-color: #89BCFF;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 3.4 8.8l-.9.9 3.7 3.7 7.8-7.8-.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 3.4 8.8l-.9.9 3.7 3.7 7.8-7.8-.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tong-dai-card__phones {
	margin-bottom: 10px;
}

.tong-dai-card__phone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    color: #fff;
}

.tong-dai-card__phone-row:last-child {
	margin-bottom: 0;
}

.tong-dai-card__phone-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.tong-dai-card__phone-icon img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.tong-dai-card__phone-num {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.tong-dai-card__phone-label {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 4px;
	background: #006FFF;
	color: #fff;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 2px;
    width: max-content;
}
.list-tong-dai .tong-dai-card .card__phones{
	margin-bottom: 3px;
}

.tong-dai-card__desc {
	flex: 1;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.45;
}

.tong-dai-card__desc p {
	margin: 0 0 8px;
}

.tong-dai-card__desc p:last-child {
	margin-bottom: 0;
}

.tong-dai-card__desc ul {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.tong-dai-card__desc ul li {
	position: relative;
	margin-bottom: 8px;
	padding-left: 22px;
	font-size: 13px;
	line-height: 1.4;
}

.tong-dai-card__desc ul li:last-child {
	margin-bottom: 0;
}

.tong-dai-card__desc ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 14px;
	height: 14px;
	background-color: #fff;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 3.4 8.8l-.9.9 3.7 3.7 7.8-7.8-.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.6 3.4 8.8l-.9.9 3.7 3.7 7.8-7.8-.9-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tong-dai-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	padding: 11px 5px;
	border-radius: 10px;
	background: #fff;
	color: #0039A0;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	/* text-transform: uppercase; */
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tong-dai-card__btn:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	text-decoration: none;
	color: #0039A0;
}

.tong-dai-card__btn-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.tong-dai-card__btn-icon img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.tong-dai-card__btn--red {
	color: #E53935;
}

.tong-dai-card__btn--red:hover {
	color: #E53935;
}

.tong-dai-card__btn--orange,
.tong-dai-card__btn--white {
	color: #FF7E00;
}

.tong-dai-card__btn--orange:hover,
.tong-dai-card__btn--white:hover {
	color: #FF7E00;
}

.tong-dai-card__btn--blue {
	color: #0039A0;
}

.tong-dai-card__btn--blue:hover {
	color: #0039A0;
}

.tong-dai-card__btn--green {
	color: #2E9E4D;
}

.tong-dai-card__btn--green:hover {
	color: #2E9E4D;
}

.ldp-cttsk-hotline__bar {
	background: #006FFF;
	padding: 22px 0;
}

.list-thong-tin-uu-diem {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 28px;
	align-items: center;
}

.uu-diem-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.uu-diem-item__icon {
	flex: 0 0 52px;
	width: 52px;
}

.uu-diem-item__icon img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 52px;
	object-fit: contain;
}

.uu-diem-item__text {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	line-height: 1.45;
}

.uu-diem-item__text p {
	margin: 0;
}

.cttsk-child-home {
    position: fixed;
    top: 25%;
    left: max(15px, calc((100vw - min(1170px, 100vw)) / 2 - 15px - 44px));
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #0453F0 0%, #07157F 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-50%);
    box-shadow: 0 4px 14px rgba(0, 34, 180, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.cttsk-child-home img{
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}
.cttsk-child-home:hover {
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1399px) {
	/* .list-tong-dai {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 0;
	} */

	.tong-dai-card__title {
		font-size: 15px;
	}

	.tong-dai-card__phone-num {
		font-size: 15px;
	}
}

@media (max-width: 1199px) {
	.list-tong-dai {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 991px) {
	.list-thong-tin-uu-diem {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.ldp-cttsk-hotline__main {
		padding: 20px 0 20px;
	}


	.hotline-intro__img img {
		max-width: 100%;
		margin: 0 auto;
	}

	.hotline-intro__title {
		font-size: 17px;
	}

	.list-tong-dai {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}

	.list-tong-dai .tong-dai-card {
		padding: 0px 12px;
	}

	/* Đường dọc giữa 2 cột (cột trái: card 1, 4) */
	.list-tong-dai .tong-dai-card:nth-child(1),
	.list-tong-dai .tong-dai-card:nth-child(4) {
		border-right: 1px solid rgba(255, 255, 255, 0.25);
	}

	/* Mobile: 2 cột — hàng 1 (2 card), hàng 2 (1 card giữa), hàng 3 (2 card) */
	.list-tong-dai .tong-dai-card:nth-child(3):nth-last-child(3) {
		grid-column: 1 / -1;
		width: 100%;
		justify-self: center;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
		border-right: 0;
		padding-top: 20px;
		padding-bottom: 20px;
		margin: 15px 0;
	}
	.list-tong-dai .tong-dai-card:nth-child(4){
		border-right: 1px solid rgba(255, 255, 255, 0.25);
	}
	.list-tong-dai .tong-dai-card:nth-child(1){
		border-right: 1px solid rgba(255, 255, 255, 0.25);
	}

	/* Card 3 (Tâm Anh): 2 SĐT / 2 chi nhánh — 2 cột */
	.list-tong-dai .tong-dai-card:nth-child(3) .tong-dai {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
		align-items: start;
		margin-bottom: 10px;
	}
	.list-tong-dai .tong-dai-card:nth-child(3) .tong-dai-card__tags{
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0px;
		align-items: start;
		margin-bottom: 10px;
	}

	.tong-dai-card__phone-num {
		font-size: 15px;
	}

	.list-thong-tin-uu-diem {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ldp-cttsk-hotline__bar {
		padding: 20px 0;
	}

	.uu-diem-item__icon {
		flex: 0 0 44px;
		width: 44px;
	}
}

/* --------------------------------------------------------------------------
   Popup hỗ trợ tổng đài (footer.php — dùng chung mọi trang)
   -------------------------------------------------------------------------- */
.cttsk-fab-tu-van {
	position: fixed;
	top: 50%;
	right: 15px;
	z-index: 9991;
	transform: translateY(-50%);
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.cttsk-fab-tu-van img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 34, 180, 0.35));
}

.cttsk-fab-tu-van:hover,
.cttsk-fab-tu-van.is-active {
	transform: translateY(-50%) scale(1.05);
}

.cttsk-support-overlay {
	position: fixed;
	inset: 0;
	z-index: 9992;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cttsk-support-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.cttsk-support-popup {
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: 9993;
	width: 100%;
	max-width: 400px;
	height: 80%;
	background: #fff;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.35s ease;
	overflow: hidden;
	border-radius: 10px;
}

.cttsk-support-popup.is-open {
	transform: translateX(0);
	margin: 10px;
}

.cttsk-support-popup__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cttsk-support-popup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: none;
	flex-shrink: 0;
}

.cttsk-support-popup__head-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cttsk-support-popup__head-icon img {
	display: block;
	width: 40px;
	height: 40px;
}

.cttsk-support-popup__title {
	font-size: 24px;
	font-weight: 700;
	color: #0022B4;
	text-transform: uppercase;
	line-height: 1.25;
	margin: 0;
}

.cttsk-support-popup__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EBF6FF;
	color: #0022B4;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cttsk-support-popup__close:hover {
	background: #d6ebff;
}

.cttsk-support-popup__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #fff;
}

.cttsk-popup-card {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 14px;
	box-shadow: 0 2px 8px rgba(0, 34, 180, 0.08);
	border: 1px solid #CADDFF;
}

.cttsk-popup-card:last-child {
	margin-bottom: 0;
}

.cttsk-popup-card__head {
	background: #0046C5;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.35;
	padding: 12px 14px;
}

.cttsk-popup-card__body {
	background: #EBF6FF;
	padding: 14px;
}

.cttsk-popup-card__desc {
	font-size: 17px;
	color: #0039A0;
	line-height: 1.45;
	margin-bottom: 12px;
}

.cttsk-popup-card__desc p {
	margin: 0;
}

.cttsk-popup-card__phones {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cttsk-popup-card__phone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	text-decoration: none;
	color: inherit;
}

.cttsk-popup-card__phone:hover {
	text-decoration: none;
}

.cttsk-popup-card__phone-icon {
	display: inline-flex;
	color: #FB8C00;
	flex: 0 0 auto;
}

.cttsk-popup-card__phone-label {
	font-size: 14px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 10px;
	background: #006FFF;
	color: #fff;
	line-height: 1.2;
}

.cttsk-popup-card__phone-num {
	font-size: 22px;
	font-weight: 700;
	color: #FF7E00;
	line-height: 1.2;
}

body.cttsk-support-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.cttsk-support-popup {
		max-width: 100%;
		width: auto;
		height: 90%;
		margin-bottom: 40px;
	}

	.cttsk-fab-tu-van {
		width: 56px;
		height: 56px;
	}

	.cttsk-fab-tu-van img {
		width: 56px;
		height: 56px;
	}

	.cttsk-support-popup__head {
		padding-bottom: 0;
	}
}