.home-page {
	--home-ink: #1e2c35;
	--home-muted: #66747b;
	--home-blue: #315f78;
	--home-blue-dark: #173b50;
	--home-pale: #eef3f2;
	--home-warm: #f6f1e9;
	--home-warm-light: #fbf8f2;
	--home-mist-blue: #edf3f5;
	--home-mist-green: #eff4f1;
	--home-line: rgba(30, 44, 53, 0.14);
	background: #fff;
	color: var(--home-ink);
	overflow: hidden;
}

.app-main--home {
	padding-bottom: 0;
}

.home-page *,
.home-page *::before,
.home-page *::after {
	box-sizing: border-box;
}

.home-shell {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.home-hero {
	position: relative;
	min-height: calc(100vh - 56px);
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--home-blue-dark);
}

.home-hero__media {
	inset: -2px;
}

.home-hero__media,
.home-final__media {
	position: absolute;
	inset: 0;
	background: url("../images/book_a_trial/banner.jpg") center center / cover no-repeat;
	z-index: -3;
	transform: scale(1.01);
}

.home-hero__overlay {
	position: absolute;
	inset: -2px;
	background:
		linear-gradient(90deg, rgba(8, 34, 49, 0.88) 0%, rgba(13, 48, 67, 0.68) 44%, rgba(12, 41, 56, 0.16) 78%),
		linear-gradient(0deg, rgba(7, 26, 36, 0.25), transparent 45%);
	z-index: -2;
}

.home-hero__content {
	padding: 110px 0 92px;
	color: #fff;
}

