:root {
	--transition: 0.4s;
	--header-bg: rgba(25, 27, 36, 1);
	--header-height: 82px;
	--submenu-top: 102px;
}

/* Header Container */
.header {
	display: flex;
	align-items: center;
	position: fixed;
	top: 5px;
	left: 5px;
	right: 5px;
	padding: 0 20px 0 40px;
	border-radius: 60px;
	min-height: var(--header-height);
	background-color: var(--header-bg);
	margin: 0 auto;
	max-width: 1445px;
	font-family: "Inter", sans-serif;
	z-index: 9999;
	overflow: visible;
}

/* Header uses default positioning - marquee position is set dynamically by JavaScript based on header */

.header__wrapper {
	width: 100%;
	display: flex;
	align-items: center;
}

/* Logo */
.header__logo {
	max-width: 90px;
	display: block;
}

.header__logo img {
	max-width: 100%;
	height: auto;
}

.header__logo--mobile {
	display: none;
}

/* Navigation */
.header__navigation-wrapper {
	display: flex;
	width: 100%;
	padding-left: 50px;
	position: relative;
}

.header__navigation {
	position: relative;
	overflow: visible;
}

.header__list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__list-item {
	display: flex;
	padding: 0;
	margin: 0;
	gap: 8px;
	font-size: 16px;
	position: relative;
	align-items: center;
	pointer-events: auto;
}

.header__list-item>a {
	display: flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
	color: #fff;
	text-decoration: none;
	position: relative;
	z-index: 1;
	pointer-events: auto;
	padding: 10px 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(55, 166, 38, 0.2);
}

.header__list-item>a svg path {
	transition: var(--transition);
}

/* Submenu Wrapper */
.header__list-item.has-submenu {
	position: relative;
	touch-action: manipulation;
}

.header__list-item .submenu-wrapper {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 10px;
	min-width: 280px;
	max-width: 350px;
	padding: 20px;
	background-color: var(--header-bg);
	border-radius: 14px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--transition), visibility var(--transition);
	z-index: 999;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	touch-action: manipulation;
}

/* Action Buttons */
.header__buttons-wrapper {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-left: auto;
}

.header__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	width: max-content;
	padding: 6px 20px;
	border-radius: 100px;
	gap: 8px;
	font-size: 16px;
	font-weight: 400;
	transition: var(--transition);
	color: #fff;
	text-decoration: none;
	border: 1px solid transparent;
}

/* Shockwave Effect */
.header__button--shockwave {
	position: relative;
	overflow: visible;
}

.header__button--shockwave .shockwave {
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	border-radius: 100px;
	pointer-events: none;
	opacity: 0;
	z-index: 0;
	animation: shockwave-pill 1.5s ease-out infinite;
	border: 1px solid rgba(55, 166, 38, 0.8);
	box-sizing: border-box;
	transform-origin: center center;
}

@keyframes shockwave-pill {
	0% {
		transform: scale(1, 1);
		opacity: 1;
		border-color: rgba(55, 166, 38, 0.8);
		box-shadow: 0 0 0 0 rgba(55, 166, 38, 0.6),
			0 0 0 0 rgba(242, 151, 39, 0.4);
	}

	50% {
		opacity: 0.9;
		border-color: rgba(242, 151, 39, 0.6);
	}

	100% {
		transform: scale(1.3, 1.3);
		opacity: 0;
		border-color: rgba(55, 166, 38, 0);
		box-shadow: 0 0 0 8px rgba(55, 166, 38, 0),
			0 0 0 15px rgba(242, 151, 39, 0);
	}
}

.header__button--shockwave>span:not(.shockwave),
.header__button--shockwave>svg {
	position: relative;
	z-index: 1;
}

/* Mobile Button (Mobile Only) */
.mobile-button-wrapper {
	display: none;
	padding: 15px 0px;
	margin-top: 0px;
	text-align: center;
	position: relative;
	z-index: 100;
	background-color: #F2F2F2;
	overflow: hidden;
}

.mobile-button-marquee {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	display: flex;
	white-space: nowrap;
	animation: mobile-marquee-scroll 30s linear infinite;
	opacity: 0.3;
	pointer-events: none;
	z-index: 0;
}

.mobile-button-marquee-content {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0 20px;
}

.mobile-button-marquee-content .design-element {
	color: #37A626;
	font-size: 18px;
	font-weight: 400;
	white-space: nowrap;
	opacity: 0.6;
}

