/* ==========================================================================
   Trang single + archive của Dịch vụ / Điểm đến / Khách hàng.
   (inc/cpt-pages.php + các template single-*/archive-* ở gốc theme)

   Card trong các lưới dùng lại CSS inline của shortcode trang chủ
   (.pmp-dv-*, .pmp-dd-*, .pmp-kh-*) nên file này chỉ lo phần khung.
   ========================================================================== */

.pmp-cpt {
	--pmp-accent: #f5a623;
	--pmp-dark: #1f2733;
	--pmp-body: #4a5261;
	--pmp-muted: #8a8f98;
	--pmp-line: #e8eaee;
	--pmp-soft: #f6f7f9;
	--pmp-night: #141821;
}

/* --- Breadcrumb ---------------------------------------------------------
   Markup do pmp_xe_render_crumbs() in ra, dùng chung với các trang xe.
   Các file CSS này không bao giờ nạp cùng lúc nên khối rule được lặp lại có
   chủ đích — sửa thì sửa cả single-xe.css / archive-xe.css / file này.
   ---------------------------------------------------------------------- */
.pmp-cpt .pmp-xes-crumbs {
	padding: 16px 0;
	font-size: 13px;
	color: var(--pmp-muted);
}
.pmp-cpt .pmp-xes-crumbs a { color: var(--pmp-muted); }
.pmp-cpt .pmp-xes-crumbs a:hover { color: var(--pmp-accent); }
.pmp-cpt .pmp-xes-crumb-sep { margin: 0 8px; color: #cbd0d7; }
.pmp-cpt .pmp-xes-crumb-current { color: var(--pmp-dark); font-weight: 600; }

/* --- Tiêu đề trang danh sách -------------------------------------------- */
.pmp-cpt-header {
	background: var(--pmp-soft);
	border-bottom: 1px solid var(--pmp-line);
	padding: 6px 0 30px;
	margin-bottom: 34px;
}
.pmp-cpt-header .pmp-xes-crumbs { padding-bottom: 6px; margin-bottom: 6px; }
.pmp-cpt-page-title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--pmp-dark);
	position: relative;
	padding-bottom: 14px;
}
.pmp-cpt-page-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 3px;
	background: var(--pmp-accent);
	border-radius: 2px;
}
.pmp-cpt-page-desc {
	margin: 14px 0 0;
	max-width: 780px;
	color: var(--pmp-body);
	line-height: 1.75;
}

/* --- Hero trang chi tiết ------------------------------------------------ */
.pmp-cpt-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 300px;
	margin-bottom: 38px;
	padding: 40px 0 34px;
	background-color: var(--pmp-night);
	background-size: cover;
	background-position: center;
	border-radius: 0;
}
.pmp-cpt-hero--tall { min-height: 380px; }
.pmp-cpt-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 13, 18, .25) 0%, rgba(10, 13, 18, .82) 100%);
}
.pmp-cpt-hero--plain:before { background: none; }
.pmp-cpt-hero-inner { position: relative; z-index: 2; }
.pmp-cpt-hero-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.22;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.pmp-cpt-hero-sub {
	margin: 10px 0 0;
	max-width: 720px;
	font-size: 16px;
	line-height: 1.7;
	color: #e3e6ea;
}

/* Icon huy hiệu của dịch vụ trên hero */
.pmp-dvs-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--pmp-accent);
	color: #1c2431;
}
.pmp-dvs-icon svg { width: 30px; height: 30px; }

