/**
 * Kaapia Marketplace — base styles
 * Brand Identity — colors from Kaapia logo (teal → blue → purple + gold accent)
 */

:root {
	--kaapia-navy: #0b1648;
	--kaapia-teal: #00d4c8;
	--kaapia-blue: #2f6bff;
	--kaapia-purple: #8b3dff;
	--kaapia-gold: #ffb020;
	--kaapia-primary: #0b1648;
	--kaapia-primary-hover: #071033;
	--kaapia-accent: #ffb020;
	--kaapia-dark: #071033;
	--kaapia-cream: #f5f7fb;
	--kaapia-surface: #f5f7fb;
	--kaapia-white: #ffffff;
	--kaapia-text: #0b1648;
	--kaapia-text-muted: #5a6478;
	--kaapia-border: #e2e8f0;
	--kaapia-brand-gradient: linear-gradient(115deg, #00d4c8 0%, #2f6bff 48%, #8b3dff 100%);
	--kaapia-btn-gradient: linear-gradient(135deg, #2f6bff 0%, #8b3dff 100%);
	--kaapia-btn-gradient-hover: linear-gradient(135deg, #2560f0 0%, #7a2ef0 100%);
	--kaapia-radius-sm: 10px;
	--kaapia-radius: 16px;
	--kaapia-radius-pill: 999px;
	--kaapia-shadow: 0 8px 28px rgba(11, 22, 72, 0.08);
	--kaapia-container: 1180px;
	--kaapia-font: "Poppins", sans-serif;
	--kaapia-font-display: "Poppins", sans-serif;
	--kaapia-header-h: 78px;
	--kaapia-header-logo-height: 42px;
	--kaapia-footer-logo-height: 48px;
	--kaapia-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
	font-family: var(--kaapia-font);
	font-size: 18px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--kaapia-text);
	background: var(--kaapia-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	max-width: 100%;
}

.site {
	overflow-x: clip;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--kaapia-blue);
	text-decoration: none;
	transition: color 0.2s var(--kaapia-ease);
}

a:hover {
	color: var(--kaapia-purple);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.2;
	font-weight: 600;
	color: var(--kaapia-navy);
	font-family: var(--kaapia-font-display);
}

p {
	margin: 0 0 1em;
}

.container {
	width: min(100% - 2.5rem, var(--kaapia-container));
	margin-inline: auto;
}

.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;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	background: var(--kaapia-navy);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: var(--kaapia-radius-sm);
}

/* Buttons — Brand Guidelines */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: var(--kaapia-radius-pill);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.25s var(--kaapia-ease), color 0.25s var(--kaapia-ease), border-color 0.25s var(--kaapia-ease), transform 0.25s var(--kaapia-ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn__arrow {
	font-size: 1.1em;
	line-height: 1;
}

.btn--primary {
	background: var(--kaapia-btn-gradient);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}

.btn--primary:hover {
	background: var(--kaapia-btn-gradient-hover);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 22px rgba(139, 61, 255, 0.32);
}

.btn--outline {
	background: var(--kaapia-white);
	color: var(--kaapia-navy);
	border-color: var(--kaapia-navy);
}

.btn--outline:hover {
	border-color: transparent;
	color: #fff;
	background: var(--kaapia-btn-gradient);
}

.btn--dark {
	background: var(--kaapia-dark);
	color: #fff;
	border-color: var(--kaapia-dark);
}

.btn--dark:hover {
	background: #061230;
	color: #fff;
}

.btn--light {
	background: var(--kaapia-white);
	color: var(--kaapia-navy);
	border-color: var(--kaapia-white);
}

.btn--light:hover {
	background: var(--kaapia-cream);
	color: var(--kaapia-navy);
	border-color: var(--kaapia-cream);
}

.btn--sm {
	padding: 0.55rem 1.2rem;
	font-size: 0.875rem;
}

.section-header--left {
	text-align: left;
	max-width: none;
	margin-left: 0;
}

.section-header--left .section-header__title,
.section-header--left .section-header__subtitle,
.section-header--left .section-header__lead {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.section-header--left .section-header__subtitle,
.section-header--left .section-header__lead {
	max-width: 40rem;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--kaapia-border);
}

.site-header.is-scrolled {
	box-shadow: 0 4px 20px rgba(13, 30, 108, 0.06);
}

/* Top bar — secondary menu */
.site-announce {
	background: #0b1228;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 500;
}

.site-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	text-align: center;
}

.secondary-nav {
	width: 100%;
}

.secondary-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.secondary-nav__list > li {
	display: inline-flex;
	align-items: center;
}

.secondary-nav__list > li + li::before {
	content: '|';
	margin: 0 0.75rem;
	opacity: 0.4;
	pointer-events: none;
}

.secondary-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: rgba(255, 255, 255, 0.94);
	text-decoration: none;
}