.mobile-button-marquee-content .separator {
	color: #37A626;
	font-weight: bold;
	font-size: 16px;
	opacity: 0.4;
}

@keyframes mobile-marquee-scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.mobile-button-container {
	text-align: center;
	position: relative;
	z-index: 1;
}

.mobile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	width: auto;
	max-width: 280px;
	padding: 12px 25px;
	border-radius: 100px;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	transition: var(--transition);
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: linear-gradient(135deg, rgba(55, 166, 38, 0.9) 0%, rgba(55, 166, 38, 0.9) 45%, rgba(149, 159, 39, 0.9) 50%, rgba(149, 159, 39, 0.9) 55%, rgba(242, 151, 39, 0.9) 100%);
	box-shadow: 0 4px 15px rgba(55, 166, 38, 0.3);
}

.mobile-button:hover {
	background: linear-gradient(135deg, rgba(55, 166, 38, 1) 0%, rgba(55, 166, 38, 1) 45%, rgba(149, 159, 39, 1) 50%, rgba(149, 159, 39, 1) 55%, rgba(242, 151, 39, 1) 100%);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 6px 20px rgba(55, 166, 38, 0.4);
	transform: translateY(-2px);
}

.mobile-button--shockwave {
	position: relative;
	overflow: visible;
}

.mobile-button--shockwave .shockwave {
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	border-radius: 100px;
	pointer-events: none;
	opacity: 0;
	z-index: 0;
	animation: shockwave-pill 1.5s ease-out infinite;
	border: 1px solid rgba(55, 166, 38, 0.8);
	box-sizing: border-box;
	transform-origin: center center;
}

.mobile-button--shockwave>span:not(.shockwave),
.mobile-button--shockwave>svg {
	position: relative;
	z-index: 1;
}

/* Show mobile button only on mobile devices */
@media screen and (max-width: 767.9px) {
	.mobile-button-wrapper {
		display: block;
	}
}

@media screen and (min-width: 768px) {
	.mobile-button-wrapper {
		display: none !important;
	}
}

/* Submenu List */
.submenu-list__title {
	width: max-content;
	margin-bottom: 12px;
	font-size: 11px;
	text-transform: uppercase;
	color: rgba(160, 161, 165, 1);
	letter-spacing: 0.5px;
}

.submenu-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding-left: 0;
	list-style: none;
}

.submenu-list__item {
	display: flex;
	width: 100%;
	cursor: pointer;
}

.submenu-list__item-wrapper {
	width: 100%;
	display: flex;
	align-items: center;
	padding: 12px 16px;
	gap: 16px;
	border-radius: 10px;
	transition: var(--transition);
}

.submenu-list__item-wrapper>svg {
	display: none;
}

.submenu-list__wrapper {
	position: relative;
}

/* Submenu Content - Hidden permanently, submenu items are just links */
.submenu-content {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Active state removed - submenu items are just links now */

.submenu-list__item-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #fff;
	text-decoration: none;
}

.submenu-list__item-title {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
}

.submenu-list__item-icon {
	display: flex;
}

.submenu-list__item-subtile {
	font-size: 12px;
	font-weight: 400;
	color: rgba(160, 161, 165, 1);
}

/* Submenu Content List */
.submenu-content__title {
	width: max-content;
	margin-bottom: 25px;
	font-size: 12px;
	text-transform: uppercase;
	color: rgba(160, 161, 165, 1);
}

.submenu-content__list:not(.events) {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding: 0;
	list-style: none;
}

.submenu-content__list.events {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	padding: 0;
	list-style: none;
}

.submenu-content__list-item {
	display: block;
	border-radius: 20px;
	background-color: rgba(255, 255, 255, 0.05);
	cursor: auto;
}

.submenu-content__link {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	padding: 10px 10px 20px;
	border: 1px solid transparent;
	transition: var(--transition);
	color: #fff;
	text-decoration: none;
}

.submenu-content__link-img {
	margin-bottom: 20px;
	border-radius: 13px;
	overflow: hidden;
	transition: var(--transition);
}

.submenu-content__link-img img {
	width: 100%;
	height: auto;
	transition: 0.4s ease-in;
	display: block;
}

.submenu-content__link-title {
	padding: 0 10px;
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 12px;
	color: #fff;
}

.submenu-content__link-text {
	padding: 0 10px;
	font-size: 12px;
	color: rgba(160, 161, 165, 1);
	line-height: 1.5;
}

