/* 5thAXIS — White Papers Listing */
.axis5th-wp {
	--axis5th-wp-accent: #DD2828;
	--axis5th-wp-active-bg: #18181B;
	--axis5th-wp-title-color: #18181B;
	--axis5th-wp-meta-color: #6C6C6C;
	--axis5th-wp-columns: 2;
	--axis5th-wp-border: #e5e5e5;
	--axis5th-wp-featured-bg: #f5f5f5;
	--axis5th-wp-featured-title-muted: #9a9a9a;

	font-family: inherit;
}

/* Latest Release banner */
.axis5th-wp-featured {
	display: flex;
	align-items: center;
	gap: 32px;
	background: var(--axis5th-wp-featured-bg);
	margin-bottom: 60px;
}

.axis5th-wp-featured__media {
	position: relative;
	flex: 0 0 220px;
	width: 220px;
	min-height: 150px;
	overflow: hidden;
	background: var(--axis5th-wp-accent);
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.axis5th-wp-featured__img {
	width: 100%;
}

.axis5th-wp-featured__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 20px 0;
}

.axis5th-wp-featured__eyebrow {
	font-family: var(--e-global-typography-57475c0-font-family), Sans-serif;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--e-global-color-secondary);
}

.axis5th-wp-featured__title {
	margin: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 48px;
	color: var(--e-global-color-accent);
}

.axis5th-wp-featured__title-accent {
	color: #6B7280;
	display: block;
}

.axis5th-wp-featured__meta {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--e-global-color-secondary);
}

.axis5th-wp-featured__sep {
	margin: 0 4px;
}

.axis5th-wp-featured__action {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding-right: 24px;
}