.home-eyebrow,
.home-kicker {
	margin: 0 0 18px;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.home-eyebrow {
	color: #c9dce5;
}

.home-hero h1 {
	max-width: 770px;
	margin: 0;
	font-size: clamp(2.6rem, 5.4vw, 5.2rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: 0.015em;
}

.home-hero__description {
	max-width: 680px;
	margin: 28px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.9;
}

.home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 38px;
}

.home-button {
	min-width: 158px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border: 1px solid transparent;
	font-size: 0.96rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.home-button:hover {
	transform: translateY(-2px);
}

.home-button--primary {
	background: #fff;
	color: var(--home-blue-dark);
}

.home-button--primary:hover,
.home-button--light:hover {
	background: #dce9ee;
	color: var(--home-blue-dark);
}

.home-button--ghost {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.home-button--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.home-hero__note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 30px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.88rem;
}

.home-hero__note span {
	width: 32px;
	height: 1px;
	background: rgba(255, 255, 255, 0.55);
}

.home-section {
	padding: 112px 0;
}

.home-grid {
	display: grid;
	gap: 76px;
	align-items: center;
}

.home-grid--method {
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.home-method {
	background: var(--home-warm);
}

.home-method__image {
	position: relative;
}

.home-method__image::after {
	content: "";
	position: absolute;
	right: -18px;
	bottom: -18px;
	width: 42%;
	height: 46%;
	border: 1px solid rgba(49, 95, 120, 0.35);
	z-index: 0;
}

.home-method__image img {
	position: relative;
	width: 100%;
	min-height: 430px;
	display: block;
	object-fit: cover;
	z-index: 1;
	filter: saturate(0.82);
}

.home-kicker {
	color: var(--home-blue);
}

.home-page h2 {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 3.5rem);
	font-weight: 500;
	line-height: 1.28;
}

.home-method__content > p:not(.home-kicker) {
	margin: 24px 0 0;
	color: var(--home-muted);
	font-size: 1rem;
	line-height: 1.95;
}

.home-text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	border-bottom: 1px solid currentColor;
	color: var(--home-blue-dark);
	font-size: 0.94rem;
	font-weight: 500;
	padding-bottom: 4px;
}

.home-text-link:hover {
	color: var(--home-blue);
}

.home-text-link span {
	transition: transform 0.2s ease;
}

.home-text-link:hover span {
	transform: translateX(4px);
}

.home-section-heading {
	max-width: 720px;
	margin-bottom: 58px;
}

.home-section-heading > p:last-child {
	margin: 18px 0 0;
	color: var(--home-muted);
	line-height: 1.8;
}

.home-section-heading--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.home-section-heading--row > div {
	max-width: 760px;
}

.home-section-heading--row > div > p:last-child {
	margin: 18px 0 0;
	color: var(--home-muted);
	line-height: 1.8;
}

.home-section-heading--row > .home-text-link {
	flex: 0 0 auto;
	margin-bottom: 7px;
}

.home-feature-grid,
.home-path-grid,
.home-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature {
	padding: 10px 44px 16px 0;
	border-right: 1px solid var(--home-line);
}

.home-feature + .home-feature {
	padding-left: 44px;
}

.home-feature:last-child {
	border-right: 0;
	padding-right: 0;
}

.home-feature__number {
	color: #8ba5b2;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
}

.home-feature h3,
.home-path-step h3,
.home-news-card h3 {
	margin: 24px 0 14px;
	font-size: 1.35rem;
	font-weight: 500;
}

.home-feature p,
.home-path-step p {
	margin: 0;
	color: var(--home-muted);
	line-height: 1.85;
}

.home-features {
	background: var(--home-mist-blue);
}

.home-courses {
	background: var(--home-warm-light);
}

.home-courses__link {
	display: block;
	color: inherit;
	cursor: pointer;
}

.home-courses__link:hover {
	color: inherit;
}

.home-courses__link .home-text-link {
	pointer-events: none;
}

.home-course-levels {
	display: grid;
	gap: 62px;
}

.home-course-level {
	padding-top: 4px;
}

.home-course-level__header {
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(49, 95, 120, 0.28);
}

.home-course-level__header h3 {
	margin: 0;
	color: var(--home-blue-dark);
	font-size: 1.65rem;
	font-weight: 600;
}

.home-course-level__header p {
	max-width: 880px;
	margin: 8px 0 0;
	color: var(--home-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.home-course-grid,
.home-teacher-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.home-course-card {
	min-height: 210px;
	padding: 26px;
	border: 1px solid rgba(30, 44, 53, 0.08);
	border-radius: 14px;
	background: #fff;
	box-shadow:
		0 2px 6px rgba(0, 0, 0, 0.05),
		0 8px 18px rgba(0, 0, 0, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-courses__link:hover .home-course-card {
	transform: translateY(-5px);
	box-shadow:
		0 6px 20px rgba(0, 0, 0, 0.1),
		0 12px 30px rgba(0, 0, 0, 0.07);
}

.home-course-card h4 {
	margin: 0;
	color: var(--home-blue-dark);
	font-size: 1.3rem;
	font-weight: 600;
}

.home-course-card__description {
	margin: 14px 0 0;
	color: var(--home-muted);
	font-size: 0.93rem;
	line-height: 1.75;
}

.home-course-level__more {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 18px 0 0;
	color: var(--home-blue-dark);
	font-size: 0.88rem;
	font-weight: 500;
}

.home-empty {
	margin: 0;
	padding: 44px;
	border: 1px solid var(--home-line);
	color: var(--home-muted);
	text-align: center;
}

.home-schedules {
	background: #fff;
}

.home-schedule-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.home-schedule-card {
	position: relative;
	min-height: 400px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}

.home-schedule-card::before,
.home-schedule-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
}

.home-schedule-card::before {
	background: url("../images/course/banner.jpg") center / cover no-repeat;
	transition: transform 0.55s ease;
}

.home-schedule-card:hover::before {
	transform: scale(1.035);
}

.home-schedule-card::after {
	z-index: -1;
}

.home-schedule-card--booking::after {
	background: linear-gradient(0deg, rgba(12, 44, 61, 0.96), rgba(18, 59, 78, 0.58) 72%, rgba(18, 59, 78, 0.2));
}

.home-schedule-card--weekly::after {
	background: linear-gradient(0deg, rgba(245, 243, 235, 0.98), rgba(245, 243, 235, 0.78) 72%, rgba(245, 243, 235, 0.28));
}

.home-schedule-card__content {
	width: 100%;
	padding: 40px;
}

.home-schedule-card--booking {
	color: #fff;
}

.home-schedule-card--weekly {
	color: var(--home-ink);
}

.home-schedule-card__label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.home-schedule-card--booking .home-schedule-card__label {
	color: #b9d1dc;
}

.home-schedule-card--weekly .home-schedule-card__label {
	color: var(--home-blue);
}

.home-schedule-card h3 {
	margin: 14px 0;
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	font-weight: 500;
}

.home-schedule-card__content > p:not(.home-schedule-card__label) {
	max-width: 520px;
	margin: 0;
	line-height: 1.8;
}

.home-schedule-card--booking .home-schedule-card__content > p {
	color: rgba(255, 255, 255, 0.76);
}

.home-schedule-card--weekly .home-schedule-card__content > p {
	color: #52636b;
}

.home-schedule-card .home-button {
	margin-top: 28px;
}

.home-button--outline-dark {
	border-color: var(--home-blue-dark);
	color: var(--home-blue-dark);
	background: rgba(255, 255, 255, 0.28);
}

.home-button--outline-dark:hover {
	background: var(--home-blue-dark);
	color: #fff;
}

.home-teachers {
	background: var(--home-mist-green);
}

.home-teacher-card {
	min-width: 0;
	padding: 26px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	text-align: center;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-teacher-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.home-teacher-card__link {
	display: block;
	color: inherit;
}

.home-teacher-card__image {
	width: 130px;
	height: 130px;
	overflow: hidden;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--home-pale);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.home-teacher-card__image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.55s ease, filter 0.55s ease;
}

.home-teacher-card:hover .home-teacher-card__image img {
	transform: scale(1.08);
}

.home-teacher-card h3 {
	margin: 18px 0 0;
	color: var(--home-blue-dark);
	font-size: 1.1rem;
	font-weight: 600;
	transition: color 0.3s ease;
}

.home-teacher-card:hover h3 {
	color: var(--home-blue);
}

.home-path {
	background: var(--home-blue-dark);
	color: #fff;
}

.home-section-heading--light .home-kicker {
	color: #a9c4d1;
}

.home-path-grid {
	gap: 28px;
}

.home-path-step {
	min-height: 260px;
	padding: 34px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.035);
}

.home-path-step > span {
	color: #95b6c5;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
}

.home-path-step p {
	color: rgba(255, 255, 255, 0.68);
}

.home-path__action {
	margin-top: 36px;
	text-align: center;
}

.home-button--light {
	background: #fff;
	color: var(--home-blue-dark);
}

.home-news {
	background: #fff;
}

.home-news__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	margin-bottom: 48px;
}

.home-news__header > div > p:last-child {
	margin: 16px 0 0;
	color: var(--home-muted);
}

.home-news__header .home-text-link {
	flex: 0 0 auto;
	margin-bottom: 7px;
}

.home-news-grid {
	gap: 28px;
}

.home-news-card {
	border: 1px solid var(--home-line);
	background: #fcfdfd;
}

.home-news-card__image {
	aspect-ratio: 16 / 10;
	display: block;
	overflow: hidden;
	background: var(--home-pale);
}

.home-news-card__image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.home-news-card:hover .home-news-card__image img {
	transform: scale(1.035);
}

.home-news-card__body {
	position: relative;
	padding: 26px;
}

.home-news-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	color: #7b8d95;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
}

.home-news-card h3 {
	margin-top: 18px;
	line-height: 1.45;
}

.home-news-card__body > p:not(.home-news-card__meta) {
	min-height: 3.5em;
	margin: 0;
	color: var(--home-muted);
	line-height: 1.75;
}

.home-news-card .home-text-link {
	display: flex;
	width: fit-content;
	margin: 28px 0 0 auto;
}

.home-news-read__short {
	display: none;
}

.home-news-list-item {
	display: none;
}

.home-location {
	background: #f4eee5;
}

.home-location-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
	gap: 70px;
	align-items: stretch;
}

