/* ===== KHUNG THƯ VIỆN ===== */
.tva_page {
	background: var(--color-white);
	color: var(--color-text-main);
	padding-top:0px !important;
}

.tva_page .section-content {
	padding: 0;
}

/* ===== ĐƯỜNG DẪN ===== */
.tva_page .brea {
	margin-bottom: 22px;
	padding-bottom: 0;
}

.tva_page .custom-breadcrumb {
	padding: 10px 14px;
	background: #f0f0f0;
	color: var(--news-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

.tva_page .custom-breadcrumb a {
	color: var(--color-text-main);
	text-decoration: none;
}

.tva_page .custom-breadcrumb a:hover {
	color: var(--color-main);
}

.tva_page .custom-breadcrumb span {
	color: var(--news-muted);
}

/* ===== TIÊU ĐỀ ===== */
.tva_page .title {
	margin: 0;
	padding-bottom: 22px;
}

.tva_page .title .text {
	margin-bottom: 0;
}

.tva_page .title h3 {
	margin: 0;
	color: var(--color-main);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

/* ===== KHUNG CHỨA ẢNH ===== */
.tva_page .thuvienanh {
	padding-bottom: 0;
}

.tva_page .thuvienanh > .col-inner > .row {
	display: flex;
	flex-wrap: wrap;
	width: auto;
	max-width: none;
	margin: 0 -6px;
	padding: 0;
}

/* Máy tính: 4 ảnh mỗi hàng */
.tva_page .thuvienanh .gallery-col {
	flex: 0 0 25%;
	width: 25%;
	max-width: 25%;
	margin: 0;
	padding: 0 6px 12px;
	box-sizing: border-box;
}

.tva_page .gallery-col > .col-inner {
	width: 100%;
	margin: 0;
	padding: 0;
}

.tva_page .gallery-col .image-lightbox {
	display: block;
	width: 100%;
	margin: 0;
	text-decoration: none;
}

/* ===== ẢNH VUÔNG NHƯ MẪU ===== */
.tva_page .gallery-box {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f5f5f5;
	box-shadow: none;
	overflow: hidden;
	transform: none;
}

.tva_page .gallery-box .box-image {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border-radius: 0;
	overflow: hidden;
}

.tva_page .gallery-box .box-image img {
	position: static !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	opacity: 1;
	transform: none !important;
	transition: opacity .2s ease;
}

.tva_page .gallery-box:hover {
	box-shadow: none;
	transform: none;
}

.tva_page .gallery-box:hover .box-image img {
	opacity: .88;
}

/* Bỏ lớp phủ tối và chú thích trống */
.tva_page .gallery-box .overlay,
.tva_page .gallery-box .box-text {
	display: none;
}

/* ===== THANH PHÂN TRANG ===== */
.tva_page .gallery-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	width: 100%;
	margin: 8px 0 0;
	padding: 0;
	box-sizing: border-box;
}

/* Thông tin Page 1/2 */
.tva_page .gallery-pagination .page-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 5px 10px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	border-radius: 0;
	background: var(--color-white);
	color: var(--news-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
}

/* Nút trang */
.tva_page .gallery-pagination .page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	height: auto;
	margin: 0;
	padding: 5px 10px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	border-radius: 0;
	background: var(--color-white);
	color: var(--color-text-main);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transform: none;
	transition: background .2s ease, color .2s ease;
}

/* Trang đang chọn */
.tva_page .gallery-pagination .page-btn.active {
	border-color: var(--color-main);
	background: #555555;
	color: var(--color-white);
	font-weight: 600;
}

/* Rê chuột */
.tva_page .gallery-pagination .page-btn:not(.disabled):hover {
	/* 	border-color: var(--color-main); */
	background: var(--color-main);
	color: var(--color-white);
	box-shadow: none;
	transform: none;
}

/* Nút không khả dụng */
.tva_page .gallery-pagination .page-btn.disabled {
	/* 	border-color: #e5e5e5; */
	background: #f7f7f7;
	color: #aaa;
	cursor: default;
}

.tva_page .gallery-pagination .page-btn.disabled:hover {
	/* 	border-color: #e5e5e5; */
	background: #f7f7f7;
	color: #aaa;
	box-shadow: none;
	transform: none;
}

/* Điều hướng bằng bàn phím */
.tva_page .gallery-pagination .page-btn:focus-visible,
.tva_page .gallery-col .image-lightbox:focus-visible {
	outline: 2px solid var(--color-main);
	outline-offset: 2px;
}
/* ===== KHUNG TRANG ===== */
/* ===== KHUNG TRANG ===== */
.lienhe_page {
	background: var(--color-white);
	color: var(--color-text-main);
	padding-top:0px !important;
}

.lienhe_page .section-content > .row {
	align-items: flex-start;
}

.lienhe_page .title {
	padding-bottom: 24px;
}

.lienhe_page .custom-breadcrumb {
	margin-bottom: 30px;
	padding: 10px 14px;
	background: #efefef;
	color: var(--news-muted);
	font-size: 13px;
	line-height: 1.5;
}

.lienhe_page .custom-breadcrumb a,
.lienhe_page .info a {
	color: var(--color-text-main);
	text-decoration: none;
}

.lienhe_page .custom-breadcrumb a:hover,
.lienhe_page .info a:hover {
	color: var(--color-main);
}

.lienhe_page .title h2 {
	margin: 0;
	color: var(--color-main);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

.lienhe_page .info p {
	margin: 0 0 8px;
	color: var(--color-text-main);
	font-size: 14px;
	line-height: 1.7;
}

/* ===== BỐ CỤC FORM ===== */
.lienhe_page .form .wpcf7,
.lienhe_page .form .wpcf7-form {
	margin: 0;
}

.lienhe_page .form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
}

.lienhe_page .form-grid > label {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	font-weight: 400;
}

.lienhe_page .field-full {
	grid-column: 1 / -1;
}

.lienhe_page .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	min-width: 0;
}

