/* Dante CE Webinar Search
   Brand navy #032270, accent teal #004C4C, Raleway. */

.dws {
	--dws-navy: #032270;
	--dws-teal: #004C4C;
	--dws-ink: #1c2434;
	--dws-muted: #5b6478;
	--dws-line: #e3e7ef;
	--dws-surface: #ffffff;
	--dws-wash: #f5f7fb;
	--dws-radius: 14px;
	--dws-font: "Raleway", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--dws-font);
	color: var(--dws-ink);
	max-width: 1200px;
	margin-inline: auto;
	box-sizing: border-box;
}

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

.dws .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Filter bar ---------- */

.dws-bar {
	background: var(--dws-navy);
	border-radius: var(--dws-radius);
	padding: 14px;
}

.dws-bar__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: var(--dws-surface);
	border-radius: 999px;
	overflow: hidden;
	min-height: 52px;
}

.dws-field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	border-left: 1px solid var(--dws-line);
}

.dws-field:first-child {
	border-left: 0;
}

.dws-field--keyword {
	flex: 1.6 1 0;
}

.dws-field--hours {
	flex: 0.9 1 0;
}

.dws .dws-input {
	width: 100%;
	height: 52px;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: var(--dws-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--dws-ink);
	padding: 0 18px;
	margin: 0;
	box-shadow: none;
	border-radius: 0;
	line-height: 52px;
	text-overflow: ellipsis;
}

.dws .dws-input::placeholder {
	color: #98a1b5;
	font-weight: 500;
	opacity: 1;
}

.dws .dws-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23032270' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 11px;
	cursor: pointer;
}

.dws .dws-input:focus-visible {
	outline: 2px solid var(--dws-teal);
	outline-offset: -3px;
}

.dws-search {
	flex: 0 0 auto;
	width: 62px;
	border: 0;
	background: #0f7fa8;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease;
}

.dws-search:hover,
.dws-search:focus-visible {
	background: var(--dws-teal);
}

/* ---------- Toolbar ---------- */

.dws-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 4px 6px;
}

.dws-toolbar__left,
.dws-toolbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.dws-segment {
	display: inline-flex;
	background: var(--dws-wash);
	border: 1px solid var(--dws-line);
	border-radius: 999px;
	padding: 3px;
}

.dws .dws-segment__btn {
	border: 0;
	background: transparent;
	font-family: var(--dws-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--dws-muted);
	padding: 7px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.dws .dws-segment__btn.is-active {
	background: var(--dws-navy);
	color: #fff;
}

.dws-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--dws-muted);
}

.dws-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dws-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dws .dws-input--bare {
	height: 38px;
	line-height: 38px;
	padding: 0 30px 0 12px;
	border: 1px solid var(--dws-line);
	border-radius: 999px;
	background-color: #fff;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--dws-ink);
	width: auto;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23032270' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px;
}

.dws .dws-reset {
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--dws-font);
	font-size: 13px;
	font-weight: 700;
	color: var(--dws-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Results ---------- */

.dws-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
	padding-top: 14px;
	transition: opacity 0.18s ease;
}

.dws.is-loading .dws-results {
	opacity: 0.45;
}

.dws-card {
	display: flex;
	flex-direction: column;
	background: var(--dws-surface);
	border: 1px solid var(--dws-line);
	border-radius: var(--dws-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dws-card:hover {
	transform: translateY(-3px);
	border-color: #cfd6e6;
	box-shadow: 0 14px 32px rgba(3, 34, 112, 0.12);
}

.dws-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--dws-wash);
	overflow: hidden;
}

.dws-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dws-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: var(--dws-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.dws-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	flex: 1 1 auto;
}

.dws-card__when {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	padding-left: 11px;
	border-left: 3px solid var(--dws-teal);
	font-size: 13px;
}

.dws-card__date {
	font-weight: 800;
	color: var(--dws-navy);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.dws-card__time {
	color: var(--dws-muted);
	font-weight: 600;
}

.dws .dws-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.32;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--dws-navy);
}

