/* ── Top Header Bar ── */
.topheader {
	background: #1e293b;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px solid #334155;
	position: relative;
	z-index: 99;
}

.topheader-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	container: layout / inline-size;
}

.topheader-left,
.topheader-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.topheader-link {
	color: #cbd5e1;
	text-decoration: none;
	transition: color 0.15s;
	white-space: nowrap;
}

.topheader-link:hover {
	color: #fff;
}

.topheader-divider {
	width: 1px;
	height: 16px;
	background: #475569;
	display: none;
}

@media (max-width: 900px) {
	.topheader-inner {
		flex-wrap: wrap;
		gap: 12px;
	}
	
	.topheader-left,
	.topheader-right {
		gap: 12px;
	}
	
	.topheader-link {
		font-size: 12px;
	}
}

.site-header {
	background: #0f172a;
	position: relative;
	z-index: 100;
	padding: 5px 0;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0px 24px;
	height: 60px;
	max-width: 1400px;
	margin: 0 auto;
	position: relative
}

#header {
	position: relative;
	width: 100%;
	transition: all 0.3s ease;
	z-index: 9999;
}

#header.fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	flex-shrink: 0
}

.logo img {
	max-height: 56px;
	border-radius: 4px;
	max-width: max-content;
}

nav.main-nav {
	display: flex;
	align-items: center;
	gap: 4px
}

.nav-btn {
	background: none;
	border: none;
	color: #cbd5e1;
	font-size: 1rem;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	transition: color .15s, background .15s;
	font-family: inherit;
	text-decoration: none
}

.nav-btn:hover,
.nav-btn.active {
	background: rgba(255, 255, 255, .08);
	color: #fff
}

.nav-btn .chevron {
	font-size: 11px;
	transition: transform .2s;
	opacity: .7
}

.nav-item {
	position: static
}

.nav-item.has-drop {
	position: static
}

.nav-item.open .chevron {
	transform: rotate(180deg)
}

/* ── Drop Panel (desktop: absolute mega, mobile: inline accordion) ── */
.drop-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
}

.drop-panel.open {
	display: block;
}

