/**
 * Yusung Hero Slider — Elementor Widget Styles
 *
 * @package Yusung
 */

/* --------------------------------------------------------------------------
   Hero slider full-width (homepage / Elementor full-width sections)
   -------------------------------------------------------------------------- */
body:has(.yusung-hero-slider--full-width) {
	overflow-x: clip;
}

.elementor-widget-yusung-hero-slider {
	width: 100%;
	max-width: none;
	--widgets-spacing: 0px !important;
	margin-block: 0 !important;
}

.elementor-widget-yusung-hero-slider > .elementor-widget-container {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.elementor-widget-yusung-hero-slider:has(.yusung-hero-slider--full-width) {
	width: 100%;
	max-width: none;
	margin: 0;
}

.yusung-hero-slider--full-width {
	width: 100%;
	max-width: none;
	margin: 0;
}

/* Full-width Elementor container that wraps only the slider — only when the
   widget's own "Full Width" option (Slider Options tab) is enabled. */
.e-con:has(> .e-con-inner > .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width),
.e-con:has(> .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width) {
	--width: 100% !important;
	--content-width: 100% !important;
	--container-max-width: 100% !important;
	--padding-block-start: 0px !important;
	--padding-block-end: 0px !important;
	--padding-inline-start: 0px !important;
	--padding-inline-end: 0px !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.e-con:has(> .e-con-inner > .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width) > .e-con-inner,
.e-con:has(> .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width) > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Homepage hero — break out to viewport edges (only when Full Width is on) */
.home .site-main--full-width .e-con:has(> .e-con-inner > .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width),
.home .site-main--full-width .e-con:has(> .elementor-widget-yusung-hero-slider .yusung-hero-slider--full-width) {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* Homepage content sections — match .yusung-container (1320px incl. padding) */
.home .site-main--full-width > .elementor > .e-con:not(:has(.yusung-hero-slider)):not(:has(.elementor-widget-yusung-hero-slider)) {
	--content-width: var(--yusung-site-container-width, 1320px) !important;
	--container-max-width: var(--yusung-site-container-width, 1320px) !important;
	--padding-inline-start: 0px !important;
	--padding-inline-end: 0px !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-inline: 0 !important;
}

.home .site-main--full-width > .elementor > .e-con:not(:has(.yusung-hero-slider)):not(:has(.elementor-widget-yusung-hero-slider)) > .e-con-inner {
	max-width: var(--yusung-site-container-width, 1320px);
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--yusung-spacing, 1.5rem);
	box-sizing: border-box;
}

/* No top gap between header and hero on homepage */
.home .site-main--full-width:has(.yusung-hero-slider) {
	padding-top: 0;
	padding-bottom: 0;
}

.home .site-main--full-width > .elementor {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.home .site-main--full-width .e-flexbox:has(.elementor-widget-yusung-hero-slider),
.home .site-main--full-width .e-con:has(> .e-con-inner > .elementor-widget-yusung-hero-slider),
.home .site-main--full-width .e-con:has(> .elementor-widget-yusung-hero-slider) {
	--padding-top: 0px !important;
	--padding-block-start: 0px !important;
	--gap: 0px !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.home .site-main--full-width .elementor-widget-yusung-hero-slider {
	margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.yusung-hero-slider {
	position: relative;
	width: 100%;
	height: 580px;
	min-height: 580px;
	overflow: hidden;
	background: #0a1628;
}

.yusung-hero-slider__swiper {
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.yusung-hero-slider__slide {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	opacity: 1;
}

.yusung-hero-slider .swiper-wrapper {
	height: 100%;
	min-height: 100%;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */
.yusung-hero-slider__slide-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #0a1628;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.yusung-hero-slider__slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(10, 22, 40, 0.75);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Body — groups content + features with even spacing
   -------------------------------------------------------------------------- */
.yusung-hero-slider__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 2rem 1.5rem 1.5rem;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Inner layout
   -------------------------------------------------------------------------- */
.yusung-hero-slider__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 1.5rem;
	align-content: start;
	align-items: start;
	flex: 0 0 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.yusung-hero-slider__content {
	position: relative;
	z-index: 2;
	grid-column: 1 / span 5;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.yusung-hero-slider__subtitle {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: #94a3b8;
}

.yusung-hero-slider__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.yusung-hero-slider__title p {
	margin: 0;
}

.yusung-hero-slider__title-highlight {
	color: #004187;
}

.yusung-hero-slider__description {
	margin: 0 0 1.75rem;
	max-width: 100%;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.yusung-hero-slider__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.yusung-hero-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
}

.yusung-hero-slider__btn--primary {
	background-color: #004187;
	color: #ffffff;
}

.yusung-hero-slider__btn--primary:hover {
	background-color: #003066;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

.yusung-hero-slider__btn--secondary {
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.35);
}

.yusung-hero-slider__btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

.yusung-hero-slider__features {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
	flex: 0 0 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.yusung-hero-slider__feature {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	transition: transform 0.25s ease;
}

.yusung-hero-slider__feature:hover {
	transform: translateY(-2px);
}

.yusung-hero-slider__feature-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 1.125rem;
	color: #004187;
}

.yusung-hero-slider__feature-icon svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
}

.yusung-hero-slider__feature-text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.yusung-hero-slider__feature-title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

.yusung-hero-slider__feature-subtitle {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.yusung-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: #ffffff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.yusung-hero-slider__arrow:hover,
.yusung-hero-slider__arrow:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
	color: #ffffff;
	outline: none;
}

.yusung-hero-slider__arrow--prev {
	left: 1rem;
}

.yusung-hero-slider__arrow--next {
	right: 1rem;
}

.yusung-hero-slider__arrow span {
	display: block;
	margin-bottom: 3px;
	line-height: 1;
}

.yusung-hero-slider__pagination {
	position: absolute !important;
	bottom: 1.75rem !important;
	left: 0 !important;
	right: 0 !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: 0.625rem;
	z-index: 15;
	pointer-events: auto;
}

.yusung-hero-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0 !important;
	opacity: 1;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: none;
	transform: none;
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.yusung-hero-slider .swiper-pagination-bullet-active {
	background: #ffffff;
	box-shadow: 0 0 0 4px #004187;
	transform: none;
}

/* --------------------------------------------------------------------------
   Swiper fade effect only (slide effect keeps all slides visible)
   -------------------------------------------------------------------------- */
.yusung-hero-slider--effect-fade .swiper-slide {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.yusung-hero-slider--effect-fade .swiper-slide-active {
	opacity: 1;
}

/* Show first slide before Swiper initializes */
.yusung-hero-slider:not([data-yusung-hero-initialized="true"]) .swiper-slide:first-child {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.yusung-hero-slider {
		height: 500px;
		min-height: 500px;
	}

	.yusung-hero-slider__content {
		grid-column: 1 / -1;
	}

	.yusung-hero-slider__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.yusung-hero-slider {
		height: 420px;
		min-height: 420px;
	}

	.yusung-hero-slider__body {
		padding: 1.25rem 1rem 1.25rem;
		gap: 1.25rem;
	}

	.yusung-hero-slider__inner {
		padding: 0;
	}

	.yusung-hero-slider__content {
		grid-column: 1 / -1;
	}

	.yusung-hero-slider__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.yusung-hero-slider__btn {
		width: 100%;
		justify-content: center;
	}

	.yusung-hero-slider__features {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 0;
	}

	.yusung-hero-slider__arrow {
		width: 36px;
		height: 36px;
		font-size: 1.25rem;
	}

	.yusung-hero-slider__arrow--prev {
		left: 0.5rem;
	}

	.yusung-hero-slider__arrow--next {
		right: 0.5rem;
	}
}
