/* Home specialists panel — HKSH-inspired split list (Virtus blue) */
.vm-home-spec-wrap { margin: 28px 0 0; padding: 0; overflow-x: clip; }
.vm-home-spec {
	--vm-blue: #2f9dd3;
	--vm-blue-deep: #1e7faf;
	--vm-ink: #1A2B3C;
	--vm-muted: #5a6b7c;
	--vm-line: #e2e8ef;
	--vm-panel-bg: #f3f6f9;
	position: relative;
	padding: 48px 0 40px;
	/* Soft panel wash — HKSH-like calm section (no + grid) */
	background: var(--vm-panel-bg);
	/* Inherit site stack (same as .vm-home-feed__title / 最新資訊) — not GothamBook */
	font-family: inherit;
	overflow-x: clip;
}
/* Keep content inside site frame (same Bootstrap .container as 最新資訊) */
.vm-home-spec > .container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.vm-home-spec__title {
	margin: 0 0 22px;
	padding: 0;
	font-family: inherit; /* match 最新資訊 .vm-home-feed__title */
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 700;
	color: var(--vm-ink);
	letter-spacing: .02em;
	text-align: left;
}
.vm-home-spec__title::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 10px;
	background: var(--vm-blue);
	border-radius: 2px;
}
.vm-spec-panel {
	display: grid;
	grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1.58fr);
	gap: 28px 28px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.vm-spec-panel__visual {
	position: relative;
	min-height: 280px;
	max-width: 240px;
	width: 100%;
	margin: auto 0;
	overflow: visible;
}
/* Overlapping brand blocks only (no wing mark on left) */
.vm-spec-panel__box {
	position: absolute;
	inset: 8% 22% 18% 0;
	background: #b8dff2;
	z-index: 1;
}
.vm-spec-panel__box--front {
	inset: 22% 0 4% 20%;
	background: #7ec8e8;
	box-shadow: 0 10px 24px rgba(26,43,60,.08);
	z-index: 2;
}
.vm-spec-panel__wing {
	display: none;
}
.vm-spec-panel__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.vm-spec-panel__viewport {
	position: relative;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 280px;
}
/* Hidden bag — JS moves items into pages */
[data-vm-spec-items] {
	display: none !important;
}
.vm-spec-page {
	display: none;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(4, auto);
	column-gap: 24px;
	grid-auto-flow: row;
	align-content: start;
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	opacity: 1;
	visibility: visible;
	pointer-events: none;
	transform: none;
	z-index: 0;
}
.vm-spec-page.is-active {
	display: grid;
	pointer-events: auto;
	z-index: 2;
}
.vm-spec-item {
	display: grid;
	grid-template-columns: 48px 1fr 14px;
	align-items: center;
	gap: 12px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--vm-line);
	color: var(--vm-ink);
	text-decoration: none !important;
	transition: background .16s ease, color .16s ease;
}
.vm-spec-item:hover,
.vm-spec-item:focus-visible {
	color: var(--vm-blue-deep);
	background: rgba(47,157,211,.06);
	outline: none;
}
.vm-spec-item__ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(47,157,211,.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.vm-spec-item__ico img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}
.vm-spec-item__name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	min-width: 0;
}
.vm-spec-item__arrow {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 7px;
	border-color: transparent transparent transparent var(--vm-blue);
	justify-self: end;
}
.vm-spec-panel__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 6px;
}
/* News / hero reuse the same foot chrome as specialty */
.vm-news-foot {
	margin-top: 22px;
	padding-top: 10px;
}
.vm-news-foot .vm-spec-dots { min-width: 100px; }
.vm-spec-dots {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 120px;
}
.vm-spec-dots__bar {
	height: 6px;
	border-radius: 999px;
	background: #d5dee7;
	overflow: hidden;
	width: min(160px, 40vw);
	position: relative;
}
.vm-spec-dots__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 28%;
	border-radius: inherit;
	background: var(--vm-blue);
	transition: left .25s ease, width .25s ease;
}
.vm-spec-dots__pip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #c5d0db;
	cursor: pointer;
}
.vm-spec-dots__pip.is-active { background: var(--vm-blue); }
.vm-spec-nav {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.vm-spec-nav__btn {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--vm-ink);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0;
	position: relative;
	z-index: 2;
}
.vm-spec-nav__btn:disabled {
	opacity: .28;
	cursor: default;
}
.vm-spec-nav__btn:not(:disabled):hover { color: var(--vm-blue-deep); }
.vm-spec-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	color: var(--vm-blue-deep);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
}
.vm-spec-cta__box {
	width: 36px;
	height: 36px;
	background: var(--vm-blue);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.vm-spec-cta__box svg { width: 16px; height: 16px; display: block; }
.vm-spec-cta:hover { color: var(--vm-ink); }
.vm-spec-cta:hover .vm-spec-cta__box { background: var(--vm-blue-deep); }

/* Shortcuts under homepage slider — HKSH icon-blocks + compact search */
.vm-spec-actions-wrap {
	display: block;
	padding: 40px 0 48px;
	background: #fff;
}
.vm-spec-actions {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
	gap: 60px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	max-width: none;
	width: fit-content;
}
.vm-spec-actions__btn {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: 8px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--vm-ink);
	text-decoration: none !important;
	text-align: center;
	transition: color .16s ease, opacity .16s ease;
}
.vm-spec-actions__btn:hover,
.vm-spec-actions__btn:focus-visible {
	border: 0;
	color: var(--vm-blue-deep);
	background: transparent;
	box-shadow: none;
	outline: none;
	opacity: 1;
}
.vm-spec-actions__ico {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 0;
	background: transparent;
	color: var(--vm-blue-deep);
	display: grid;
	place-items: center;
	overflow: visible;
}
/* Hover FX behind icon: 06 scale small→big, 07 clockwise spin */
.vm-spec-actions__fx {
	position: absolute;
	inset: -22%;
	display: grid;
	place-items: center;
	pointer-events: none;
	z-index: 0;
}
.vm-spec-actions__fx-07,
.vm-spec-actions__fx-06 {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transform-origin: center center;
}
.vm-spec-actions__fx-07 { transform: scale(.85) rotate(0deg); }
.vm-spec-actions__fx-06 { transform: scale(.35); }
.vm-spec-actions__icon {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	object-fit: contain;
	display: block;
}
/* Desktop / fine pointer only — no FX on mobile / touch */
@media (hover: hover) and (pointer: fine) {
	.vm-spec-actions__btn:hover .vm-spec-actions__fx-07,
	.vm-spec-actions__btn:focus-visible .vm-spec-actions__fx-07 {
		opacity: 1;
		animation: vmShortcutSpinCW 1.4s linear infinite;
	}
	.vm-spec-actions__btn:hover .vm-spec-actions__fx-06,
	.vm-spec-actions__btn:focus-visible .vm-spec-actions__fx-06 {
		opacity: 1;
		transform: scale(.8);
		transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
	}
	.vm-spec-actions__btn:not(:hover):not(:focus-visible) .vm-spec-actions__fx-06 {
		transition: transform .28s ease, opacity .2s ease;
	}
}
@media (max-width: 767.98px) {
	.vm-spec-actions__fx {
		display: none !important;
	}
}
@keyframes vmShortcutSpinCW {
	from { transform: scale(.92) rotate(0deg); }
	to   { transform: scale(.92) rotate(360deg); }
}
.vm-spec-actions__label {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .01em;
}
/* Compact centered search (not full-bleed) — HKSH-style reasonable width */
.vm-spec-search{
	width: 100%;
	max-width: 520px;
	margin: 20px auto 0;
}
.vm-spec-search__row{
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid #b8c9dc;
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
	min-height: 48px;
}
.vm-spec-search__input{
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	padding: .7rem .95rem;
	font-size: .95rem;
	line-height: 1.35;
	color: #1A2B3C;
	background: #fff;
}
.vm-spec-search__input::placeholder{
	color: #8a9aab;
}
.vm-spec-search__btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	border: 0;
	margin: 0;
	padding: 0 1rem;
	background: #2f9dd3;
	color: #fff;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background .16s ease;
}
.vm-spec-search__btn:hover,
.vm-spec-search__btn:focus-visible{
	background: #1e7faf;
	outline: none;
}
.vm-spec-search__btn svg{
	width: 1.05rem;
	height: 1.05rem;
	display: block;
}
.vm-spec-actions__btn.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
	background: transparent;
	color: var(--vm-muted);
}
.vm-spec-actions__btn.is-disabled .vm-spec-actions__ico {
	background: #fff;
	color: #8a9aab;
}