/* Mobile Burger Menu */
.header__burger {
	display: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	width: 24px;
	margin-left: auto;
	cursor: pointer;
	pointer-events: auto;
	position: relative;
	z-index: 10001;
}

.header__burger i {
	width: 100%;
	height: 2px;
	background-color: #fff;
	border-radius: 13px;
	transition: var(--transition);
	pointer-events: none;
}

.header__burger.active i:nth-child(1) {
	transform: rotate(45deg) translate(4px, 4px);
	background-color: #F29727;
}

.header__burger.active i:nth-child(2) {
	opacity: 0;
}

.header__burger.active i:nth-child(3) {
	transform: rotate(-45deg) translate(4px, -5px);
	background-color: #F29727;
}

/* Desktop Menu States - Works for both hover and touch/click */
/* Also works in portrait mode when menu items are visible in header */
.header__list-item.has-submenu.menu-hover .submenu-wrapper {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	position: absolute !important;
}

.header__list-item.has-submenu.menu-hover>a,
.header__list-item.has-submenu.menu-hover>a svg path {
	color: var(--color-primary);
	fill: var(--color-primary);
}

/* Desktop Hover States - Only for devices with hover capability */
@media screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
	.header__button:hover {
		background-color: rgba(255, 255, 255, 0.05);
		border-color: rgba(255, 255, 255, 0.2);
	}

	.submenu-list__item.has-submenu:hover .submenu-list__item-wrapper {
		background-color: rgba(255, 255, 255, 0.04);
	}

	.submenu-content__list-item:hover .submenu-content__link {
		border-color: rgba(255, 255, 255, 0.3);
	}

	.submenu-content__list-item:hover .submenu-content__link-img img {
		transform: scale(1.05);
	}
}

/* Responsive Design */
@media screen and (min-width: 768px) {
	.header__list {
		gap: 28px;
	}

	/* Hide mobile container and logo on desktop */
	.header__mobile-container {
		display: none !important;
	}

	.header__logo--mobile-left {
		display: none !important;
	}
}

@media screen and (max-width: 1280px) {
	.header__navigation-wrapper {
		padding-left: 25px;
	}
}

