/**
 * Header / mega menu fixes for WordPress layout
 */

/* Leaflet panes use high z-index; keep chrome above the map when sticky. */
.site-header {
	z-index: 1100;
}

.drawer {
	z-index: 1200;
	/* Mở/đóng mượt, tránh nháy visibility giữa animation */
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.32s;
}

.drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.drawer-backdrop {
	opacity: 0;
	transition: opacity 0.28s ease;
	will-change: opacity;
}

.drawer.is-open .drawer-backdrop {
	opacity: 1;
}

.drawer-panel {
	transform: translate3d(100%, 0, 0);
	transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.28, 1);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.drawer.is-open .drawer-panel {
	transform: translate3d(0, 0, 0);
}

/* Khóa scroll khi mở menu — giữ vị trí trang, không giật layout */
html.wk-scroll-lock,
html.wk-scroll-lock body {
	overflow: hidden;
	overscroll-behavior: none;
}

html.wk-scroll-lock body {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
}

/* Cho phép cuộn nội dung trong panel khi body bị fixed */
html.wk-scroll-lock .drawer-body {
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.modal {
	z-index: 1300;
}

.float-contact {
	z-index: 1050;
}

.mobile-bar {
	z-index: 1080;
}

.site-header .header-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}

.site-header .brand {
	justify-self: start;
	grid-column: 1;
}

.site-header .nav {
	grid-column: 2;
	flex: initial;
	width: auto;
	max-width: 100%;
	display: flex;
	justify-content: center;
	justify-self: center;
	min-width: 0;
}

.site-header .nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header .header-actions {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Keep underline on the link itself (not the whole header) */
.site-header .nav-link {
	position: relative;
}

/* Mega: position against .header-inner */
.site-header .nav-item.has-mega,
.site-header .nav-item:has(> .dropdown.mega) {
	position: static;
}

/* Full width of container */
.site-header .dropdown.mega {
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	transform: translateY(10px);
}

.site-header .nav-item:hover > .dropdown.mega,
.site-header .nav-item:focus-within > .dropdown.mega {
	transform: translateY(0);
}

/* Small dropdowns stay under their item */
.site-header .nav-item:not(.has-mega) {
	position: relative;
}

.site-header .nav-item:not(.has-mega) > .dropdown {
	left: 50%;
	transform: translate(-50%, 10px);
}

.site-header .nav-item:not(.has-mega):hover > .dropdown,
.site-header .nav-item:not(.has-mega):focus-within > .dropdown {
	transform: translate(-50%, 0);
}

/* Hero: center uploaded image vertically with copy */
.hero-grid {
	align-items: center;
}

.hero-visual:has(.hero-visual-img) {
	align-self: center;
	margin-bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.hero-visual-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: min(560px, 72vh);
	object-fit: contain;
	object-position: center center;
}

@media (max-width: 860px) {
	.hero-visual:has(.hero-visual-img) {
		margin: 0 auto 8px;
		max-width: 460px;
	}

	.hero-visual-img {
		max-height: 380px;
	}
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field.plain.is-invalid input {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.wk-form-error {
	margin-top: 10px;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
}

/* Footer: narrower brand column, wider menus */
.footer-grid {
	grid-template-columns: minmax(200px, 0.78fr) minmax(0, 2.55fr);
	gap: 22px;
}

.footer-menus {
	grid-template-columns: 1fr 1fr 1.75fr;
	gap: 20px 28px;
}

/* Page / service hero photos (replace SVG demo) */
.ph-visual:has(.ph-visual-img),
.hero-visual:has(.hero-visual-img) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ph-visual-img,
.ov-media-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	border-radius: 20px;
}

.ov-media:has(.ov-media-img) {
	background: transparent;
}

.ov-media-img {
	height: 100%;
	min-height: 300px;
}

/* Gallery real photos */
.gallery-slide > .gallery-photo,
.gallery-slide > img.gallery-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbs .thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* Slider arrows: don't use transform for vertical center (Motion scale hover would override it). */
.car-arrow,
.hero-arrow {
	transform: none !important;
}

.car-arrow {
	top: 50%;
	margin-top: -21px; /* height 42 / 2 */
}

.gallery-main .car-arrow {
	margin-top: -19px; /* height 38 / 2 */
}

.hero-arrow {
	top: 50%;
	margin-top: -23px; /* height 46 / 2 */
}

.car-arrow:hover,
.hero-arrow:hover,
.mini-arrow:hover {
	transform: none !important;
}

.car-arrow .icon,
.hero-arrow .icon,
.mini-arrow .icon {
	display: block;
	transition: transform 0.2s ease;
}

.car-arrow:hover .icon,
.hero-arrow:hover .icon,
.mini-arrow:hover .icon {
	transform: scale(1.08);
}

/* Section heads: chip/icon trên — tiêu đề dưới, căn giữa, 1 hàng */
.section-head {
	text-align: center;
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.section-head__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

.section-head .head-icon,
.section-head .chip,
.section-head .eyebrow {
	margin: 0;
	flex: none;
}

.section-head .section-title {
	margin: 0;
	white-space: nowrap;
}

.section-head .section-sub {
	margin: 0;
	max-width: 56ch;
}

.section-head .rating-pill {
	margin-top: 4px;
}

/* Services: 6 cards / 2 rows + photo */
.service-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.service-card {
	padding: 0;
	overflow: hidden;
}

.service-card .service-top,
.service-card .service-body {
	padding: 22px 22px 20px;
}

.service-card .service-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 18px;
}

.service-card .service-body h3 {
	margin-top: 0;
}

.service-card.has-photo .service-body h3 {
	margin-top: 10px;
}

.service-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eef8;
}

.service-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.service-card:hover .service-media img {
	transform: scale(1.05);
}

.service-media .service-num {
	position: absolute;
	right: 14px;
	bottom: 8px;
	color: rgba(255, 255, 255, 0.85);
	-webkit-text-stroke: 0;
	text-shadow: 0 2px 10px rgba(15, 37, 82, 0.35);
	font-size: 36px;
}

.service-ico--sm {
	width: 40px;
	height: 40px;
	font-size: 18px;
}

.service-card .service-more {
	margin-top: 18px;
}

/* Programs: 6 cards / 2 rows + photo */
.program-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-media.has-photo {
	background: #dbe7f8;
}

.program-media.has-photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	object-fit: cover;
}