.home-location__map {
	min-height: 560px;
	background: var(--home-pale);
}

.home-location__map iframe {
	width: 100%;
	height: 100%;
	min-height: 560px;
	display: block;
	border: 0;
	filter: saturate(0.78) contrast(0.95);
}

.home-location__content {
	padding: 36px 0;
}

.home-location__intro {
	margin: 24px 0 0;
	color: var(--home-muted);
	line-height: 1.85;
}

.home-location__details {
	margin: 36px 0 0;
}

.home-location__details > div {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 20px;
	padding: 17px 0;
	border-bottom: 1px solid var(--home-line);
}

.home-location__details dt {
	color: #82939a;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-location__details dd {
	margin: 0;
	color: var(--home-ink);
	line-height: 1.65;
}

.home-location__details a {
	color: var(--home-ink);
}

.home-button--primary-dark {
	background: var(--home-blue-dark);
	color: #fff;
}

.home-button--primary-dark:hover {
	background: var(--home-blue);
	color: #fff;
}

.home-location__content .home-actions {
	align-items: center;
}

.home-location__content .home-text-link {
	margin-top: 0;
}

.home-final {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--home-blue-dark);
	color: #fff;
}

.home-final__media {
	inset: -2px;
	background-position: center 45%;
}

.home-final__overlay {
	position: absolute;
	inset: -2px;
	background: linear-gradient(90deg, rgba(9, 31, 43, 0.9), rgba(14, 45, 59, 0.58) 58%, rgba(14, 45, 59, 0.2));
	z-index: -2;
}

.home-final__content {
	padding: 90px 0;
}

.home-final__content .home-kicker {
	color: #bdd1da;
}

.home-final__content h2 {
	max-width: 760px;
}

.home-final__content > p:not(.home-kicker) {
	max-width: 650px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.05rem;
	line-height: 1.9;
}