@media screen and (max-width: 767.9px) {
	.header {
		min-height: auto;
		padding: 0;
		margin: 5px;
		border-radius: 20px;
		top: 10px;
		background-color: transparent;
		width: auto;
		left: auto;
		right: 10px;
		pointer-events: none;
		z-index: 10000;
	}

	.header__logo {
		display: none;
	}

	/* Mobile Header Container - wraps logo and hamburger */
	.header__mobile-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		top: -1px;
		left: 0;
		right: 0;
		width: 100%;
		height: 44px;
		padding: 0 20px;
		z-index: 10002;
		pointer-events: none;
		background-color: #f9ffe6;
	}

	/* Mobile-only logo on left side, now inside container */
	.header__logo--mobile-left {
		display: flex;
		align-items: center;
		position: relative;
		height: 44px;
		pointer-events: auto;
		max-width: 120px;
		-webkit-tap-highlight-color: rgba(242, 151, 39, 0.3);
		touch-action: manipulation;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.header__logo--mobile-left img {
		max-width: 100%;
		height: auto;
		display: block;
	}

	.header__burger {
		display: flex;
		flex-direction: column;
		margin-left: 0;
		position: relative;
		z-index: 10001;
		pointer-events: auto;
		cursor: pointer;
		/* Ensure minimum touch target size for mobile (44x44px) */
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
		padding: 0;
		gap: 4px;
		/* Center the burger icon within the touch target */
		justify-content: center;
		align-items: center;
		-webkit-tap-highlight-color: rgba(242, 151, 39, 0.3);
		touch-action: manipulation;
		-webkit-user-select: none;
		user-select: none;
		background-color: transparent;
		border: none;
		outline: none;
	}

	.header__burger i {
		background-color: #000;
		pointer-events: none;
		position: relative;
		z-index: 1;
		width: 24px;
		flex-shrink: 0;
	}

	.header__burger.active i {
		background-color: #F29727;
	}

	.header__wrapper {
		justify-content: flex-end;
		width: auto;
		pointer-events: none;
		position: relative;
		z-index: 10000;
		min-height: 44px;
		padding: 0;
	}

	.header__navigation-wrapper {
		flex-direction: column;
		align-items: flex-start;
		position: fixed;
		top: 10px;
		left: 10px;
		right: 10px;
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		padding: 20px;
		background-color: var(--header-bg);
		border-radius: 20px;
		opacity: 0;
		visibility: hidden;
		transition: var(--transition);
		z-index: 999;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-y;
		-ms-touch-action: pan-y;
		box-sizing: border-box;
	}

	.header__logo--mobile {
		display: block;
		margin-bottom: 20px;
		width: 100%;
		max-width: 120px;
		position: relative;
	}

	.header__navigation-wrapper.open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header__navigation-wrapper .header__burger.burger-in-menu {
		position: fixed;
		top: 20px;
		right: 20px;
		z-index: 10001;
		margin-left: 0;
		pointer-events: auto;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		/* Ensure minimum touch target size for mobile (44x44px) */
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
		padding: 0;
		gap: 4px;
		/* Center the burger icon within the touch target */
		justify-content: center;
		align-items: center;
		-webkit-tap-highlight-color: rgba(242, 151, 39, 0.3);
		touch-action: manipulation;
		-webkit-user-select: none;
		user-select: none;
		background-color: transparent;
		border: none;
		outline: none;
	}

	.header__navigation-wrapper .header__burger.burger-in-menu i {
		width: 24px;
		flex-shrink: 0;
	}

	.header__list {
		flex-direction: column;
		align-items: flex-start;
		/* gap: 30px; */
		width: 100%;
	}

	.header__buttons-wrapper {
		flex-direction: column;
		align-items: flex-start;
		margin-left: unset;
		margin-top: 50px;
		gap: 8px;
		width: 100%;
		overflow: visible;
	}

	.header__navigation {
		width: 100%;
		text-align: left;
		min-width: 0;
	}

	.header__list {
		width: 100%;
		min-width: 0;
	}

	.header__list-item {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		padding: 0;
		gap: 0;
		margin: 0;
	}

	.header__list-item>a {
		justify-content: flex-start;
		pointer-events: auto;
		z-index: 1;
		position: relative;
	}

	.header__list-item.active a,
	.header__list-item.active a>svg path {
		fill: var(--color-primary);
		color: var(--color-primary);
	}

	.header__list-item .submenu-wrapper {
		position: static;
		padding: 0;
		max-height: 0;
		border-radius: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: all;
		overflow: hidden;
		transition: max-height var(--transition);
		width: 100%;
		left: 0;
		transform: none;
		max-width: 100%;
		box-sizing: border-box;
	}

	.submenu-list {
		width: 100%;
		max-width: 100%;
		gap: 5px;
	}

	.submenu-list__wrapper {
		margin-top: 30px;
	}

	.submenu-list__item {
		width: 100%;
		padding: 0;
		margin: 0;
		pointer-events: auto;
	}

	.submenu-list__item.has-submenu {
		cursor: pointer;
	}

	.submenu-list__item-link {
		pointer-events: auto;
		z-index: 1;
		position: relative;
	}

	.submenu-list__item-wrapper {
		pointer-events: auto;
	}

	.submenu-list__item:active .submenu-list__item-wrapper {
		background-color: rgba(255, 255, 255, 0.04);
	}

	.submenu-list__item:active .submenu-list__item-wrapper>svg {
		opacity: 1;
		visibility: visible;
	}

	.submenu-list__title {
		display: none;
	}

	.submenu-content {
		display: none !important;
		position: static;
		max-width: 100%;
		margin-top: 10px;
	}

	.header__button {
		border: 1px solid rgba(255, 255, 255, 1);
		width: 100%;
		pointer-events: auto;
		z-index: 1;
		position: relative;
	}

	.header__button--shockwave {
		overflow: visible;
	}

	.header__button--shockwave .shockwave {
		top: -1px;
		left: -1px;
		right: -1px;
		bottom: -1px;
		width: auto;
		height: auto;
	}
}

@media screen and (max-width: 767.9px) {

	.header__buttons-wrapper,
	.header__button {
		width: 100%;
	}

	.header__button--shockwave {
		overflow: visible;
	}

	.header__button--shockwave .shockwave {
		top: -1px;
		left: -1px;
		right: -1px;
		bottom: -1px;
		width: auto;
		height: auto;
	}
}

/* Ensure navigation wrapper is scrollable on mobile */
@media screen and (max-width: 767.9px) {
	.header__navigation-wrapper {
		overflow-y: auto;
		overflow-x: hidden;
	}
}