.site-header {
	background: #000;
	/* Key fix: Allow overflow */
	overflow: hidden;
	position: relative;

	display: flex;
	flex-direction: column;
	justify-content: space-between;

	min-height: 100vh;
	/* width: 300px; */
	flex: 0 0 300px;
	align-items: center;
	box-sizing: border-box; /* Includes padding in the height calculation */
}

.site-header > a{
	background: linear-gradient(203.12deg, rgba(255, 255, 255, 0.19) 5.37%, rgba(255, 255, 255, 0) 47.22%);
	padding: 15px;
	flex: 0 0 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-bottom: 1px solid #373737;
}

.logged-in .site-header {
	min-height: calc( 100vh - 32px);
}

.header-nav {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding-bottom: 36px;
}

.header-nav .brand-term{
	flex: 1;
}

.page-header {
	background: linear-gradient(292.9deg, rgba(255, 255, 255, 0.19) 17.02%, rgba(255, 255, 255, 0) 85.69%);
	align-items: center;
	height: 150px;
	flex-shrink: 0;
	border-bottom: 1px solid rgb(55, 55, 55);
}

.page-header h1 {
	margin-top: 0;
	margin-bottom: 0;
}

.page-header-back {
	padding: 20px 0 20px 40px;
	height: 100%;
	display: flex;
	align-items: center;
}

.page-header-back a{
	width: 100px;
	height: 100%;
	border: 1px solid #575757;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-header-back svg{
	display: block;
}

.page-header-content {
	padding: 16px 32px;
	flex: 1;
}

.page-header-content .entry-title {
	font-size: 52px;
	line-height: 100%;
}

.page-header-extras {
	align-items: center;
	padding: 20px 40px;
	height: 100%;
	gap: 4px;
}

.page-header-extras a{
	background: linear-gradient(233.2deg, rgba(103, 103, 103, 0.1) 15.39%, rgba(255, 255, 255, 0.1) 84.19%);
	border: 1px solid #575757;
}

.page-header-extras a:first-child{
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
}

.page-header-extras a:last-child{
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

.page-header-extras a:hover{
	background: linear-gradient(233.2deg, rgba(103, 103, 103, 0.3) 15.39%, rgba(255, 255, 255, 0.3) 84.19%);
}

.page-header-extras img {
	height: 112px;
	width: 160px;
	object-fit: contain;
}





/* Make the alpha animatable */
@property --walpha {
	syntax: '<number>';
	inherits: false;
	initial-value: 0; /* 0 = fully transparent, 1 = fully opaque */
}

.brand-term-image {
	width: 100%;
	min-height: 150px;
	object-fit: contain;

	/* Use the animatable alpha in the gradient */
	--walpha: 0;
	background: linear-gradient(
		205.88deg,
		rgba(255, 255, 255, var(--walpha)) 6.83%,
		rgba(255, 255, 255, 0) 60.2%
	);

	border-top: 1px solid #373737;
	border-right: 1px solid #373737;

	padding: 32px;
	transition: --walpha .3s ease;
}

.brand-term:first-child .brand-term-image{
	border-top: none;
}

.brand-link:hover .brand-term-image,
.active .brand-term-image {
	--walpha: 1; /* fades the first stop from 0 → 1 */
}





.brand-link{
	position: relative;
	display: flex;
	height: 100%;
	background-color: #000;
	transition: background-color .6s ease,
		backdrop-filter .6s ease,
		-webkit-backdrop-filter .6s ease,
		box-shadow .6s ease;
	overflow: hidden;
}

/* text stays above the image */
.brand-link > *{ position: relative; z-index: 1; }

.brand-link::before{
	/* the image is the content from the variable 👇 */
	content: var(--img);            /* --img must be url('...') */
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	object-fit: cover;              /* like <img> cover */
	opacity: 0;                     /* start hidden */
	transition: opacity .6s ease;
	pointer-events: none;
	z-index: 0;
}

.brand-link:hover,
.brand-link.active{
	background-color: #424242;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	box-shadow: 10px -16px 25px 0 #FFFFFF40;
}

.brand-link:hover::before,
.brand-link.active::before{
	opacity: 1;                     /* fade image in */
}

.brand-link:not(.active):hover::before{
  animation: slide-in 0.6s forwards;
}

.brand-link:not(.active):not(:hover)::before {
  animation: slide-out 0.6s forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}






.dots-wrapper {
	z-index: 2;
	position: absolute;
	bottom: 0;
	display: flex;
	justify-content: center;
	overflow: visible;
	margin-top: -50px;
	background-image: url(/wp-content/themes/karting/assets/images/sidemenu-bg.svg);
	background-position: top center;
	background-repeat: no-repeat;
	width: 100%;
	padding-top: 86px;
	max-height: 86px;
	transition: max-height .3s ease;
}

.dots-wrapper.dots-wrapper--custom-open{
	max-height: var(--max-height);
}

.dots-container {
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
}







.popup-menu {
	padding: 0 18px 50px;
	background: #000;
	height: fit-content;
	width: 100%;
}

.popup-content {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 4px;
}

.popup-item {
	cursor: pointer;
	transition: all 0.2s ease;
	overflow: hidden;
	flex-shrink: 0;
	width: 100%;
	background: linear-gradient(233.2deg, rgba(103, 103, 103, 0.1) 15.39%, rgba(255, 255, 255, 0.1) 84.19%);
	border: 1px solid #575757;
	transition: background .3s;
}

.popup-item:first-child{
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.popup-item:last-child{
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}

.popup-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	background: linear-gradient(233.2deg, rgba(103, 103, 103, 0.3) 15.39%, rgba(255, 255, 255, 0.3) 84.19%);
}

.popup-item img {
	width: 100%;
	height: 112px;
	object-fit: contain;
	display: block;
}




























/* Stack icons and crossfade */
.dots-wrapper svg{
	position: absolute; inset: 0;
	width: 56px; height: 56px;
	left: 50%;
	top: 20px;
	transform: translateX(-50%);
	cursor: pointer;
	transition: opacity .3s ease, transform .3s ease;
}
.dots-wrapper svg *{
	pointer-events: none;
}
