/**
 * KTheme Hero Slider Styles
 * 
 * @package KthemePremium
 * @since 2.0.0
 */

/* ==========================================
   Hero Section Widget - Base Styles (from ktheme-premium.css)
   ========================================== */

.ktheme-hero-section {
	position: relative;
	overflow: hidden;
}

/* Hero Style 1 - 이미지 우측 배치 */
.ktheme-hero-style-1 {
	display: flex;
	align-items: center;
}

.ktheme-hero-style-1 .ktheme-hero-content {
	padding: 2rem 0;
	margin-bottom:30%;
}

.ktheme-hero-style-1 .ktheme-hero-slogan {
	font-size: 0.875rem;
	color: #333;
	letter-spacing: 0.05em;
}

.ktheme-hero-style-1 .ktheme-hero-title {
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ktheme-hero-style-1 .ktheme-hero-description {
	color: #585858;
	max-width: 500px;
}

/* 이미지 영역 */
.ktheme-hero-image-wrapper {
	padding: 2rem 0;
}

.ktheme-hero-main-image {
	position: relative;
	z-index: 2;
}

.ktheme-hero-main-image img {
	transition: transform 0.3s ease;
}

.ktheme-hero-secondary-image {
	bottom: 12rem;
	left: -5rem;
	max-width: 45%;
	z-index: 10;
}

.ktheme-hero-secondary-image img {
	transition: transform 0.3s ease;
}

/* 장식 요소 */
.ktheme-hero-decoration {
	position: absolute;
	top: 20%;
	left: -20%;
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, rgba(235, 69, 95, 0.1) 0%, rgba(43, 52, 103, 0.1) 100%);
	border-radius: 50%;
	z-index: 0;
}

/* 반응형 디자인 - Base */
@media (max-width: 991.98px) {
	.ktheme-hero-style-1 .ktheme-hero-content {
		padding-bottom: 1rem;
		text-align: center;
		margin-bottom:0%;
	}
	
	.ktheme-hero-style-1 .ktheme-hero-label-wrapper {
		justify-content: center;
	}
	
	.ktheme-hero-style-1 .ktheme-hero-description {
		margin-left: auto;
		margin-right: auto;
	}
	
	.ktheme-hero-style-1 .ktheme-hero-button-wrapper {
		text-align: center;
	}
	
	.ktheme-hero-secondary-image {
		display: none;
	}
	
	/* 모바일에서 메인 이미지 패딩 조정 */
	.ktheme-hero-main-image {
		padding: 2rem;
	}
	
	/* 모바일에서 장식 요소 숨김 */
	.ktheme-hero-decoration {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.ktheme-hero-style-1 .ktheme-hero-title {
		font-size: 2.5rem !important;
	}
	
	.ktheme-hero-decoration {
		width: 150px;
		height: 150px;
	}
}

@media (max-width: 575.98px) {
	.ktheme-hero-style-1 .ktheme-hero-title {
		font-size: 2rem !important;
	}
	
	.ktheme-hero-style-1 .ktheme-hero-label-wrapper {
		flex-direction: column;
		gap: 0.5rem !important;
	}
}

/* 에디터 프리뷰 */
.ktheme-hero-notice {
	background: #f0f0f0;
	border: 2px dashed #ccc;
	padding: 3rem 2rem;
	text-align: center;
	border-radius: 8px;
	margin: 2rem 0;
}

.ktheme-hero-notice p {
	margin: 0.5rem 0;
	color: #666;
}

.elementor-editor-active .ktheme-hero-section {
	min-height: 300px;
}

/* ====================================
   슬라이더 기본 구조
==================================== */
.ktheme-hero-slider {
	position: relative;
	overflow: hidden;
	min-height: 500px;
}

.ktheme-hero-slider-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.ktheme-hero-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.ktheme-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	padding: 0px 0;
}

.ktheme-hero-slide.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* ====================================
   콘텐츠 영역
==================================== */
.ktheme-hero-content {
	position: relative;
	z-index: 2;
}

/* ====================================
   미디어 영역 - 슬라이더 전용
==================================== */
.ktheme-hero-slider .ktheme-hero-media-wrapper {
	position: relative;
	z-index: 1;
	padding: 0;
}

.ktheme-hero-slider .ktheme-hero-main-image {
	position: relative;
	overflow: hidden;
	padding: 0;
}

.ktheme-hero-slider .ktheme-hero-main-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* 유튜브 비디오 */
.ktheme-hero-video-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	border-radius: 8px;
	overflow: hidden;
}

.ktheme-hero-video-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.ktheme-hero-youtube-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ktheme-hero-main-image.has-video {
	opacity: 0.3;
}

/* 보조 이미지 - 슬라이더 전용 */
.ktheme-hero-slider .ktheme-hero-secondary-image {
	position: absolute;
	bottom: 120px;
	left: -80px;
	width: 40%;
	max-width: 40%;
	z-index: 3;
}

.ktheme-hero-slider .ktheme-hero-secondary-image img {
	width: 100%;
	height: auto;
	display: block;
	
}