@media (max-width: 991.98px) {
	.vm-spec-panel {
		grid-template-columns: 1fr;
		gap: 0;
	}
	/* Mobile: no blue boxes — list aligns with section title */
	.vm-spec-panel__visual {
		display: none !important;
	}
	.vm-spec-panel__viewport { min-height: 0; overflow: hidden; }
	.vm-spec-page,
	.vm-spec-page.is-active { grid-template-columns: 1fr; column-gap: 0; }
	.vm-home-spec__title {
		margin: 0 0 18px;
	}
	.vm-spec-item {
		padding-left: 0;
		padding-right: 0;
	}
	/* Tablet/mobile: HKSH-style 2-col cards, icon + label in a row */
	.vm-spec-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: 100%;
		gap: 8px;
	}
	.vm-spec-actions__btn {
		flex: none;
		width: auto;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		padding: 14px 14px;
		background: #f3f7fb;
		text-align: left;
		min-height: 72px;
	}
	.vm-spec-actions__btn:hover,
	.vm-spec-actions__btn:focus-visible {
		background: #e8f1fa;
		opacity: 1;
	}
	.vm-spec-actions__ico {
		width: 56px;
		height: 56px;
		flex: 0 0 auto;
	}
	.vm-spec-actions__icon {
		width: 44px;
		height: 44px;
	}
	.vm-spec-actions__label {
		font-size: .9rem;
		font-weight: 700;
		line-height: 1.3;
		flex: 1 1 auto;
	}
	.vm-spec-search{
		max-width: 100%;
		margin-top: 12px;
	}
}
@media (max-width: 640px) {
	.vm-home-spec { padding: 24px 0 28px; }
	.vm-spec-item { padding: 12px 2px; }
	.vm-spec-item__name { font-size: 0.95rem; }
	.vm-spec-panel__foot { gap: 12px; }
	.vm-spec-cta { margin-left: 0; width: 100%; justify-content: flex-end; }
	.vm-spec-actions-wrap { padding: 20px 0 28px; }
	.vm-spec-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		max-width: 100%;
	}
	.vm-spec-actions__btn {
		flex: none;
		width: auto;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		padding: 12px 12px;
		min-height: 68px;
		background: #f3f7fb;
		text-align: left;
	}
	.vm-spec-actions__ico {
		width: 52px;
		height: 52px;
		flex: 0 0 auto;
	}
	.vm-spec-actions__icon {
		width: 40px;
		height: 40px;
	}
	.vm-spec-actions__label {
		font-size: .85rem;
		line-height: 1.3;
		text-align: left;
	}
	.vm-spec-search{
		max-width: 100%;
		margin-top: 12px;
	}
	.vm-spec-search__row{ min-height: 44px; }
	.vm-spec-search__input{ padding: .6rem .8rem; font-size: .9rem; }
	.vm-spec-search__btn{ padding: 0 .8rem; font-size: .85rem; }
	.vm-spec-search__btn span{ display: none; }
}