.secondary-nav__list a:hover {
	color: #fff;
}

.secondary-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--kaapia-teal);
	line-height: 0;
	transition: transform 0.18s var(--kaapia-ease), background 0.18s ease, color 0.18s ease;
}

.secondary-nav__icon svg {
	width: 13px;
	height: 13px;
	display: block;
}

.secondary-nav__icon--ai,
.secondary-nav__icon--sparkles {
	color: var(--kaapia-gold);
	background: rgba(255, 176, 32, 0.2);
}

.secondary-nav__icon--award,
.secondary-nav__icon--certificate {
	color: var(--kaapia-teal);
	background: rgba(0, 212, 200, 0.18);
}

.secondary-nav__icon--download,
.secondary-nav__icon--mobile {
	color: #8cb6ff;
	background: rgba(47, 107, 255, 0.22);
}

.secondary-nav__icon--gift {
	color: #ff8ad4;
	background: rgba(255, 138, 212, 0.16);
}

.secondary-nav__icon--book {
	color: #9ad7ff;
	background: rgba(47, 107, 255, 0.18);
}

.secondary-nav__icon--star {
	color: var(--kaapia-gold);
	background: rgba(255, 176, 32, 0.18);
}

.secondary-nav__icon--rocket {
	color: #c9a6ff;
	background: rgba(139, 61, 255, 0.2);
}

.secondary-nav__icon--megaphone {
	color: #ffb56b;
	background: rgba(255, 176, 32, 0.16);
}

.secondary-nav__icon--tag {
	color: #7ee0c8;
	background: rgba(0, 212, 200, 0.16);
}

.secondary-nav__icon--heart {
	color: #ff8aa0;
	background: rgba(255, 107, 129, 0.18);
}

.secondary-nav__list a:hover .secondary-nav__icon {
	transform: translateY(-1px) scale(1.06);
}

.secondary-nav__label {
	line-height: 1.2;
}

.secondary-nav__list > .menu-item--highlight > a,
.secondary-nav__list > .highlight > a {
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--kaapia-purple);
	color: #fff;
	font-weight: 600;
}

.secondary-nav__list > .menu-item--highlight > a:hover,
.secondary-nav__list > .highlight > a:hover {
	background: #5a22e6;
	color: #fff;
}

.secondary-nav__list > .menu-item--highlight + li::before,
.secondary-nav__list > li + .menu-item--highlight::before,
.secondary-nav__list > .highlight + li::before,
.secondary-nav__list > li + .highlight::before {
	opacity: 0.25;
}

/* Stacked header: nav + util rows share one grid so menu aligns with search */
.site-header--stacked {
	background: #fff;
	border-bottom: 1px solid #eef1f6;
}

.site-header--stacked .site-header__stack {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		".     nav     nav"
		"brand search  actions";
	column-gap: 1rem;
	align-items: center;
}

.site-header--stacked .site-branding {
	grid-area: brand;
	align-self: center;
	min-height: 72px;
	display: flex;
	align-items: center;
}

.site-header--stacked .primary-nav {
	grid-area: nav;
	min-width: 0;
	width: 100%;
	min-height: 48px;
	display: flex;
	align-items: center;
}

.site-header--stacked .site-header__search {
	grid-area: search;
	min-width: 0;
	width: 100%;
}

.site-header--stacked .site-header__search .search-form {
	max-width: none;
	width: 100%;
}

.site-header--stacked .site-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 72px;
}

.site-header--stacked .header-wishlist {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.55rem 0.3rem 0.35rem;
	color: #3d4656;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease;
}

.site-header--stacked .header-wishlist:hover {
	color: var(--kaapia-purple);
	background: rgba(139, 61, 255, 0.08);
}

.site-header--stacked .header-wishlist__label {
	letter-spacing: -0.01em;
	line-height: 1;
}

.site-header--stacked .header-auth--signup {
	background: var(--kaapia-btn-gradient) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(47, 107, 255, 0.25);
}

