/* ===== TRANG CON (triển lãm, chứng chỉ, tin tức, VR, đại lý) ===== */

.bluesun-sub-page {
	font-family: var(--bluesun-font-body);
}

.bluesun-sub-content {
	max-width: 1680px;
	margin: 0 auto;
	padding: 3.75rem 20px;
}

/* Breadcrumb */
.bluesun-sub-breadcrumb {
	background: #f3f3f3;
}

.bluesun-sub-breadcrumb-inner {
	max-width: 1680px;
	margin: 0 auto;
	padding: 1rem 15px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-size: 16px;
	line-height: 28px;
}

.bluesun-sub-breadcrumb a {
	color: #1a1a1a;
	text-decoration: none;
	padding-right: 5px;
}

.bluesun-sub-breadcrumb a:hover {
	color: var(--bluesun-primary);
}

.bluesun-sub-breadcrumb .sep,
.bluesun-sub-breadcrumb .current {
	color: #616161;
}

/* CTA */
.bluesun-sub-cta {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bluesun-sub-cta-inner {
	max-width: 1680px;
	margin: 0 auto;
	padding: 7.5rem 20px 8rem;
	text-align: center;
}

.bluesun-sub-cta h3 {
	margin: 0;
	font-size: 40px;
	line-height: 56px;
	font-weight: 600;
	color: #fff;
}

.bluesun-sub-cta h2 {
	margin: 1.875rem 0 0;
	font-size: 18px;
	line-height: 32px;
	font-weight: 400;
	color: #fff;
}

.bluesun-sub-cta-btn {
	display: inline-block;
	margin-top: 5.125rem;
	padding: 19px 40px;
	background: #fff;
	color: #ed741b;
	font-size: 20px;
	line-height: 20px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s, color 0.3s;
}

.bluesun-sub-cta-btn:hover {
	background: #ed741b;
	color: #fff;
}

/* Hover scale image */
.hov-scale-img {
	overflow: hidden;
}

.hov-scale-img img {
	transition: transform 0.5s ease;
}

.hov-scale-img:hover img {
	transform: scale(1.05);
}

/* ===== TRIỂN LÃM ===== */
.bluesun-exhibition-box {
	max-width: 1200px;
	margin: 0 auto;
}

.bluesun-ex-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid #e4e4e4;
}

.bluesun-ex-year {
	background: none;
	border: none;
	padding: 12px 24px;
	font-size: 18px;
	font-weight: 600;
	color: #616161;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	font-family: inherit;
}

.bluesun-ex-year.is-active,
.bluesun-ex-year:hover {
	color: #ed741b;
	border-bottom-color: #ed741b;
}

.bluesun-ex-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bluesun-ex-item {
	display: grid;
	grid-template-columns: 48% 52%;
	gap: 2rem;
	align-items: center;
	margin-bottom: 3.75rem;
}

.bluesun-ex-item[hidden] {
	display: none;
}

.bluesun-ex-img img {
	display: block;
	width: 100%;
	height: auto;
}

.bluesun-ex-title {
	display: block;
	font-size: 28px;
	line-height: 1.4;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1.25rem;
}

.bluesun-ex-ab span {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 16px;
	line-height: 28px;
	color: #616161;
}

.bluesun-ex-ab em {
	font-style: normal;
}

/* ===== CHỨNG CHỈ ===== */
.bluesun-cert-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2.5rem;
	align-items: start;
}

.bluesun-cert-sidebar-inner {
	background: #f3f3f3;
	padding: 1.5rem;
}

.bluesun-cert-menu-title {
	margin: 0 0 1rem;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.bluesun-cert-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bluesun-cert-cat {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 10px 0;
	font-size: 16px;
	color: #616161;
	cursor: pointer;
	font-family: inherit;
}

.bluesun-cert-cat.is-active,
.bluesun-cert-cat:hover {
	color: #ed741b;
	font-weight: 600;
}

.bluesun-cert-this-title {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
}

.bluesun-cert-list ul {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.bluesun-cert-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #e4e4e4;
}

.bluesun-cert-item[hidden] {
	display: none;
}

.bluesun-cer-title {
	flex: 1;
	font-size: 16px;
	font-weight: 500;
	color: #1a1a1a;
}

.bluesun-cer-do {
	display: flex;
	gap: 1rem;
	flex-shrink: 0;
}

.bluesun-cer-vd,
.bluesun-cer-dl {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid #ed741b;
	color: #ed741b;
	transition: background 0.3s, color 0.3s;
}

.bluesun-cer-vd:hover,
.bluesun-cer-dl:hover {
	background: #ed741b;
	color: #fff;
}

/* ===== TIN TỨC – moved to news.css ===== */

/* Single post – moved to news.css */

/* ===== VR ===== */
.bluesun-vr-content {
	padding-top: 3rem;
	padding-bottom: 5rem;
}

.bluesun-vr-block + .bluesun-vr-block {
	margin-top: 4rem;
}

.bluesun-vr-title {
	margin: 0 0 1.5rem;
	text-align: center;
	font-size: 32px;
	line-height: 1.4;
	font-weight: 600;
	color: #1a1a1a;
}

.bluesun-vr-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 1770 / 700;
	max-height: 700px;
	background: #1a1a1a;
}

.bluesun-vr-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===== ĐẠI LÝ ===== */
.bluesun-dealers-wrap {
	overflow-x: auto;
}

.bluesun-distributor-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.6;
}

.bluesun-distributor-table th,
.bluesun-distributor-table td {
	padding: 16px 20px;
	border: 1px solid #e4e4e4;
	text-align: left;
	vertical-align: top;
}

.bluesun-distributor-table thead th {
	background: #f3f3f3;
	font-weight: 600;
	color: #1a1a1a;
}

.bluesun-distributor-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.bluesun-distributor-table a {
	color: #ed741b;
	text-decoration: none;
}

.bluesun-distributor-table a:hover {
	text-decoration: underline;
}

/* Ẩn footer CTA khi trang có CTA riêng */
body.page-vr .bluesun-site-cta,
body.page-dai-ly-toan-cau .bluesun-site-cta {
	display: none;
}

/* Responsive */
@media screen and (max-width: 1024px) {
	.bluesun-cert-grid {
		grid-template-columns: 1fr;
	}

	.bluesun-ex-item {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px) {
	.bluesun-sub-content {
		padding: 2rem 15px;
	}

	.bluesun-sub-cta h3,
	.bluesun-vr-title {
		font-size: 26px;
		line-height: 1.3;
	}

	.bluesun-sub-cta-inner {
		padding: 3rem 20px 4rem;
	}

	.bluesun-sub-cta-btn {
		margin-top: 2rem;
	}

	.bluesun-ex-title {
		font-size: 18px;
	}

	.bluesun-cert-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.bluesun-distributor-table thead {
		display: none;
	}

	.bluesun-distributor-table tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #e4e4e4;
	}

	.bluesun-distributor-table td {
		display: block;
		border: none;
		border-bottom: 1px solid #eee;
	}

	.bluesun-distributor-table td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: #1a1a1a;
	}
}
