/* ==========================================================================
   Blog archive filters
   Search field, "Filter By" bar and the results counter that drive the
   Elementor loop grid carrying the "blog_archive" Query ID.

   The dropdowns themselves are the search page's .search-select component
   (see search-template-styles.css) — only the bits that differ in this
   context are restated here.
   ========================================================================== */

.blog-search,
.blog-filters {
	box-sizing: border-box;
}

.blog-search *,
.blog-filters * {
	box-sizing: inherit;
}

/* ==========================================================================
   Search field
   ========================================================================== */

.blog-search {
	position: relative;
	width: 100%;
}

.blog-search-icon {
	position: absolute;
	top: 50%;
	left: 20px;
	display: flex;
	color: var(--e-global-color-08ec0f6 );
	transform: translateY(-50%);
	pointer-events: none;
	transition: color 0.2s ease;
}

/* Lit while the field has focus, and kept lit once something is typed —
   .is-filled is set server side on load and by the search JS thereafter. */
.blog-search:focus-within .blog-search-icon,
.blog-search.is-filled .blog-search-icon {
	color: var(--e-global-color-primary);
}

.blog-search-input {
    width: 100%;
    height: 54px;
    padding: 0 40px 0 60px !important;
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    background: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    appearance: none;
    font-family: 'Instrument Sans';
	color: var(--e-global-color-text) !important;
}

.blog-search-input::placeholder {
	color: #A3A3A3;
	opacity: 1;
}

.blog-search-input:focus {
	outline: none;
	border-color: var(--e-global-color-primary);
}

.blog-search-input::-webkit-search-cancel-button,
.blog-search-input::-webkit-search-decoration {
	appearance: none;
	display: none;
}

button.blog-filters-clear {
    padding: 0;
    font-size: 14px;
	font-weight: normal;
	color: var(--e-global-color-08ec0f6);
    background-color: transparent;
    box-shadow: none;
    border: none;
    cursor: pointer;
}

.blog-search-clear {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f4f9;
	color: var(--e-global-color-08ec0f6);
	cursor: pointer;
	transform: translateY(-50%);
}

.blog-search-clear:hover,
.blog-search-clear:focus-visible {
	color: var(--e-global-color-text);
}

/* Out-specifies the UA [hidden] default, so restate it. */
.blog-search-clear[hidden] {
	display: none;
}

button.blog-search-clear {
    padding: 0;
    background-color: transparent;
}
/* ==========================================================================
   Filter bar
   ========================================================================== */

.blog-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.blog-filters-heading, .blog-filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px !important;
    line-height: 1;
    font-weight: 500 !important;
    font-family: 'Instrument Sans' !important;
    color: #000 !important;
	margin: 0;
}

.blog-filters-icon {
	display: flex;
}


.blog-filters-clear {
	padding: 0;
	border: 0;
	background: none;
	color: var(--e-global-color-08ec0f6 );
	font-size: 14px;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.blog-filters-clear:hover,
.blog-filters-clear:focus-visible {
	color: var(--e-global-color-primary);
}

/* Shown only while something is actually filtered. */
.blog-filters-clear[hidden] {
	display: none;
}

.blog-filters-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 616px;
    width: 100%;
}

.blog-filters-count {
    padding: 20px 0;
    color: var(--e-global-color-08ec0f6);
    font-size: 16px;
    line-height: 1;
}

/* Shown only while something is actually filtered. */
.blog-filters-count[hidden] {
	display: none;
}

.blog-filters-empty {
	margin: 0;
	padding: 32px 0;
	color: var(--e-global-color-08ec0f6);
	font-size: 15px;
	text-align: center;
}

.blog-filter-field.main-search-dropdown {
    flex: auto;
    gap: 0;
    max-width: 100%;
    width: 100%;
}

.blog-filter-field .search-select-trigger {
    padding: 14px 20px;
    font-size: 18px;
    line-height: 20px;
    background: #F3F3F3;
    color: var(--e-global-color-primary);
}

.blog-filter-field .search-select.is-open .search-select-trigger {
	border-color: var(--e-global-color-primary);
}

.blog-filter-field .search-select-option {
    padding: 10px;
    font-size: 16px;
    line-height: 20px;
}

/* ==========================================================================
   Loop grid state
   ========================================================================== */

.elementor-element.is-blog-loading {
	position: relative;
	min-height: 160px;
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.elementor-element.is-blog-loading::after {
	content: "";
	position: absolute;
	top: 60px;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	border: 3px solid rgba(31, 95, 191, 0.2);
	border-top-color: var(--e-global-color-5137822, #1f5fbf);
	border-radius: 50%;
	animation: blog-filters-spin 0.8s linear infinite;
}

@keyframes blog-filters-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.blog-filters-bar {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.blog-filter-field .search-select-trigger {
		font-size: 14px;
		line-height: 1;
		padding: 12px 13.5px;
	}
	.blog-filters-count{
		font-size: 14px;
		line-height: 1;
	}

	.blog-filter-field span.search-select-arrow {
		width: 12px;
	}

	.blog-filters-controls,
	.blog-filter-field.main-search-dropdown {
		width: 100%;
	}
}
@media (max-width: 545px) {
	.blog-filters-controls{
		flex-direction: column;	
	}
}