/* --- Nội dung bài ------------------------------------------------------- */
.pmp-cpt-content {
	color: var(--pmp-body);
	font-size: 16px;
	line-height: 1.85;
}
.pmp-cpt-content > *:first-child { margin-top: 0; }
.pmp-cpt-content h2,
.pmp-cpt-content h3,
.pmp-cpt-content h4 {
	color: var(--pmp-dark);
	font-weight: 800;
	line-height: 1.35;
	margin: 1.7em 0 .6em;
}
.pmp-cpt-content h2 { font-size: 24px; }
.pmp-cpt-content h3 { font-size: 20px; }
.pmp-cpt-content h4 { font-size: 17px; }
.pmp-cpt-content img { border-radius: 10px; height: auto; }
.pmp-cpt-content ul,
.pmp-cpt-content ol { padding-left: 1.3em; }
.pmp-cpt-content li { margin-bottom: .4em; }
.pmp-cpt-content a { color: #c9861a; text-decoration: underline; }
.pmp-cpt-content blockquote {
	margin: 1.6em 0;
	padding: 14px 20px;
	border-left: 3px solid var(--pmp-accent);
	background: var(--pmp-soft);
	font-style: italic;
}
.pmp-cpt-content table { width: 100%; }

/* Ghi chú chỉ hiện với người quản trị */
.pmp-cpt-note {
	padding: 16px 18px;
	border: 1px dashed var(--pmp-accent);
	border-radius: 10px;
	background: #fff8e5;
	color: #8a6d1f;
	font-size: 14px;
	line-height: 1.7;
}

/* --- Hộp CTA hotline ---------------------------------------------------- */
.pmp-cpt-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 26px;
	margin: 44px 0;
	padding: 26px 30px;
	border-radius: 14px;
	background: var(--pmp-night);
	background-image: radial-gradient(90% 130% at 6% 0%, rgba(245, 166, 35, .13), rgba(245, 166, 35, 0) 48%);
}
.pmp-cpt-cta-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: #fff;
}
.pmp-cpt-cta-desc {
	margin: 5px 0 0;
	font-size: 14px;
	color: #a8aeb8;
}
.pmp-cpt-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 24px;
	border-radius: 8px;
	background: var(--pmp-accent);
	color: #1c2431 !important;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .3px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease;
}
.pmp-cpt-cta-btn:hover { background: #ffc447; }

/* --- Lưới + khối phụ ---------------------------------------------------- */
.pmp-cpt-grid {
	display: grid;
	grid-template-columns: repeat(var(--pmp-cpt-cot, 3), minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 10px;
}
.pmp-cpt-grid--3 { --pmp-cpt-cot: 3; }
.pmp-cpt-grid--4 { --pmp-cpt-cot: 4; }

.pmp-cpt-sec-title {
	margin: 0 0 22px;
	font-size: 24px;
	font-weight: 800;
	color: var(--pmp-dark);
	position: relative;
	padding-bottom: 12px;
}
.pmp-cpt-sec-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 3px;
	background: var(--pmp-accent);
	border-radius: 2px;
}
.pmp-cpt-related { margin-top: 10px; }

/* Khối nền tối (card đánh giá được thiết kế cho nền tối) */
.pmp-cpt-dark {
	margin-top: 44px;
	padding: 44px 0 40px;
	background: var(--pmp-night);
	background-image: radial-gradient(80% 120% at 10% 0%, rgba(245, 166, 35, .09), rgba(245, 166, 35, 0) 50%);
}
.pmp-cpt-dark .pmp-cpt-sec-title { color: #fff; }
/* Tên khách hàng trên card archive là link → giữ màu trắng của card. */
.pmp-cpt-dark .pmp-kh-name a { color: #fff; text-decoration: none; }
.pmp-cpt-dark .pmp-kh-name a:hover { color: var(--pmp-accent); }

.pmp-cpt-pagination { margin-top: 32px; }
.pmp-cpt-pagination .nav-pagination > li > a,
.pmp-cpt-pagination .nav-pagination > li > span { border-color: var(--pmp-line); color: var(--pmp-body); }
.pmp-cpt-pagination .nav-pagination > li > .current,
.pmp-cpt-pagination .nav-pagination > li > a:hover,
.pmp-cpt-pagination .nav-pagination > li > span:hover {
	background-color: var(--pmp-accent);
	border-color: var(--pmp-accent);
	color: #fff;
}
.pmp-cpt-dark .pmp-cpt-pagination .nav-pagination > li > a,
.pmp-cpt-dark .pmp-cpt-pagination .nav-pagination > li > span { border-color: #333a47; color: #c7ccd4; }

.pmp-cpt-empty {
	padding: 46px 24px;
	text-align: center;
	background: var(--pmp-soft);
	border: 1px dashed var(--pmp-line);
	border-radius: 12px;
	color: var(--pmp-muted);
}
.pmp-cpt-empty p { margin: 0; font-size: 16px; }

/* --- Điểm đến: nội dung + cột phụ dính theo cuộn ------------------------ */
.pmp-dds-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
}
.pmp-dds-side-inner { position: sticky; top: 90px; }
.pmp-dds-side .pmp-cpt-cta {
	display: block;
	margin: 0 0 24px;
	padding: 22px;
}
.pmp-dds-side .pmp-cpt-cta-title { font-size: 17px; }
.pmp-dds-side .pmp-cpt-cta-btn { margin-top: 16px; width: 100%; justify-content: center; }

.pmp-dds-list {
	border: 1px solid var(--pmp-line);
	border-radius: 12px;
	padding: 18px 20px 8px;
}
.pmp-dds-list-title {
	margin: 0 0 12px;
	font-size: 13px
	;font-weight: 800;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--pmp-dark);
}
.pmp-dds-list ul { margin: 0; padding: 0; list-style: none; }
.pmp-dds-list li { margin: 0; border-top: 1px solid var(--pmp-line); }
.pmp-dds-list li:first-child { border-top: 0; }
.pmp-dds-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	text-decoration: none;
}
.pmp-dds-list-img {
	flex: none;
	width: 52px;
	height: 40px;
	border-radius: 7px;
	background-size: cover;
	background-position: center;
	background-color: #e9ecf1;
}
.pmp-dds-list-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--pmp-body);
	transition: color .2s ease;
}
.pmp-dds-list a:hover .pmp-dds-list-name { color: var(--pmp-accent); }

