/*
 * SkillGrox homepage 0.2.0
 * Everything is scoped under .sgx-site (the wrapper this plugin prints) or .sgx-body, so it cannot restyle
 * WooCommerce, Tutor LMS, account, cart or checkout pages. Loaded only on the new homepage template.
 * Fonts: inherits the theme's already-loaded Inter; no extra font requests.
 */

.sgx-site {
	--sgx-navy-950: #E4F3E8;
	--sgx-navy-900: #14251D;
	--sgx-navy-800: #2A4033;
	--sgx-navy-700: #EEF6F0;
	--sgx-violet: #1E7A4C;
	--sgx-violet-700: #155C39;
	--sgx-blue: #1E7A4C;
	--sgx-blue-700: #155C39;
	--sgx-indigo-200: #CDE8D5;
	--sgx-indigo-300: #B7D3C0;
	--sgx-ink: #14251D;
	--sgx-muted: #4B6156;
	--sgx-line: #D5E3D9;
	--sgx-tint: #FAFCF9;
	--sgx-white: #FFFFFF;
	--sgx-grad: linear-gradient(135deg, #1E7A4C 0%, #155C39 100%);
	--sgx-grad-hover: linear-gradient(135deg, #155C39 0%, #155C39 100%);
	--sgx-radius: 16px;
	--sgx-shadow: 0 1px 2px rgba(14, 42, 31, .06), 0 8px 24px rgba(14, 42, 31, .06);
	--sgx-shadow-lift: 0 2px 4px rgba(14, 42, 31, .06), 0 22px 44px rgba(30, 122, 76, .16);
	--sgx-ease: cubic-bezier(.2, .7, .2, 1);
	--sgx-offset: 90px; /* only used when the Woodmart header is kept (Settings > SkillGrox Home) */
	--sgx-section-y: 56px; /* vertical rhythm: 56 mobile, 64 tablet, 80 desktop (set in the breakpoints) */

	font-family: inherit;
	color: var(--sgx-ink);
	background: var(--sgx-white);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
@media (max-width: 1024px) {
	.sgx-site { --sgx-offset: 60px; }
}
.sgx-site--theme .sgx-home { margin-top: var(--sgx-offset); }

.sgx-site *, .sgx-site *::before, .sgx-site *::after { box-sizing: border-box; }
.sgx-site h1, .sgx-site h2, .sgx-site h3 { font-family: inherit; color: inherit; margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
.sgx-site p { margin: 0 0 1em; }
.sgx-site img { max-width: 100%; height: auto; }
.sgx-site a { text-decoration: none; }
.sgx-site ul, .sgx-site ol { list-style: none; margin: 0; padding: 0; }
.sgx-site .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.sgx-icon { flex: none; vertical-align: middle; }

/* focus */
.sgx-site a:focus-visible,
.sgx-site button:focus-visible,
.sgx-site summary:focus-visible {
	outline: 3px solid #1E7A4C; outline-offset: 3px; border-radius: 8px;
}
.sgx-hero a:focus-visible, .sgx-section--dark a:focus-visible, .sgx-cta a:focus-visible, .sgx-footer a:focus-visible {
	outline-color: #B7D3C0;
}
.sgx-skip {
	position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--sgx-navy-900, #FAFCF9); color: #14251D;
	padding: 12px 18px; border-radius: 10px; font-weight: 600; transition: top .15s;
}
.sgx-skip:focus { top: 12px; }

.sgx-wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 16px; } /* design: max-w-page px-4 sm:px-6 lg:px-8 */
@media (min-width: 640px) { .sgx-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .sgx-wrap { padding: 0 32px; } }
.sgx-wrap--narrow { max-width: 800px; }

/* ---------- buttons: the design's .btn (pill, 44px min, 15px/700, no lift, no gradient) ---------- */
.sgx-site .sgx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
	border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 24px; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.sgx-site .sgx-btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.sgx-site .sgx-btn--lg { padding: 10px 28px; font-size: 16px; } /* design: px-7 text-base */
.sgx-site .sgx-btn--primary { background-color: #1E7A4C; background-image: none; color: #fff; box-shadow: 0 6px 16px -8px rgba(30, 122, 76, .6); }
.sgx-site .sgx-btn--primary:hover { background-color: #155C39; color: #fff; }
.sgx-site .sgx-btn--primary:active, .sgx-site .sgx-btn--light:active { transform: scale(.98); }
.sgx-site .sgx-btn--ghost, .sgx-site .sgx-btn--outline { border-color: #1E7A4C; color: #1E7A4C; background: transparent; }
.sgx-site .sgx-btn--ghost:hover, .sgx-site .sgx-btn--outline:hover { background: #E4F3E8; border-color: #1E7A4C; color: #1E7A4C; }
.sgx-site .sgx-btn--light { background: #C9F27B; color: #14251D; box-shadow: none; }
.sgx-site .sgx-btn--light:hover { background: #DFCCA6; color: #14251D; }
.sgx-site .sgx-btn:focus-visible { outline: 3px solid #1E7A4C; outline-offset: 3px; }
.sgx-hero .sgx-btn:focus-visible, .sgx-cta .sgx-btn:focus-visible { outline-color: #1E7A4C; }
.sgx-link { color: var(--sgx-violet-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- announcement ---------- */
.sgx-announce { background: #FAFCF9; color: #14251D; text-align: center; font-size: .9rem; padding: 10px 16px; }
.sgx-announce p { margin: 0; }
.sgx-announce a { color: #14251D; font-weight: 700; margin-left: .5em; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header: the design's compact bar (64px, sticky, paper/75 + blur) ---------- */
.sgx-header {
	position: sticky; top: 0; z-index: 100; background: rgba(246, 247, 249, .9);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sgx-line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .sgx-header { background: rgba(246, 247, 249, .75); } }
body.admin-bar .sgx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sgx-header { top: 46px; } }
.sgx-header__bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.sgx-brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; color: #14251D; font-family: var(--sgx-font-head, inherit); font-weight: 700; font-size: 22px; letter-spacing: -.025em; line-height: 1.6; }
.sgx-brand__svg { display: block; flex: none; width: 36px; height: 36px; }
.sgx-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #1E7A4C; color: #fff; font-family: var(--sgx-font-head, inherit); font-size: 18px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.sgx-site .sgx-brand img { display: block; height: 56px; mix-blend-mode: multiply; width: auto; max-width: none; max-height: none; object-fit: contain; }
.sgx-nav-panel { display: flex; align-items: center; flex: 1 1 auto; gap: 12px; min-width: 0; margin-left: 16px; }
.sgx-nav { flex: 1 1 auto; min-width: 0; }
.sgx-menu { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.sgx-menu li { position: relative; }
.sgx-menu > li { display: flex; align-items: center; }
.sgx-site .sgx-header li, .sgx-site .sgx-home li, .sgx-site .sgx-footer li { margin: 0; } /* the theme adds margin-bottom to list items; it made grid cards uneven */
.sgx-menu a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
	color: #2A4033; font-weight: 700; font-size: 15px; line-height: 24px; transition: background-color .15s, color .15s;
}
.sgx-menu a:hover { background: #EEF6F0; color: #2A4033; }
.sgx-menu > .current-menu-item > a, .sgx-menu > .current-menu-ancestor > a, .sgx-menu > .current_page_item > a { background: #1E7A4C; color: #fff; }
.sgx-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--sgx-line);
	border-radius: 14px; box-shadow: var(--sgx-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s; z-index: 5;
}
.sgx-menu li:hover > .sub-menu, .sgx-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sgx-menu .sub-menu a { display: flex; width: 100%; border-radius: 10px; }
.sgx-menu .sub-menu .current-menu-item > a { background: #E4F3E8; color: #155C39; }

/* search: 288 x 42 pill, icon inside on the left (design: w-72, min-h 42, rounded-full, pl-10) */
.sgx-site .sgx-search { position: relative; display: block; flex: 0 0 auto; width: 256px; margin: 0; }
.sgx-site .sgx-search input[type="search"] {
	display: block; box-sizing: border-box; width: 100%; height: 42px; min-height: 42px; margin: 0; padding: 10px 16px 10px 40px; border: 1px solid var(--sgx-line); border-radius: 999px;
	background: #fff; color: #14251D; font-size: 14px; line-height: 20px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.sgx-site .sgx-search input[type="search"]::placeholder { color: #8AA091; opacity: 1; }
.sgx-site .sgx-search input[type="search"]:focus { width: 100%; border-color: #1E7A4C; box-shadow: 0 0 0 2px rgba(30, 122, 76, .2); outline: 0; }
.sgx-site .sgx-search__btn {
	position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: #4B6156; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.sgx-site .sgx-search__btn .sgx-icon { width: 16px; height: 16px; }
.sgx-site .sgx-search__btn:hover { color: #155C39; }

/* tools: cart icon, account button, optional CTA, burger (cart and account stay in the bar on mobile, as in the design) */
.sgx-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.sgx-tools .sgx-cart { order: 1; } .sgx-tools .sgx-account { order: 2; margin-left: 4px; } .sgx-tools > .sgx-btn { order: 3; margin-left: 4px; }
.sgx-actions__link {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; min-height: 44px; padding: 0; border-radius: 999px;
	color: #14251D; font-weight: 700; font-size: 15px; transition: background-color .15s;
}
.sgx-actions__link:hover { background: #EEF6F0; color: #14251D; }
.sgx-cart__label { display: none; }
.sgx-cart__count {
	position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
	background: #1E7A4C; color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.sgx-search-icon { display: none; }
.sgx-site .sgx-burger {
	display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #14251D; cursor: pointer; align-items: center; justify-content: center;
}
.sgx-site .sgx-burger:hover { background: #EEF6F0; }
.sgx-site .sgx-burger__close { display: none; }
.sgx-site .sgx-header.is-open .sgx-burger__open { display: none; }
.sgx-site .sgx-header.is-open .sgx-burger__close { display: inline-flex; }

/* 1024-1279: the design swaps the search field for an icon */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.sgx-site .sgx-search { display: none; }
	.sgx-search-icon { display: inline-flex; }
}
@media (min-width: 1280px) { .sgx-site .sgx-search { width: 288px; } }

/* below 1024: burger menu; the panel drops down under the bar like the design's full-height mobile menu */
@media (max-width: 1023.98px) {
	.sgx-js .sgx-site .sgx-burger { display: inline-flex; }
	.sgx-header__bar { gap: 8px; }
	.sgx-tools { order: 2; margin-left: auto; }
	.sgx-burger { order: 3; }
	.sgx-nav-panel {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 40; flex-direction: column; align-items: stretch; gap: 20px; margin: 0;
		max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 28px; background: #FAFCF9; border-top: 1px solid var(--sgx-line);
	}
	.sgx-js .sgx-nav-panel { display: none; }
	.sgx-js .sgx-header.is-open .sgx-nav-panel { display: flex; }
	.sgx-nav-panel .sgx-search { order: -1; width: 100%; }
	.sgx-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.sgx-menu > li { display: block; }
	.sgx-menu a { width: 100%; min-height: 0; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--sgx-line); background: transparent; color: #2A4033; font-family: var(--sgx-font-head, inherit); font-size: 24px; line-height: 1.3; white-space: normal; }
	.sgx-menu a:hover { background: transparent; }
	.sgx-menu > .current-menu-item > a { background: transparent; color: #14251D; }
	.sgx-menu .sub-menu { position: static; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
	.sgx-menu .sub-menu li { display: block; }
	.sgx-menu .sub-menu a { font-size: 18px; }
}
@media (max-width: 639.98px) { .sgx-tools .sgx-account { display: none; } .sgx-tools > .sgx-btn { display: none; } }

/* ---------- hero: the design's section (grid 1.1fr / 1fr, gap 40 -> 56, pt 32/48/64, pb 56/80) ---------- */
.sgx-hero { position: relative; overflow: visible; background: #FAFCF9; color: #14251D; padding: 32px 0 56px; isolation: isolate; }
.sgx-hero__glow {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(55% 70% at 90% 0%, rgba(232, 216, 184, .45) 0%, rgba(232, 216, 184, 0) 65%);
}
.sgx-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 640px) { .sgx-hero { padding-top: 48px; } }
@media (min-width: 1024px) {
	.sgx-hero { padding: 64px 0 80px; }
	.sgx-hero__grid { gap: 56px; }
	.sgx-hero__grid.has-media { grid-template-columns: 1.1fr 1fr; }
}
/* sand chip (design: .chip bg-sand border-sand, 12px / 700, not uppercase) */
.sgx-site .sgx-eyebrow {
	display: inline-flex; align-items: center; gap: 4px; margin: 0 0 20px; padding: 4px 12px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 700;
	letter-spacing: 0; text-transform: none; color: #14251D; background: #C9F27B; border: 1px solid #C9F27B;
}
/* headline (design: 2.6rem / sm 3.75rem / lg 4.1rem, weight 800, line-height 1.05, tracking -.01em) */
.sgx-site .sgx-hero__title { margin: 0; font-size: 2.6rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: #14251D; }
@media (min-width: 640px) { .sgx-site .sgx-hero__title { font-size: 3.75rem; line-height: 1; } } /* the design's sm:text-6xl also sets line-height 1 */
@media (min-width: 1024px) { .sgx-site .sgx-hero__title { font-size: 4.1rem; } }
.sgx-gradient-text { display: block; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: #1E7A4C; }
.sgx-site .sgx-hero__text { max-width: 36rem; margin: 20px 0 0; color: #2A4033; font-size: 18px; line-height: 28px; }
.sgx-site .sgx-hero__actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; }
@media (min-width: 640px) { .sgx-site .sgx-hero__actions { flex-direction: row; } }
.sgx-site .sgx-trust { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 24px; margin: 32px 0 0; padding: 0; border: 0; color: #2A4033; font-size: 14px; line-height: 20px; font-weight: 600; }
@media (min-width: 640px) { .sgx-site .sgx-trust { display: flex; flex-wrap: wrap; } }
.sgx-trust li { display: flex; align-items: center; gap: 8px; }
.sgx-trust .sgx-icon { width: 16px; height: 16px; }
.sgx-trust strong { color: inherit; font-size: inherit; font-weight: 700; margin: 0; letter-spacing: 0; }

/* right column: image (rounded 28, 9:10 crop), live course card bottom-left, sand price badge top-right */
.sgx-hero__visual { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; }
@media (min-width: 1024px) { .sgx-hero__visual { max-width: none; } }
.sgx-hero__media { overflow: hidden; border-radius: 28px; border: 1px solid #D5E3D9; background: #EEF6F0; }
.sgx-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 0; box-shadow: none; filter: saturate(.8) contrast(.97); }
.sgx-hero__float {
	position: absolute; left: -12px; bottom: 24px; width: 224px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid #D5E3D9;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); color: #14251D;
}
@media (min-width: 640px) { .sgx-hero__float { left: -32px; } }
.sgx-hero__float:hover { color: #14251D; }
.sgx-hero__float-label { display: block; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #4B6156; }
.sgx-hero__float-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sgx-hero__float-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #1E7A4C; color: #fff; }
.sgx-hero__float-text { display: grid; min-width: 0; }
.sgx-hero__float-title { font-family: var(--sgx-font-head, inherit); font-size: 16px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sgx-hero__float-price { font-size: 12px; line-height: 16px; color: #4B6156; }
.sgx-site .sgx-hero__float-price, .sgx-site .sgx-hero__float-price .amount { color: #4B6156; }
.sgx-site .sgx-hero__badge {
	position: absolute; right: -8px; top: 24px; z-index: 2; margin: 0; padding: 8px 16px; border-radius: 999px; background: #C9F27B; border: 1px solid #C9F27B; color: #14251D;
	font-family: var(--sgx-font-head, inherit); font-size: 16px; font-weight: 700; line-height: 1.6; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
.sgx-site .sgx-hero__badge .amount { color: inherit; }
@media (min-width: 640px) { .sgx-hero__badge { right: -24px; } }

/* spotlight (used when no hero image is set): a panel of the same size and radius as the image, live featured courses inside */
.sgx-spotlight { padding: 24px; border-radius: 28px; background: #fff; border: 1px solid #D5E3D9; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sgx-spotlight__label { margin: 0 0 14px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #4B6156; }
.sgx-spotlight ul { display: grid; gap: 10px; }
.sgx-spotlight a {
	display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; color: #14251D;
	border: 1px solid transparent; transition: background-color .18s, border-color .18s;
}
.sgx-spotlight a:hover { background: #FAFCF9; border-color: #D5E3D9; color: #14251D; }
.sgx-spotlight__thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; }
.sgx-spotlight__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sgx-spotlight__thumb--art { display: flex; align-items: center; justify-content: center; background: #1E7A4C; color: #fff; }
.sgx-spotlight__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sgx-spotlight__title { font-family: var(--sgx-font-head, inherit); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sgx-spotlight__price { color: #4B6156; font-size: .92rem; }
.sgx-spotlight__price del { opacity: .65; margin-right: .4em; }
.sgx-spotlight__price ins { text-decoration: none; color: #14251D; font-weight: 700; }
.sgx-spotlight .screen-reader-text { position: absolute; }

/* Woodmart colours .amount with its primary colour; force our palette inside our components. */
.sgx-site .sgx-spotlight__price, .sgx-site .sgx-spotlight__price .amount { color: #4B6156; }
.sgx-site .sgx-spotlight__price ins, .sgx-site .sgx-spotlight__price ins .amount { color: #14251D; font-weight: 700; }
.sgx-site .sgx-spotlight__price del, .sgx-site .sgx-spotlight__price del .amount { color: #4B6156; }

/* ---------- sections ---------- */
.sgx-section { padding: var(--sgx-section-y) 0; }
.sgx-section--tint { background: var(--sgx-tint); }
.sgx-section--dark { background: #FAFCF9; color: #14251D; position: relative; overflow: hidden; }
.sgx-section--dark::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: none;
}
.sgx-section--dark > .sgx-wrap { position: relative; }
.sgx-section__head { margin-bottom: 36px; max-width: 70ch; }
.sgx-section__head h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.15; }
@media (min-width: 640px) { .sgx-section__head h2 { font-size: 2.25rem; } }
.sgx-section__head p { color: var(--sgx-muted); margin: 0; font-size: 1.05rem; }
.sgx-section__head .sgx-section__headtext > p:not(.sgx-section__eyebrow) { margin-top: 8px; }
.sgx-site .sgx-section__eyebrow { margin: 0 0 8px; color: #4B6156; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sgx-section__head--row { display: flex; flex-direction: column; gap: 16px; max-width: none; margin-bottom: 32px; }
.sgx-section__head--row .sgx-section__headtext { max-width: 42rem; }
.sgx-section__head--row .sgx-btn { align-self: flex-start; flex: none; }
@media (min-width: 640px) {
	.sgx-section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.sgx-section__head--row .sgx-btn { align-self: auto; }
	.sgx-section__head p { font-size: 1.125rem; }
}
.sgx-courses { padding: 64px 0; }
@media (min-width: 640px) { .sgx-courses { padding: 80px 0; } }
.sgx-site .sgx-section__more { margin: 36px 0 0; } /* was overridden by `.sgx-site p`, so the button hugged the cards */
/* Two plain (white) sections in a row would add both paddings: let the second reuse the first's bottom padding. */
.sgx-section:not(.sgx-section--tint):not(.sgx-section--dark) + .sgx-section:not(.sgx-section--tint):not(.sgx-section--dark):not(.sgx-how):not(.sgx-benefits) { padding-top: 0; }
.sgx-grid { display: grid; gap: 24px; }
.sgx-grid--cards, .sgx-grid--tiles, .sgx-grid--features, .sgx-grid--quotes { grid-template-columns: 1fr; }

/* course card (the design's CourseCard: .card, 16:10 artwork, chips, title, text, meta + price) */
.sgx-grid--cards { gap: 20px; }
.sgx-site .sgx-card {
	position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #D5E3D9; border-radius: 20px; overflow: hidden; box-shadow: none;
	transition: transform .15s, box-shadow .15s;
}
.sgx-site .sgx-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(30, 122, 76, .35); border-color: #D5E3D9; }
.sgx-site .sgx-card:focus-within { outline: 3px solid #1E7A4C; outline-offset: 2px; transform: none; box-shadow: none; }
.sgx-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10; }
.sgx-art--0 { background: #1E7A4C; color: #fff; --sgx-art-badge-bg: rgba(255, 255, 255, .15); --sgx-art-badge-bd: rgba(255, 255, 255, .25); }
.sgx-art--1 { background: #E4F3E8; color: #155C39; --sgx-art-badge-bg: rgba(255, 255, 255, .8); --sgx-art-badge-bd: rgba(30, 122, 76, .15); }
.sgx-art--2 { background: #C9F27B; color: #14251D; --sgx-art-badge-bg: rgba(255, 255, 255, .6); --sgx-art-badge-bd: rgba(14, 42, 31, .1); }
.sgx-art--3 { background: #E4F3E8; color: #14251D; --sgx-art-badge-bg: rgba(255, 255, 255, .8); --sgx-art-badge-bd: #C9F27B; }
.sgx-art__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; z-index: -1; }
.sgx-art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.sgx-art__label { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 80px); font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgx-art__icon { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--sgx-art-badge-bg); border: 1px solid var(--sgx-art-badge-bd); }
.sgx-art__wish { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #14251D; }
.sgx-card__body { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 16px; }
@media (min-width: 640px) { .sgx-card__body { padding: 20px; } }
.sgx-site .sgx-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.sgx-site .sgx-card__chips li { display: inline-flex; align-items: center; margin: 0; padding: 4px 12px; border: 1px solid #D5E3D9; border-radius: 999px; background: #fff; color: #2A4033; font-size: 12px; line-height: 16px; font-weight: 700; }
.sgx-site .sgx-card__title { margin: 0; font-family: var(--sgx-font-head, inherit); font-size: 1.125rem; font-weight: 700; line-height: 1.375; letter-spacing: -.01em; }
.sgx-card__link { color: #14251D; }
.sgx-card__link::after { content: ""; position: absolute; inset: 0; }
.sgx-card__link:hover { color: #14251D; }
.sgx-card__link:focus-visible { outline: none; }
.sgx-site .sgx-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: #4B6156; font-size: 14px; line-height: 20px; }
.sgx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.sgx-site .sgx-card__meta { display: inline-flex; align-items: center; gap: 6px; color: #4B6156; font-size: 14px; line-height: 20px; }
.sgx-site .sgx-card__price { margin-left: auto; font-family: var(--sgx-font-head, inherit); font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: #14251D; white-space: nowrap; }
.sgx-site .sgx-card__price .amount, .sgx-site .sgx-card__price bdi { color: #14251D; }
.sgx-card__price del { color: #4B6156; font-weight: 500; font-size: .9rem; margin-right: .35em; }
.sgx-card__price ins { text-decoration: none; }
.sgx-card__price .screen-reader-text { position: absolute; }
.sgx-site .sgx-card__enrolled { font-size: 1rem; }

/* tiles */
.sgx-tile a {
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; background: #fff; color: var(--sgx-ink);
	border: 1px solid var(--sgx-line); border-radius: var(--sgx-radius); box-shadow: var(--sgx-shadow);
	transition: transform .25s var(--sgx-ease), box-shadow .25s var(--sgx-ease), border-color .25s;
}
.sgx-tile a:hover { transform: translateY(-4px); box-shadow: var(--sgx-shadow-lift); border-color: var(--sgx-indigo-300); color: var(--sgx-ink); }
.sgx-tile__name { font-weight: 800; font-size: 1.15rem; }
.sgx-tile__blurb { color: var(--sgx-muted); }
.sgx-tile__count { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--sgx-violet-700); font-weight: 700; font-size: .92rem; }

/* features */
.sgx-feature { padding: 28px; background: #fff; border: 1px solid var(--sgx-line); border-radius: var(--sgx-radius); box-shadow: var(--sgx-shadow); }
.sgx-feature__icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px;
	background: linear-gradient(135deg, #E4F3E8 0%, #E4F3E8 100%); color: var(--sgx-violet-700);
}
.sgx-feature h3 { font-size: 1.15rem; font-weight: 700; }
.sgx-feature p { margin: 0; color: var(--sgx-muted); }

/* steps (dark) */
.sgx-section--dark .sgx-section__head p { color: #4B6156; }

/* quotes, instructor */
.sgx-quote { margin: 0; padding: 28px; background: #fff; border: 1px solid var(--sgx-line); border-radius: var(--sgx-radius); box-shadow: var(--sgx-shadow); }
.sgx-quote blockquote { margin: 0 0 18px; padding: 0; border: 0; font-size: 1.05rem; }
.sgx-quote blockquote p { margin: 0; }
.sgx-quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--sgx-muted); }
.sgx-quote img { border-radius: 50%; object-fit: cover; }
.sgx-instructor { display: grid; gap: 28px; align-items: center; }
.sgx-instructor__photo { border-radius: 24px; object-fit: cover; box-shadow: var(--sgx-shadow-lift); }
.sgx-instructor h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.sgx-instructor__role { color: var(--sgx-violet-700); font-weight: 700; margin-top: -.25em; }

/* faq */
.sgx-faq details { background: #fff; border: 1px solid var(--sgx-line); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.sgx-faq details[open] { border-color: var(--sgx-indigo-300); box-shadow: var(--sgx-shadow); }
.sgx-faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 56px 18px 20px; font-weight: 700; }
.sgx-faq summary::-webkit-details-marker { display: none; }
.sgx-faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
	border-right: 2px solid var(--sgx-violet-700); border-bottom: 2px solid var(--sgx-violet-700); transform: rotate(45deg); transition: transform .2s;
}
.sgx-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.sgx-faq details p { margin: 0; padding: 0 20px 20px; color: var(--sgx-muted); }

/* final cta: full-width sand band, dark text, brand-blue button */
.sgx-cta { padding: 64px 0; scroll-margin-top: 110px; background: #E4F3E8; border-top: 1px solid #C9F27B; text-align: center; } /* sand band: reads as its own block between the page and the blue footer */
@media (min-width: 640px) { .sgx-cta { padding: 80px 0; } }
.sgx-site .sgx-cta h2 { margin: 0 0 12px; font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: #14251D; text-wrap: balance; }
@media (min-width: 640px) { .sgx-site .sgx-cta h2 { font-size: 2.25rem; } }
.sgx-site .sgx-cta p { margin: 0 0 24px; color: #2A4033; font-size: 18px; line-height: 28px; }
.sgx-site .sgx-cta p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
/* footer: the design's Footer (bg brand-soft, border-t, grid 1.4fr / 2fr, nested 3-column links, round social buttons, py-6 bottom bar) */
.sgx-footer { background: #E4F3E8; border-top: 1px solid #D5E3D9; color: #14251D; font-size: 16px; line-height: 1.6; }
.sgx-footer a { color: #2A4033; transition: color .15s; }
.sgx-footer a:hover { color: #1E7A4C; text-decoration: underline; }
.sgx-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .sgx-footer__grid { grid-template-columns: 1.4fr 2fr; } }
.sgx-brand--footer, .sgx-brand--footer:hover { color: #14251D; text-decoration: none; }
.sgx-site .sgx-footer__brand p { max-width: 24rem; margin: 16px 0 0; color: #4B6156; }
.sgx-footer__newsletter { max-width: 24rem; margin-top: 24px; }
.sgx-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-content: start; }
@media (min-width: 640px) { .sgx-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* design: grid-cols-2 sm:grid-cols-3 (1.0.68: was 1024px, which left the third column, Legal, under Learn with a gap beside it on tablets; long e-mail addresses wrap inside their column) */
.sgx-site .sgx-footer__col h2 { margin: 0 0 16px; font-family: var(--sgx-font-body, inherit); font-size: 14px; font-weight: 800; line-height: 20px; letter-spacing: .14em; text-transform: uppercase; color: #4B6156; }
.sgx-footer__list { display: block; }
.sgx-site .sgx-footer__list > li + li { margin-top: 10px; }
.sgx-footer__list a { display: inline; min-height: 0; padding: 0; }
.sgx-footer__contact { margin-top: 16px; }
.sgx-footer__contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sgx-footer__contact a, .sgx-footer__contact span { min-width: 0; overflow-wrap: anywhere; }
.sgx-footer__contact .sgx-icon { margin-top: 4px; color: #1E7A4C; }
.sgx-site .sgx-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.sgx-social a {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1px solid rgba(30, 122, 76, .25); color: #1E7A4C;
	transition: background-color .15s, color .15s;
}
.sgx-social a:hover { background: #1E7A4C; color: #fff; text-decoration: none; }
.sgx-footer__bottom { border-top: 1px solid rgba(30, 122, 76, .15); }
.sgx-footer__bottom-inner { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; line-height: 20px; color: #4B6156; }
@media (min-width: 640px) { .sgx-footer__bottom-inner { flex-direction: row; justify-content: space-between; } }
.sgx-site .sgx-footer__bottom p { margin: 0; color: #4B6156; }

/* ---------- entrance animation (progressive enhancement) ---------- */
.sgx-js .sgx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--sgx-ease) var(--sgx-delay, 0ms), transform .5s var(--sgx-ease) var(--sgx-delay, 0ms); }
.sgx-js .sgx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
	.sgx-site { --sgx-section-y: 64px; }
	.sgx-grid--cards, .sgx-grid--tiles { grid-template-columns: repeat(2, 1fr); }
	.sgx-grid--features, .sgx-grid--quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.sgx-site { --sgx-section-y: 80px; }
	.sgx-grid--cards, .sgx-grid--tiles, .sgx-grid--features, .sgx-grid--quotes { grid-template-columns: repeat(3, 1fr); }
	.sgx-how__list { grid-template-columns: repeat(3, 1fr); }
	.sgx-instructor { grid-template-columns: 240px 1fr; gap: 48px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.sgx-site *, .sgx-site *::before, .sgx-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.sgx-js .sgx-reveal { opacity: 1; transform: none; }
	.sgx-card:hover, .sgx-card:focus-within, .sgx-tile a:hover, .sgx-btn:hover, .sgx-btn:active, .sgx-social a:hover { transform: none; }
	.sgx-site .sgx-btn:hover .sgx-icon { transform: none; }
		.sgx-site { scroll-behavior: auto; }
}

/* comfortable tap targets for links that were plain text lines */

/* ---------- homepage: category pills (the design's row under the hero: bg-card, border-y, py-6, gap-2) ---------- */
.sgx-pills { background: #fff; border-top: 1px solid #D5E3D9; border-bottom: 1px solid #D5E3D9; }
.sgx-pills .sgx-wrap { padding-top: 24px; padding-bottom: 24px; }
.sgx-site .sgx-pills__list { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sgx-pills__list::-webkit-scrollbar { display: none; }
.sgx-pills__list li { flex: none; margin: 0; }
@media (min-width: 640px) { .sgx-site .sgx-pills__list { flex-wrap: wrap; margin: 0; padding: 0 0 4px; overflow: visible; } }
.sgx-site .sgx-pill {
	display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #D5E3D9; border-radius: 999px; background: #fff;
	color: #14251D; font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.sgx-site .sgx-pill:hover, .sgx-site .sgx-pill.is-active { border-color: #1E7A4C; background: #1E7A4C; color: #fff; }
.sgx-site .sgx-pill:focus-visible { outline: 3px solid #1E7A4C; outline-offset: 3px; }


/* ---------- benefits: white band; how it works: sand band with the design's step cards ---------- */
.sgx-benefits { background: #fff; border-top: 1px solid #D5E3D9; border-bottom: 1px solid #D5E3D9; }
.sgx-how { padding: 64px 0; background: #E4F3E8; border-top: 1px solid #D5E3D9; border-bottom: 1px solid #D5E3D9; }
@media (min-width: 640px) { .sgx-how, .sgx-benefits { padding: 80px 0; } }
.sgx-how__list { display: grid; gap: 20px; margin: 40px 0 0; }
.sgx-site .sgx-how__card { margin: 0; padding: 24px; background: #fff; border: 1px solid #D5E3D9; border-radius: 20px; }
.sgx-how__top { display: flex; align-items: center; justify-content: space-between; }
.sgx-how__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #1E7A4C; color: #fff; }
.sgx-how__num { font-family: var(--sgx-font-head, inherit); font-size: 3rem; font-weight: 800; line-height: 1; color: #C9F27B; }
.sgx-site .sgx-how__card h3 { margin: 20px 0 0; font-size: 1.25rem; font-weight: 700; line-height: 1.15; color: #14251D; }
.sgx-site .sgx-how__card p { margin: 8px 0 0; color: #4B6156; }
@media (min-width: 768px) { .sgx-how__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* logos with a white background blend into the header and the tinted footer (multiply) */
.sgx-site .sgx-brand--footer img { height: 56px; }