.drop-inner {
	background: #fff;
	border: 0.5px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 16px 48px rgba(0,0,0,.13);
	overflow: hidden;
	animation: fadeIn .18s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mega-inner {
	display: flex;
	padding: 16px;
	gap: 0;
	overflow-x: hidden
}

.mega-col {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border-right: 0.5px solid #f1f5f9
}

.mega-col:last-child {
	border-right: none
}

.col-head {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	padding: 3px 0 9px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 5px;
	border-bottom: 2px solid currentColor;
	white-space: nowrap
}

.col-purple .col-head { color: #6d28d9; border-color: #ede9fe }
.col-red .col-head    { color: #dc2626; border-color: #fee2e2 }
.col-blue .col-head   { color: #2563eb; border-color: #dbeafe }
.col-green .col-head  { color: #059669; border-color: #d1fae5 }
.col-amber .col-head  { color: #d97706; border-color: #fef3c7 }
.col-pink .col-head   { color: #db2777; border-color: #fce7f3 }
.col-teal .col-head   { color: #0d9488; border-color: #ccfbf1 }
.col-indigo .col-head { color: #4f46e5; border-color: #e0e7ff }

.m-link {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	padding: 5px 6px;
	border-radius: 7px;
	text-decoration: none;
	color: #374151;
	font-size: 12px;
	transition: background .12s;
	margin-bottom: 1px
}

.m-link:hover {
	background: #f9fafb;
	color: #2563eb;
	text-decoration: none;
}

.link-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
	margin-top: 1px
}

.icon-purple { background: #ede9fe; color: #6d28d9 }
.icon-red    { background: #fee2e2; color: #dc2626 }
.icon-blue   { background: #dbeafe; color: #2563eb }
.icon-green  { background: #d1fae5; color: #059669 }
.icon-amber  { background: #fef3c7; color: #d97706 }
.icon-indigo { background: #e0e7ff; color: #4f46e5 }
.icon-pink   { background: #fce7f3; color: #db2777 }
.icon-teal   { background: #ccfbf1; color: #0d9488 }

.link-title {
	display: block;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25
}

.link-desc {
	display: block;
	font-size: 10.5px;
	color: #9ca3af;
	margin-top: 1px
}

.blog-link {
	display: block;
	padding: 5px 7px;
	border-radius: 6px;
	text-decoration: none;
	color: #374151;
	font-size: 16px;
	font-weight: 500;
	transition: background .12s;
	margin-bottom: 1px;
	line-height: 1.3
}

.blog-link:hover {
	background: #f9fafb;
	color: #2563eb;
	text-decoration: none;
}

.mega-footer {
	border-top: 0.5px solid #f1f5f9;
	padding: 10px 20px;
	background: #fafafa
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none
}

.footer-link:hover { color: #1d4ed8 }

.blog-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	padding: 16px;
	gap: 0;
	overflow: hidden
}

.blog-grid .mega-col { padding: 6px 10px }

/* ── Hamburger ── */
.hamburger {
	display: none;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	flex-direction: column;
	gap: 5px;
	align-items: center;
	justify-content: center
}

.hamburger:hover { background: rgba(255,255,255,.1) }

.hamburger span {
	display: block;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s, opacity .25s
}

.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg) }

/* ── Mobile ── */
@media(max-width:900px) {
	.hamburger { display: flex }

	nav.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #1e293b;
		z-index: 9999;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0 16px;
		max-height: 80vh;
		overflow-y: auto
	}

	nav.main-nav.open { display: flex }

	.nav-item > .nav-btn {
		color: #e2e8f0;
		padding: 12px 20px;
		border-radius: 0;
		width: 100%;
		border-bottom: 0.5px solid rgba(255,255,255,.06)
	}

	.nav-item > .nav-btn:hover { background: rgba(255,255,255,.05) }

	/* accordion panels */
	.drop-panel {
		position: static;
		pointer-events: auto
	}

	.drop-inner {
		background: #0f172a;
		border: none;
		border-radius: 0;
		box-shadow: none;
		animation: none;
		max-height: 60vh;
		overflow-y: auto
	}

	.mega-inner,
	.blog-grid {
		display: flex;
		flex-direction: column;
		padding: 0
	}

	.mega-col {
		border-right: none;
		border-bottom: 0.5px solid rgba(255,255,255,.06);
		padding: 10px 20px
	}

	.col-head {
		color: #818cf8 !important;
		border-color: rgba(129,140,248,.3) !important;
	}

	.m-link {color: #cbd5e1;padding: 10px 5px;font-size: 16px;}
	.m-link:hover { background: transparent; color: #fff }
	.link-desc { display: none }

	.blog-link {
		color: #cbd5e1;
		font-size: 16px;
		padding: 10px;
		border-radius: 0;
		border-bottom: 0.5px solid rgba(255,255,255,.04)
	}

	.blog-link:hover { background: transparent; color: #fff }

	.mega-footer {
		background: #0f172a;
		border-top: 0.5px solid rgba(255,255,255,.08)
	}

	.footer-link { color: #818cf8 }
}

@media(min-width:901px) {
	.hamburger { display: none }
}

.ic-breadcrumb {
	border-top: 1px solid #1e293b;
}

@media(max-width:480px) {
	.logo-text { display: none }
}

/* ── Search Modal ── */
.search-toggle {
	position: relative;
	cursor: pointer;
}

.search-toggle:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, .08) !important;
}

.search-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	animation: fadeIn 0.2s ease;
	pointer-events: none;
}

.search-modal.open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 80px;
	pointer-events: auto;
}

.search-modal-content {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	width: 90%;
	max-width: 600px;
	max-height: 70vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: slideDown 0.3s ease;
	pointer-events: auto;
}

.search-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.search-modal-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 16px;
	font-family: inherit;
	padding: 8px 0;
	background: transparent;
}

.search-modal-input::placeholder {
	color: #9ca3af;
}

.search-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	font-size: 20px;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.search-close:hover {
	background: #e5e7eb;
	color: #1f2937;
}

.search-modal-results {
	flex: 1;
	overflow-y: auto;
	padding: 12px 0;
}

.search-result-item {
	padding: 12px 20px;
	cursor: pointer;
	transition: background 0.2s;
	border-bottom: 1px solid #f3f4f6;
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	pointer-events: auto;
}

.search-result-item:hover {
	background: #f9fafb;
}

.search-result-icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	background: #f0f9ff;
	color: #0369a1;
}

.search-result-content {
	flex: 1;
	min-width: 0;
}

.search-result-title {
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 2px;
}

.search-result-desc {
	font-size: 13px;
	color: #6b7280;
}

.search-result-category {
	display: inline-block;
	font-size: 11px;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 6px;
	border-radius: 3px;
	margin-top: 4px;
}

.search-no-results {
	padding: 40px 20px;
	text-align: center;
	color: #6b7280;
}

.search-no-results-icon {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.5;
}

.search-modal-footer {
	padding: 12px 20px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	text-align: center;
}

.view-all-search {
	color: #2563eb;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s;
}

.view-all-search:hover {
	color: #1d4ed8;
}

@media(max-width:900px) {
	.search-modal.open {
		padding-top: 20px;
	}

	.search-modal-content {
		width: 95%;
		max-height: 80vh;
	}
}
