/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.0.0
 Text Domain:  eduma-child
*/

/* =========================================
   Search Button
   ========================================= */

.qac-search-item {
	position: relative;
	display: flex;
	align-items: center;
}

.qac-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	color: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.qac-search-toggle:hover {
	opacity: 0.75;
}

.qac-search-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #fff;
	padding: 12px;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	min-width: 280px;
	z-index: 9999;
}

.qac-search-dropdown.is-open {
	display: block;
}

.qac-search-dropdown .search-form {
	display: flex;
	gap: 6px;
}

.qac-search-dropdown .search-field {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
	outline: none;
}

.qac-search-dropdown .search-field:focus {
	border-color: #999;
}

.qac-search-dropdown .search-submit {
	padding: 8px 14px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.2s ease;
}

.qac-search-dropdown .search-submit:hover {
	background: #555;
}

/* =========================================
   Language Switcher
   ========================================= */

.qac-lang-item {
	position: relative;
	display: flex;
	align-items: center;
}

.qac-lang-toggle {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 12px;
	color: inherit;
	cursor: pointer;
	white-space: nowrap;
	font-size: 14px;
	transition: opacity 0.2s ease;
}

.qac-lang-toggle:hover {
	opacity: 0.75;
}

.qac-lang-label {
	font-family: inherit;
}

.qac-lang-arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 0.2s ease;
}

.qac-lang-item.is-open .qac-lang-arrow {
	transform: rotate(180deg);
}

.qac-lang-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #fff;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	min-width: 130px;
	z-index: 9999;
}

.qac-lang-dropdown.is-open {
	display: block;
}

.qac-lang-dropdown li a {
	display: block;
	padding: 9px 16px;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.qac-lang-dropdown li a:hover {
	background: #f5f5f5;
	color: #111;
}
