/* AKA CPT Tabs — Elementor widget */

.aka-du-an-tabs__notice {
	padding: 12px 14px;
	border-radius: 6px;
	background: #fff3cd;
	color: #856404;
	font-size: 13px;
}

.aka-du-an-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.aka-du-an-tabs__nav-item {
	margin: 0;
	list-style: none;
}

.aka-du-an-tabs__tab {
	position: relative;
	display: inline-flex;
	padding: 8px 0 10px;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #555;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.aka-du-an-tabs__tab::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: transparent;
	border-radius: 1px;
	transition: background-color 0.2s ease;
}

.aka-du-an-tabs__tab.is-active {
	color: #f18c20;
	padding: 8px 16px;
}

.aka-du-an-tabs__tab.is-active::after {
	background-color: #c8102e;
}

.aka-du-an-tabs__tab:focus-visible {
	outline: 2px solid #c8102e;
	outline-offset: 3px;
}

.aka-du-an-tabs__grid {
	--aka-tabs-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--aka-tabs-cols), minmax(0, 1fr));
	gap: 16px;
}

.aka-du-an-tabs__grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.aka-du-an-tabs__empty {
	grid-column: 1 / -1;
	margin: 24px 0;
	text-align: center;
	color: #777;
	font-size: 14px;
}

/* Cuộn ngang (tablet + mobile) — breakpoint khớp Elementor mặc định */
@media (max-width: 1024px) {
	.aka-du-an-tabs--scroll .aka-du-an-tabs__grid {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.aka-du-an-tabs--scroll .aka-du-an-tabs__grid::-webkit-scrollbar {
		display: none;
	}

	.aka-du-an-tabs--scroll .aka-du-an-tabs__grid>* {
		flex: 0 0 var(--aka-tabs-slide-w, 45%);
		min-width: 0;
		scroll-snap-align: start;
	}

	.aka-du-an-tabs--scroll .aka-du-an-tabs__grid>.aka-du-an-tabs__empty {
		flex-basis: 100%;
	}
}

@media (max-width: 767px) {
	.aka-du-an-tabs--scroll .aka-du-an-tabs__grid>* {
		flex-basis: var(--aka-tabs-slide-w, 80%);
	}

	.aka-du-an-tabs__nav {
		gap: 6px 18px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.aka-du-an-tabs__tab {
		white-space: nowrap;
		font-size: 14px;
	}
}