.mks-homepage-template {
	--mks-home-bg: #f9f6f6;
	--mks-home-card: #ffffff;
	--mks-home-ink: #26334d;
	--mks-home-muted: #60728f;
	--mks-home-black: #0b0d17;
	--mks-home-purple: #864af9;
	--mks-home-blue: #4267b2;
	--mks-home-orange: #ff6600;
	--mks-home-orange-dark: #f7630c;
	--mks-home-lime: #daf60d;
	--mks-home-border: rgba(66, 103, 178, 0.16);
	--mks-home-shadow: 0 22px 60px rgba(22, 34, 66, 0.12);
	--mks-home-radius: 22px;
	color: var(--mks-home-ink);
	font-family: Montserrat, Arial, sans-serif;
}

.mks-homepage-template *,
.mks-homepage-template *::before,
.mks-homepage-template *::after {
	box-sizing: border-box;
}

.mks-homepage-template img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mks-homepage-template a {
	color: inherit;
}

.mks-homepage-template__hero,
.mks-homepage-template__searchband,
.mks-homepage-template__section,
.mks-homepage-template__contact,
.mks-homepage-template__apps {
	width: min(1290px, calc(100% - 32px));
	margin: 0 auto 28px;
}

.mks-homepage-template__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
	gap: 28px;
	padding: 28px;
	background:
		radial-gradient(circle at top right, rgba(134, 74, 249, 0.4), transparent 32%),
		linear-gradient(135deg, #000000 0%, #17132d 52%, #20234a 100%);
	border-radius: 28px;
	box-shadow: var(--mks-home-shadow);
}

.mks-homepage-template__hero-media img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
	border-radius: var(--mks-home-radius);
}

.mks-homepage-template__hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 4px;
	color: #ffffff;
}

.mks-homepage-template__eyebrow {
	margin: 0 0 12px;
	font-family: Poppins, Montserrat, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mks-home-orange);
}

.mks-homepage-template__hero-copy h1,
.mks-homepage-template__section-copy h2,
.mks-homepage-template__contact-card h2 {
	margin: 0 0 14px;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
	line-height: 1.18;
}

.mks-homepage-template__hero-copy h1 {
	font-size: clamp(2rem, 3.2vw, 3.4rem);
	color: var(--mks-home-lime);
}

.mks-homepage-template__lead {
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.mks-home-form {
	display: grid;
	gap: 12px;
}

.mks-home-form input,
.mks-home-search__input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 0.98rem;
}

.mks-home-search__input {
	background: #ffffff;
	border-color: rgba(0, 0, 0, 0.08);
	color: var(--mks-home-ink);
}

.mks-home-form input::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.mks-home-form input:focus,
.mks-home-search__input:focus {
	outline: 2px solid rgba(218, 246, 13, 0.42);
	outline-offset: 2px;
}

.mks-home-button,
.mks-home-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--mks-home-orange), var(--mks-home-orange-dark));
	box-shadow: 0 18px 28px rgba(247, 99, 12, 0.24);
	color: #ffffff;
	font-family: Poppins, Montserrat, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mks-home-button:hover,
.mks-home-button:focus {
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 22px 36px rgba(247, 99, 12, 0.28);
}

.mks-home-button--ghost,
.mks-home-button--ghost:visited {
	background: transparent;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.mks-home-form__helper {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(218, 246, 13, 0.14);
	color: #ffffff;
	font-size: 0.9rem;
}

.mks-homepage-template__apps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.mks-homepage-template__app-link {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--mks-home-shadow);
}

.mks-homepage-template__app-link img {
	width: 100%;
}

.mks-homepage-template__searchband,
.mks-homepage-template__section,
.mks-homepage-template__contact {
	padding: clamp(24px, 4vw, 36px);
	background:
		radial-gradient(circle at top right, rgba(134, 74, 249, 0.11), transparent 26%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1));
	border: 1px solid var(--mks-home-border);
	border-radius: 28px;
	box-shadow: var(--mks-home-shadow);
}

.mks-homepage-template__searchband {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
	gap: 24px;
	align-items: center;
	background:
		radial-gradient(circle at top right, rgba(218, 246, 13, 0.15), transparent 22%),
		linear-gradient(125deg, #100f19 0%, #2f265c 58%, #4f2ca5 100%);
	color: #ffffff;
}

.mks-homepage-template__searchband .mks-homepage-template__section-copy h2,
.mks-homepage-template__searchband .mks-homepage-template__section-copy p {
	color: #ffffff;
}

.mks-home-search {
	padding: 18px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	backdrop-filter: blur(10px);
}

.mks-home-search__caption {
	margin: 10px 0 0;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.78);
}

.mks-homepage-template__section-copy {
	max-width: 760px;
	margin-bottom: 22px;
}

.mks-homepage-template__section-copy h2 {
	font-size: clamp(1.75rem, 2.3vw, 2.4rem);
	color: var(--mks-home-purple);
}

.mks-homepage-template__section-copy p {
	margin: 0;
	line-height: 1.7;
	color: var(--mks-home-muted);
}

.mks-home-destination-grid,
.mks-home-feature-grid,
.mks-home-program-grid,
.mks-home-stat-grid {
	display: grid;
	gap: 18px;
}

