


.kso-sticky.sticked .header {
	background-color: #fff;
}
.kso-sticky.sticked .header .main-menu > ul > li > a {
	color: #111;
}

.header {
	position: relative;
	left: 0;
	top: 0;
	width: 100%;
	transition: all .3s ease;
	z-index: 10;
}
.header.absolute {
	position: absolute;
}
.header .logo img {
	vertical-align: middle;
}
.header .main-menu .head {
	display: none;
}

.header .main-menu > ul > li {
	display: inline-block;
}

.header .main-menu .dropdown {
	position: relative;
}
.header .main-menu a {
	display: block;
	color: #fff;
}
.header.relative .main-menu a {
	color: #222;
}
.header .main-menu > ul > li > a {
	padding: 24px 0;
	padding-right: 1rem;
	padding-left: 1rem;	
	transition: all .3s ease;
}

.header .main-menu i {
	position: absolute;
	top: calc( 50% - 5px );
	pointer-events: none;
	user-select: none;
	font-size: 12px;
	color: #333;
}
.header .main-menu.open i {
    font-size: 1rem;	
	color: #333;
}	
.header .main-menu .sub-menu {
	position: absolute;
	top: 105%;
	left: 0;
	min-width: 200px;
	padding: 15px 0;
	background-color: #fff;
	box-shadow: 0 3px 5px rgba(0, 0, 0, .1);
	transition: all .3s ease;
	visibility: hidden;
	opacity: 0;
	z-index: 1;
}
.header .main-menu .sub-menu-right {
	left: 100%;
	top: 0;
}
/*.header .main-menu .gnb-nav > li:last-child ul,
.header .main-menu .sub-menu-left {
	left: auto;
	right: 100%;
	top: 0;
}*/
.header .main-menu li:hover > .sub-menu {
	top: 100%;
	visibility: visible;
	opacity: 1;	
}
.header .main-menu .sub-menu li .sub-menu {
	top: 100%;
}
.header .main-menu .sub-menu li a {
	color: #333;
}
.header .main-menu .sub-menu li:hover .sub-menu {
	top: 0;
}	
.header .main-menu .sub-menu a {
	padding: 6px 24px;
}
.header .main-menu .sub-menu .dropdwon > a {
	padding-right: 34px;
}
.header .main-menu .sub-menu i {
	right: 24px;
	transform: rotate(-90deg);
}

.header-right {
	display: flex;
	justify-content: flex-end;
	margin-left: auto;
}
.header-right .icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	width: auto;
	height: 40px ;
	font-size: 1rem;
	color: #fff;	
	border: none;
	border-radius: 20px;
}
.header-right .open-menu-btn {
	display: none;
}



@media(min-width: 992px) {
	.kso-sticky.absolute {
		position: absolute;
		width: 100%;
	}
	.header-right {
		min-width: 100px;
	}
}
@media(min-width: 1200px) {
	.header .main-menu > ul > li > a {	
		font-size: 20px;
		font-weight: 500;
		padding: 30px 1.5rem;
	}
	.kso-sticky.sticked .header .main-menu > ul > li > a {	
		padding: 24px 1.5rem;
	}
}