.site-header--stacked .header-auth--login {
	border-color: var(--kaapia-purple) !important;
	color: var(--kaapia-purple) !important;
}

.site-header--stacked .header-auth--login:hover {
	background: var(--kaapia-btn-gradient) !important;
	border-color: transparent !important;
	color: #fff !important;
}

.header-account {
	position: relative;
}

.header-account__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0.45rem 0.2rem 0.2rem;
	border: 0;
	border-radius: 999px;
	background: #f4f6fb;
	color: #1a2233;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, box-shadow 0.18s ease;
}

.header-account__toggle:hover,
.header-account.is-open .header-account__toggle {
	background: #eef1f8;
	box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.12);
}

.header-account__avatar-wrap {
	display: inline-flex;
	padding: 2px;
	border-radius: 50%;
	background: linear-gradient(135deg, #16c7c7 0%, #1f6bff 52%, #6a2dff 100%);
	line-height: 0;
}

.header-account__avatar-wrap--lg {
	padding: 2.5px;
}

.header-account__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: block;
	border: 2px solid #fff;
	background: #fff;
}

.header-account__avatar-wrap--lg .header-account__avatar {
	width: 44px;
	height: 44px;
}

.header-account__name {
	max-width: 8.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.header-account__chevron {
	flex-shrink: 0;
	color: #6b7585;
	transition: transform 0.18s ease;
}

.header-account.is-open .header-account__chevron {
	transform: rotate(180deg);
}

.header-account__menu {
	position: absolute;
	top: calc(100% + 0.55rem);
	right: 0;
	z-index: 1300;
	width: min(280px, calc(100vw - 2rem));
	padding: 0.7rem;
	border: 1px solid #e8ecf3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(13, 30, 108, 0.14);
}

.header-account__menu[hidden] {
	display: none !important;
}

.header-account__identity {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.35rem 0.45rem 0.85rem;
	margin-bottom: 0.35rem;
	border-bottom: 1px solid #eef1f6;
}

.header-account__identity-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0.1rem;
}

.header-account__identity-name {
	font-size: 0.92rem;
	font-weight: 600;
	color: #0d1e6c;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.header-account__identity-email {
	font-size: 0.75rem;
	font-weight: 500;
	color: #6b7585;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-account__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 0.75rem;
	border-radius: 10px;
	color: #2a3344;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.header-account__link svg {
	flex-shrink: 0;
	color: #1f6bff;
}

.header-account__link:hover {
	background: rgba(31, 107, 255, 0.07);
	color: #0d1e6c;
}

.header-account__link--logout {
	color: #7a2436;
}

.header-account__link--logout svg {
	color: #c23b55;
}

.header-account__link--logout:hover {
	background: rgba(194, 59, 85, 0.08);
	color: #8f1f35;
}

.site-header--stacked .site-header__stack::before {
	content: "";
	grid-column: 1 / -1;
	grid-row: 1;
	align-self: stretch;
	border-bottom: 1px solid #eef1f6;
	pointer-events: none;
}

.site-header--stacked .primary-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header--stacked .primary-nav__list > .menu-item:first-child > a,
.site-header--stacked .primary-nav__list > .header-explore:first-child .header-explore__toggle {
	padding-left: 0;
}

.site-header--stacked .primary-nav__list > .header-explore {
	position: relative;
	flex: 0 0 auto;
}

.site-header--stacked .primary-nav__list .header-explore__toggle {
	padding: 0.45rem 0.7rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #3d4656;
	border-radius: 6px;
}

.site-header--stacked .primary-nav__list a {
	display: inline-flex;
	padding: 0.45rem 0.7rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #3d4656;
	text-decoration: none;
	border-radius: 6px;
}

.site-header--stacked .primary-nav__list a:hover,
.site-header--stacked .primary-nav__list .current-menu-item > a {
	color: var(--kaapia-navy);
	background: rgba(13, 30, 108, 0.05);
}

.site-header--stacked .primary-nav__list > .menu-item--highlight:last-child {
	margin-left: auto;
}

.site-header--stacked .primary-nav__list .menu-item--highlight > a {
	padding: 0.45rem 1rem;
	border-radius: 8px;
	background: var(--kaapia-purple);
	color: #fff;
	font-weight: 600;
}

.site-header--stacked .primary-nav__list .menu-item--highlight > a:hover,
.site-header--stacked .primary-nav__list .menu-item--highlight.current-menu-item > a {
	background: #5a22e6;
	color: #fff;
}

