.aeon-archive-search {
	padding: 32px 15px 48px;
}

.aeon-archive-search-inner {
	max-width: 980px;
	margin: 0 auto;
}

.aeon-search-form-card {
	background: #fff;
	/* border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); */
	margin-bottom: 26px;
	padding: 34px 42px;
}
.aeon-search-hero{
	text-align: center;
}
.aeon-search-title {
	font-family: "Sanomat", serif;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.08;
	margin: 0 0 8px;
}

.aeon-search-description {
	color: #666;
	margin: 0 0 20px;
}

.aeon-search-primary-field {
	display: flex;
	width: 70%;
    margin: 0 auto 28px;
}

.aeon-search-primary-field input {
	border: 1px solid #dcdcdc;
	border-radius: 4px 0 0 4px;
	flex: 1;
	min-height: 48px;
	padding: 0 16px;
}

.aeon-search-primary-field input::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.aeon-search-icon-submit,
.aeon-search-submit {
	background: #72003d;
	border: 0;
	font-size: 16px;
	color: #fff;
	cursor: pointer;
}

.aeon-search-icon-submit {
	border-radius: 0 4px 4px 0;
	min-width: 56px;
}

.aeon-search-filters {
	position: relative;
	/* border: 1px solid #e7e2e5; 
	border-radius: 6px;*/
	margin-top: 8px;
	padding: 26px 18px 18px;
}

.aeon-search-filters[hidden] {
	display: none;
}

.aeon-search-filter-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	display: inline-flex;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	gap: 8px;
	justify-content: center;
	left: 50%;
	margin: 0 0 14px;
	min-height: 42px;
	padding: 0 18px;
	position: relative;
	transform: translateX(-50%);
}

.aeon-search-filter-toggle[aria-expanded="true"] {
	background: #f7f4f6;
	border-color: #e4d9df;
}

.aeon-search-filters h2 {
	background: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 12px 0;
	text-transform: uppercase;
}

.aeon-search-filter-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 14px;
}

.aeon-search-filter-grid--dates {
	grid-template-columns: 1fr 1fr 1.7fr;
}

.aeon-search-field label {
	font-family: "Roboto", sans-serif;
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 5px;
}

.aeon-search-field input,
.aeon-search-field select {
	font-family: "Roboto", sans-serif;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-height: 42px;
	padding: 0 12px;
	width: 100%;
}

.aeon-search-select-wrap {
	position: relative;
}

.aeon-search-select-wrap i {
	color: #3f3f3f;
	font-size: 15px;
	left: 15px;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
}

.aeon-search-select-wrap select {
	padding-left: 42px;
}

.aeon-search-presets {
	align-items: flex-end;
	display: flex;
	gap: 8px;
}

.aeon-search-presets button,
.aeon-search-clear {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	min-height: 42px;
	padding: 0 14px;
	text-decoration: none;
}

.aeon-search-filters-tip {
	width: 64%;
	max-width: 560px;
	align-items: flex-start;
	background: #f7f7f7;
	border-radius: 5px;
	color: #555;
	display: flex;
	gap: 10px;
	margin: 0 auto 30px;
	padding: 12px 14px;
}

.aeon-search-filters-tip p {
	margin: 0;
	font-size: 14px;
}

.aeon-search-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.aeon-search-submit,
.aeon-search-clear {
	font-size: 14px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
	align-items: center;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
}

.aeon-search-submit {
	border-radius: 4px;
}

.aeon-search-results-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.aeon-search-results-header h2 {
	font-family: "Roboto", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.aeon-search-results-header p {
	color: #555;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	margin: 0;
}

.aeon-search-active-filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.aeon-search-clear-all,
.aeon-search-chip {
	background: #f7f4f6;
	border: 1px solid #e4d9df;
	border-radius: 4px;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	display: inline-flex;
	gap: 8px;
	padding: 7px 10px;
	text-decoration: none;
}

.aeon-search-clear-all {
	color: #72003d;
	font-weight: 400;
	margin-left: auto;
}

.aeon-search-results-list {
	display: grid;
	gap: 10px;
}

.aeon-search-result-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 7px;
	display: grid;
	gap: 18px;
	grid-template-columns: 150px minmax(0, 1fr) 150px;
	grid-template-areas: "meta body thumb";
	padding: 12px;
}

.aeon-search-result-thumb {
	display: block;
	grid-area: thumb;
	height: 88px;
	overflow: hidden;
	width: 150px;
}

.aeon-search-result-thumb img {
	border-radius: 0;
	display: block;
	height: 100%;
	max-width: 150px;
	object-fit: cover;
	width: 100%;
}

.aeon-search-result-category {
	display: none;
    font-family: "Libre Franklin", sans-serif;
    font-weight: 700;
    color: #222;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    margin-left: 14px;
}
.aeon-search-result-category::before {
    position: absolute;
    content: "";
    background: #F21667;
    left: -12px;
    top: 7px;
    border-radius: 50%;
    width: 9px;
    height: 9px;
}

.aeon-search-result-category {
	display: none;
}

.aeon-search-result-title {
	font-family: "Sanomat", serif;
	font-size: 23px;
	line-height: 1.15;
	margin: 0 0 5px;
}

.aeon-search-result-title a {
	color: #111;
	text-decoration: none;
}

.aeon-search-result-body {
	grid-area: body;
}