@media(max-width: 991px) {
	.header .main-menu {
		position: fixed;
		right: 0;
		top: 0;
		padding: 15px 0 30px;
		width: 330px;
		height: 100%;
		background-color: #fff;
		box-shadow: 0 -30px 50px rgba(0, 0, 0, .2);
		overflow-y: auto;
		transform: translateX(110%);
		z-index: 1;
	}
	.header .main-menu.open {
		transform: none;
	}
	.header .main-menu .head {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		margin-bottom: 25px;
	}
	.header .main-menu .close-menu-btn {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-right: 1rem;
		width: 35px;
		height: 35px;
		background-color: transparent;
		border: none;
		cursor: pointer;
	}
	.header .main-menu .close-menu-btn:before,
	.header .main-menu .close-menu-btn:after {
		content: '';
		position: absolute;
		width: 60%;
		height: 2px;
		background-color: #333;
	}
	.header .main-menu .close-menu-btn:before {
		transform: rotate(45deg);
	}
	.header .main-menu .close-menu-btn:after {
		transform: rotate(-45deg);
	}
	.header .main-menu > ul > li {
		display: block;
	}
	.header .main-menu > ul > li:not(:last-child) {
		margin-right: 0;
	}
	.header .main-menu > ul > li > a {
		position: relative;
		padding: 12px 25px;
		font-size: 18px;
		font-weight: 600;
	}
	.header .main-menu > ul > li > a:before {
		content: '';
		position: absolute;
		left: 20px;
		right: 20px;
		bottom: 0;
		width: calc( 100% - 50px );
		border-bottom: 1px solid #eee;
	}
	/*.kso-sticky.sticked .header .main-menu > ul > li > a {
		color: #fff;
	}*/
	.header .main-menu > ul > .dropdown > a {
		padding-right: 34px;
	}
	.header .main-menu i {
		height: 50px;
		width: 50px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		pointer-events: auto;
		cursor: pointer;
		top: 0;
		right: 20px;
		color: #333;
	}
	.header .main-menu .dropdown.active > i {
		transform: rotate(180deg);
	}
	.header .main-menu .sub-menu {
		display: none;
		position: static;
		opacity: 1;
		transform: none;
		visibility: visible;
		padding: 0;
		transition: none;
		box-shadow: none;
		width: 100%;
		background-color: rgba(255, 255, 255, .1);
	}
	.header .main-menu .dropdown.active > .sub-menu {
		position: relative;
		display: block;
		padding: 10px 0;
	}
	.header .main-menu .dropdown.active > .sub-menu:after {
		content: '';
		position: absolute;
		left: 20px;
		right: 20px;
		bottom: 0;
		width: calc( 100% - 50px );
		border-bottom: 1px solid #eee;
	}
	.header .main-menu .sub-menu li a {
		position: relative;
		padding: 10px 25px 10px 40px;
		font-size: 17px;
	}
	.header .main-menu .sub-menu li:last-child {
		border: none;
	}
	.header .main-menu .sub-menu .sub-menu a {
		padding-left: 45px;
	}

	.header .main-menu .sub-menu span {
		background-image: none;
	}
	.header .main-menu .sub-menu i {
		transform: none;
		right: 0;
	}

	.header .open-menu-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		position: relative;
		background-color: transparent;
		border: none;
		cursor: pointer;
	}
	.header .open-menu-btn .line {
		position: absolute;
		width: 20px;
		height: 2px;
		background-color: rgba(0, 0, 0, 1);
	}
	.header .open-menu-btn .line-1 {
		transform: translateY(-6px);
	}
	.header .open-menu-btn .line-3 {
		transform: translateY(6px);
	}

	.header-right .icon-btn {
		padding: 0 13px;    
		font-size: .9rem;
	}	



}





