.mks-home-destination-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mks-home-destination-card,
.mks-home-feature-card,
.mks-home-stat-card {
	position: relative;
	padding: 24px;
	background: var(--mks-home-card);
	border: 1px solid rgba(66, 103, 178, 0.14);
	border-radius: 22px;
	box-shadow: 0 16px 32px rgba(24, 39, 75, 0.06);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mks-home-destination-card::before,
.mks-home-feature-card::before,
.mks-home-stat-card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 5px;
	border-radius: 22px 22px 0 0;
	background: linear-gradient(90deg, var(--mks-home-orange), var(--mks-home-purple), var(--mks-home-blue));
}

.mks-home-destination-card:hover,
.mks-home-feature-card:hover,
.mks-home-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 38px rgba(24, 39, 75, 0.1);
	border-color: rgba(134, 74, 249, 0.28);
}

.mks-home-destination-card__code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(134, 74, 249, 0.12), rgba(66, 103, 178, 0.14));
	color: var(--mks-home-purple);
	font-family: Poppins, Montserrat, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
}

.mks-home-destination-card h3,
.mks-home-feature-card h3,
.mks-home-stat-card h3,
.mks-home-program-card__face h3 {
	margin: 0 0 10px;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
}

.mks-home-destination-card p,
.mks-home-feature-card p,
.mks-home-stat-card p {
	margin: 0;
	color: var(--mks-home-muted);
	line-height: 1.65;
}

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

.mks-home-feature-card {
	overflow: hidden;
}

.mks-home-feature-card:nth-child(2n)::before {
	background: linear-gradient(90deg, var(--mks-home-blue), var(--mks-home-purple));
}

.mks-home-feature-card:nth-child(3n)::before {
	background: linear-gradient(90deg, var(--mks-home-purple), var(--mks-home-orange));
}

.mks-home-program-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	perspective: 1200px;
}

.mks-home-program-card {
	min-height: 280px;
	perspective: 1200px;
}

.mks-home-program-card__inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}

.mks-home-program-card:hover .mks-home-program-card__inner,
.mks-home-program-card:focus-within .mks-home-program-card__inner {
	transform: rotateY(180deg);
}

.mks-home-program-card__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	border-radius: 22px;
	backface-visibility: hidden;
	box-shadow: 0 18px 34px rgba(18, 31, 65, 0.1);
}

.mks-home-program-card__face--front {
	background:
		radial-gradient(circle at top right, rgba(218, 246, 13, 0.2), transparent 26%),
		linear-gradient(135deg, #0b0d17 0%, #23234b 55%, #4a2da2 100%);
	color: #ffffff;
}

.mks-home-program-card__face--back {
	transform: rotateY(180deg);
	background: #ffffff;
	border: 1px solid rgba(134, 74, 249, 0.16);
}

.mks-home-program-card__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mks-home-program-card__face--back .mks-home-program-card__badge {
	background: rgba(134, 74, 249, 0.1);
	color: var(--mks-home-purple);
}

.mks-home-program-card__face p {
	margin: 0 0 18px;
	line-height: 1.65;
}

.mks-home-empty-state {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(247, 99, 12, 0.08);
	color: var(--mks-home-orange-dark);
	font-weight: 600;
}

.mks-home-stat-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mks-home-stat-card {
	text-align: center;
	background:
		radial-gradient(circle at top right, rgba(218, 246, 13, 0.18), transparent 24%),
		linear-gradient(145deg, #17132d 0%, #2f265c 60%, #100f19 100%);
	color: #ffffff;
}

.mks-home-stat-card p {
	color: rgba(255, 255, 255, 0.76);
}

.mks-home-stat-card__number {
	margin-top: 12px;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: var(--mks-home-lime);
	letter-spacing: -0.03em;
}

.mks-homepage-template__contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	background:
		radial-gradient(circle at top right, rgba(247, 99, 12, 0.14), transparent 22%),
		linear-gradient(135deg, #090b12 0%, #161a2c 48%, #28316b 100%);
	color: #ffffff;
}

.mks-homepage-template__contact-card {
	padding: 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
}

.mks-homepage-template__contact-card h2 {
	color: #ffffff;
	font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.mks-homepage-template__contact-card p {
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.84);
}

.mks-homepage-template__contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.mks-homepage-template__contact-note {
	margin-top: 18px;
}

.mks-homepage-template__views .mks-view-counter {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.mks-homepage-template__views .mks-view-counter strong {
	color: var(--mks-home-lime);
}

.mks-homepage-template [data-mks-home-searchable].is-hidden {
	display: none;
}

@media (max-width: 1100px) {
	.mks-homepage-template__hero,
	.mks-homepage-template__searchband,
	.mks-homepage-template__contact,
	.mks-home-destination-grid,
	.mks-home-feature-grid,
	.mks-home-program-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 767px) {
	.mks-homepage-template__hero,
	.mks-homepage-template__searchband,
	.mks-homepage-template__contact,
	.mks-homepage-template__apps,
	.mks-home-destination-grid,
	.mks-home-feature-grid,
	.mks-home-program-grid,
	.mks-home-stat-grid {
		grid-template-columns: 1fr;
	}

	.mks-homepage-template__hero,
	.mks-homepage-template__searchband,
	.mks-homepage-template__section,
	.mks-homepage-template__contact {
		padding: 20px;
	}

	.mks-homepage-template__hero-media img {
		min-height: 240px;
	}

	.mks-home-program-card,
	.mks-home-program-card__inner {
		min-height: 250px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mks-home-destination-card,
	.mks-home-feature-card,
	.mks-home-stat-card,
	.mks-home-button,
	.mks-home-program-card__inner {
		transition: none;
	}

	.mks-home-program-card:hover .mks-home-program-card__inner,
	.mks-home-program-card:focus-within .mks-home-program-card__inner {
		transform: none;
	}
}
