/*
Theme Name: Honarestan
Description: تم اختصاصی هنرستان انتخاب.
Version: 1.1.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: honarestan
*/

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/*
 * ---------- Design tokens ----------
 * Two registers, per the platform design system:
 *   - Interior (--bg/--ink/...): the default for every page. Body, footer,
 *     page-content, and the homepage news/staff sections all use this.
 *   - Cinematic (--cine-*): ONLY the homepage scroll-video hero (.scrub) and
 *     the mobile full-screen nav overlay, which stays dark regardless of
 *     which page it's opened from.
 * Never mix the two sets on the same element.
 */
:root {
	/* interior (light) -- default */
	--bg: #F8F6F1;
	--bg-alt: #EFEBE1;
	--surface: #FFFFFF;
	--ink: #10233F;
	--ink-soft: #3D4E68;
	--line: #DEDACC;
	--line-strong: #C7C0AC;
	--accent: #B23A28;
	--accent-soft: #E8DCD3;
	--radius-sm: 0.35rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--t-fast: 150ms ease;
	--t-base: 220ms ease;

	/* cinematic (dark) -- .scrub hero + mobile nav overlay only */
	--cine-bg: #001A4B;
	--cine-bg-deep: #02102E;
	--cine-ink: #F5F7FA;
	--cine-ink-muted: rgba(245, 247, 250, 0.6);
	--cine-ink-dim: rgba(245, 247, 250, 0.28);

	--font: 'Vazirmatn', Tahoma, sans-serif;
	--header-h: 5.75rem;
}

html, body {
	background: var(--bg);
}
body {
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.8;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Site header ---------- */
/* Transparent/cinematic on the homepage (floats over the dark hero);
   solid/interior on every other page (there's no hero to float over). */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background var(--t-base), border-color var(--t-base);
}
body:not(.home) .site-header {
	background: var(--surface);
	border-bottom-color: var(--line);
}

/* The video hero varies wildly in brightness underneath the header (dark
   workshop clutter vs. a sunlit window), so plain text has no reliable
   contrast against it. A scrim -- taller than the header's own content box,
   fading to nothing -- guarantees legibility without a solid bar killing the
   floating/cinematic feel. Standard pattern for nav over video/photo heroes. */
.home .site-header::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 9rem;
	background: linear-gradient(to bottom, rgba(2, 16, 46, 0.65), rgba(2, 16, 46, 0) 100%);
	z-index: -1;
	pointer-events: none;
}

.brand-mark {
	display: block;
	width: 6.5rem;
	flex: none;
}
.brand-mark img {
	display: block;
	width: 100%;
	height: auto;
}

/* Desktop persistent nav -- hidden below 1024px, hamburger takes over */
.site-header__nav { display: none; }
.site-header__links {
	list-style: none;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.6rem;
	font-size: 0.9rem;
	font-weight: 600;
}
.site-header {
	--nav-link-color: var(--cine-ink);
	--nav-link-opacity: 0.85;
}
body:not(.home) .site-header {
	--nav-link-color: var(--ink-soft);
	--nav-link-opacity: 1;
}
.site-header__links a {
	color: var(--nav-link-color);
	opacity: var(--nav-link-opacity);
}
/* Higher specificity than the rule above regardless of .home context, since
   the home/interior split lives in the custom property, not in a competing
   selector -- avoids the specificity trap of matching body:not(.home) chains
   per state. */
.site-header__links a:hover,
.site-header__links a:focus-visible,
.site-header__links .current-menu-item a {
	opacity: 1;
	color: var(--accent);
}

/* ---------- Hamburger (mobile / < 1024px) ---------- */
.menu-toggle {
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: rgba(16, 35, 63, 0.06);
	border: 1px solid rgba(16, 35, 63, 0.14);
	border-radius: var(--radius-md);
	cursor: pointer;
	flex: none;
}
.home .menu-toggle {
	background: rgba(245, 247, 250, 0.06);
	border-color: rgba(245, 247, 250, 0.16);
}
.menu-toggle__bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform var(--t-base), opacity var(--t-base);
}
.home .menu-toggle__bar {
	background: var(--cine-ink);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(0.6rem) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-0.6rem) rotate(-45deg);
}

/* Full-screen overlay menu: always dark/cinematic regardless of page,
   a deliberate choice to keep one consistent "app-like" mobile nav rather
   than theme-switching a transient overlay. */
