/* Feature Styles: Header Smart Expandable Search & News Recommendations — Nouva Edition (FSD Layer: features/header-search) */
.header-smart-search {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
}

.header-expandable-search {
	position: absolute;
	right: 0;
	top: 0;
	height: 44px;
	width: 44px;
	display: inline-flex;
	align-items: center;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
	            background-color 0.25s ease,
	            border-color 0.25s ease,
	            box-shadow 0.25s ease;
	padding: 0 5px;
	color: #FFFFFF;
	z-index: 40;
	overflow: hidden;
	box-sizing: border-box;
	white-space: nowrap;
}

.header-expandable-search:hover {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.09);
}

.header-expandable-search.is-open {
	width: 280px;
	padding: 0 10px 0 6px;
	background: rgba(0, 26, 50, 0.98);
	border-color: var(--sand);
	box-shadow: 0 0 0 3px rgba(212, 160, 62, 0.2), 0 12px 32px rgba(0, 8, 20, 0.55);
}

@media (min-width: 1200px) {
	.header-expandable-search.is-open {
		width: 320px;
	}
}

.header-search-toggle-btn {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	border: none;
	background: transparent;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.2s ease;
}

.header-search-toggle-btn:hover {
	transform: scale(1.06);
	color: var(--sand);
}

.header-search-field-wrap {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: opacity 0.22s ease;
	margin-left: 4px;
	white-space: nowrap;
}

.header-expandable-search.is-open .header-search-field-wrap {
	opacity: 1;
}

.header-search-inline-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: none;
	background: transparent;
	color: #FFFFFF;
	font-size: 0.84rem;
	font-weight: 500;
	outline: none;
	padding: 4px 6px;
}

.header-search-inline-input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.header-search-inline-input::-webkit-search-decoration,
.header-search-inline-input::-webkit-search-cancel-button,
.header-search-inline-input::-webkit-search-results-button,
.header-search-inline-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.header-search-close-btn {
	border: none;
	background: transparent;
	color: inherit;
	opacity: 0.75;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 4px;
	line-height: 1;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.header-search-close-btn:hover {
	opacity: 1;
	color: var(--sand);
}

/* Smart Search Dropdown Panel */
.header-search-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(470px, calc(100vw - 2rem));
	background: rgba(2, 22, 43, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	box-shadow: 0 28px 60px -12px rgba(0, 6, 16, 0.85), 0 0 0 1px rgba(212, 160, 62, 0.15);
	color: #FFFFFF;
	z-index: 90;
	overflow: hidden;
	animation: fcSearchDropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-dropdown[hidden] {
	display: none !important;
}

@keyframes fcSearchDropdownIn {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Quick Topic Chips Bar */
.header-search-dropdown__tags-bar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-dropdown__tags-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.55);
}

.header-search-dropdown__tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.header-search-tag-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.74rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s ease;
}

.header-search-tag-chip:hover,
.header-search-tag-chip.is-active {
	background: rgba(212, 160, 62, 0.18);
	border-color: var(--sand);
	color: #F4C97A;
}

/* Scrollable Results Body */
.header-search-dropdown__body {
	max-height: min(64vh, 430px);
	overflow-y: auto;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.header-search-dropdown__body::-webkit-scrollbar {
	width: 6px;
}

.header-search-dropdown__body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

.header-search-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.header-search-section--secondary {
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
}

.header-search-section__title {
	font-size: 0.71rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #D4A03E;
}

.header-search-section__count {
	font-size: 0.68rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
}

/* Recommended & Matched News Cards */
.header-search-news-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.header-search-news-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.025);
	text-decoration: none;
	color: #FFFFFF;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-search-news-item:hover,
.header-search-news-item.is-active {
	background: rgba(0, 74, 141, 0.35);
	border-color: rgba(212, 160, 62, 0.45);
	transform: translateX(2px);
}

.header-search-news-item__media {
	width: 68px;
	height: 54px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-search-news-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header-search-news-item__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.header-search-news-item__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.header-search-news-item__badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 6px;
	background: rgba(212, 160, 62, 0.16);
	color: #F4C97A;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.header-search-news-item__date {
	font-size: 0.67rem;
	color: rgba(255, 255, 255, 0.52);
}

.header-search-news-item__title {
	font-size: 0.83rem;
	font-weight: 700;
	line-height: 1.32;
	color: #FFFFFF;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.header-search-news-item__excerpt {
	font-size: 0.73rem;
	line-height: 1.38;
	color: rgba(255, 255, 255, 0.66);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.header-search-news-item__arrow {
	color: rgba(255, 255, 255, 0.4);
	align-self: center;
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.2s ease;
}

.header-search-news-item:hover .header-search-news-item__arrow,
.header-search-news-item.is-active .header-search-news-item__arrow {
	color: var(--sand);
	transform: translateX(3px);
}

/* Quick Services / FAQ Items */
.header-search-quick-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.header-search-quick-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
	text-decoration: none;
	color: #FFFFFF;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.header-search-quick-item:hover,
.header-search-quick-item.is-active {
	background: rgba(0, 74, 141, 0.32);
	border-color: rgba(212, 160, 62, 0.4);
}

.header-search-quick-item__main {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.header-search-quick-item__type {
	font-size: 0.64rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 5px;
	background: rgba(0, 74, 141, 0.45);
	color: #99CAFF;
	flex-shrink: 0;
}

.header-search-quick-item__title {
	font-size: 0.79rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-search-quick-item__cta {
	font-size: 0.71rem;
	font-weight: 700;
	color: var(--sand);
	flex-shrink: 0;
}

/* Empty State & Highlight Mark */
.header-search-empty {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(212, 160, 62, 0.08);
	border: 1px dashed rgba(212, 160, 62, 0.35);
}

.header-search-empty__title {
	font-size: 0.8rem;
	color: #FFFFFF;
	margin: 0 0 3px;
}

.header-search-empty__desc {
	font-size: 0.73rem;
	color: rgba(255, 255, 255, 0.68);
	margin: 0;
}

.header-search-highlight {
	background: rgba(212, 160, 62, 0.32);
	color: #FFE4A3;
	border-radius: 3px;
	padding: 0 2px;
	font-weight: 700;
}

/* Dropdown Footer */
.header-search-dropdown__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
	background: rgba(0, 12, 24, 0.65);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.72rem;
}

.header-search-dropdown__hint {
	color: rgba(255, 255, 255, 0.5);
	display: none;
	align-items: center;
	gap: 4px;
}

@media (min-width: 640px) {
	.header-search-dropdown__hint {
		display: inline-flex;
	}
}

.header-search-dropdown__hint kbd {
	display: inline-block;
	padding: 1px 5px;
	font-size: 0.66rem;
	font-family: inherit;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.85);
}

.header-search-dropdown__all-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #F4C97A;
	font-weight: 700;
	text-decoration: none;
	margin-left: auto;
	transition: color 0.18s ease;
}

.header-search-dropdown__all-link:hover {
	color: #FFFFFF;
}
