/*
Theme Name: duhocmy
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Trang chủ: [duhocmy_home_filter_form] — không nền panel; chỉ viền nhẹ ô tìm */
.duhocmy-home-filter-form {
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

/* Flatsome text_box: gỡ nền/đổ bóng inline */
.text-box.banner-layer:has(.duhocmy-home-filter-form) .text-box-content,
.text-box.banner-layer:has(.duhocmy-home-filter-form) .text-inner {
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.text-box.banner-layer:has(.duhocmy-home-filter-form) .text-box-content {
	border-radius: 0 !important;
}

.text-box.banner-layer:has(.duhocmy-home-filter-form) .text-inner {
	padding: 0 !important;
}

.duhocmy-home-filter-form__search {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding: 6px 18px 6px 8px;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	box-shadow: none;
}
.duhocmy-home-filter-form__search input {
	border: 0px !important;
	box-shadow: none !important;
}

.duhocmy-home-filter-form__search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #d32f2f;
	color: #fff;
}

.duhocmy-home-filter-form__search-icon svg {
	display: block;
}

.duhocmy-home-filter-form__search-input {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1rem;
	color: #fff;
	height: auto;
	line-height: 1.4;
}
.duhocmy-home-filter-form__search-input:focus {
	box-shadow: none;
}

.duhocmy-home-filter-form__search-input::placeholder {
	color: rgba(255, 255, 255, 0.55);
	opacity: 1;
}

.duhocmy-home-filter-form__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.duhocmy-home-filter-form__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.duhocmy-home-filter-form__filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	margin-left: 20px;
}

.duhocmy-home-filter-form__filter-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.duhocmy-home-filter-form__select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 200px;
	margin: 0;
	padding: 12px 40px 12px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background-color: #1a2b48;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 35px 35px;
	color: #fff;
	font: inherit;
	font-weight: 500;
	height: auto;
	line-height: 1.4;
	box-shadow: none;
	cursor: pointer;
}

.duhocmy-home-filter-form__select:hover {
	filter: brightness(1.06);
}

.duhocmy-home-filter-form__select:focus {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
	outline: none;
}

.duhocmy-home-filter-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-left: auto;
}

.duhocmy-home-filter-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 5px 22px;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.2s, background 0.2s;
}

.duhocmy-home-filter-form__btn:hover {
	text-decoration: none;
}

.duhocmy-home-filter-form__btn--clear {
	background: #333;
	color: #fff;
}

.duhocmy-home-filter-form__btn--clear:hover {
	filter: brightness(1.1);
}

.duhocmy-home-filter-form__btn--apply {
	min-width: 7.5rem;
	padding-inline: 26px;
	background: #d32f2f;
	color: #fff;
}

.duhocmy-home-filter-form__btn--apply:hover {
	filter: brightness(1.06);
}

/* [duhocmy_school_info] */
.duhocmy-school-info-shortcode__dl {
	margin: 0;
}
.duhocmy-school-info-shortcode__dt {
	font-weight: 600;
	margin: 0;
}
.duhocmy-school-info-shortcode__dd {
	margin: 0 0 0.85em;
}
.duhocmy-school-info-shortcode__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.duhocmy-school-info-shortcode .col:last-child .duhocmy-school-info-shortcode__item{justify-content: flex-start;}
.duhocmy-school-info-shortcode__item{border-bottom: 1px solid #d4d4d4;padding: 10px 0;margin-bottom: 0;margin-left: 0 !important;display: flex;justify-content: space-between;}
.duhocmy-school-info-shortcode__label {
	font-weight: 400;
	margin-right: 0.35em;
	min-width: 85px;
}
.duhocmy-school-info-shortcode__icon {
	display: inline-block;
	margin-right: 0.35em;
	width: 1.1em;
	text-align: center;
	opacity: 0.9;
	vertical-align: -0.05em;
}
.duhocmy-school-info-shortcode__item--icon-label .duhocmy-school-info-shortcode__label {
	min-width: 0;
	margin-right: 0.5em;
	flex-shrink: 0;
}
.duhocmy-school-info-shortcode .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}
.duhocmy-school-info-shortcode__value{font-weight:600}
.duhocmy-school-info-shortcode .col:last-child .duhocmy-school-info-shortcode__item .duhocmy-school-info-shortcode__value{font-weight:400}
/* [duhocmy_school_meta] — category + thành phố, bang */
.duhocmy-school-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0.5em;
	font-size: 0.95em;
}
.duhocmy-school-meta__sep {
	opacity: 0.55;
	font-weight: 400;
}
.duhocmy-school-meta__categories a {
	text-decoration: none;
}
.duhocmy-school-meta__categories a:hover {
	text-decoration: underline;
}
.duhocmy-school-meta__location {
	font-weight: 600;
}

/* [duhocmy_school_gallery] — lightbox Flatsome (.lightbox-multi-gallery / .lightbox-gallery) */
.duhocmy-school-gallery-shortcode {
	position: relative;
}

/*
 * Mosaic preview: grid 2×2 (tỉ lệ cột 7:5).
 * Ảnh chính span 2 hàng + aspect-ratio 1:1 → hai hàng grid bằng nửa chiều cao ảnh trái;
 * hai ô phải (1fr + 1fr) khớp đúng tổng cao.
 */