.lienhe_page .field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ===== Ô NHẬP ===== */
.lienhe_page .lienhe_form input[type="text"],
.lienhe_page .lienhe_form input[type="tel"],
.lienhe_page .lienhe_form input[type="email"],
.lienhe_page .lienhe_form textarea {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 10px 12px;
	box-sizing: border-box;
	border: 1px solid #cbd3dc;
	border-radius: 2px;
	background: var(--color-white);
	color: var(--color-text-main);
	font: 400 14px/1.5 inherit;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
}

.lienhe_page .lienhe_form textarea {
	height: 165px;
	min-height: 120px;
	resize: vertical;
}

.lienhe_page .lienhe_form input::placeholder,
.lienhe_page .lienhe_form textarea::placeholder {
	color: #78828c;
	opacity: 1;
}

.lienhe_page .lienhe_form input:not([type="file"]):not([type="submit"]):focus,
.lienhe_page .lienhe_form textarea:focus,
.lienhe_page .form-grid > .field-file:focus-within {
	border-color: var(--color-main);
	outline: 1px solid var(--color-main);
	outline-offset: 0;
	box-shadow: none;
}

/* ===== ĐÍNH KÈM FILE ===== */
.lienhe_page .form-grid > .field-file {
	position: relative;
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid #cbd3dc;
	border-radius: 2px;
	background: var(--color-white);
	cursor: pointer;
}

.lienhe_page .field-file .file-name {
	flex: 1;
	min-width: 0;
	padding: 0 12px;
	color: var(--color-text-main);
	font-size: 13px;
	line-height: 38px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.lienhe_page .field-file .file-choose {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex: 0 0 64px;
	border-left: 1px solid #cbd3dc;
	background: #edf0f3;
	color: var(--color-text-main);
	font-size: 13px;
}

.lienhe_page .field-file .wpcf7-form-control-wrap,
.lienhe_page .field-file input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lienhe_page .field-file input[type="file"] {
	display: block;
	min-height: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.lienhe_page .field-file:has(.wpcf7-not-valid-tip) {
	margin-bottom: 32px;
}

.lienhe_page .field-file .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
}

/* ===== NÚT FORM ===== */
.lienhe_page .form-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.lienhe_page .lienhe_form .wpcf7-submit,
.lienhe_page .lienhe_form .form-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	min-height: 40px;
	height: auto;
	margin: 0;
	padding: 9px 18px;
	box-sizing: border-box;
	border: 0;
	border-radius: 3px;
	background: var(--color-main);
	color: var(--color-white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.lienhe_page .lienhe_form .wpcf7-submit:hover {
	background: #b90909;
}

.lienhe_page .lienhe_form .form-reset {
	min-width: 80px;
	background: #6c757d;
}

.lienhe_page .lienhe_form .form-reset:hover {
	background: #555e65;
}

.lienhe_page .form-actions .wpcf7-spinner {
	order: 3;
	margin: 0;
}

/* ===== THÔNG BÁO ===== */
.lienhe_page .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: var(--color-main);
	font-size: 12px;
	line-height: 1.5;
}

.lienhe_page .wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.6;
}