.program-media {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.service-grid,
	.program-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.service-grid,
	.program-grid {
		grid-template-columns: 1fr;
	}
}

/* Programs explore head — centered, title 1 line, eyebrow level with title */
.explore-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 40px;
	gap: 0;
}

.explore-head .explore-copy {
	max-width: 860px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.explore-title-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.explore-title-row .eyebrow {
	margin: 0;
}

.explore-head h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--navy, #0f2552);
	white-space: nowrap;
}

.explore-head h2 em {
	font-style: normal;
	color: var(--primary, #1554b8);
	background: linear-gradient(
		180deg,
		transparent 48%,
		rgba(42, 155, 230, 0.14) 58%,
		rgba(42, 155, 230, 0.22) 58%
	);
	padding: 0 0.06em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.explore-head .explore-copy > p {
	margin: 0;
	max-width: 52ch;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--muted, #64748b);
}

.explore-head .explore-copy > .btn {
	margin-top: 6px;
}

/* Program cards: title + go icon on one row, centered */
.program-body {
	text-align: center;
	align-items: center;
}

.program-body::before {
	left: 50%;
	transform: translateX(-50%);
}

.program-title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
	width: 100%;
}

.program-title-row h3 {
	margin: 0;
	white-space: nowrap;
}

.program-go {
	align-self: center;
	margin-top: 0;
	flex: none;
}

.program-body > p {
	text-align: center;
}

/* Panel heads: icon trên — tiêu đề dưới, căn giữa */
.panel-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	gap: 8px;
	margin-bottom: 20px;
	padding-inline: 48px;
}