.axis5th-wp-featured__download {
	display: inline-flex;
	align-items: center;
	gap: 40px;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	color: var(--e-global-color-accent);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 12px 20px;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.axis5th-wp-featured__download:hover {
	background: var(--axis5th-wp-accent);
	border-color: var(--axis5th-wp-accent);
	color: #ffffff;
}

/* Sidebar + results layout */
.axis5th-wp-layout {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

/* Sidebar */
.axis5th-wp-sidebar {
	flex: 0 0 360px;
	width: 360px;
}

.axis5th-wp-sidebar__label {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	font-family: var(--e-global-typography-57475c0-font-family), Sans-serif;
	color: var( --e-global-color-secondary );
}

.axis5th-wp-search {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 20px;
}

.axis5th-wp-search__icon {
	display: flex;
	align-items: center;
	padding: 0 8px 0 12px;
	color: #999999;
	display: none;
}

.axis5th-wp-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	font-size: 13px;
	padding: 10px 4px;
	background: transparent;
	border-radius: 0 !important;
	color: var(--axis5th-wp-title-color);
}

.axis5th-wp-search__btn {
	flex: 0 0 auto;
	border: none;
	background: var(--axis5th-wp-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	padding: 0 18px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.axis5th-wp-search__btn:hover {
	opacity: 0.85;
}

.axis5th-wp-topics {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.axis5th-wp-topics__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: none;
	border: 1px solid var(--axis5th-wp-border);
	background: #ffffff;
	color: var(--axis5th-wp-title-color);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	padding: 12px 14px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/*
 * The base theme's reset turns every <button> white-on-pink on hover/focus,
 * so set both colours here (keeps the text readable on the grey hover).
 */
.axis5th-wp-topics .axis5th-wp-topics__item:hover,
.axis5th-wp-topics .axis5th-wp-topics__item:focus {
	background: #f5f5f5;
	color: var(--axis5th-wp-title-color);
	border-color: var(--axis5th-wp-border);
}

.axis5th-wp-topics .axis5th-wp-topics__item:focus {
	outline: none;
}

.axis5th-wp-topics .axis5th-wp-topics__item:focus-visible {
	outline: 2px solid var( --e-global-color-primary );
	outline-offset: 2px;
}
.axis5th-wp-topics__count {
	color: inherit;
	font-size: 12px;
}

.axis5th-wp-topics__item.is-active,
.axis5th-wp-topics .axis5th-wp-topics__item.is-active:hover,
.axis5th-wp-topics .axis5th-wp-topics__item.is-active:focus {
	background: var(--axis5th-wp-active-bg);
	color: #ffffff !important;
	border: none;
	border-bottom: 2px solid var( --e-global-color-primary );
}



/* Results */
.axis5th-wp-results {
	flex: 1 1 auto;
	min-width: 0;
}

.axis5th-wp-empty {
	font-size: 14px;
	color: var(--axis5th-wp-meta-color);
	padding: 24px 0;
}

/* Grouped sections */
.axis5th-wp-section {
	margin-bottom: 36px;
}

.axis5th-wp-section:last-child {
	margin-bottom: 0;
}

.axis5th-wp-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #E5E7EB;
	padding-bottom: 10px;
	margin-bottom: 24px;
}

.axis5th-wp-section__heading {
	margin: 0;
	font-size: 48px;
	font-weight: 700;
	text-transform: uppercase;
	color: #111111;
}

.axis5th-wp-section__heading-accent {
	color: var(--axis5th-wp-accent);
}

.axis5th-wp-section__toggle {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.axis5th-wp-section__toggle-icon,
.axis5th-wp-section__toggle-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: #111111;
	transform: translate(-50%, -50%);
}

.axis5th-wp-section__toggle-icon::before {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.axis5th-wp-section__toggle[aria-expanded='true'] .axis5th-wp-section__toggle-icon::before {
	opacity: 0;
}

.axis5th-wp-section__body {
	overflow: hidden;
	transition: grid-template-rows 0.2s ease;
}

.axis5th-wp-section.is-collapsed .axis5th-wp-section__body {
	display: none;
}

/* Card grid */
.axis5th-wp-grid {
	display: grid;
	grid-template-columns: repeat(var(--axis5th-wp-columns), 1fr);
	gap: 24px;
}

.axis5th-wp-card {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 16px;
	border: 1px solid #E4E4E7;
}

.axis5th-wp-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eeeeee;
	margin-bottom: 16px;
}

.axis5th-wp-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.axis5th-wp-card:hover .axis5th-wp-card__image img {
	transform: scale(1.03);
}

.axis5th-wp-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--e-global-color-text);;
	margin-bottom: 8px;
}

.axis5th-wp-card__sep {
	color: var(--axis5th-wp-meta-color);
}

.axis5th-wp-card__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: var(--e-global-color-accent);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Load more */
.axis5th-wp-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}

.axis5th-wp-load-more-wrap.is-hidden {
	display: none;
}

.axis5th-wp-load-more {
	border: 1px solid var(--axis5th-wp-accent);
	background: transparent;
	color: #111111;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	padding: 12px 32px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	max-width: 420px;
    width: 100%;
    display: inline-flex;
    justify-content: center;

}

.axis5th-wp-load-more:hover {
	background: var(--axis5th-wp-accent);
	color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
	.axis5th-wp-layout {
		flex-direction: column;
	}

	.axis5th-wp-sidebar {
		width: 100%;
		flex-basis: auto;
	}

	.axis5th-wp-featured {
		flex-wrap: wrap;
	}

	.axis5th-wp-featured__action {
		flex: 1 1 100%;
		padding: 0 20px 20px;
	}
}

@media (max-width: 600px) {
	.axis5th-wp-grid {
		grid-template-columns: 1fr;
	}
	.axis5th-wp-results{
		width: 100%;
	}
	.axis5th-wp-section__heading {
		font-size: 22px;
	}

	.axis5th-wp-featured {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}
	.axis5th-wp-featured__action{
		padding: 0;
	}
	.axis5th-wp-featured__media {
		width: 100%;
	}

	.axis5th-wp-featured__title {
		font-size: 22px;
	}
}
