/* Full-bleed layout on spotlight page */
body.page-template-ip-spotlight-v2 #inner-page-wrapper,
body.page-template-ip-spotlight-v2 #inner-page-wrapper > .container {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

body.page-template-ip-spotlight-v2 main {
	overflow-x: hidden;
}

.ip-spotlight {
	--spotlight-bg: #0d1117;
	--spotlight-border: #1e2a35;
	--spotlight-text: #e8e0d5;
	--spotlight-muted: #8a9aaa;
	--spotlight-accent: #4eb8d4;
	font-family: Georgia, "Times New Roman", serif;
	background: var(--spotlight-bg);
	color: var(--spotlight-text);
	min-height: 60vh;
}

.ip-spotlight *,
.ip-spotlight *::before,
.ip-spotlight *::after {
	box-sizing: border-box;
}

/* Hero */
.ip-spotlight-hero {
	position: relative;
	/* overflow: hidden; */
	text-align: center;
	padding: 60px 32px 48px;
	background: linear-gradient(160deg, #0d1117 0%, #0a1f2e 50%, #0d1117 100%);
}

.ip-spotlight-hero__glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(78, 184, 212, 0.04) 0%, transparent 60%),
		radial-gradient(circle at 80% 20%, rgba(78, 184, 212, 0.03) 0%, transparent 50%);
}

.ip-spotlight-hero > *:not(.ip-spotlight-hero__glow) {
	position: relative;
	/* z-index: 1; */
}

.ip-spotlight-eyebrow {
	margin: 0 0 16px;
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	letter-spacing: 4px;
	color: var(--spotlight-accent);
}

.ip-spotlight-title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: normal;
	letter-spacing: -0.5px;
	color: #f0e8dd;
}

.ip-spotlight-lead {
	max-width: 520px;
	margin: 0 auto 36px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--spotlight-muted);
}

/* Search */
.ip-spotlight-search-wrap {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
}

.ip-spotlight-search {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: #111820;
	border: 1px solid var(--spotlight-border);
	border-radius: 4px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ip-spotlight-search.is-active {
	border-color: var(--spotlight-accent);
	box-shadow: 0 0 0 3px rgba(78, 184, 212, 0.08);
}

.ip-spotlight-search__icon {
	opacity: 0.5;
	font-size: 16px;
	line-height: 1;
}

.ip-spotlight-search__input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--spotlight-text);
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
}

.ip-spotlight-search__input::placeholder {
	color: #5a7080;
}

.ip-spotlight-search__clear {
	border: 0;
	background: transparent;
	color: var(--spotlight-text);
	opacity: 0.4;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.ip-spotlight-search__clear:hover {
	opacity: 0.8;
}

.ip-spotlight-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	overflow: hidden;
	background: #111820;
	border: 1px solid var(--spotlight-border);
	border-radius: 4px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.ip-spotlight-search-dropdown__label {
	padding: 10px 16px;
	border-bottom: 1px solid #1a2530;
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 2px;
	color: var(--spotlight-accent);
}

.ip-spotlight-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid #141c24;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s;
}

.ip-spotlight-search-result:hover {
	background: #1a2530;
}

.ip-spotlight-search-result--article {
	text-decoration: none;
	color: inherit;
}

.ip-spotlight-search-result__icon {
	font-size: 20px;
	line-height: 1;
}

.ip-spotlight-search-result__label {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: var(--spotlight-text);
}

.ip-spotlight-search-result__topics {
	margin-top: 2px;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	color: #5a7080;
}

.ip-spotlight-search-result__action {
	margin-left: auto;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
}

.ip-spotlight-search-empty {
	padding: 20px;
	text-align: center;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #4a6070;
}

/* Quick tags */
.ip-spotlight-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.ip-spotlight-tag {
	padding: 5px 14px;
	border: 1px solid rgba(78, 184, 212, 0.2);
	border-radius: 20px;
	background: rgba(78, 184, 212, 0.08);
	color: var(--spotlight-accent);
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s;
}

.ip-spotlight-tag:hover {
	background: rgba(78, 184, 212, 0.15);
}

/* Main content */
.ip-spotlight-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 32px 64px;
}

.ip-spotlight-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.ip-spotlight-divider::before,
.ip-spotlight-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--spotlight-border);
}

.ip-spotlight-divider span {
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 3px;
	color: #4a6070;
}

