/* ── Concierge Tabs Widget ──────────────────────────────────────── */

.hbc-ct-wrap {
	padding: 48px;
	background-color: #ffffff;
	box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────── */

.hbc-ct-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.hbc-ct-header-left {
	flex: 1;
	min-width: 0;
}

.hbc-ct-heading {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #111111;
	margin: 0 0 12px;
}

.hbc-ct-header-desc {
	font-size: 15px;
	line-height: 1.65;
	color: #2563eb;
	margin: 0;
	max-width: 700px;
}

.hbc-ct-header-right {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding-top: 6px;
}

/* ── CTA Button ─────────────────────────────────────────────── */

.hbc-ct-cta {
	display: inline-flex;
	align-items: center;
	padding: 13px 28px;
	background: #efefef;
	color: #444444;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease;
	user-select: none;
}

.hbc-ct-cta:hover {
	background: #e0e0e0;
}

/* ── Cards Container ────────────────────────────────────────── */

.hbc-ct-cards {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

/* ── Card ───────────────────────────────────────────────────── */

.hbc-ct-card {
	flex: 1;
	position: relative;
	min-height: 440px;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
}

.hbc-ct-card.hbc-ct-active {
	flex: 2;
	cursor: default;
}

/* Gradient overlay */
.hbc-ct-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.30) 50%,
		rgba(0, 0, 0, 0.10) 100%
	);
}

/* ── Card Inner (flex column, full height) ─────────────── */

.hbc-ct-card-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 24px;
	box-sizing: border-box;
	z-index: 2;
}

/* ── Icon Wrap ─────────────────────────────────────── */

.hbc-ct-icon-wrap {
	/* Collapsed: takes all remaining space, centers icon */
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
	transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1),
	            margin-bottom 0.45s ease;
}

/* Expanded: shrink to icon size, left-align */
.hbc-ct-card.hbc-ct-active .hbc-ct-icon-wrap {
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 14px;
}

/* ── Icon Badge ────────────────────────────────── */

.hbc-ct-icon-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 10px;
	color: #ffffff;
	flex-shrink: 0;
}

.hbc-ct-icon-badge i,
.hbc-ct-icon-badge svg {
	font-size: 22px;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* ── Card Content ───────────────────────────────── */

.hbc-ct-card-content {
	flex-shrink: 0;
}

/* Card title */
.hbc-ct-card-title {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	margin: 0;
	/* Collapsed: centered */
	text-align: center;
	transition: text-align 0.2s ease,
	            font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            margin-bottom 0.35s ease;
}

.hbc-ct-card.hbc-ct-active .hbc-ct-card-title {
	text-align: left;
	font-size: 26px;
	margin-bottom: 12px;
}

/* Expandable content: desc + button */
.hbc-ct-expandable {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.35s ease;
}

.hbc-ct-card.hbc-ct-active .hbc-ct-expandable {
	max-height: 320px;
	opacity: 1;
}

/* Card description */
.hbc-ct-card-desc {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 16px;
}

/* Card button (span) */
.hbc-ct-card-btn {
	display: inline-flex;
	align-items: center;
	padding: 9px 22px;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s ease;
}

.hbc-ct-card-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.hbc-ct-wrap {
		padding: 36px 32px;
	}

	.hbc-ct-card.hbc-ct-active .hbc-ct-card-title {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.hbc-ct-wrap {
		padding: 32px 20px;
	}

	.hbc-ct-header {
		flex-direction: column;
		gap: 16px;
	}

	/* !important 钳制 Elementor 排版组控件的桌面字号 */
	.hbc-ct-heading {
		font-size: 26px !important;
		line-height: 1.25 !important;
	}

	.hbc-ct-header-desc {
		font-size: 13px !important;
		line-height: 1.6 !important;
	}

	.hbc-ct-cta {
		font-size: 13px !important;
	}

	.hbc-ct-cards {
		flex-direction: column;
	}

	.hbc-ct-card {
		min-height: 240px;
		flex: none !important;
	}

	.hbc-ct-card.hbc-ct-active {
		min-height: 340px;
	}

	.hbc-ct-card-title {
		font-size: 18px !important;
		line-height: 1.3 !important;
	}

	.hbc-ct-card-desc {
		font-size: 13px !important;
		line-height: 1.55 !important;
	}

	.hbc-ct-card-btn {
		font-size: 13px !important;
	}

	.hbc-ct-card-inner {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.hbc-ct-wrap {
		padding: 24px 14px;
	}

	.hbc-ct-heading {
		font-size: 22px !important;
	}

	.hbc-ct-header-desc {
		font-size: 12.5px !important;
	}

	.hbc-ct-card {
		min-height: 220px;
	}

	.hbc-ct-card.hbc-ct-active {
		min-height: 300px;
	}

	.hbc-ct-card-title {
		font-size: 17px !important;
	}

	.hbc-ct-card-desc {
		font-size: 12.5px !important;
	}

	.hbc-ct-card-inner {
		padding: 16px;
	}
}