/* ===== mobile menu refinement ===== */
@media(max-width: 991px) {
	.header { z-index: 100; }
	.header .{$li->header_container},
	.header > div { position: relative; z-index: 2; }
	.header .main-menu {
		left: auto;
		right: 0;
		width: min(86vw, 360px);
		height: 100dvh;
		padding: 0;
		border-left: 1px solid #dfe5ec;
		box-shadow: -18px 0 40px rgba(15, 23, 42, .16);
		transition: transform .38s ease;
		overflow-x: hidden;
		overflow-y: auto;
		background: linear-gradient(180deg, #f8fbff 0%, #ffffff 14%, #ffffff 100%);
		z-index: 1200;
	}
	.header .main-menu .menu-overlay {
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, .42);
		backdrop-filter: blur(3px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
		pointer-events: none;
		z-index: -1;
	}
	.header .main-menu.open .menu-overlay {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	.header .main-menu .head {
		display: block;
		position: sticky;
		top: 0;
		margin-bottom: 0;
		padding: 14px 16px;
		background: rgba(255,255,255,.94);
		backdrop-filter: blur(12px);
		border-bottom: 1px solid #e9edf3;
		z-index: 3;
	}
	.header .main-menu .menu-head-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.header .main-menu .menu-title {
		font-size: 18px;
		font-weight: 800;
		letter-spacing: -.02em;
		color: #0f172a;
	}
	.header .main-menu .close-menu-btn {
		margin-right: 0;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #f1f5f9;
	}
	.header .main-menu .close-menu-btn:hover { background: #e2e8f0; }
	.header .main-menu > ul {
		padding: 14px 14px 28px !important;
	}
	.header .main-menu > ul > li {
		display: block;
		margin-bottom: 10px;
		border: 1px solid #e6ebf2;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
		overflow: hidden;
	}
	.header .main-menu .dropdown {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}
	.header .main-menu > ul > li > a {
		flex: 1 1 calc(100% - 56px);
		padding: 17px 18px;
		font-size: 19px;
		font-weight: 800;
		line-height: 1.35;
		color: #0f172a;
	}
	.header .main-menu > ul > li > a:before { display: none; }
	.header .main-menu > ul > .dropdown > a { padding-right: 14px; }
	.header .main-menu i {
		position: static;
		flex: 0 0 56px;
		width: 56px;
		height: auto;
		min-height: 58px;
		align-self: stretch;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
		border-left: 1px solid #eef2f7;
		background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
		color: #475569;
		font-size: 14px;
		cursor: pointer;
	}
	.header .main-menu .dropdown.active > i {
		transform: rotate(180deg);
		background: #eff6ff;
		color: #2563eb;
	}
	.header .main-menu .sub-menu {
		flex: 0 0 100%;
		display: none;
		padding: 0 12px 12px;
		background: transparent;
	}
	.header .main-menu .dropdown.active > .sub-menu {
		display: block;
		padding-top: 0;
	}
	.header .main-menu .dropdown.active > .sub-menu:after { display: none; }
	.header .main-menu .sub-menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		margin-top: 8px;
		border: 1px solid #edf1f6;
		border-radius: 12px;
		background: #f8fafc;
		overflow: hidden;
	}
	.header .main-menu .sub-menu li a {
		flex: 1 1 calc(100% - 48px);
		padding: 13px 14px 13px 16px;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.45;
		color: #1e293b;
		word-break: keep-all;
	}
	.header .main-menu .sub-menu .sub-menu a {
		padding-left: 18px;
		font-size: 14px;
		font-weight: 500;
		color: #475569;
	}
	.header .main-menu .sub-menu i {
		flex: 0 0 48px;
		min-height: 48px;
		border-left: 1px solid #e7edf4;
		background: #f1f5f9;
		right: auto;
		transform: none;
	}
	.header .main-menu .sub-menu .dropdown.active > i {
		background: #e0f2fe;
		color: #0369a1;
	}
	.header .main-menu .sub-menu .sub-menu {
		padding: 2px 8px 10px 8px;
	}
	.header .main-menu .sub-menu .sub-menu > li {
		margin-top: 6px;
		border-radius: 10px;
		background: #fff;
	}
	.header .open-menu-btn {
		border-radius: 12px;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
	}
	.header .open-menu-btn .line { background-color: #1e293b; }
}

/* ===== KSO FIX: desktop submenu width + clear hover state ===== */
@media (min-width: 992px) {
  .header .main-menu .sub-menu {
    min-width: 280px !important;
    width: 280px !important;
    padding: 10px 0 !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
  }

  .header .main-menu .sub-menu li {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .header .main-menu .sub-menu a,
  .header .main-menu .sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease !important;
  }

  .header .main-menu .sub-menu > li + li > a {
    border-top: 1px solid #f1f5f9 !important;
  }

  .header .main-menu .sub-menu li:hover > a,
  .header .main-menu .sub-menu li > a:hover,
  .header .main-menu .sub-menu li > a:focus {
    background-color: #e5e7eb !important;
    color: #0f172a !important;
    padding-left: 30px !important;
  }

  .header .main-menu .sub-menu-right {
    left: 100% !important;
    top: 0 !important;
  }
}