.duhocmy-school-gallery-shortcode__mosaic {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
}

.duhocmy-school-gallery-shortcode__mosaic > a {
	display: block;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
}

.duhocmy-school-gallery-shortcode__mosaic > a img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.duhocmy-school-gallery-shortcode__mosaic-main {
	display: block;
	aspect-ratio: 1 / 1;
}

.duhocmy-school-gallery-shortcode__mosaic-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.duhocmy-school-gallery-shortcode__actions{position: absolute; bottom: 0; right: 0; z-index: 1;}

@media screen and (min-width: 48em) {
	.duhocmy-school-gallery-shortcode__mosaic:not(.duhocmy-school-gallery-shortcode__mosaic--single) {
		display: grid;
		grid-template-columns: 7fr 5fr;
		grid-template-rows: 1fr 1fr;
		column-gap: 0.5rem;
		row-gap: 0.45rem;
		align-items: stretch;
		justify-items: stretch;
	}

	.duhocmy-school-gallery-shortcode__mosaic--single .duhocmy-school-gallery-shortcode__mosaic-main {
		max-width: 100%;
	}

	.duhocmy-school-gallery-shortcode__mosaic:not(.duhocmy-school-gallery-shortcode__mosaic--single) .duhocmy-school-gallery-shortcode__mosaic-main {
		grid-column: 1;
		grid-row: 1 / span 2;
		aspect-ratio: 1 / 1;
		align-self: stretch;
		justify-self: stretch;
		height: auto;
		min-height: 0;
	}

	.duhocmy-school-gallery-shortcode__mosaic-sub--1 {
		grid-column: 2;
		grid-row: 1;
	}

	.duhocmy-school-gallery-shortcode__mosaic-sub--2 {
		grid-column: 2;
		grid-row: 2;
	}

	.duhocmy-school-gallery-shortcode__mosaic-sub--stretch {
		grid-row: 1 / span 2;
	}

	.duhocmy-school-gallery-shortcode__mosaic-sub {
		height: 100%;
		max-height: 100%;
	}

	.duhocmy-school-gallery-shortcode__mosaic:not(.duhocmy-school-gallery-shortcode__mosaic--single) > a img {
		width: 100%;
		height: 100% !important;
		object-fit: cover;
		min-height: 0;
	}
}

.duhocmy-school-gallery-shortcode__preview-extra .col-inner img {
	display: block;
	width: 100%;
	height: auto;
}

.duhocmy-school-gallery-shortcode__hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* [duhocmy_related_schools_category] / [duhocmy_related_schools_state] — danh sách dọc */
.duhocmy-related-schools {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.duhocmy-related-schools__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}
.duhocmy-related-schools__thumb {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #eee;
	text-decoration: none;
}
.duhocmy-related-schools__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.duhocmy-related-schools__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100px;
	background: url(https://timtruongduhocmy.com/wp-content/uploads/2026/04/AVA-DHM.jpg) no-repeat center center;
	background-size: cover;
}
.duhocmy-related-schools__body {
	flex: 1;
	min-width: 0;
}
.duhocmy-related-schools__title {
	margin: 0 0 0.35em;
	font-size: 1em;
	line-height: 1.3;
}
.duhocmy-related-schools__title a {
	text-decoration: none;
}
.duhocmy-related-schools__title a:hover {
	text-decoration: underline;
}
.duhocmy-related-schools__list {
	list-style: disc;
	margin: 0;
	padding-left: 1.25em;
	font-size: 0.9em;
	line-height: 1.45;
	color: #555;
}
.duhocmy-related-schools__list li {
	margin: 0.15em 0;
}

.form_section{
	border-radius: 20px; overflow: hidden;
}
form.wpcf7-form{margin-bottom: 0 !important}
.form-flat-input {display: flex; align-items: center; margin-bottom: 1.3em !important; border: 1px solid #D4D4D4; padding: 10px !important; transition: 300ms}
.form-flat-input:has(input:focus), .form-flat-input:hover{border-color: var(--fs-color-primary);border-radius: 30px}
.form-flat-input i{background-color: var(--fs-color-secondary);color: #fff;padding: 0;min-width: 35px;min-height: 35px;display: block;border-radius: 100%;line-height: 35px;}
.form-flat-input .wpcf7-form-control-wrap{width: 100%}
.form-flat-input .wpcf7-form-control-wrap input, .form-flat-input .wpcf7-form-control-wrap textarea{margin-bottom: 0; border: none; box-shadow: none; width: 100% !important}
.form-flat-input .wpcf7-form-control-wrap input:focus{box-shadow: none}
.form-contact .wpcf7-submit{border-radius: 100px;padding: 0 50px;background-color: var(--fs-color-secondary) !important;margin-bottom: 0;}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

	.duhocmy-home-filter-form__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.duhocmy-home-filter-form__filters {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.duhocmy-home-filter-form__filter {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-left: 0;
	}

	.duhocmy-home-filter-form__select {
		width: 100%;
		min-width: 0;
	}

	.duhocmy-home-filter-form__actions {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}
}