/* Blog-only header search — round blue icon (matches top bar #0084FF) */

.menu-item-blog-search {
	display: flex;
	align-items: center;
	align-self: center;
}

.ttc-blog-search-toggle,
.ttc-blog-search-toggle.ekit-menu-nav-link,
.elementskit-navbar-nav > .menu-item-blog-search > .ttc-blog-search-toggle,
.ttc-blog-search-toggle--header {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background-color: #0084ff !important;
	background-image: none !important;
	color: #ffffff !important;
	cursor: pointer;
	line-height: 0 !important;
	font-size: 0 !important;
	text-align: center !important;
	vertical-align: middle;
	flex-shrink: 0;
	box-shadow: none !important;
	outline: none !important;
	-webkit-tap-highlight-color: rgba(0, 132, 255, 0.35);
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ttc-blog-search-toggle:hover,
.ttc-blog-search-toggle:focus,
.ttc-blog-search-toggle:focus-visible,
.ttc-blog-search-toggle:active,
.ttc-blog-search-toggle[aria-expanded="true"],
.ttc-blog-search-toggle.ekit-menu-nav-link:hover,
.ttc-blog-search-toggle.ekit-menu-nav-link:focus,
.ttc-blog-search-toggle.ekit-menu-nav-link:focus-visible,
.ttc-blog-search-toggle.ekit-menu-nav-link:active,
.ttc-blog-search-toggle.ekit-menu-nav-link[aria-expanded="true"],
.ttc-blog-search-toggle--header:hover,
.ttc-blog-search-toggle--header:focus,
.ttc-blog-search-toggle--header:focus-visible,
.ttc-blog-search-toggle--header:active,
.ttc-blog-search-toggle--header[aria-expanded="true"] {
	background-color: #006fd6 !important;
	background-image: none !important;
	color: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.28) !important;
}

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

.ttc-blog-search-toggle .ttc-blog-search-icon,
.ttc-blog-search-icon {
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translate(-50%, -50%) !important;
	color: #ffffff !important;
	fill: none !important;
	stroke: currentColor !important;
	pointer-events: none;
}

/* Mobile: search sits left of hamburger; do not wrap hamburger (breaks EKIT menu) */
.ttc-blog-search-toggle--header {
	display: none !important;
}

@media (max-width: 1024px) {
	/* Remove search from inside the open mobile drawer */
	.elementskit-menu-container .menu-item-blog-search,
	#ekit-megamenu-new-header-menu .menu-item-blog-search {
		display: none !important;
	}

	/* Widen Elementor menu column so search + hamburger fit on one row */
	.e-con-full:has(.elementskit-menu-hamburger),
	.elementor-widget:has(.elementskit-menu-hamburger),
	.elementor-widget:has(.elementskit-menu-hamburger) .elementor-widget-container {
		width: auto !important;
		min-width: 96px !important;
		max-width: none !important;
		flex: 0 0 auto !important;
	}

	/* Keep search + hamburger on the same line (Search | Menu) */
	.ekit-wid-con.ekit_menu_responsive_tablet,
	.ekit-wid-con:has(> .elementskit-menu-hamburger) {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 8px;
		width: auto !important;
		height: auto !important;
		min-height: 40px;
	}

	.ekit-wid-con > .elementskit-menu-hamburger {
		float: none !important;
		order: 2;
		margin: 0 !important;
		flex: 0 0 auto;
		align-self: center;
	}

	.ttc-blog-search-toggle--header {
		display: inline-flex !important;
		float: none !important;
		order: 1;
		margin: 0 !important;
		position: relative;
		z-index: 2;
		flex: 0 0 auto;
		align-self: center;
	}

	.ekit-wid-con > .elementskit-menu-offcanvas-elements {
		order: 3;
	}

	/*
	 * Hello Elementor reset styles global buttons with pink (#c36) on
	 * :hover/:focus — override hamburger + close to theme blue (#0084FF).
	 */
	.elementor-6586 button.elementskit-menu-hamburger,
	.elementor-6586 button.elementskit-menu-close,
	button.elementskit-menu-hamburger,
	button.elementskit-menu-close {
		appearance: none !important;
		-webkit-appearance: none !important;
		background-color: transparent !important;
		background-image: none !important;
		border: 1px solid rgba(0, 0, 0, 0.2) !important;
		color: #1a202c !important;
		box-shadow: none !important;
		outline: none !important;
		-webkit-tap-highlight-color: rgba(0, 132, 255, 0.35);
		accent-color: #0084ff !important;
		transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	}

	.elementor-6586 button.elementskit-menu-hamburger .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger .elementskit-menu-hamburger-icon {
		background-color: #1a202c !important;
	}

	.elementor-6586 button.elementskit-menu-hamburger:hover,
	.elementor-6586 button.elementskit-menu-hamburger:focus,
	.elementor-6586 button.elementskit-menu-hamburger:focus-visible,
	.elementor-6586 button.elementskit-menu-hamburger:active,
	.elementor-6586 button.elementskit-menu-hamburger[aria-expanded="true"],
	button.elementskit-menu-hamburger:hover,
	button.elementskit-menu-hamburger:focus,
	button.elementskit-menu-hamburger:focus-visible,
	button.elementskit-menu-hamburger:active,
	button.elementskit-menu-hamburger[aria-expanded="true"] {
		background-color: #0084ff !important;
		background-image: none !important;
		border-color: #0084ff !important;
		color: #ffffff !important;
		outline: none !important;
		box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.28) !important;
	}

	.elementor-6586 button.elementskit-menu-hamburger:hover .elementskit-menu-hamburger-icon,
	.elementor-6586 button.elementskit-menu-hamburger:focus .elementskit-menu-hamburger-icon,
	.elementor-6586 button.elementskit-menu-hamburger:focus-visible .elementskit-menu-hamburger-icon,
	.elementor-6586 button.elementskit-menu-hamburger:active .elementskit-menu-hamburger-icon,
	.elementor-6586 button.elementskit-menu-hamburger[aria-expanded="true"] .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger:hover .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger:focus .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger:focus-visible .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger:active .elementskit-menu-hamburger-icon,
	button.elementskit-menu-hamburger[aria-expanded="true"] .elementskit-menu-hamburger-icon {
		background-color: #ffffff !important;
	}

	.elementor-6586 button.elementskit-menu-hamburger:hover > .ekit-menu-icon,
	.elementor-6586 button.elementskit-menu-hamburger:focus > .ekit-menu-icon,
	.elementor-6586 button.elementskit-menu-hamburger:active > .ekit-menu-icon,
	.elementor-6586 button.elementskit-menu-hamburger[aria-expanded="true"] > .ekit-menu-icon,
	button.elementskit-menu-hamburger:hover > .ekit-menu-icon,
	button.elementskit-menu-hamburger:focus > .ekit-menu-icon,
	button.elementskit-menu-hamburger:active > .ekit-menu-icon,
	button.elementskit-menu-hamburger[aria-expanded="true"] > .ekit-menu-icon {
		color: #ffffff !important;
	}

	.elementor-6586 button.elementskit-menu-close,
	button.elementskit-menu-close {
		border-color: #0084ff !important;
		color: #0084ff !important;
	}

	.elementor-6586 button.elementskit-menu-close:hover,
	.elementor-6586 button.elementskit-menu-close:focus,
	.elementor-6586 button.elementskit-menu-close:focus-visible,
	.elementor-6586 button.elementskit-menu-close:active,
	button.elementskit-menu-close:hover,
	button.elementskit-menu-close:focus,
	button.elementskit-menu-close:focus-visible,
	button.elementskit-menu-close:active {
		background-color: #0084ff !important;
		background-image: none !important;
		border-color: #0084ff !important;
		color: #ffffff !important;
		outline: none !important;
		box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.28) !important;
	}
}