/* 장식 요소 - 슬라이더 전용 */
.ktheme-hero-slider .ktheme-hero-decoration {
	position: absolute;
	top: 20%;
	right: -100px;
	left: -15%;
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-secondary-rgb), 0.1));
	border-radius: 50%;
	transform: translateY(-50%);
	z-index: 0;
	animation: pulse 3s ease-in-out infinite;
}

/* ====================================
   네비게이션 화살표
==================================== */
.ktheme-hero-navigation {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	z-index: 10;
	pointer-events: none;
}

.ktheme-hero-navigation.arrows-inside {
	left: 0;
	padding: 0 20px;
}

.ktheme-hero-navigation.arrows-outside {
	left: 0;
	padding: 0;
}

.ktheme-hero-arrow {
	position: absolute;
	top: 0;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ktheme-hero-arrow:hover {
	background: var(--bs-primary);
	color: white;
	transform: scale(1.1);
}

.ktheme-hero-arrow i {
	font-size: 24px;
}

.ktheme-hero-prev {
	left: 0;
}

.ktheme-hero-next {
	right: 0;
}

.ktheme-hero-navigation.arrows-outside .ktheme-hero-prev {
	left: -70px;
}

.ktheme-hero-navigation.arrows-outside .ktheme-hero-next {
	right: -70px;
}

/* ====================================
   페이지네이션
==================================== */
.ktheme-hero-pagination {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Bullets */
.ktheme-hero-pagination.pagination-bullets {
	gap: 8px;
}

.ktheme-hero-pagination-bullet {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.ktheme-hero-pagination-bullet:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: scale(1.2);
}

.ktheme-hero-pagination-bullet.active {
	background: var(--bs-primary);
	width: 30px;
	border-radius: 6px;
}

/* Fraction */
.ktheme-hero-pagination.pagination-fraction {
	background: rgba(255, 255, 255, 0.9);
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
	color: var(--bs-dark);
}

.ktheme-hero-pagination.pagination-fraction .current {
	color: var(--bs-primary);
	font-size: 18px;
}

/* Progress Bar */
.ktheme-hero-pagination.pagination-progressbar {
	width: 200px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	overflow: hidden;
}

.ktheme-hero-progress-bar {
	width: 100%;
	height: 100%;
	position: relative;
}

.ktheme-hero-progress-fill {
	height: 100%;
	background: var(--bs-primary);
	transition: width 0.3s ease;
	width: 0;
}

/* ====================================
   반응형
==================================== */
@media (max-width: 1200px) {
	.ktheme-hero-navigation.arrows-outside {
		padding: 0 20px;
	}
	
	.ktheme-hero-navigation.arrows-outside .ktheme-hero-prev {
		left: 0;
	}
	
	.ktheme-hero-navigation.arrows-outside .ktheme-hero-next {
		right: 0;
	}
}

@media (max-width: 992px) {
	.ktheme-hero-slider {
		min-height: 400px;
	}
	
	.ktheme-hero-slide {
		padding: 60px 0;
	}
	
	.ktheme-hero-title {
		font-size: 2rem !important;
		width: 100% !important;
	}
	
	.ktheme-hero-secondary-image {
		width: 50%;
		bottom: -30px;
		left: -30px;
	}
	
	.ktheme-hero-arrow {
		width: 40px;
		height: 40px;
	}
	
	.ktheme-hero-arrow i {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.ktheme-hero-slider {
		min-height: 350px;
	}
	
	.ktheme-hero-slide {
		padding: 40px 0;
	}
	
	.ktheme-hero-content {
		margin-bottom: 30px;
	}
	
	.ktheme-hero-button-wrapper {
		flex-direction: column;
		align-items: flex-start !important;
	}
	
	.ktheme-hero-button-wrapper .btn {
		width: 100%;
	}
	
	/* Base 스타일에서 이미 display: none 처리됨 */
	
	.ktheme-hero-slider .ktheme-hero-decoration {
		width: 200px;
		height: 200px;
		right: -50px;
	}
	
	.ktheme-hero-arrow {
		width: 35px;
		height: 35px;
	}
	
	.ktheme-hero-arrow i {
		font-size: 18px;
	}
	
	.ktheme-hero-pagination {
		bottom: 20px;
	}
}

@media (max-width: 576px) {
	.ktheme-hero-slider {
		min-height: 300px;
	}
	
	.ktheme-hero-slide {
		padding: 30px 0;
	}
	
	.ktheme-hero-title {
		font-size: 1.5rem !important;
	}
	
	.ktheme-hero-navigation {
		display: none;
	}
	
	.ktheme-hero-pagination.pagination-progressbar {
		width: 150px;
	}
}

/* ====================================
   Lazy Load
==================================== */
.ktheme-hero-slide img.lazy {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ktheme-hero-slide img.lazy.loaded {
	opacity: 1;
}

/* ====================================
   Elementor 에디터 모드
==================================== */
.elementor-editor-active .ktheme-hero-slider {
	pointer-events: none;
}

.elementor-editor-active .ktheme-hero-slide {
	position: relative !important;
	opacity: 1 !important;
	visibility: visible !important;
	margin-bottom: 30px;
	border: 2px dashed #ccc;
}

.elementor-editor-active .ktheme-hero-navigation,
.elementor-editor-active .ktheme-hero-pagination {
	display: none !important;
}