.dws .dws-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.25s ease;
}

.dws .dws-card__title a:hover {
	background-size: 100% 2px;
}

.dws-card__meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--dws-muted);
}

.dws-card__meta--speaker {
	font-weight: 700;
	color: var(--dws-teal);
}

.dws-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
}

.dws-chips li {
	margin: 0;
}

.dws .dws-chip {
	border: 1px solid var(--dws-line);
	background: var(--dws-wash);
	color: var(--dws-muted);
	font-family: var(--dws-font);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.dws .dws-chip:hover {
	background: var(--dws-navy);
	border-color: var(--dws-navy);
	color: #fff;
}

.dws-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dws-muted);
}

.dws-prices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 4px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--dws-line);
}

.dws-prices div {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.dws-prices dt {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #8b93a6;
}

.dws-prices dd {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--dws-navy);
}

.dws-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

.dws .dws-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--dws-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dws .dws-btn--solid {
	background: var(--dws-navy);
	color: #fff;
}

.dws .dws-btn--solid:hover {
	background: var(--dws-teal);
	color: #fff;
}

.dws .dws-btn--ghost {
	background: transparent;
	color: var(--dws-navy);
	border-color: var(--dws-line);
}

.dws .dws-btn--ghost:hover {
	border-color: var(--dws-navy);
}

/* ---------- Load more and empty state ---------- */

.dws-more {
	display: flex;
	justify-content: center;
	padding: 30px 0 6px;
}

.dws .dws-btn--more {
	background: transparent;
	color: var(--dws-navy);
	border-color: var(--dws-navy);
	padding: 13px 34px;
}

.dws .dws-btn--more:hover {
	background: var(--dws-navy);
	color: #fff;
}

.dws .dws-btn--more[hidden] {
	display: none;
}

.dws-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 56px 24px;
	background: var(--dws-wash);
	border: 1px dashed #ccd4e4;
	border-radius: var(--dws-radius);
}

.dws-empty__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: var(--dws-navy);
}

.dws-empty__text {
	margin: 0 0 18px;
	font-size: 14.5px;
	color: var(--dws-muted);
}

.dws-notice {
	padding: 16px 18px;
	border-radius: 10px;
	background: #fff4f4;
	border: 1px solid #f2c8c8;
	color: #8a2626;
	font-family: var(--dws-font);
	font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.dws-bar__inner {
		flex-wrap: wrap;
		border-radius: var(--dws-radius);
		padding-bottom: 0;
	}

	.dws-field {
		flex: 1 1 46%;
		border-left: 0;
		border-bottom: 1px solid var(--dws-line);
	}

	.dws-field:nth-child(odd) {
		border-right: 1px solid var(--dws-line);
	}

	.dws-field--keyword {
		flex: 1 1 100%;
		border-right: 0;
	}

	.dws-search {
		width: 100%;
		height: 48px;
	}
}

@media (max-width: 600px) {
	.dws-field {
		flex: 1 1 100%;
		border-right: 0 !important;
	}

	.dws-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.dws-results {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dws *,
	.dws *::before,
	.dws *::after {
		transition: none !important;
	}
}

/* ---------- Filter only mode ---------- */

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

.dws--filter-only {
	margin-bottom: 8px;
}

.dws--filter-only.is-loading {
	opacity: 0.75;
}

.dws-filter-empty {
	margin-top: 8px;
	text-align: center;
	padding: 44px 24px;
	background: var(--dws-wash);
	border: 1px dashed #ccd4e4;
	border-radius: var(--dws-radius);
}

.dws-filter-empty[hidden] {
	display: none;
}

.dws-toolbar--compact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 0;
}

.dws-toolbar--compact .dws-count {
	font-size: 13.5px;
}

@media (max-width: 600px) {
	.dws-toolbar--compact {
		flex-direction: row;
		align-items: center;
		padding: 12px 4px 0;
	}
}