/* --- Khách hàng: thẻ đánh giá chi tiết ---------------------------------- */
.pmp-khs-card {
	max-width: 760px;
	margin: 10px auto 0;
	padding: 40px 36px 42px;
	text-align: center;
	border-radius: 16px;
	background: var(--pmp-night);
	background-image: radial-gradient(90% 120% at 50% 0%, rgba(245, 166, 35, .12), rgba(245, 166, 35, 0) 55%);
	border: 1px solid rgba(245, 166, 35, .45);
}
.pmp-khs-avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #2a2f3a;
	border: 3px solid rgba(245, 166, 35, .6);
}
.pmp-khs-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #facb01;
	font-size: 38px;
	font-weight: 800;
}
.pmp-khs-name {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: #fff;
}
.pmp-khs-role {
	margin: 5px 0 0;
	font-size: 14px;
	color: #9aa1ab;
}
.pmp-khs-card .pmp-kh-stars { margin-top: 12px; }
.pmp-khs-quote {
	margin: 22px 0 0;
	padding: 0;
	border: 0;
	font-size: 18px;
	font-style: italic;
	line-height: 1.8;
	color: #d8dce2;
	background: none;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
	.pmp-cpt-page-title { font-size: 26px; }
	.pmp-cpt-hero-title { font-size: 28px; }
	.pmp-cpt-hero { min-height: 250px; }
	.pmp-cpt-hero--tall { min-height: 290px; }
	.pmp-dds-main { grid-template-columns: 1fr; gap: 32px; }
	.pmp-dds-side-inner { position: static; }
	.pmp-dds-side .pmp-cpt-cta { display: flex; }
	.pmp-dds-side .pmp-cpt-cta-btn { width: auto; margin-top: 0; }
	.pmp-cpt-grid--4 { --pmp-cpt-cot: 3; }
}

@media (max-width: 849px) {
	.pmp-cpt-grid--3,
	.pmp-cpt-grid--4 { --pmp-cpt-cot: 2; }
}

@media (max-width: 640px) {
	.pmp-cpt-header { padding: 4px 0 20px; margin-bottom: 24px; }
	.pmp-cpt-page-title { font-size: 22px; }
	.pmp-cpt-page-desc { margin-top: 10px; font-size: 15px; }

	.pmp-cpt-hero {
		min-height: 200px;
		margin-bottom: 26px;
		padding: 30px 0 24px;
	}
	.pmp-cpt-hero--tall { min-height: 230px; }
	.pmp-cpt-hero-title { font-size: 22px; }
	.pmp-cpt-hero-sub { font-size: 14.5px; margin-top: 8px; }
	.pmp-dvs-icon { width: 52px; height: 52px; margin-bottom: 12px; }
	.pmp-dvs-icon svg { width: 25px; height: 25px; }

	.pmp-cpt-content { font-size: 15px; line-height: 1.8; }
	.pmp-cpt-content h2 { font-size: 20px; }
	.pmp-cpt-content h3 { font-size: 18px; }

	/* CTA: chữ 1 khối, nút rộng hết hàng cho dễ bấm */
	.pmp-cpt-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin: 30px 0;
		padding: 22px 20px;
	}
	.pmp-cpt-cta-title { font-size: 17px; }
	.pmp-cpt-cta-btn { justify-content: center; min-height: 48px; font-size: 16px; }

	.pmp-cpt-grid { gap: 16px; }
	.pmp-cpt-sec-title { font-size: 20px; margin-bottom: 16px; }
	.pmp-cpt-dark { margin-top: 30px; padding: 30px 0 26px; }
	.pmp-cpt-pagination { margin-top: 24px; }

	.pmp-khs-card { padding: 30px 20px 32px; }
	.pmp-khs-avatar { width: 78px; height: 78px; margin-bottom: 14px; }
	.pmp-khs-name { font-size: 20px; }
	.pmp-khs-quote { font-size: 16px; margin-top: 18px; }
}

@media (max-width: 480px) {
	.pmp-cpt-grid--3,
	.pmp-cpt-grid--4 { --pmp-cpt-cot: 1; }
}