.site-header--stacked .nav-toggle {
	display: none;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto auto minmax(240px, 1.4fr) auto auto;
	align-items: center;
	gap: 0.85rem 1rem;
	min-height: var(--kaapia-header-h);
}

.site-header--udemy {
	background: #fff;
	border-bottom: 1px solid var(--kaapia-border);
	backdrop-filter: none;
}

.site-header--udemy.is-scrolled {
	box-shadow: 0 2px 12px rgba(13, 30, 108, 0.06);
}

/* Explore dropdown */
.header-explore {
	position: relative;
}

.header-explore__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.7rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--kaapia-text);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.header-explore__toggle:hover,
.header-explore.is-open .header-explore__toggle {
	background: rgba(13, 30, 108, 0.06);
	color: var(--kaapia-navy);
}

.header-explore__chevron {
	transition: transform 0.2s ease;
}

.header-explore.is-open .header-explore__chevron {
	transform: rotate(180deg);
}

.header-explore__menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.12rem;
	width: max-content;
	min-width: 248px;
	max-width: min(340px, calc(100vw - 1.5rem));
	padding: 0.45rem;
	border: 1px solid #e8edf5;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(13, 30, 108, 0.12);
}

.header-explore__menu[hidden] {
	display: none !important;
}

.header-explore__link,
.site-header--stacked .primary-nav__list .header-explore__link,
.site-header--landing .primary-nav__list .header-explore__link,
.primary-nav__list .header-explore__link {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	background: transparent;
	color: #1e293b;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.header-explore__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-explore__count {
	flex: 0 0 auto;
	min-width: 1.4rem;
	padding: 0.08rem 0.42rem;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.header-explore__link:hover,
.site-header--stacked .primary-nav__list .header-explore__link:hover,
.site-header--landing .primary-nav__list .header-explore__link:hover,
.primary-nav__list .header-explore__link:hover {
	background: #f4f7fb;
	color: var(--kaapia-navy);
}

.header-explore__link:hover .header-explore__count {
	background: #e8eef8;
	color: var(--kaapia-navy);
}

.header-explore__link--all,
.site-header--stacked .primary-nav__list .header-explore__link--all,
.primary-nav__list .header-explore__link--all {
	margin-top: 0.2rem;
	border-top: 1px solid #eef2f7;
	border-radius: 0 0 10px 10px;
	color: var(--kaapia-blue);
	font-weight: 600;
}

.header-explore__go {
	flex: 0 0 auto;
	opacity: 0.7;
}

.header-explore__link--all:hover {
	background: #eef4ff;
	color: var(--kaapia-blue);
}

.site-branding__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--kaapia-navy);
	font-weight: 700;
	font-size: 1.15rem;
}

.site-header .site-branding__logo,
.site-header .custom-logo {
	max-height: var(--kaapia-header-logo-height);
	height: auto;
	width: auto;
}

.site-branding__mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--kaapia-blue), var(--kaapia-purple));
	flex-shrink: 0;
	position: relative;
}

.site-branding__mark::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--kaapia-gold);
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

/* Search — Udemy-style wide pill with submit on the right */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: none;
}

.search-form__input {
	width: 100%;
	height: 46px;
	padding: 0.7rem 3.1rem 0.7rem 1.15rem;
	border: 1px solid var(--kaapia-navy);
	border-radius: var(--kaapia-radius-pill);
	background: var(--kaapia-white);
	color: var(--kaapia-text);
	font-family: inherit;
	font-size: 0.92rem;
	outline: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form__input:focus {
	background: var(--kaapia-white);
	border-color: var(--kaapia-navy);
	box-shadow: 0 0 0 1px var(--kaapia-navy);
	outline: 2px solid transparent;
}

.search-form__submit {
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--kaapia-navy);
	cursor: pointer;
}

.search-form__submit:hover {
	background: rgba(13, 30, 108, 0.06);
}

.search-form__results {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	right: 0;
	z-index: 1200;
	max-height: min(70vh, 420px);
	overflow-y: auto;
	padding: 0.45rem;
	border: 1px solid var(--kaapia-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(13, 30, 108, 0.14);
}

.search-form__results[hidden] {
	display: none !important;
}

.search-form__status {
	padding: 0.85rem 1rem;
	color: var(--kaapia-text-muted);
	font-size: 0.9rem;
}

.search-form__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.search-form__result {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	color: var(--kaapia-text);
	text-decoration: none;
}

.search-form__result:hover,
[data-search-option].is-active .search-form__result {
	background: rgba(13, 30, 108, 0.06);
	color: var(--kaapia-navy);
}

.search-form__thumb {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--kaapia-surface);
}