.site-nav {
	position: fixed;
	inset: 0;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cine-bg-deep);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--t-base);
}
.site-nav.is-open {
	opacity: 1;
	pointer-events: auto;
}
.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	text-align: center;
}
.site-nav__list a {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--cine-ink);
	opacity: 0.85;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible {
	opacity: 1;
}

@media (min-width: 1024px) {
	.site-header__nav { display: block; }
	.menu-toggle { display: none; }
}

/* ---------- Scroll-scrub section (cinematic, unchanged) ---------- */
.scrub {
	/* Explicit now that body no longer defaults dark -- previously this
	   inherited its background from body, which was the whole page's dark
	   navy. Now that the interior register is the page default, the hero
	   needs its own background or the text column goes near-white-on-paper. */
	background: var(--cine-bg);
}
.scrub__media {
	position: static;
	width: 100%;
	height: 50vh;
	background: var(--cine-bg-deep);
}

.scrub__chapters { display: flex; flex-direction: column; }
.scrub__chapter {
	padding: 3rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	color: var(--cine-ink);
}
.scrub__chapter .eyebrow {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cine-ink-muted);
	letter-spacing: 0.02em;
}
.scrub__chapter h2 {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.3;
}
.scrub__chapter-body {
	max-width: 46ch;
	color: var(--cine-ink-muted);
}

.scrub__chapter-cta {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-top: 0.5rem;
	padding: 0.65rem 1.4rem;
	background: var(--accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	transition: background var(--t-fast), transform var(--t-fast);
}
.scrub__chapter-cta:hover,
.scrub__chapter-cta:focus-visible {
	background: #8f2f21;
	transform: translateY(-1px);
}

.scroll-hint {
	margin-top: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--cine-ink-muted);
}
.scroll-hint__chevron {
	color: var(--cine-ink-muted);
	animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-hint-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(0.3rem); }
}

@media (min-width: 821px) {
	.scrub__inner {
		display: grid;
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}

	.scrub__media {
		/* Scrollsequence plugin owns its own pin/sticky via GSAP ScrollTrigger. */
		height: 100vh;
	}

	/* Text pins for the same document range as the image sequence (the grid
	   row is as tall as the plugin's own pin-spacer), so only the chapter
	   content needs to change -- via crossfade, not scroll. */
	.scrub__chapters {
		position: sticky;
		top: 0;
		height: 100vh;
	}

	.scrub__chapter {
		position: absolute;
		inset: 0;
		padding: 4rem;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.6s ease;
	}

	/* Every chapter stacks in the exact same spot for the crossfade, so
	   without this an inactive chapter's CTA still sits there capturing
	   clicks/hover over whichever chapter is actually visible beneath it. */
	.scrub__chapters:not(.is-enhanced) .scrub__chapter:first-child,
	.scrub__chapters.is-enhanced .scrub__chapter.is-active {
		pointer-events: auto;
	}

	/* No-JS / pre-enhancement fallback: show the first chapter only, so the
	   page isn't a pile of overlapping text before main.js runs. Scoped to
	   :not(.is-enhanced) so it steps aside once JS is driving .is-active --
	   otherwise its specificity would keep chapter 0 visible forever. */
	.scrub__chapters:not(.is-enhanced) .scrub__chapter:first-child {
		opacity: 1;
	}

	.scrub__chapters.is-enhanced .scrub__chapter.is-active {
		opacity: 1;
	}

	/* Detach from the centered text group and pin to the bottom of the
	   viewport-height box, independent of how tall the headline/body are. */
	.scrub__chapter .scroll-hint {
		position: absolute;
		inset-inline-start: 4rem;
		bottom: 3rem;
		margin-top: 0;
	}
}

/* ---------- Section header (eyebrow + h2), shared pattern ---------- */
.section-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.02em;
	margin-bottom: 0.4rem;
	display: block;
}

