:root {
	--inner-width-value: 1400;
	--inner-width: calc(var(--inner-width-value)*1px);

	--container-max-width-value: 1400;
	/* TODO(suzu): find way to write this from elementor */
	--container-max-width: calc(var(--container-max-width-value)*1px);

	--outer-width-value: 1920;
	--outer-width: calc(var(--outer-width-value)*1px);

	--outer-width-or-vw: min(var(--outer-width), 100vw);

	--default-border-radius: 0;

	--container-spacing: 0px;
	--grid-default-gap: 40px;
	--mobile-gap: 20px
}

.v-padding {
	padding-top: var(--container-spacing);
	padding-bottom: var(--container-spacing);
}

/* Backgrounds */
.bg {
	&::before {
		transform: translateX(-50%);
		width: var(--outer-width-or-vw);
		position: absolute;
		z-index: -1;
		content: '';
		left: 50%;
		bottom: 0;
		top: 0;
	}

	&.bg-example {
		color: var(--e-global-color-primary);
	
		&::before {
			background-image: url('assets/blue.png');
			background-size: cover;
			background-repeat: no-repeat;
			background-position: center;
			opacity: 0.5;
		}
	}
	
	&.bg-custom-image {
		&::before {
			background-image: var(--bg-image);
			background-size: cover;
			background-repeat: no-repeat;
			background-position: center bottom;
		}
	}
}
/* Backgrounds end */

/* Widgets */
.two-widget {
	position: relative;
	padding-top: var(--container-spacing);
	padding-bottom: var(--container-spacing);
}

@media only screen and (max-width: 1400px) { /* Can't use vars in media queries booo */
	.two-widget {
		padding-left: var(--mobile-gap);
		padding-right: var(--mobile-gap);
	}
}

/* Title Widget */
.two-title-widget {
	min-height: 580px;
    display: flex;
  
    .title-widget-inner {
		display: flex;
		flex-direction: column;
		align-items: start;
		width: var(--container-max-width);
		margin: auto;
    }
  
    h1 {
		max-width: 700px;
    }

	h3 {
		max-width: 500px;
	}
}
/* Title Widget end */


/* Carousel Widget */
.two-carousel-widget {
	> div {
		position: relative;
		max-width: calc(100% - 48px);
		margin: auto;
	}

	.slide h2,
	.slide p {
		text-align: center;
		margin-top: 1rem;
		margin-bottom: 0;
	}


	.nav::before {
		position: absolute;
		cursor: pointer;
		top: 50%;
		height: 40px;
		width: 24px;
	}

	.next:before, .prev:before {
		content: '';
		background-image: url('assets/chevron.png');
		background-position: center;
		background-repeat: no-repeat;
	}
  
	.next::before {
		left: 100%;
		transform: translateY(-50%);
	}
  
	.prev::before {
		right: 100%;
		transform: translateY(-50%) scaleX(-1);
	}

	.slides {
		scroll-snap-type: x mandatory;
		overflow-x: scroll;
		display: flex;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE and Edge */
		gap: 2rem;
	}
  
	.slides::-webkit-scrollbar {
		display: none;
	}
  
	.slide {
		display: flex;
		flex-direction: column;
		align-items: center;
		/* there are 3 slides but 2 gaps */
		/* so the total of the gaps is 2x2rem = 4rem */
		/* and divide that by three slides */
		/* 4/3 = 1.333rem */
		flex: 0 0 calc(100% / 3 - 1.333rem);
		scroll-snap-align: start;
	}

	img {
		object-fit: cover;
		aspect-ratio: 16/9;
		width: 100%;
	}

	@media (max-width: 756px) {
		.slide {
			flex: 0 0 calc(100% / 2 - 1rem);
		}
	}
  
	@media (max-width: 480px) {
		.slide {
			flex: 0 0 100%;
		}
	}
}
/* Carousel Widget end */

/* Fifty Fifty Widget */
.two-fifty-fifty-widget {
	> div {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--container-spacing);
	}
}

@media only screen and (max-width: 1024px) {
	.two-fifty-fifty-widget {
		> div {
			grid-template-columns: 1fr;
		}

		&.mobile-reverse {
			.fifty-fifty-left {
				order: 1;
			}
		}
	}
}
/* Fifty Fifty Widget end */

/* Card Grid Widget */
.two-card-grid-widget {
	h2 {
		text-align: center;
	}

	.card-grid {
		display: grid;
		gap: var(--grid-default-gap);
	}

	&.columns-2 .card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	&.columns-3 .card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	&.columns-4 .card-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	@media (max-width: 1024px) {
		&.columns-3 .card-grid,
		&.columns-4 .card-grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (max-width: 768px) {
		.card-grid {
			grid-template-columns: 1fr;
		}
	}
}

.two-card-simple {
	display: flex;
	flex-direction: column;

	.two-card-image {
		width: 100%;
		aspect-ratio: 16/9;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
}

.two-card-image {
	width: 100%;
	aspect-ratio: 1;
	background-size: cover;
	background-position: center;
	position: relative;

	.two-card-image-overlay {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		transition: opacity 0.3s;

		p {
			color: white;
			text-align: center;
		}
	}
}
/* Card Grid Widget end */

/* Hero Hoverer */
.two-hero-hoverer {
	display: grid;
	grid-template-columns: 3fr 1fr;
	grid-template-rows: repeat(auto, var(--n-rows));
	gap: 5px;

	a {
		grid-column: 2;
	}

	img {
		width: 100%;
		aspect-ratio: 1.5;
		grid-row: 1 / span var(--n-rows);
		grid-column: 1;
		object-fit: cover;
		border-radius: 5px !important;
		opacity: 0;
		transition: opacity 0.5s;
	}

	img:first-of-type, a:hover + img {
		opacity: 1;
	}
}

.hoverer-btn {
	display: flex;
	background-color: var(--e-a-color-primary);
	border-radius: 5px;
	padding: 1rem;
	gap: 5px;
	align-items: center;


	.hoverer-icon {
		width: 60px;
	}
}

.two-hero-hoverer {
}
/* Hero Hoverer end */


.elementor-widget-two-sidebar-menu ul li ul:not(:has(.hot)) {
	display: none;
}
.elementor-widget-two-sidebar-menu a.hot.hot.hot.hot + ul {
	display: block;
}


.elementor-widget-two-sidebar-menu i {
	color: #D71920;
	transition: transform 0.2s ease;
	font-size: 18px;
	font-weight: 600;
}

.elementor-widget-two-sidebar-menu li.open > a > i {
	transform: rotate(90deg);
}

.elementor-widget-two-sidebar-menu li > a.hot {
	color: #F7F9FB;
	background: #003A63;
}