/* Category cards */
.ip-spotlight-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	margin-bottom: 48px;
}

.ip-spotlight-cat-card {
	padding: 24px;
	border: 1px solid var(--spotlight-border);
	border-radius: 6px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 40%, transparent), color-mix(in srgb, var(--cat-color) 20%, transparent));
	cursor: pointer;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ip-spotlight-cat-card:hover,
.ip-spotlight-cat-card.is-hovered {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--cat-accent) 40%, transparent);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 80%, transparent), color-mix(in srgb, var(--cat-color) 55%, transparent));
}

.ip-spotlight-cat-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ip-spotlight-cat-card__icon {
	font-size: 28px;
	line-height: 1;
}

.ip-spotlight-cat-card__count {
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--cat-accent);
}

.ip-spotlight-cat-card__title {
	margin: 0 0 10px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #f0e8dd;
}

.ip-spotlight-cat-card__desc {
	margin: 0 0 16px;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: var(--spotlight-muted);
}

.ip-spotlight-cat-card__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ip-spotlight-cat-card__topics span {
	padding: 3px 10px;
	border: 1px solid color-mix(in srgb, var(--cat-accent) 20%, transparent);
	border-radius: 2px;
	background: color-mix(in srgb, var(--cat-accent) 9%, transparent);
	color: var(--cat-accent);
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
}

/* Category detail */
.ip-spotlight-back-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.ip-spotlight-back {
	border: 0;
	background: transparent;
	color: var(--spotlight-accent);
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
}

.ip-spotlight-category-detail__panel {
	margin-bottom: 28px;
	padding: 32px;
	border: 1px solid color-mix(in srgb, var(--cat-accent) 27%, transparent);
	border-radius: 6px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 55%, transparent), color-mix(in srgb, var(--cat-color) 27%, transparent));
}

.ip-spotlight-category-detail__icon {
	margin-bottom: 12px;
	font-size: 36px;
	line-height: 1;
}

.ip-spotlight-category-detail__title {
	margin: 0 0 12px;
	font-family: "Open Sans", sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #f0e8dd;
}

.ip-spotlight-category-detail__desc {
	max-width: 600px;
	margin: 0 0 20px;
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #9aaabb;
}

.ip-spotlight-category-detail__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ip-spotlight-category-detail__topic {
	padding: 5px 12px;
	border: 1px solid color-mix(in srgb, var(--cat-accent) 27%, transparent);
	border-radius: 3px;
	background: color-mix(in srgb, var(--cat-accent) 12%, transparent);
	color: var(--cat-accent);
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	cursor: pointer;
}

/* Articles */
.ip-spotlight-articles-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.ip-spotlight-articles-label {
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 3px;
	color: #4a6070;
}

.ip-spotlight-articles-count {
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	color: #3a5060;
}

.ip-spotlight-articles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	margin-bottom: 48px;
}

.ip-spotlight-article {
	display: block;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--spotlight-border);
	border-left: 3px solid var(--article-accent);
	border-radius: 4px;
	background: #111820;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.ip-spotlight-article__image {
	display: block;
	overflow: hidden;
	background: #0a1018;
}

.ip-spotlight-article__image img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.ip-spotlight-article__meta,
.ip-spotlight-article__title {
	padding-left: 20px;
	padding-right: 20px;
}

.ip-spotlight-article__meta {
	padding-top: 20px;
}

.ip-spotlight-article__title {
	padding-bottom: 20px;
}

.ip-spotlight-article:hover {
	background: #141d26;
	border-color: #2a3a4a;
	border-left-color: var(--article-accent);
}

.ip-spotlight-article__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 10px;
}

.ip-spotlight-article__cat {
	padding: 3px 8px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--article-accent) 9%, transparent);
	color: var(--article-accent);
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 1px;
}

.ip-spotlight-article__lang {
	flex-shrink: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	color: #3a5060;
}

.ip-spotlight-article__title {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #c8c0b5;
}

.ip-spotlight-empty {
	grid-column: 1 / -1;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #5a7080;
}

.is-hidden {
	display: none !important;
}

.is-filtered-out {
	display: none !important;
}

@media (max-width: 640px) {
	.ip-spotlight-hero,
	.ip-spotlight-main {
		padding-left: 20px;
		padding-right: 20px;
	}
}