.panel-head__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.panel-head__title-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.panel-head__title-row h2 {
	margin: 0;
	white-space: nowrap;
}

.panel-head .ico {
	width: 40px;
	height: 40px;
	font-size: 18px;
	border-radius: 11px;
}

.panel-head p {
	margin: 0;
}

.panel-head .nav-btns {
	position: absolute;
	right: 0;
	top: 0;
	margin-left: 0;
	transform: none;
}

/* Schools showcase — card grid như mẫu “Trường học nổi bật” */
.schools-box {
	display: none;
}

.schools-showcase {
	margin-top: 8px;
}

.schools-archive__range {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
}

.schools-pagination {
	margin: 32px 0 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.schools-pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.schools-pagination__item a,
.schools-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 11px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #0f2552;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(15, 37, 82, 0.04);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.schools-pagination__item a:hover {
	border-color: var(--primary-100, #cfe0f8);
	color: var(--primary, #1554b8);
}

.schools-pagination__item.is-current span,
.schools-pagination__item .current {
	background: var(--primary, #1554b8);
	border-color: var(--primary, #1554b8);
	color: #fff;
	box-shadow: 0 8px 18px rgba(21, 84, 184, 0.22);
}

.schools-pagination__meta {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}

.schools-archive__consult {
	margin-top: 36px;
	padding: 28px 24px;
	border-radius: 18px;
	background: linear-gradient(135deg, #f3f8ff, #eef5ff);
	border: 1px solid #dbe7f8;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.schools-archive__consult p {
	margin: 0;
	max-width: 46ch;
	font-size: 15.5px;
	font-weight: 600;
	color: #0f2552;
	line-height: 1.45;
}

.schools-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.school-card {
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 22px rgba(15, 37, 82, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.school-card:hover {
	transform: translateY(-4px);
	border-color: var(--primary-100, #cfe0f8);
	box-shadow: 0 16px 36px rgba(21, 84, 184, 0.14);
}

.school-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, #f4f8ff, #eef2f8);
	border-bottom: 1px solid #eef2f7;
	overflow: hidden;
}

.school-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.school-card__crest {
	width: 88px;
	height: 88px;
	border-radius: 22px;
	display: grid;
	place-items: center;
	background: var(--crest, #1554b8);
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.02em;
	box-shadow: 0 12px 28px rgba(15, 37, 82, 0.18);
}

.school-card__body {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.school-card__tag {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary, #1554b8);
}

.school-card__title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f2552;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.school-card__title a {
	color: inherit;
	text-decoration: none;
}

.school-card__title a:hover {
	color: var(--primary, #1554b8);
}

.school-card__loc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.school-card__loc .icon {
	width: 14px;
	height: 14px;
	color: #94a3b8;
	flex: none;
}

.school-card__meta {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.school-card__meta li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	line-height: 1.35;
}

.school-card__meta .icon {
	width: 15px;
	height: 15px;
	color: var(--primary, #1554b8);
	flex: none;
	margin-top: 1px;
}

.school-card__meta b {
	color: var(--primary, #1554b8);
	font-weight: 700;
}

.school-card__more {
	margin-top: auto;
	padding-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--primary, #1554b8);
	text-decoration: none;
}

.school-card__more .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.2s;
}

.school-card__more:hover .icon {
	transform: translateX(3px);
}

.schools-empty {
	text-align: center;
	color: #64748b;
	margin: 12px 0 0;
}

.schools-showcase__cta {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.schools-all-btn {
	min-width: min(360px, 100%);
	justify-content: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 800;
}

@media (max-width: 1100px) {
	.schools-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.schools-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.schools-grid {
		grid-template-columns: 1fr;
	}

	.schools-filters {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.schools-filter-btn {
		flex: none;
		white-space: nowrap;
	}
}

/* Hero / page script: taller highlight, keep flourishes readable */
.hero-title .script,
.ph-title .script {
	line-height: 1.22;
	padding: 0.02em 0.08em 0.08em;
	margin-left: -0.08em;
	background: linear-gradient(
		180deg,
		transparent 40%,
		rgba(42, 155, 230, 0.12) 52%,
		rgba(42, 155, 230, 0.22) 52%
	);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 980px) {
	.explore-head {
		align-items: center;
		text-align: center;
	}

	.explore-head .explore-copy {
		align-items: center;
	}
}

@media (max-width: 720px) {
	.section-head .section-title,
	.explore-head h2,
	.panel-head__title-row h2,
	.program-title-row h3 {
		white-space: normal;
		text-align: center;
	}

	.section-head .section-title {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.panel-head {
		padding-inline: 0 44px;
	}

	.section-head__row .section-title::after {
		display: none;
	}
}

.faq-side,
.reco-intro {
	text-align: left;
}

.faq-side-photo,
.reco-intro-photo {
	margin: 18px 0 8px;
	border-radius: 18px;
	overflow: hidden;
	max-width: 360px;
	box-shadow: 0 12px 28px rgba(15, 37, 82, 0.1);
}

.faq-side-photo img,
.reco-intro-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Finder: map + detail popup ---------- */
.finder-board {
	display: none;
	margin-top: 22px;
}

.finder-board.is-show {
	display: block;
	animation: fadeUp 0.4s;
}

.finder-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.finder-status {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy, #0f2552);
}

.finder-reset {
	flex: none;
}

.finder-map-panel {
	position: relative;
	z-index: 1;
	isolation: isolate;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--line, #e2e8f0);
	background: #e8eef8;
	min-height: 460px;
}

.finder-map {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 540px;
	background: #e8eef5;
}

.finder-map .leaflet-container {
	z-index: 0;
}

.finder-map .leaflet-tile-pane {
	filter: saturate(0.88) brightness(1.03) contrast(0.96);
}

.finder-map .leaflet-tile {
	image-rendering: auto;
}

.wk-map-pin {
	background: transparent !important;
	border: 0 !important;
}

.wk-pin {
	position: relative;
	width: 100%;
	height: 100%;
	pointer-events: auto;
}

.wk-map-pin .wk-pin-dot {
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 14px;
	height: 14px;
	margin: 0 0 0 -7px;
	border-radius: 50%;
	background: #7c3aed;
	box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(124, 58, 237, 0.45);
	z-index: 2;
	transition: transform 0.2s ease;
}

.wk-map-pin .wk-pin-pulse {
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 36px;
	height: 36px;
	margin: 0 0 0 -18px;
	border-radius: 50%;
	background: rgba(124, 58, 237, 0.22);
	box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.1);
	animation: wkPinPulse 2.2s ease-out infinite;
	z-index: 1;
	pointer-events: none;
}

/* Card ảnh + tên: hiện khi hover hoặc zoom gần */
.wk-pin-card {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translate(-50%, 6px) scale(0.92);
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 132px;
	max-width: 160px;
	padding: 5px 10px 5px 5px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(15, 37, 82, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 3;
}

.wk-pin-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 2px 2px 4px rgba(15, 37, 82, 0.06);
}

.wk-pin-thumb {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 9px;
	overflow: hidden;
	background: linear-gradient(145deg, #ede9fe, #dbeafe);
	display: grid;
	place-items: center;
}

.wk-pin-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wk-pin-code {
	font-size: 11px;
	font-weight: 800;
	color: #5b21b6;
	letter-spacing: 0.02em;
}

.wk-pin-name {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.25;
	color: #0f2552;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wk-pin.is-hover .wk-pin-card,
.wk-pin:hover .wk-pin-card,
.finder-map.is-close-zoom .wk-pin-card {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	pointer-events: auto;
}

.wk-pin.is-hover .wk-pin-dot,
.wk-pin:hover .wk-pin-dot,
.finder-map.is-close-zoom .wk-pin-dot {
	transform: scale(1.12);
}

.finder-map.is-close-zoom .wk-pin-pulse {
	animation: none;
	opacity: 0.35;
}

@keyframes wkPinPulse {
	0% {
		transform: scale(0.72);
		opacity: 0.9;
	}
	70% {
		transform: scale(1.15);
		opacity: 0.25;
	}
	100% {
		transform: scale(1.25);
		opacity: 0;
	}
}

.finder-detail-ph {
	display: grid;
	place-items: center;
	min-height: 180px;
	height: 100%;
	background: linear-gradient(145deg, #ede9fe, #dbeafe);
	color: #5b21b6;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.04em;
}

.finder-more {
	position: relative;
}

.finder-more-list {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	min-width: 240px;
	max-width: 320px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(15, 37, 82, 0.16);
	padding: 8px;
	display: grid;
	gap: 4px;
	z-index: 3;
}

.finder-more-list a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #0f2552;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35;
}

.finder-more-list a:hover {
	background: #f5f3ff;
	color: #6d28d9;
}

.wk-vn-island-label {
	background: transparent !important;
	border: 0 !important;
}

.wk-vn-island-label span {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #da251d;
	color: #da251d;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(15, 37, 82, 0.12);
}

/* Soften Leaflet chrome to match light Google-like map */
.finder-map-panel .leaflet-control-zoom a {
	border: 0 !important;
	color: #334155 !important;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 2px 8px rgba(15, 37, 82, 0.12);
}

.finder-map-panel .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.75) !important;
	font-size: 10px;
}

.finder-detail {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -54%);
	z-index: 20;
	width: min(520px, calc(100% - 28px));
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(15, 37, 82, 0.28);
	overflow: hidden;
	align-items: stretch;
}

.finder-detail-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 37, 82, 0.08);
	color: #475569;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.finder-detail-media {
	background: #dbeafe;
	min-height: 100%;
}

.finder-detail-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	object-fit: cover;
	object-position: center;
}

.finder-detail-body {
	padding: 16px 18px 14px;
	min-width: 0;
}

.finder-detail-body h3 {
	margin: 0 28px 12px 0;
	font-size: 15px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.35;
	text-transform: uppercase;
}

.finder-detail-body ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.finder-detail-body li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 8px;
	align-items: start;
	font-size: 13px;
	color: #475569;
	line-height: 1.4;
}

.finder-detail-body li strong {
	color: #1554b8;
	font-weight: 700;
}

.finder-detail-body li a {
	color: #334155;
	text-decoration: none;
}

.finder-detail-body .ico {
	width: 22px;
	height: 22px;
	margin-top: 0;
	border-radius: 50%;
	background: #facc15;
	display: inline-grid;
	place-items: center;
	flex: none;
	color: #92400e;
}

.finder-detail-body .ico .icon {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
}

.finder-detail-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
}

.finder-detail-actions .btn-consult {
	background: #facc15;
	color: #1e293b;
	border: 0;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.finder-detail-actions .btn-dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1554b8;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.finder-detail-actions .btn-dir .icon {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

@media (max-width: 700px) {
	.finder-map {
		height: 440px;
	}

	.finder-detail {
		grid-template-columns: 110px 1fr;
		transform: translate(-50%, -50%);
	}

	.finder-detail-body h3 {
		font-size: 13.5px;
	}
}

@media (max-width: 1180px) {
	.site-header .nav-link {
		padding: 0 8px;
		font-size: 13.5px;
	}
}

@media (max-width: 1024px) {
	.site-header .header-inner {
		display: flex;
		justify-content: space-between;
	}

	.site-header .nav {
		display: none;
	}

	.site-header .brand,
	.site-header .header-actions {
		justify-self: auto;
		grid-column: auto;
	}
}

/* ---------- Single school detail ---------- */
.school-hero {
	padding-bottom: 8px;
}

.school-hero__top {
	position: relative;
	z-index: 1;
	padding-top: 8px;
}

.school-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: 18px 0 40px;
}

.school-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	min-width: 0;
}

.school-hero__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.school-hero__badges .chip {
	margin: 0;
}

.school-hero__rank {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(21, 84, 184, 0.1);
	color: var(--primary, #1554b8);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.school-hero__title {
	margin: 2px 0 0;
	font-size: clamp(32px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--navy, #0f2552);
}

.school-hero__ko {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.3;
}

.school-hero__loc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #475569;
	font-size: 15px;
	font-weight: 600;
}

.school-hero__loc .icon {
	width: 16px;
	height: 16px;
	color: var(--primary, #1554b8);
	flex: none;
}

.school-hero__desc {
	margin: 2px 0 0;
	max-width: 46ch;
	font-size: 15.5px;
	line-height: 1.55;
	color: #64748b;
}

.school-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.school-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.school-hero__media {
	width: min(100%, 380px);
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8eef6;
	display: grid;
	place-items: center;
	box-shadow: 0 18px 44px rgba(15, 37, 82, 0.12);
}

.school-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.school-hero__crest {
	width: min(58%, 168px);
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	display: grid;
	place-items: center;
	background: var(--crest, #1554b8);
	color: #fff;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 14px 30px rgba(15, 37, 82, 0.22);
}

.school-detail {
	padding-top: 28px;
}

.school-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
	gap: 28px;
	align-items: start;
}

.school-facts {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.school-facts li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e8eef6;
	box-shadow: 0 8px 18px rgba(15, 37, 82, 0.04);
}

.school-facts__ico {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eff6ff;
	color: var(--primary, #1554b8);
	display: grid;
	place-items: center;
	flex: none;
}

.school-facts__ico .icon {
	width: 16px;
	height: 16px;
}

.school-facts small {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 2px;
}

.school-facts b {
	font-size: 14px;
	color: #0f2552;
	line-height: 1.35;
}

.school-panel {
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 18px;
	padding: 22px 22px 20px;
	margin-bottom: 16px;
	box-shadow: 0 8px 22px rgba(15, 37, 82, 0.04);
}

.school-panel h2 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	color: #0f2552;
}

.school-panel__body {
	color: #334155;
	font-size: 15px;
	line-height: 1.65;
}

.school-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.school-level-chip {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--primary, #1554b8);
	font-size: 13px;
	font-weight: 700;
}

.school-contact-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.school-contact-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: #334155;
	font-size: 14.5px;
	line-height: 1.45;
}

.school-contact-list .icon {
	width: 16px;
	height: 16px;
	color: var(--primary, #1554b8);
	flex: none;
	margin-top: 2px;
}

.school-contact-list a {
	color: var(--primary, #1554b8);
	font-weight: 700;
	text-decoration: none;
}

.school-map {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	aspect-ratio: 16 / 9;
	background: #eef2f7;
}

.school-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.school-articles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.school-articles a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f8fbff;
	border: 1px solid #e8eef6;
	color: #0f2552;
	font-weight: 700;
	text-decoration: none;
}

.school-articles a:hover {
	border-color: var(--primary-100, #cfe0f8);
	color: var(--primary, #1554b8);
}

.school-detail__side {
	position: sticky;
	top: 96px;
}

.school-side-card {
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 18px;
	padding: 22px 20px;
	box-shadow: 0 14px 34px rgba(15, 37, 82, 0.08);
}

.school-side-card h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: #0f2552;
}

.school-side-card > p {
	margin: 0 0 14px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}

.school-side-form {
	display: grid;
	gap: 10px;
	margin-bottom: 12px;
}

.school-side-card .text-link {
	margin-top: 12px;
}

@media (max-width: 980px) {
	.school-hero__grid {
		grid-template-columns: 1fr;
		justify-items: stretch;
		padding-bottom: 28px;
	}

	.school-hero__visual {
		order: -1;
	}

	.school-hero__media {
		width: min(100%, 320px);
		margin: 0 auto;
	}

	.school-hero__copy {
		align-items: flex-start;
	}

	.school-detail__layout {
		grid-template-columns: 1fr;
	}

	.school-detail__side {
		position: static;
	}

	.school-facts {
		grid-template-columns: 1fr;
	}
}
