/* Elementor Blog Search - frontend styles */

.ebs-widget {
	font-family: inherit;
	max-width: 100%;
	box-sizing: border-box;
}

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

.ebs-heading {
	margin: 0 0 16px;
	font-size: 1.6em;
	line-height: 1.2;
}

/* Search form */
.ebs-form {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ebs-input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 12px 16px;
	font-size: 1em;
	line-height: 1.4;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #ffffff;
	color: #222222;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ebs-input:focus {
	border-color: #0a8a3a;
	box-shadow: 0 0 0 3px rgba(10, 138, 58, 0.18);
}

.ebs-button {
	padding: 12px 22px;
	font-size: 1em;
	line-height: 1.4;
	font-weight: 600;
	background: #0a8a3a;
	color: #ffffff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ebs-button:hover,
.ebs-button:focus {
	background: #076d2c;
	outline: none;
}

/* Status line */
.ebs-status {
	min-height: 1.2em;
	margin-bottom: 12px;
	font-size: 0.95em;
	color: #555;
}

.ebs-status-error {
	color: #b30000;
}

/* Results list */
.ebs-results {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebs-result {
	padding: 18px 0;
	border-bottom: 1px solid #eaeaea;
}

.ebs-result:first-child {
	padding-top: 0;
}

.ebs-result-title {
	margin: 0 0 6px;
	font-size: 1.2em;
	line-height: 1.3;
}

.ebs-result-title a {
	color: #0a8a3a;
	text-decoration: none;
}

.ebs-result-title a:hover,
.ebs-result-title a:focus {
	text-decoration: underline;
}

.ebs-result-date {
	font-size: 0.85em;
	color: #888;
	margin-bottom: 6px;
}

.ebs-result-excerpt {
	margin: 0 0 8px;
	color: #444;
	line-height: 1.55;
}

.ebs-result-link {
	display: inline-block;
	font-size: 0.92em;
	font-weight: 600;
	color: #0a8a3a;
	text-decoration: none;
}

.ebs-result-link:hover,
.ebs-result-link:focus {
	text-decoration: underline;
}

.ebs-mark {
	background-color: #fff2a8;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

/* Pagination */
.ebs-pagination {
	margin-top: 24px;
}

.ebs-pagination-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}

.ebs-pagination-list li {
	margin: 0;
}

.ebs-page-btn {
	min-width: 38px;
	padding: 8px 12px;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	color: #333;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ebs-page-btn:hover:not(:disabled):not(.is-active) {
	background: #f3f8f4;
	border-color: #0a8a3a;
	color: #0a8a3a;
}

.ebs-page-btn.is-active {
	background: #0a8a3a;
	color: #ffffff;
	border-color: #0a8a3a;
	cursor: default;
}

.ebs-page-btn.is-disabled,
.ebs-page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ebs-ellipsis {
	padding: 8px 4px;
	color: #888;
	user-select: none;
}

/* Accessibility helper */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Responsive */
@media (max-width: 480px) {
	.ebs-form {
		flex-direction: column;
	}
	.ebs-button {
		width: 100%;
	}
}