@media (min-width: 1025px) {
	.ttc-blog-search-toggle--header {
		display: none !important;
	}
}

.ttc-blog-search-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	padding: 0.85rem 1.25rem;
	background: #ffffff;
	border-bottom: 1px solid rgba(26, 32, 44, 0.1);
	box-shadow: 0 8px 24px rgba(26, 32, 44, 0.08);
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.ttc-blog-search-panel.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.ttc-blog-search-panel[hidden] {
	display: block !important;
	pointer-events: none;
}

.ttc-blog-search-panel.is-open[hidden] {
	pointer-events: auto;
}

.ttc-blog-search-panel__inner {
	max-width: 720px;
	margin: 0 auto;
}

.ttc-blog-search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
}

.ttc-blog-search-field {
	flex: 1 1 auto;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #f7fafc;
	color: #1a202c;
	font-family: Inter, system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttc-blog-search-field:focus {
	border-color: #0084ff;
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.18);
	outline: none;
	background: #ffffff;
}

.ttc-blog-search-panel .ttc-blog-search-submit,
.ttc-blog-search-panel .ttc-blog-search-close,
.ttc-blog-search-submit,
.ttc-blog-search-close {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative;
	flex: 0 0 auto;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #d1d5db !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: #2d3748 !important;
	cursor: pointer;
	line-height: 0 !important;
	font-size: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	accent-color: #0084ff !important;
	-webkit-tap-highlight-color: rgba(0, 132, 255, 0.35);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ttc-blog-search-panel .ttc-blog-search-close:hover,
.ttc-blog-search-panel .ttc-blog-search-close:focus,
.ttc-blog-search-panel .ttc-blog-search-close:focus-visible,
.ttc-blog-search-panel .ttc-blog-search-close:active,
.ttc-blog-search-close:hover,
.ttc-blog-search-close:focus,
.ttc-blog-search-close:focus-visible,
.ttc-blog-search-close:active {
	background-color: #0084ff !important;
	background-image: none !important;
	border-color: #0084ff !important;
	color: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.28) !important;
}

.ttc-blog-search-close svg,
.ttc-blog-search-submit svg {
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) !important;
	stroke: currentColor !important;
	fill: none !important;
	pointer-events: none;
}

.ttc-blog-search-panel .ttc-blog-search-submit,
.ttc-blog-search-submit {
	background-color: #0084ff !important;
	border-color: #0084ff !important;
	color: #ffffff !important;
}

