/**
 * HF Academy — frontend (mobile-first).
 */

/* Reset Divi / theme wrapper spacing on Academy pages */
.hf-academy-fullwidth .entry-content {
	padding: 0;
	margin: 0;
}

#main-content > .hf-academy-fullwidth {
	padding: 0;
	margin: 0;
}

.hf-academy {
	--hf-academy-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hf-academy-max: 1200px;
	--hf-academy-pad-x: 18px;
	--hf-academy-section-pad-y: 48px;
	--hf-academy-section-pad-y-lg: 72px;
	--hf-academy-radius: 8px;

	color: var(--hf-text-color, #fff);
	background: var(--hf-background-color, #000);
	font-family: var(--hf-academy-font);
	font-size: 16px;
	line-height: 1.55;
	overflow-x: hidden;
}

.hf-academy * {
	box-sizing: border-box;
}

.hf-academy a {
	color: inherit;
	text-decoration: none;
}

.hf-academy a:hover,
.hf-academy a:focus-visible {
	color: var(--hf-accent-color, limegreen);
}

.hf-academy a.hf-academy-btn--primary,
.hf-academy a.hf-academy-btn--primary:hover,
.hf-academy a.hf-academy-btn--primary:focus-visible {
	color: #0a0a0a;
}

.hf-academy__inner {
	width: 100%;
	max-width: var(--hf-academy-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hf-academy-pad-x);
	padding-right: var(--hf-academy-pad-x);
}

.hf-academy-section {
	padding-top: var(--hf-academy-section-pad-y);
	padding-bottom: var(--hf-academy-section-pad-y);
}

@media (min-width: 1024px) {
	.hf-academy-section {
		padding-top: var(--hf-academy-section-pad-y-lg);
		padding-bottom: var(--hf-academy-section-pad-y-lg);
	}
}

.hf-academy-section--hero {
	padding-top: 72px;
	padding-bottom: 48px;
}

@media (min-width: 1024px) {
	.hf-academy-section--hero {
		padding-top: 100px;
		padding-bottom: var(--hf-academy-section-pad-y-lg);
	}
}

.hf-academy-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hf-accent-color, limegreen);
	margin-bottom: 16px;
}

.hf-academy-hero__title {
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-hero__subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 500;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0 0 24px;
	max-width: 36em;
}

.hf-academy-hero__body {
	font-size: 1.0625rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0 0 28px;
	max-width: 38em;
}

.hf-academy-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

@media (min-width: 480px) {
	.hf-academy-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

.hf-academy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--hf-academy-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
	text-align: center;
	width: 100%;
}

@media (min-width: 480px) {
	.hf-academy-btn {
		width: auto;
		min-width: 160px;
	}
}

.hf-academy-btn:focus-visible {
	outline: 2px solid var(--hf-accent-color, limegreen);
	outline-offset: 2px;
}

.hf-academy-btn--primary {
	background: var(--hf-accent-color, limegreen);
	color: #0a0a0a;
	border-color: transparent;
}