.home-button--ghost-light {
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

.home-button--ghost-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.home-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

.home-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 991.98px) {
	.home-grid--method {
		grid-template-columns: 1fr;
	}

	.home-grid {
		gap: 52px;
	}

	.home-method__image {
		max-width: 760px;
	}

	.home-feature-grid,
	.home-path-grid {
		grid-template-columns: 1fr;
	}

	.home-feature,
	.home-feature + .home-feature,
	.home-feature:last-child {
		padding: 28px 0;
		border-right: 0;
		border-bottom: 1px solid var(--home-line);
	}

	.home-feature:last-child {
		border-bottom: 0;
	}

	.home-path-step {
		min-height: auto;
	}

	.home-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-course-grid,
	.home-teacher-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-teacher-card__image {
		width: 110px;
		height: 110px;
	}

	.home-schedule-grid {
		grid-template-columns: 1fr;
	}

	.home-location-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.home-location__content {
		padding: 0;
	}
}

@media (max-width: 767.98px) {
	.home-shell {
		width: min(100% - 32px, 1180px);
	}

	.home-hero {
		min-height: 720px;
		align-items: flex-end;
	}

	.home-hero__media {
		background-position: 61% center;
	}

	.home-hero__overlay {
		background: linear-gradient(0deg, rgba(7, 29, 42, 0.95) 4%, rgba(10, 39, 55, 0.78) 53%, rgba(9, 37, 53, 0.23) 100%);
	}

	.home-hero__content {
		padding: 100px 0 64px;
	}

	.home-hero h1 {
		font-size: clamp(2.35rem, 10.5vw, 3.55rem);
	}

	.home-section {
		padding: 82px 0;
	}

	.home-method__image::after {
		right: -10px;
		bottom: -10px;
	}

	.home-method__image img {
		min-height: 300px;
	}

	.home-section-heading {
		margin-bottom: 36px;
	}

	.home-section-heading--row {
		display: block;
	}

	.home-section-heading--row > .home-text-link {
		margin-top: 24px;
	}

	.home-news__header {
		display: block;
	}

	.home-news__header .home-text-link {
		margin-top: 24px;
	}

	.home-news-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.home-news-card {
		display: none;
	}

	.home-news-list-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		align-items: center;
		padding: 18px 8px;
		border-bottom: 1px solid rgba(49, 95, 120, 0.28);
		color: var(--home-ink);
	}

	.home-news-list-item:first-child {
		border-top: 1px solid rgba(49, 95, 120, 0.28);
	}

	.home-news-list-item:hover {
		color: rgb(74, 133, 122);
	}

	.home-news-list-item__content {
		min-width: 0;
	}

	.home-news-list-item h3 {
		margin: 0;
		font-size: 17px;
		font-weight: 500;
		line-height: 24px;
	}

	.home-news-list-item > .home-news-list-item__content > p {
		display: -webkit-box;
		overflow: hidden;
		margin: 5px 0 12px;
		color: var(--bs-secondary-color);
		font-size: 0.82rem;
		line-height: 1.55;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.home-news-list-item__meta {
		display: flex;
		gap: 16px;
		align-items: center;
		color: #666;
		font-size: 14px;
	}

	.home-news-list-item__tag {
		padding: 2px 8px;
		border: 1px solid rgb(74, 133, 122);
		border-radius: 50px;
		color: rgb(74, 133, 122);
		font-size: 13px;
	}

	.home-news-list-item__date {
		color: #666;
		font-size: 13px;
	}

	.home-news-list-item__arrow {
		color: rgb(74, 133, 122);
		font-size: 1.25rem;
		text-align: right;
	}

	.home-course-grid,
	.home-teacher-grid {
		grid-template-columns: 1fr;
	}

	.home-teacher-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.home-course-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(82%, 1fr);
		overflow-x: auto;
		gap: 14px;
		padding: 2px 2px 14px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.home-course-card {
		scroll-snap-align: start;
	}

	.home-teacher-card {
		padding: 16px 10px;
	}

	.home-teacher-card__image {
		width: 100px;
		height: 100px;
	}

	.home-course-card {
		min-height: 0;
		padding: 24px;
	}

	.home-course-levels {
		gap: 48px;
	}

	.home-course-level__header h3 {
		font-size: 1.4rem;
	}

	.home-schedule-card {
		min-height: 360px;
	}

	.home-schedule-card__content {
		padding: 30px 24px;
	}

	.home-location__map,
	.home-location__map iframe {
		min-height: 380px;
	}

	.home-location__details > div {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.home-final {
		min-height: 660px;
		align-items: flex-end;
	}

	.home-final__media {
		background-position: 64% center;
	}

	.home-final__overlay {
		background: linear-gradient(0deg, rgba(7, 29, 42, 0.96), rgba(10, 39, 55, 0.68) 72%, rgba(9, 37, 53, 0.2));
	}

	.home-final__content {
		padding: 78px 0;
	}
}

@media (max-width: 420px) {
	.home-actions {
		display: grid;
	}

	.home-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-page *,
	.home-page *::before,
	.home-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.home-reveal {
		opacity: 1;
		transform: none;
	}
}