/* ---------- Badge ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	letter-spacing: 0.02em;
	background: var(--bg-alt);
	color: var(--ink-soft);
}

/* ---------- Breadcrumb ---------- */
.crumb {
	display: flex;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: var(--ink-soft);
	margin-bottom: 1.25rem;
}
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--accent); }
.crumb span[aria-current] { color: var(--ink); }
.crumb .sep { color: var(--line-strong); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.85rem;
}
.site-footer__links {
	max-width: 64rem;
	margin-inline: auto;
	padding: 2rem 1.5rem 0;
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 1.75rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	font-weight: 600;
}
.site-footer__links a:hover { color: var(--accent); }
.site-footer__inner {
	max-width: 64rem;
	margin-inline: auto;
	padding: 1.5rem 1.5rem 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
	font-size: 0.8rem;
}
.site-footer p { margin: 0; }
.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	max-width: 220px;
}
.site-footer__brand-logo {
	width: 100%;
	max-width: 160px;
	height: auto;
}
.site-footer__copyright {
	color: var(--ink-soft);
	line-height: 1.7;
}
.site-footer__phone { line-height: 1.9; }
.site-footer__phone a {
	color: var(--ink);
	font-weight: 600;
	border-bottom: 1px solid var(--line-strong);
}
.site-footer__phone a:hover { color: var(--accent); border-color: var(--accent); }

.site-footer__location {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	max-width: 220px;
}
.site-footer__map {
	position: relative;
	display: block;
	width: 100%;
	max-width: 220px;
	height: 130px;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--line);
}
.site-footer__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}
.site-footer__map-label {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 0.35rem 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background: linear-gradient(to top, rgba(16, 35, 63, 0.75), rgba(16, 35, 63, 0));
}
.site-footer__map:hover .site-footer__map-label,
.site-footer__map:focus-visible .site-footer__map-label {
	color: var(--bg);
	background: rgba(178, 58, 40, 0.85);
}

@media (min-width: 640px) {
	.site-footer__inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}
}

/* ---------- News & staff sections (interior register) ---------- */
.section-inner {
	max-width: 64rem;
	margin-inline: auto;
	padding: 5rem 1.5rem;
}
.news-section,
.staff-section {
	background: var(--bg);
}
.news-section h2,
.staff-section h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	margin-bottom: 2rem;
}
.section-link {
	display: inline-block;
	margin-top: 2rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent);
	border-bottom: 1px solid var(--accent-soft);
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
.news-card {
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.news-card__tag {
	margin-bottom: 0.6rem;
}
.news-card h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
}

.staff-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
.staff-card {
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
}
.staff-card__avatar {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--bg-alt);
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 0.5rem;
}
.staff-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.staff-card__name {
	font-weight: 700;
	color: var(--ink-soft);
	font-style: italic;
}
.staff-card__role {
	font-size: 0.85rem;
	color: var(--ink-soft);
}

@media (min-width: 640px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.staff-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Generic content pages ---------- */
.page-content {
	max-width: 46rem;
	margin-inline: auto;
	padding: calc(var(--header-h) + 2rem) 1.5rem 6rem;
}
.page-content h1 {
	font-size: clamp(1.8rem, 5vw, 2.75rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
}
.page-content__body {
	color: var(--ink-soft);
	max-width: 60ch;
}
.page-content__body p + p {
	margin-top: 1rem;
}

.page-content--wide {
	max-width: 42rem;
}
@media (min-width: 700px) {
	.page-content--wide {
		max-width: 46rem;
	}
}
.page-content__lede {
	color: var(--ink-soft);
	max-width: 60ch;
	font-size: 1.05rem;
	margin-bottom: 2rem;
}

/* ---------- Course/major page ---------- */
.major-jump {
	display: flex;
	gap: 1rem;
	margin-bottom: 3rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}
.major-jump a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-md);
}

.major {
	padding-block: 3rem;
	border-top: 1px solid var(--line);
	scroll-margin-top: var(--header-h);
}
.major:first-of-type {
	border-top: none;
	padding-top: 0;
}
.major h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	margin-bottom: 1.25rem;
}
.major h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 2.25rem;
	margin-bottom: 0.9rem;
}
.major__p {
	color: var(--ink-soft);
	max-width: 65ch;
}
.major__p + .major__p {
	margin-top: 0.9rem;
}
.major__grade {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent);
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}
.major__grade:first-of-type {
	margin-top: 0;
}
.major__list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-width: 65ch;
}
.major__list li {
	position: relative;
	padding-inline-start: 1.15rem;
	color: var(--ink-soft);
	font-size: 0.95rem;
	line-height: 1.75;
}
.major__list li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.65em;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--accent);
}

