/* =========================================================
   GOOGLE SEARCH BLOCK - Google stili (rasmdan ilhom)
   ========================================================= */

.google-search-block {
	width: 100%;
	background: transparent;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.google-search-wrapper {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	background: transparent;
	padding: 0;
	box-sizing: border-box;
}

.google-search-form {
	width: 100%;
	box-sizing: border-box;
}

/* Google CSE Custom Styling - Google stili */
.google-search-form .gsc-control-cse {
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.google-search-form .gsc-input-box {
	border: none !important;
	border-radius: 50px !important;
	padding: 0 !important;
	background: #ffffff !important;
	transition: box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28) !important;
	position: relative !important;
}

.google-search-form .gsc-input-box:hover {
	box-shadow: 0 2px 8px rgba(32, 33, 36, 0.3) !important;
}

.google-search-form .gsc-input-box:focus-within {
	box-shadow: 0 2px 8px rgba(32, 33, 36, 0.3) !important;
}

.google-search-form .gsc-input {
	padding: 10px 45px 10px 44px !important;
	font-size: 1.6rem !important;
	color: #202124 !important;
	border: none !important;
	background: transparent !important;
	box-sizing: border-box !important;
	line-height: 1.4 !important;
	width: 100% !important;
	font-weight: 400 !important;
}

.google-search-form .gsc-input:focus {
	outline: none !important;
	box-shadow: none !important;
}

.google-search-form .gsc-input::placeholder {
	color: #9aa0a6 !important;
	font-weight: 400 !important;
}

/* Magnifying glass icon - input ichida, chap tomonda */
.google-search-form .gsc-input-box::before {
	content: "\f002";
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
	font-weight: 900;
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: #5f6368;
	pointer-events: none;
	z-index: 2;
	display: block;
}

/* Search button - o'ng tomonda, input ichida */
.google-search-form .gsc-search-button {
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
	box-sizing: border-box !important;
	position: absolute !important;
	right: 8px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.google-search-form .gsc-search-button:hover {
	background: #f1f3f4 !important;
}

.google-search-form .gsc-search-button svg {
	width: 20px !important;
	height: 20px !important;
	fill: #5f6368 !important;
}

.google-search-form .gsib_a {
	padding: 0 !important;
}

.google-search-form .gsib_b {
	display: none !important;
}

/* Search Results - Sodda */
.google-search-form .gsc-results {
	margin-top: 8px !important;
	padding: 0 !important;
}

.google-search-form .gsc-result {
	padding: 8px 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	margin-bottom: 12px !important;
	border: none !important;
	border-bottom: 1px solid #e8eaed !important;
	transition: none !important;
	box-sizing: border-box !important;
}

.google-search-form .gsc-result:last-child {
	border-bottom: none !important;
}

.google-search-form .gsc-result .gs-title {
	font-size: 1.5rem !important;
	font-weight: 400 !important;
	color: #1a0dab !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	margin-bottom: 4px !important;
	display: block !important;
}

.google-search-form .gsc-result .gs-title:hover {
	text-decoration: underline !important;
}

.google-search-form .gsc-result .gs-title b {
	font-weight: 600 !important;
}

.google-search-form .gsc-result .gs-snippet {
	font-size: 1.4rem !important;
	color: #4d5156 !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}

.google-search-form .gsc-result .gs-visibleUrl {
	font-size: 1.3rem !important;
	color: #006621 !important;
	margin-top: 4px !important;
}

/* Responsive */
@media (max-width: 768px) {
	.google-search-block {
		padding: 0;
	}

	.google-search-wrapper {
		padding: 0 15px;
	}

	.google-search-form .gsc-input {
		padding: 12px 45px 12px 48px !important;
		font-size: 1.4rem !important;
	}

	.google-search-form .gsc-input-box::before {
		left: 16px;
		font-size: 1.4rem;
	}

	.google-search-form .gsc-search-button {
		width: 36px !important;
		height: 36px !important;
		right: 6px !important;
	}

	.google-search-form .gsc-search-button svg {
		width: 18px !important;
		height: 18px !important;
	}
}

@media (max-width: 480px) {
	.google-search-block {
		padding: 0;
	}

	.google-search-form .gsc-input {
		padding: 10px 40px 10px 44px !important;
		font-size: 1.3rem !important;
	}

	.google-search-form .gsc-input-box::before {
		left: 14px;
		font-size: 1.3rem;
		display: block;
	}

	.google-search-form .gsc-search-button {
		width: 32px !important;
		height: 32px !important;
		right: 5px !important;
	}
}