/* ===== BẢN ĐỒ ===== */
.lienhe_page .bando {
	margin-top: 12px;
	padding-bottom: 0;
}

.lienhe_page .bando p {
	margin: 0;
}

.lienhe_page .bando br {
	display: none;
}

.lienhe_page .bando iframe {
	display: block;
	width: 100%;
	height: 450px;
	margin: 0;
	border: 0;
	border-radius: 0;
}
/* =======================================
   CSS CHO MỤC LỤC BÀI VIẾT (CHUẨN 100% NHƯ HÌNH MẪU GỐC)
======================================= */
.custom-toc-box {
    background-color: #f4f4f4 !important; 
    border: 1px solid #ebebeb !important;
    border-radius: 4px !important;
    padding: 22px 25px !important;
    margin: 25px 0 35px 0 !important;
}

.custom-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-toc-list li {
    position: relative !important;
    margin-bottom: 8px !important; /* Giãn khoảng cách các dòng cho thoáng như mẫu */
    line-height: 1.5 !important;
    list-style: none !important;
    margin-left: 0 !important;
}

.custom-toc-list li:last-child {
    margin-bottom: 0 !important;
}

.custom-toc-list li::before {
    display: none !important; 
}

/* Thụt lề cho mục 4.1, 4.2 thẳng hàng với chữ của mục 4 */
.custom-toc-list li.toc-h3 {
    padding-left: 20px !important; 
}

.custom-toc-list a {
    color: #111 !important; /* Đen đậm */
    font-size: 15px !important;
    font-weight: 500 !important; /* ÉP NÉT CHỮ ĐẬM VỪA (MEDIUM) NHƯ MẪU */
    text-decoration: none !important;
    display: inline-block;
	
    font-family: var(--fonttd) !important;
}

.custom-toc-list a:hover {
    color: #d60c0c !important; 
}

.custom-toc-list .toc-number {
    font-weight: 500 !important; /* Ép nét số đậm vừa */
    margin-right: 5px !important;
    color: #111 !important;
}

.single-post h2[id^="muc-luc-"], 
.single-post h3[id^="muc-luc-"],
.single-post h1
{
	font-family: var(--fontct);
    scroll-margin-top: 100px;
	color: var(--color-black);
}
/* ===== MOBILE ===== */
@media (max-width: 549px) {
	.lienhe_page .custom-breadcrumb {
		margin-bottom: 22px;
		font-size: 12px;
	}

	.lienhe_page .title h2 {
		font-size: 24px;
	}

	.lienhe_page .info {
		padding-bottom: 22px;
	}

	.lienhe_page .form-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.lienhe_page .lienhe_form input[type="text"],
	.lienhe_page .lienhe_form input[type="tel"],
	.lienhe_page .lienhe_form input[type="email"],
	.lienhe_page .lienhe_form textarea {
		font-size: 16px;
	}

	.lienhe_page .bando {
		margin-top: 8px;
	}

	.lienhe_page .bando iframe {
		height: 320px;
	}
}
/* ===== TABLET: 3 ẢNH MỖI HÀNG ===== */
@media (min-width: 550px) and (max-width: 849px) {
	.tva_page .thuvienanh .gallery-col {
		flex-basis: 33.333333%;
		width: 33.333333%;
		max-width: 33.333333%;
	}
}

/* ===== MOBILE: 2 ẢNH MỖI HÀNG ===== */
@media (max-width: 549px) {
	.tva_page .brea {
		margin-bottom: 18px;
	}

	.tva_page .custom-breadcrumb {
		padding: 9px 10px;
		font-size: 12px;
	}

	.tva_page .title {
		padding-bottom: 18px;
	}

	.tva_page .title h3 {
		font-size: 22px;
	}

	.tva_page .thuvienanh > .col-inner > .row {
		margin: 0 -4px;
	}

	.tva_page .thuvienanh .gallery-col {
		flex-basis: 50%;
		width: 50%;
		max-width: 50%;
		padding: 0 4px 8px;
	}

	.tva_page .gallery-pagination {
		gap: 4px;
		margin-top: 12px;
	}

	.tva_page .gallery-pagination .page-info {
		min-height: 32px;
		padding: 5px 8px;
		font-size: 11px;
	}

	.tva_page .gallery-pagination .page-btn {
		min-width: 32px;
		min-height: 32px;
		padding: 5px 8px;
		font-size: 12px;
	}
	.mobile-nav.nav.nav-left {
		justify-content:left !important;
	}
}