/* ---------- FAQ accordion ---------- */
.faq {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	max-width: 65ch;
}
.faq details {
	border-top: 1px solid var(--line);
	background: var(--surface);
}
.faq details:first-child {
	border-top: none;
}
.faq summary {
	padding: 1rem 1.25rem;
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '+';
	color: var(--accent);
	flex: none;
	font-weight: 700;
}
.faq details[open] summary::after {
	content: '\2212';
}
.faq summary:hover {
	color: var(--accent);
}
.faq p {
	padding: 0 1.25rem 1.15rem;
	color: var(--ink-soft);
	font-size: 0.9rem;
}

/* ---------- Scrollsequence plugin overrides ---------- */
/* The plugin's default custom CSS (scrollsequence_custom_css meta) applies a
   rounded corner + glow to the canvas. Before JS resizes the canvas to fill
   its container, that glow renders around the small default 300x150 canvas,
   producing a visible flashing box in the corner. Not part of our design
   either way, so kill it outright. */
.scrollsequence-canvas {
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* ---------- Student portfolios ---------- */
.students-section {
	background: var(--bg);
}
.students-section h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	margin-bottom: 2rem;
}

.students-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.students-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 900px) {
	.students-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.student-card {
	position: relative;
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	transition: border-color var(--t-fast), transform var(--t-fast);
}
.student-card:hover {
	border-color: var(--accent-soft);
	transform: translateY(-2px);
}
.student-card__avatar {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--bg-alt);
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.student-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.student-card__name {
	font-weight: 700;
}

.rank-badge {
	position: absolute;
	top: -0.6rem;
	inset-inline-start: -0.6rem;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
	background: var(--ink-soft);
}
.rank-badge--1 { background: #C9A227; }
.rank-badge--2 { background: #9AA0A6; }
.rank-badge--3 { background: #A9673A; }

.field-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
}
.field-badge--network {
	background: var(--accent-soft);
	color: var(--accent);
}
.field-badge--mechanical {
	background: var(--bg-alt);
	color: var(--ink);
}

.level-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
}

.xp-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
}

/* ---------- Student profile page ---------- */
.student-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
	.student-hero {
		flex-direction: row;
		text-align: start;
	}
}
.student-hero__avatar {
	width: 7rem;
	height: 7rem;
	flex: none;
	border-radius: 50%;
	background: var(--bg-alt);
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.student-hero__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.student-hero__info h1 {
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 800;
	margin-bottom: 0.6rem;
}
.student-hero__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
	.student-hero__badges {
		justify-content: flex-start;
	}
}
.student-hero__slogan {
	font-style: italic;
	color: var(--ink-soft);
	margin-bottom: 0.5rem;
}
.student-hero__goal {
	color: var(--ink-soft);
	font-size: 0.92rem;
	margin-bottom: 0.75rem;
}
.student-hero__stats {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
}
@media (min-width: 640px) {
	.student-hero__stats {
		justify-content: flex-start;
	}
}
.student-hero__stat strong {
	color: var(--accent);
	font-size: 1.1rem;
}

.student-projects__title {
	font-size: 1.25rem;
	font-weight: 800;
	margin-bottom: 1.25rem;
}

.projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 2rem;
}
@media (min-width: 640px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.project-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: border-color var(--t-fast), transform var(--t-fast);
}
.project-card:hover {
	border-color: var(--accent-soft);
	transform: translateY(-2px);
}
.project-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius-md);
}
.project-card__title {
	font-weight: 700;
}
.project-card .xp-badge {
	align-self: flex-start;
}

/* ---------- Project detail page ---------- */
.project-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 1.5rem 0;
}
@media (min-width: 640px) {
	.project-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}
.project-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-md);
}

.skill-bars {
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.skill-bar__label {
	display: flex;
	justify-content: space-between;
	font-size: 0.88rem;
	margin-bottom: 0.3rem;
}
.skill-bar__track {
	display: block;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--bg-alt);
	overflow: hidden;
}
.skill-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--accent);
}

.safety-box,
.feedback-box {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--bg-alt);
}
.safety-box strong,
.feedback-box strong {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--ink);
}
.safety-box p,
.feedback-box p {
	color: var(--ink-soft);
	font-size: 0.92rem;
}
.feedback-box {
	border-inline-start: 3px solid var(--accent);
}
