/* Category nav under header (mod_custom id 94) */
.ost-cats-nav {
	background: #f4f7fa;
	border: 1px solid #e2e8ef;
	border-radius: 4px;
	margin: 0 0 16px;
	clear: both;
	position: relative;
}

.ost-cats-panel {
	display: block;
}

.ost-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ost-cats__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ost-cats__link {
	position: relative;
	display: block;
	padding: 12px 18px;
	color: #1f5f8c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border-bottom: 3px solid transparent;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
	white-space: nowrap;
}

.ost-cats__link:hover,
.ost-cats__link:focus {
	color: #d35400;
	background: rgba(211, 84, 0, 0.06);
	border-bottom-color: #e67e22;
	text-decoration: none !important;
}

.ost-cats__item + .ost-cats__item .ost-cats__link {
	border-left: 1px solid #dde5ee;
}

.ost-cats-toggle {
	display: none !important;
	float: right;
	margin: 6px 8px;
	padding: 7px 10px;
	background: #1f5f8c;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.ost-cats-toggle .icon-bar {
	display: block;
	width: 18px;
	height: 2px;
	margin-top: 3px;
	background: #fff;
	border-radius: 1px;
}

.ost-cats-toggle .icon-bar:first-child {
	margin-top: 0;
}

.ost-cats-toggle.is-open {
	background: #d35400;
}

/* Mobile/tablet: hamburger + collapse without Bootstrap */
@media (max-width: 979px) {
	.ost-cats-nav {
		min-height: 42px;
		background: transparent;
		border-color: transparent;
	}

	.ost-cats-toggle {
		display: block !important;
	}

	.ost-cats-panel {
		display: none !important;
		clear: both;
		width: 100%;
	}

	.ost-cats-nav.is-open .ost-cats-panel {
		display: block !important;
	}

	.ost-cats {
		display: block;
		width: 100%;
	}

	.ost-cats__item {
		display: block;
		width: 100%;
	}

	.ost-cats__link {
		text-align: center;
		border-left: 0 !important;
		border-bottom: 1px solid #e2e8ef;
		padding: 11px 12px;
		white-space: normal;
	}

	.ost-cats__item:last-child .ost-cats__link {
		border-bottom: 0;
	}
}

@media (min-width: 980px) {
	.ost-cats-toggle {
		display: none !important;
	}

	.ost-cats-panel {
		display: block !important;
	}
}