.search-form__thumb--empty {
	display: inline-block;
	background: linear-gradient(145deg, #E8F4FF, #EEF0FF 55%, #FFF6D6);
}

.search-form__result-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.search-form__result-title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-form__result-meta {
	font-size: 0.75rem;
	color: var(--kaapia-text-muted);
}

.search-form__view-all {
	display: block;
	margin-top: 0.35rem;
	padding: 0.7rem 0.85rem;
	border-top: 1px solid var(--kaapia-border);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--kaapia-blue);
	text-align: left;
}

.search-form__view-all:hover {
	color: var(--kaapia-navy);
}

.search-form.is-searching .search-form__submit {
	opacity: 0.55;
}

.btn:focus-visible,
.primary-nav__list a:focus-visible,
.header-cart:focus-visible,
.header-explore__toggle:focus-visible,
.category-pill:focus-visible,
.social-link:focus-visible {
	outline: 2px solid var(--kaapia-blue);
	outline-offset: 2px;
}

.search-form__input::placeholder {
	color: var(--kaapia-text-muted);
}

/* Nav */
.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.primary-nav__list a {
	display: block;
	padding: 0.45rem 0.65rem;
	color: var(--kaapia-text);
	font-size: 0.9rem;
	font-weight: 400;
	border-radius: 4px;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	color: var(--kaapia-navy);
	background: rgba(13, 30, 108, 0.05);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-header--udemy .header-auth--login,
.site-header--udemy .header-auth--account {
	border-radius: 4px;
	font-weight: 700;
	padding: 0.5rem 0.9rem;
}

.site-header--udemy .header-auth--signup {
	border-radius: 4px;
	font-weight: 700;
	padding: 0.5rem 0.95rem;
	background: var(--kaapia-navy);
	border-color: var(--kaapia-navy);
}

.site-header--udemy .header-auth--signup:hover {
	background: #0a1858;
	border-color: #0a1858;
	transform: none;
}

.site-header--udemy .header-auth--login:hover,
.site-header--udemy .header-auth--account:hover {
	transform: none;
}

.site-header--udemy .header-cart {
	width: 40px;
	height: 40px;
	border-radius: 4px;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--kaapia-navy);
	border-radius: 2px;
	margin-inline: auto;
}

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--kaapia-navy);
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
}

.header-wishlist {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--kaapia-navy);
	text-decoration: none;
}

.header-cart:hover {
	background: rgba(106, 45, 255, 0.07);
	color: var(--kaapia-purple);
}

.header-action__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.header-wishlist__icon,
.header-cart__icon {
	display: block;
}

.header-action__badge {
	position: absolute;
	top: -5px;
	right: -7px;
	z-index: 1;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	border: 2px solid #fff;
	background: #1f6bff;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 14px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.55);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	box-shadow: 0 2px 6px rgba(31, 107, 255, 0.4);
}