.hf-academy-btn--primary:hover,
.hf-academy-btn--primary:focus-visible {
	background: var(--hf-accent-color-hover, #32cd32);
	transform: scale(1.02);
	color: #0a0a0a;
}

.hf-academy-btn--secondary {
	background: transparent;
	color: var(--hf-text-color, #fff);
	border-color: var(--hf-border-color, rgba(255, 255, 255, 0.12));
}

.hf-academy-btn--secondary:hover,
.hf-academy-btn--secondary:focus-visible {
	border-color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	transform: scale(1.02);
}

.hf-academy-section__title {
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 28px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-section__body {
	font-size: 1.0625rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	max-width: 42em;
}

.hf-academy-section__body p {
	margin: 0 0 1em;
}

.hf-academy-section__body p:last-child {
	margin-bottom: 0;
}

.hf-academy-text-center {
	text-align: center;
}

.hf-academy-text-center .hf-academy-section__body {
	margin-left: auto;
	margin-right: auto;
}

/* Hero layout */
.hf-academy-hero {
	position: relative;
}

.hf-academy-hero__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 1024px) {
	.hf-academy-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
	}
}

.hf-academy-hero__media {
	position: relative;
	border-radius: var(--hf-academy-radius);
	overflow: hidden;
	min-height: 220px;
	background: var(--hf-card-background, #1a1a1a);
}

.hf-academy-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) {
	.hf-academy-hero__media img {
		aspect-ratio: 3 / 4;
		min-height: 420px;
	}
}

.hf-academy-hero__media--overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.hf-academy-hero--bg {
	background-size: cover;
	background-position: center;
}

.hf-academy-hero--bg .hf-academy-hero__grid {
	position: relative;
	z-index: 1;
}

.hf-academy-hero--bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--hf-background-color) 92%, transparent) 0%, color-mix(in srgb, var(--hf-background-color) 65%, transparent) 55%, color-mix(in srgb, var(--hf-background-color) 35%, transparent) 100%);
}

/* Cards grid */
.hf-academy-cards {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.hf-academy-cards--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.hf-academy-cards--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.hf-academy-cards--4 {
		grid-template-columns: repeat(4, 1fr);
	}

	/* Program cards: 2 on tablet, 3 on desktop */
	.hf-academy-cards--programs {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.hf-academy-cards--programs {
		grid-template-columns: repeat(2, 1fr);
	}
}

.hf-academy-card {
	background: var(--hf-card-background, #1a1a1a);
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	border-radius: var(--hf-academy-radius);
	padding: 24px;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.hf-academy-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.2);
}

.hf-academy-card__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 6px;
	overflow: hidden;
}

.hf-academy-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hf-academy-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-card__body {
	font-size: 0.98rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	line-height: 1.5;
}

