/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =============================================
   Mega Menu — flush with sticky header bottom
   ============================================= */

.brx-megamenu {
	top: 44px !important;
}

/* =============================================
   Horizontal Scrollable Submenu
   ============================================= */

.nwc-submenu-wrap {
	position: relative;
	width: 100%;
}

/* Gradient fade on left */
.nwc-submenu-wrap::before {
	content: '\2039';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 60px;
	background: linear-gradient(to right, var(--primary-d-10) 0%, var(--primary-d-10) 20%, transparent 100%);
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
	display: flex;
	align-items: center;
	padding-left: 8px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 22px;
	font-weight: 700;
}

/* Gradient fade on right */
.nwc-submenu-wrap::after {
	content: '\203A';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 60px;
	background: linear-gradient(to left, var(--primary-d-10) 0%, var(--primary-d-10) 20%, transparent 100%);
	z-index: 2;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 22px;
	font-weight: 700;
}

/* Show left gradient when scrolled */
.nwc-submenu-wrap.is-scrolled::before {
	opacity: 1;
}

/* Hide right gradient when scrolled to end */
.nwc-submenu-wrap.is-at-end::after {
	opacity: 0;
}

.nwc-submenu {
	display: flex;
	overflow-x: auto;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	white-space: nowrap;
	justify-content: center;

	/* Hide scrollbar */
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.nwc-submenu::-webkit-scrollbar {
	display: none;
}

.nwc-submenu__item {
	flex: 0 0 auto;
	margin-bottom: 0 !important;
}

.nwc-submenu__item a,
.nwc-submenu__item a:visited {
	display: block !important;
	padding: 12px 20px !important;
	text-decoration: none !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	transition: color 0.2s, border-color 0.2s !important;
	border-bottom: 3px solid transparent !important;
	margin-bottom: -1px !important;
	box-shadow: none !important;
}

.nwc-submenu__item a:hover {
	color: #fff !important;
	border-bottom-color: var(--primary-6, #1a56db) !important;
}

.nwc-submenu__item--active a,
.nwc-submenu__item--active a:visited {
	color: #fff !important;
	font-weight: 700 !important;
	border-bottom-color: var(--primary-6, #1a56db) !important;
	border-bottom-width: 4px !important;
	background: rgba(255, 255, 255, 0.08) !important;
}