.header-action__badge.is-visible {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.header-action__badge.is-pop {
	animation: kaapiaHeaderBadgePop 0.38s ease;
}

.header-cart__count.updating,
span[data-cart-count].updating {
	opacity: 1 !important;
}

.header-cart__count .blockUI,
span[data-cart-count] .blockUI {
	display: none !important;
}

.header-cart.is-syncing .header-cart__icon {
	animation: kaapiaHeaderCartSync 0.7s ease-in-out infinite;
}

@keyframes kaapiaHeaderCartSync {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
}

@keyframes kaapiaHeaderBadgePop {
	0% {
		transform: scale(0.55);
	}
	55% {
		transform: scale(1.18);
	}
	100% {
		transform: scale(1);
	}
}

/* Back-compat aliases */
.header-cart__count,
.header-wishlist__count {
	/* inherits .header-action__badge */
}

@media (prefers-reduced-motion: reduce) {
	.header-action__badge.is-pop,
	.header-cart.is-syncing .header-cart__icon {
		animation: none;
	}
}

/* Sections */
.section {
	padding: 4.5rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 2.75rem;
}

.section-header__title {
	font-family: var(--kaapia-font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--kaapia-navy);
}

.featured-collections .section-header__title {
	font-size: var(--kaapia-featured-title-size, 40px);
}

.skills-tabs .section-header__title {
	font-size: var(--kaapia-skills-tabs-title-size, 40px);
}

.testimonials .section-header__title {
	font-size: var(--kaapia-testimonials-title-size, 40px);
}

.career-categories .section-header__title {
	font-size: var(--kaapia-career-cats-title-size, 40px);
}

.section-header__subtitle,
.section-header__lead {
	color: var(--kaapia-text-muted);
	font-size: 1.05rem;
	max-width: 640px;
	margin: 0 auto;
}

.section-note {
	text-align: center;
	color: var(--kaapia-text-muted);
	font-size: 0.9rem;
	margin-top: 1.5rem;
}

/* Content pages */
.content-area {
	padding: 3rem 0 4rem;
}

.content-area--narrow {
	max-width: 720px;
}

.entry-title {
	font-family: var(--kaapia-font-display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.entry-content {
	font-size: 1.05rem;
}

.entry-thumbnail {
	margin: 0 0 1.5rem;
	border-radius: var(--kaapia-radius);
	overflow: hidden;
}

.page-header {
	margin-bottom: 2rem;
}

.posts-grid {
	display: grid;
	gap: 1.5rem;
}

/* Footer */
.site-footer {
	background: #050b2c;
	color: rgba(255, 255, 255, 0.82);
	padding-top: 3.25rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(200px, 1.45fr) repeat(5, minmax(0, 1fr));
	gap: 2rem 1.5rem;
	padding-bottom: 2.75rem;
	align-items: start;
}

.site-footer__brand .site-branding__text,
.site-footer__brand .site-branding__link {
	color: #fff;
}

.site-footer__logo,
.site-footer__brand .custom-logo,
.site-footer__brand .site-branding__logo {
	max-height: var(--kaapia-footer-logo-height);
	height: auto;
	width: auto;
}

.site-footer__tagline {
	margin: 0.55rem 0 0.85rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: #fff;
}

.site-footer__desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.65;
	max-width: 280px;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__heading {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.site-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu a {
	font-size: 0.88rem;
	font-weight: 400;
	text-decoration: none;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.1rem 0;
}

.site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__locale {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.site-footer__lang {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: 0.84rem;
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	cursor: pointer;
	color: inherit;
	user-select: none;
}

.site-footer__lang-toggle::-webkit-details-marker {
	display: none;
}

.site-footer__lang-toggle::marker {
	content: "";
	display: none;
}

.site-footer__lang-icon,
.site-footer__lang-chevron {
	display: inline-flex;
	align-items: center;
}

.site-footer__country-flag {
	font-size: 1rem;
	line-height: 1;
}

.site-footer__lang-chevron {
	transition: transform 0.18s ease;
}

.site-footer__lang[open] .site-footer__lang-chevron {
	transform: rotate(180deg);
}

.site-footer__lang-panel {
	position: absolute;
	inset-inline-end: 0;
	bottom: calc(100% + 0.55rem);
	z-index: 40;
	min-width: 15.5rem;
	padding: 0.55rem 0.45rem 0.4rem;
	background: #101a42;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(7, 12, 40, 0.45);
}

.site-footer__lang-heading {
	margin: 0 0.35rem 0.45rem;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__lang-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__lang-menu--scroll {
	max-height: 15.5rem;
	overflow-y: auto;
}

.site-footer__lang-menu a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.48rem 0.7rem;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	font-size: 0.8rem;
	line-height: 1.3;
}

.site-footer__lang-native {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
}

.site-footer__lang-menu a:hover {
	background: rgba(139, 61, 255, 0.22);
	color: #fff;
}

.site-footer__lang-menu a.is-current {
	background: linear-gradient(135deg, rgba(47, 107, 255, 0.28), rgba(139, 61, 255, 0.32));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-footer__lang-menu li[hidden] {
	display: none;
}

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.site-footer__social--brand {
	margin-top: 1.15rem;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
	color: #fff !important;
	line-height: 0;
}

.social-link svg {
	width: 18px;
	height: 18px;
}

.social-link:hover {
	background: transparent;
	color: var(--kaapia-teal) !important;
}

/* Responsive header */
@media (max-width: 1100px) {
	.site-header--stacked .site-header__stack {
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"brand actions toggle"
			"search search search";
		row-gap: 0.65rem;
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
	}

	.site-header--stacked .site-header__stack::before {
		display: none;
	}

	.site-header--stacked .site-branding,
	.site-header--stacked .site-header__actions {
		min-height: 0;
	}

	.site-header--stacked .primary-nav {
		grid-area: toggle;
		min-height: 0;
		width: auto;
		justify-self: end;
	}

	.site-header--stacked .site-header__actions {
		justify-self: end;
	}

	.site-header--stacked .primary-nav__list > .menu-item:first-child > a,
	.site-header--stacked .primary-nav__list > .header-explore:first-child .header-explore__toggle {
		padding-left: 0.7rem;
	}

	.site-header--stacked .header-wishlist {
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.site-header--stacked .header-wishlist__label {
		display: none;
	}

	.site-header--stacked .nav-toggle {
		display: flex;
		margin-left: auto;
	}

	.site-header--stacked .primary-nav__list {
		display: none;
	}

	.site-header--stacked .primary-nav.is-open .primary-nav__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 1200;
		padding: 0.85rem 1.25rem 1.15rem;
		background: #fff;
		border-bottom: 1px solid var(--kaapia-border);
		box-shadow: 0 12px 28px rgba(13, 30, 108, 0.1);
	}

	.site-header--stacked .primary-nav.is-open .header-explore__toggle {
		width: 100%;
		justify-content: space-between;
	}

	.site-header--stacked .primary-nav.is-open .header-explore__menu {
		position: static;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin-top: 0.25rem;
		box-shadow: none;
	}

	.site-header--stacked {
		position: relative;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr auto auto;
		grid-template-areas:
			"brand explore actions toggle"
			"search search search search";
	}

	.site-branding { grid-area: brand; }
	.header-explore { grid-area: explore; }
	.site-header__search { grid-area: search; }
	.site-header__actions { grid-area: actions; }
	.primary-nav { grid-area: toggle; justify-self: end; }

	.search-form {
		max-width: none;
		margin: 0;
	}

	.nav-toggle {
		display: flex;
	}

	.primary-nav__list {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		background: var(--kaapia-white);
		padding: 1rem 1.25rem 1.25rem;
		border-bottom: 1px solid var(--kaapia-border);
		box-shadow: var(--kaapia-shadow);
	}

	.primary-nav.is-open .primary-nav__list {
		display: flex;
	}

	.site-header {
		position: sticky;
	}

	.primary-nav {
		position: static;
	}

	.site-header__inner {
		position: relative;
	}
}

@media (max-width: 768px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"brand actions toggle"
			"search search search";
	}

	.site-header--udemy .header-auth--login {
		display: none;
	}

	.header-account__name {
		display: none;
	}

	.header-account__toggle {
		padding-right: 0.35rem;
	}

	.site-header--stacked .site-header__actions {
		gap: 0.38rem;
	}

	.site-header--stacked .btn.header-auth,
	.btn.header-auth {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 36px;
		padding: 0.42rem 0.9rem;
		border-radius: 999px !important;
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: -0.02em;
		line-height: 1;
		white-space: nowrap;
		box-shadow: none;
	}

	.site-header--stacked .btn.header-auth--login,
	.btn.header-auth.header-auth--login {
		border: 1.5px solid rgba(106, 45, 255, 0.28) !important;
		background: #fff !important;
		color: #5b22e6 !important;
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 10px rgba(15, 23, 42, 0.04) !important;
	}

	.site-header--stacked .btn.header-auth--login:hover,
	.btn.header-auth.header-auth--login:hover {
		background: #f6f1ff !important;
		border-color: #6a2dff !important;
		color: #4c1d95 !important;
		transform: none;
	}

	.site-header--stacked .btn.header-auth--signup,
	.btn.header-auth.header-auth--signup {
		padding-inline: 1.05rem;
		border: 0 !important;
		background: var(--kaapia-btn-gradient, linear-gradient(135deg, #2f6bff 0%, #8b3dff 100%)) !important;
		color: #fff !important;
		box-shadow: 0 6px 16px rgba(47, 107, 255, 0.38) !important;
	}

	.site-header--stacked .btn.header-auth--signup:hover,
	.btn.header-auth.header-auth--signup:hover {
		filter: brightness(1.07);
		transform: none;
		box-shadow: 0 8px 18px rgba(139, 61, 255, 0.4) !important;
	}
}

@media (max-width: 1100px) {
	.site-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem 1.5rem;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
		max-width: 32rem;
	}
}

@media (max-width: 768px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	body {
		font-size: 16px;
	}
}