.ttc-blog-search-panel .ttc-blog-search-submit:hover,
.ttc-blog-search-panel .ttc-blog-search-submit:focus,
.ttc-blog-search-panel .ttc-blog-search-submit:focus-visible,
.ttc-blog-search-panel .ttc-blog-search-submit:active,
.ttc-blog-search-submit:hover,
.ttc-blog-search-submit:focus,
.ttc-blog-search-submit:focus-visible,
.ttc-blog-search-submit:active {
	background-color: #006fd6 !important;
	border-color: #006fd6 !important;
	color: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.28) !important;
}

body.ttc-blog-search-open {
	overflow: hidden;
}

/* Search results — full-width section (like Elementor), content in 1440px container */
body.search .site-main.ttc-blog-search-results,
.ttc-blog-search-results {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 40px 80px;
	background-color: #f3f7ff;
	box-sizing: border-box;
}

.ttc-blog-search-results__container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.ttc-blog-search-results__title {
	margin: 0 0 1.75rem;
	color: #1f2937;
	font-family: Inter, system-ui, sans-serif;
	font-size: 48px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.ttc-blog-search-results__empty {
	margin: 0;
	color: #4a5568;
	font-family: Inter, system-ui, sans-serif;
	font-size: 1.125rem;
	text-align: center;
}

.ttc-blog-search-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ttc-blog-search-card {
	margin: 0;
	padding: 20px;
	background-color: #ffffff;
	border-radius: 10px;
	color: inherit;
}

.ttc-blog-search-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ttc-blog-search-card__media {
	display: block;
	overflow: hidden;
	border-radius: 15px;
	background: #eef3fb;
}

.ttc-blog-search-card__media img {
	display: block;
	width: 100%;
	height: clamp(220px, 15.542vw, 300px);
	object-fit: cover;
}

.ttc-blog-search-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding-top: 4px;
}

.ttc-blog-search-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin: 10px 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.ttc-blog-search-card__date {
	color: #0084ff;
}

.ttc-blog-search-card__sep {
	color: #9c9c9c;
	padding-left: 5px;
}

.ttc-blog-search-card__category {
	color: #0084ff;
	text-decoration: none;
}

.ttc-blog-search-card__category:hover {
	color: #000000;
}

.ttc-blog-search-card__title {
	margin: 10px 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.ttc-blog-search-card__title a {
	color: #1f2937;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ttc-blog-search-card__title a:hover {
	color: #54595f;
}

.ttc-blog-search-card__excerpt {
	margin: 10px 0 15px;
	color: #1f2937;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

.ttc-blog-search-card__excerpt p {
	margin: 0;
}

.ttc-blog-search-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 20px;
	border: 1px solid #0084ff;
	border-radius: 8px;
	background-color: #0084ff;
	color: #ffffff;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.ttc-blog-search-card__more:hover,
.ttc-blog-search-card__more:focus-visible {
	background-color: #ffffff;
	color: #0084ff;
	border-color: #0084ff;
	outline: none;
}

.ttc-blog-search-pagination {
	display: flex;
	justify-content: center;
	margin-top: 25px;
	padding: 0;
}

.ttc-blog-search-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttc-blog-search-pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttc-blog-search-pagination .page-numbers a,
.ttc-blog-search-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 8px 20px;
	border: none;
	border-radius: 3px;
	background-color: #0084ff;
	color: #ffffff;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.1s ease;
}

.ttc-blog-search-pagination .page-numbers a:hover,
.ttc-blog-search-pagination .page-numbers a:focus-visible {
	background-color: #006fd6;
	color: #ffffff;
	outline: none;
}

.ttc-blog-search-pagination .page-numbers .current {
	background-color: #006fd6;
	color: #ffffff;
}

.ttc-blog-search-pagination .page-numbers .dots {
	background-color: transparent;
	color: #1f2937;
	min-width: auto;
	padding: 8px 6px;
}

@media (max-width: 1024px) {
	body.search .site-main.ttc-blog-search-results,
	.ttc-blog-search-results {
		padding: 30px 20px;
	}

	.ttc-blog-search-results__title {
		font-size: 30px;
	}

	.ttc-blog-search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.ttc-blog-search-panel {
		padding: 0.75rem 1rem;
	}

	body.search .site-main.ttc-blog-search-results,
	.ttc-blog-search-results {
		padding: 24px 15px;
	}

	.ttc-blog-search-results__container {
		max-width: none;
		width: 100%;
	}

	.ttc-blog-search-results__title {
		font-size: 24px;
		margin-bottom: 1.25rem;
	}

	.ttc-blog-search-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		width: 100%;
	}

	.ttc-blog-search-card {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	.ttc-blog-search-card__media img {
		height: 200px;
	}

	/* Keep the icon visible in ElementsKit off-canvas menus */
	.elementskit-navbar-nav .menu-item-blog-search {
		width: auto;
	}

	.elementskit-navbar-nav .ttc-blog-search-toggle {
		width: 100%;
		justify-content: flex-start;
		padding: 0.75rem 1rem;
	}
}