/* Program cards */
.hf-academy-program-card {
	background: var(--hf-card-background, #1a1a1a);
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	border-radius: var(--hf-academy-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.hf-academy-program-card:hover {
	transform: translateY(-4px) scale(1.01);
	border-color: rgba(255, 255, 255, 0.22);
}

.hf-academy-program-card__image {
	aspect-ratio: 16 / 10;
	background: var(--hf-card-background-lighter, #222);
	overflow: hidden;
}

.hf-academy-program-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hf-academy-program-card__body {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

.hf-academy-program-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	color: var(--hf-text-color, #fff);
}

.hf-academy-program-card__excerpt {
	font-size: 0.98rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	flex: 1;
}

.hf-academy-program-card__excerpt p {
	margin: 0;
}

.hf-academy-program-card__link {
	margin-top: 8px;
	align-self: flex-start;
}

/* Timeline */
.hf-academy-timeline {
	display: grid;
	gap: 24px;
}

@media (min-width: 768px) {
	.hf-academy-timeline {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}
}

.hf-academy-timeline__item {
	padding-left: 20px;
	border-left: 2px solid var(--hf-accent-color, limegreen);
}

.hf-academy-timeline__label {
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0 8px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-timeline__desc {
	margin: 0;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	font-size: 0.98rem;
}

/* Checklist */
.hf-academy-checklist {
	list-style: none !important;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.hf-academy-checklist li {
	list-style-type: none !important;
	position: relative;
	padding-left: 24px;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	font-size: 1.0625rem;
}

.hf-academy-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 12px;
	height: 2px;
	border-radius: 1px;
	background: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
}

/* Two column */
.hf-academy-two-col {
	display: grid;
	gap: 32px;
}

@media (min-width: 768px) {
	.hf-academy-two-col {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

.hf-academy-two-col__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.hf-academy-two-col ul {
	margin: 0;
	padding-left: 1.1em;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
}

.hf-academy-two-col li {
	margin-bottom: 10px;
}

/* Video */
.hf-academy-video__embed {
	position: relative;
	border-radius: var(--hf-academy-radius);
	overflow: hidden;
	background: #000;
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	max-width: 900px;
}

.hf-academy-video__embed video {
	width: 100%;
	display: block;
	border-radius: var(--hf-academy-radius);
}

.hf-academy-video__caption {
	margin-top: 14px;
	font-size: 0.95rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
}

/* Summary strip */
.hf-academy-summary-strip {
	display: grid;
	gap: 20px;
	padding: 28px 20px;
	background: var(--hf-card-background-lighter, #222);
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	border-radius: var(--hf-academy-radius);
}

@media (min-width: 768px) {
	.hf-academy-summary-strip {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		padding: 32px 28px;
	}
}

.hf-academy-summary-strip__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.hf-academy-summary-strip__body {
	margin: 0;
	font-size: 0.95rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
}

/* Who + image */
.hf-academy-split {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 768px) {
	.hf-academy-split {
		grid-template-columns: 1fr 1fr;
	}
}

.hf-academy-split__image img {
	width: 100%;
	border-radius: var(--hf-academy-radius);
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Outcomes section background */
.hf-academy-section--outcomes {
	background: var(--hf-card-background-lighter, #222);
}

/* Inquiry / GF */
.hf-academy-inquiry .gform_wrapper {
	margin-top: 8px;
}

.hf-academy-inquiry .hf-academy-section__body {
	margin-bottom: 24px;
}


/* Split layout (text + image) */
.hf-academy-split__img {
	max-height: 280px;
	object-fit: cover;
	width: 100%;
	border-radius: var(--hf-academy-radius);
}

@media (min-width: 768px) {
	.hf-academy-split__img {
		max-height: none;
		aspect-ratio: 4 / 3;
	}
}

/* Path chooser cards */
.hf-academy-path-cards {
	display: grid;
	gap: 16px;
	margin-top: 32px;
}

@media (min-width: 768px) {
	.hf-academy-path-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

.hf-academy-path-card {
	display: block;
	position: relative;
	background: var(--hf-card-background, #1a1a1a);
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	border-left: 3px solid var(--hf-accent-color, limegreen);
	border-radius: var(--hf-academy-radius);
	padding: 20px 24px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.18s ease;
}

@media (hover: hover) {
	a.hf-academy-path-card:hover {
		border-color: var(--hf-accent-color, limegreen);
		border-left-color: var(--hf-accent-color, limegreen);
	}
}

.hf-academy-path-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-path-card__desc {
	font-size: 0.95rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	line-height: 1.5;
}

.hf-academy-path-card__arrow {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	color: var(--hf-accent-color, limegreen);
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

@media (hover: hover) {
	a.hf-academy-path-card:hover .hf-academy-path-card__arrow {
		opacity: 1;
	}
}

/* FAQ accordion */
.hf-academy-faq {
	max-width: 800px;
}

.hf-academy-faq__item {
	border-bottom: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
}

.hf-academy-faq__item:first-child {
	border-top: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
}

.hf-academy-faq__question {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 16px 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--hf-text-color, #fff);
	cursor: pointer;
	list-style: none;
}

.hf-academy-faq__question::-webkit-details-marker {
	display: none;
}

.hf-academy-faq__question::after {
	content: "+";
	margin-left: auto;
	padding-left: 16px;
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	transition: transform 0.2s ease;
}

.hf-academy-faq__item[open] > .hf-academy-faq__question::after {
	content: "−";
}

.hf-academy-faq__answer {
	padding-bottom: 20px;
	font-size: 1rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	line-height: 1.6;
}

.hf-academy-faq__answer p {
	margin: 0 0 0.75em;
}

.hf-academy-faq__answer p:last-child {
	margin-bottom: 0;
}

/* Daily schedule */
.hf-academy-schedule {
	display: grid;
	gap: 0;
}

.hf-academy-schedule__block {
	padding: 20px 0 20px 20px;
	border-left: 2px solid var(--hf-accent-color, limegreen);
	position: relative;
}

.hf-academy-schedule__block::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 24px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hf-accent-color, limegreen);
}

.hf-academy-schedule__header {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
}

@media (min-width: 768px) {
	.hf-academy-schedule__header {
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
	}
}

.hf-academy-schedule__time {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hf-accent-color, limegreen);
	white-space: nowrap;
}

.hf-academy-schedule__label {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	color: var(--hf-text-color, #fff);
}

.hf-academy-schedule__desc {
	margin: 0;
	font-size: 0.95rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	line-height: 1.5;
}

/* Image break */
.hf-academy-section--image-break {
	padding: 0;
}

.hf-academy-image-break {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hf-academy-image-break__img {
	width: 100%;
	max-height: 50vh;
	object-fit: cover;
	display: block;
}

@media (min-width: 1024px) {
	.hf-academy-image-break__img {
		max-height: 480px;
	}
}

.hf-academy-image-break__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 32px 0 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.hf-academy-image-break__caption p {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
}

/* Default focal-point: favour the top of the frame (faces, heads) */
.hf-academy-hero__media img,
.hf-academy-split__image img,
.hf-academy-split__img,
.hf-academy-program-card__image img,
.hf-academy-image-break__img {
	object-position: center top;
}

/* Lazy images */
.hf-academy img[loading="lazy"] {
	content-visibility: auto;
}

/* ========================================================================
   Image carousel
   ======================================================================== */

.hf-academy-section--carousel {
	padding-top: 0;
	padding-bottom: var(--hf-academy-section-pad-y);
}

.hf-academy-carousel {
	position: relative;
}

.hf-academy-carousel__track {
	--_carousel-gap: 16px;
	display: flex;
	gap: var(--_carousel-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hf-academy-carousel__track::-webkit-scrollbar {
	display: none;
}

.hf-academy-carousel__slide {
	flex: 0 0 calc(100% - 2 * var(--hf-academy-pad-x));
	scroll-snap-align: center;
	border-radius: var(--hf-academy-radius);
	overflow: hidden;
}

/* On mobile, add padding so first/last slides can center */
.hf-academy-carousel__track {
	padding-left: calc(50% - (100% - 2 * var(--hf-academy-pad-x)) / 2);
	padding-right: calc(50% - (100% - 2 * var(--hf-academy-pad-x)) / 2);
}

@media (min-width: 600px) {
	.hf-academy-carousel__slide {
		flex: 0 0 calc(50% - var(--_carousel-gap) / 2);
		scroll-snap-align: start;
	}
	.hf-academy-carousel__track {
		padding-left: var(--hf-academy-pad-x);
		padding-right: var(--hf-academy-pad-x);
	}
}

@media (min-width: 1024px) {
	.hf-academy-carousel__slide {
		flex: 0 0 calc(33.333% - var(--_carousel-gap) * 2 / 3);
	}
}

@media (min-width: 1400px) {
	.hf-academy-carousel__slide {
		flex: 0 0 calc(25% - var(--_carousel-gap) * 3 / 4);
	}
}

.hf-academy-carousel__img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: var(--hf-academy-radius);
}

.hf-academy-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	z-index: 2;
	transition: background 0.15s ease, opacity 0.15s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.hf-academy-carousel__arrow:hover {
	background: rgba(0, 0, 0, 0.75);
}

.hf-academy-carousel__arrow[disabled] {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.hf-academy-carousel__arrow--prev {
	left: 8px;
}

.hf-academy-carousel__arrow--next {
	right: 8px;
}

@media (min-width: 1024px) {
	.hf-academy-carousel__arrow--prev {
		left: 24px;
	}
	.hf-academy-carousel__arrow--next {
		right: 24px;
	}
}

/* Hide arrows/dots when JS determines no scrolling is needed */
.hf-academy-carousel__arrow.is-hidden,
.hf-academy-carousel__dots.is-hidden {
	display: none;
}

.hf-academy-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.hf-academy-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hf-academy-carousel__dot.is-active {
	background: var(--hf-accent-color, limegreen);
	transform: scale(1.3);
}

.hf-academy-carousel__dot:hover {
	background: rgba(255, 255, 255, 0.5);
}

.hf-academy-carousel__dot.is-active:hover {
	background: var(--hf-accent-color, limegreen);
}

/* ========================================================================
   Multi-video grid (program pages)
   ======================================================================== */

.hf-academy-videos {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.hf-academy-videos--2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.hf-academy-videos--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.hf-academy-videos--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hf-academy-videos__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hf-academy-videos__item .hf-academy-video__embed {
	max-width: none;
}

.hf-academy-videos__caption {
	font-size: 0.95rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
}

.hf-academy-videos__caption p {
	margin: 0;
}

/* ========================================================================
   Video gallery page
   ======================================================================== */

.hf-academy-gallery-header {
	text-align: center;
	padding-bottom: 0;
}

.hf-academy-gallery-header__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-gallery-header__subtitle {
	font-size: 1.125rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	max-width: 36em;
	margin-left: auto;
	margin-right: auto;
}

/* Category filter tabs */
.hf-academy-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}

.hf-academy-gallery-filter {
	padding: 8px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	background: transparent;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hf-academy-gallery-filter:hover {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--hf-text-color, #fff);
}

.hf-academy-gallery-filter.is-active {
	background: var(--hf-accent-color, limegreen);
	color: #0a0a0a;
	border-color: transparent;
}

/* Video card grid */
.hf-academy-gallery-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.hf-academy-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.hf-academy-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hf-academy-gallery-card {
	background: var(--hf-card-background, #1a1a1a);
	border: 1px solid var(--hf-border-color, rgba(255, 255, 255, 0.12));
	border-radius: var(--hf-academy-radius);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.hf-academy-gallery-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.22);
}

.hf-academy-gallery-card[hidden] {
	display: none;
}

.hf-academy-gallery-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	overflow: hidden;
}

.hf-academy-gallery-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hf-academy-gallery-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.2);
	transition: background 0.15s ease;
}

.hf-academy-gallery-card__thumb--empty .hf-academy-gallery-card__play {
	background: transparent;
}

.hf-academy-gallery-card:hover .hf-academy-gallery-card__play {
	background: rgba(0, 0, 0, 0.35);
}

.hf-academy-gallery-card__play svg {
	width: 56px;
	height: 56px;
	fill: rgba(255, 255, 255, 0.9);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
	transition: transform 0.15s ease;
}

.hf-academy-gallery-card__thumb--empty .hf-academy-gallery-card__play svg {
	width: 64px;
	height: 64px;
	opacity: 0.8;
}

.hf-academy-gallery-card:hover .hf-academy-gallery-card__play svg {
	transform: scale(1.1);
}

.hf-academy-gallery-card__body {
	padding: 16px 20px 20px;
}

.hf-academy-gallery-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--hf-text-color, #fff);
}

.hf-academy-gallery-card__desc {
	font-size: 0.92rem;
	color: var(--hf-text-muted, rgba(255, 255, 255, 0.72));
	margin: 0;
	line-height: 1.5;
}

.hf-academy-gallery-card__cat {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hf-accent-color, limegreen);
}

/* Video modal */
.hf-academy-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hf-academy-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.hf-academy-modal__inner {
	position: relative;
	width: 90vw;
	max-width: 960px;
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.hf-academy-modal.is-open .hf-academy-modal__inner {
	transform: scale(1);
}

.hf-academy-modal__close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hf-academy-modal__close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.hf-academy-modal video {
	width: 100%;
	display: block;
	border-radius: var(--hf-academy-radius);
}