.aeon-search-result-body p {
	color: #555;
	margin: 0;
	font-size: 15px;
    line-height: 1.4;
}

.aeon-search-highlight {
	background: #fff1b8;
	border-radius: 2px;
	color: inherit;
	padding: 4px 2px;
}

.aeon-search-result-meta {
	border-right: 1px solid #eee;
	color: #555;
	display: flex;
	flex-direction: column;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	gap: 8px;
	grid-area: meta;
	justify-content: center;
	padding-right: 18px;
}
.aeon-search-empty h3,
.aeon-search-empty p{
	color:#1c1c1c;
}
.aeon-search-result-by {
	font-weight: 400;
	margin-right: 4px;
}

.aeon-search-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 28px;
}

.aeon-search-pagination .page-numbers {
	align-items: center;
	background: #ccc;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	color: #333;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	text-decoration: none;
}

.aeon-search-pagination .current {
	background: #72003d;
	color: #fff;
}

.aeon-search-empty {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 7px;
	padding: 28px;
	text-align: center;
}




/*================ Dark mode =========================== */

html.aeon-dark-mode-active .aeon-search-form-card {
    background: #1c1c1c;
}

html.aeon-dark-mode-active .aeon-search-primary-field input{
	border: 1px solid #333;
	background: #222;
	color: #fff;
}

html.aeon-dark-mode-active .aeon-search-field input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	opacity: 1;
}

html.aeon-dark-mode-active .aeon-search-icon-submit{
	background: #72003d;
	border: 0;
	color: #fff;
	cursor: pointer;
}

html.aeon-dark-mode-active .aeon-search-submit{
	background: #72003d;
	border: 0;
	color: #fff;
	cursor: pointer;
}
html.aeon-dark-mode-active .aeon-search-filters-tip {
    align-items: flex-start;
    background: #2b2a33;
    color: #fff;
}

html.aeon-dark-mode-active .aeon-search-filters-tip p{
	color: #fff;
}
html.aeon-dark-mode-active .aeon-search-result-meta{
	border-right: 1px solid #333;
}

html.aeon-dark-mode-active .aeon-search-filters h2 {
	background: transparent;
}

html.aeon-dark-mode-active .aeon-search-select-wrap i {
	color: #fff;
}

html.aeon-dark-mode-active .aeon-search-presets button,
html.aeon-dark-mode-active .aeon-search-filter-toggle,
html.aeon-dark-mode-active .aeon-search-clear,
html.aeon-dark-mode-active .aeon-search-field input, 
html.aeon-dark-mode-active .aeon-search-field select,
html.aeon-dark-mode-active .aeon-search-result-card,
html.aeon-dark-mode-active .aeon-search-chip,
html.aeon-dark-mode-active .aeon-search-clear-all,
html.aeon-dark-mode-active .aeon-search-clear{
	background: #222;
	border: 1px solid #333;
	color: #fff;
}

html.aeon-dark-mode-active .aeon-search-clear:hover{
	background: #333;
	color: #fff;
}

html.aeon-dark-mode-active .aeon-search-clear:hover i{
	color: #fff;
}

html.aeon-dark-mode-active .aeon-search-empty h3,
html.aeon-dark-mode-active .aeon-search-empty p,
html.aeon-dark-mode-active html.aeon-dark-mode-active .aeon-search-highlight {
    color: #1c1c1c;
}



@media (max-width: 820px) {
	.aeon-search-form-card {
		padding: 24px 18px;
	}

	.aeon-search-filter-grid,
	.aeon-search-filter-grid--dates,
	.aeon-search-result-card {
		grid-template-columns: 1fr;
	}

	.aeon-search-result-card {
		grid-template-areas:
			"thumb"
			"body"
			"meta";
	}

	.aeon-search-presets {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.aeon-search-result-meta {
		border-right: 0;
		border-top: 1px solid #eee;
		padding-right: 0;
		padding-top: 12px;
	}
}


@media (max-width: 480px) {
	.aeon-archive-search {
		padding: 24px 18px 42px;
	}

	.aeon-search-title {
		font-size: 34px;
	}

	.aeon-search-description {
		font-size: 16px;
	}

	.aeon-search-primary-field {
		width: 100%;
	}

	.aeon-search-filters-tip {
		margin-bottom: 28px;
		max-width: none;
		width: 100%;
	}

	.aeon-search-filter-toggle {
		left: auto;
		transform: none;
		width: 100%;
	}

	.aeon-search-filters h2 {
		background: transparent;
	}

	.aeon-search-results-header {
		align-items: flex-start;
		gap: 6px;
	}

	.aeon-search-results-header h2,
	.aeon-search-results-header p,
	.aeon-search-chip,
	.aeon-search-clear-all {
		font-family: "Roboto", Arial, sans-serif;
	}

	.aeon-search-result-card {
		gap: 8px;
		grid-template-areas:
			"body"
			"meta";
		padding: 15px;
	}

	.aeon-search-result-thumb {
		display: none;
	}

	.aeon-search-result-title {
		font-size: 25px;
	}

	.aeon-search-result-body p {
		font-size: 17px;
	}

	.aeon-search-result-meta {
		border: 0 !important;
		flex-direction: row;
		font-size: 12px;
		justify-content: flex-start;
		padding: 0;
	}

	.aeon-search-form-card {
		padding: 34px 0px;
	}
}