/**
 * HGSSS Contest Plugin — Immersive Storytelling Design
 * Brand-aligned: Navy #002B54, Green #289747, Oswald + Inter
 */

/* =========================================================================
   Design Tokens
   ========================================================================= */

.hgc {
	--hgc-navy: #002B54;
	--hgc-navy-deep: #001A33;
	--hgc-navy-light: #003D70;
	--hgc-green: #289747;
	--hgc-green-light: #34B85A;
	--hgc-green-glow: rgba(40, 151, 71, 0.25);
	--hgc-gold: #D4A843;
	--hgc-gold-dark: #B8922A;
	--hgc-coral: #C0392B;
	--hgc-success: #27AE60;
	--hgc-bg: #F7F8FA;
	--hgc-bg-alt: #EEF1F5;
	--hgc-surface: #FFFFFF;
	--hgc-text: #1A2332;
	--hgc-text-secondary: #4A5568;
	--hgc-text-muted: #718096;
	--hgc-border: #E2E8F0;
	--hgc-radius: 12px;
	--hgc-radius-sm: 8px;
	--hgc-radius-lg: 16px;
	--hgc-shadow: 0 2px 16px rgba(0, 43, 84, 0.06);
	--hgc-shadow-lg: 0 8px 32px rgba(0, 43, 84, 0.10);
	--hgc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--hgc-font-display: 'Oswald', -apple-system, sans-serif;
	--hgc-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--hgc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--hgc-container: 1120px;
}

/* =========================================================================
   Reset & Base
   ========================================================================= */

.hgc {
	font-family: var(--hgc-font);
	color: var(--hgc-text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

.hgc *, .hgc *::before, .hgc *::after { box-sizing: border-box; }
.hgc img { max-width: 100%; height: auto; }

.hgc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hgc-container {
	max-width: var(--hgc-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* =========================================================================
   Page Stepper — visible labels on desktop
   ========================================================================= */

.hgc-stepper {
	display: none;
	position: fixed;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 90;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

@media (min-width: 1200px) {
	.hgc-stepper { display: flex; }
}

.hgc-stepper__dot {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	transition: all var(--hgc-transition);
}

.hgc-stepper__dot::before {
	content: '';
	flex-shrink: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(0, 43, 84, 0.38);
	border: 2px solid transparent;
	transition: all var(--hgc-transition);
}

.hgc-stepper__dot:hover::before {
	background: var(--hgc-navy);
	transform: scale(1.3);
}

.hgc-stepper__dot.is-active::before {
	background: var(--hgc-green);
	box-shadow: 0 0 0 5px var(--hgc-green-glow);
	transform: scale(1.2);
}

/* Labels — hidden by default, shown on wide screens */
.hgc-stepper__dot span {
	font-family: var(--hgc-font);
	font-size: 0.875rem;
	font-weight: 700;
	color: #1f7a3a;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	white-space: nowrap;
}

.hgc-stepper__dot:hover span,
.hgc-stepper__dot.is-active span {
	color: var(--hgc-green);
}

@media (min-width: 1200px) {
	.hgc-stepper__dot span {
		opacity: 0.95;
		transform: none;
	}
}

/* Invert on dark backgrounds */
.hgc-stepper--dark .hgc-stepper__dot::before {
	background: rgba(255, 255, 255, 0.25);
}

.hgc-stepper--dark .hgc-stepper__dot:hover::before {
	background: #fff;
}

.hgc-stepper--dark .hgc-stepper__dot.is-active::before {
	background: var(--hgc-green-light);
}

.hgc-stepper--dark .hgc-stepper__dot span {
	color: rgba(255, 255, 255, 0.5);
}

.hgc-stepper--dark .hgc-stepper__dot:hover span,
.hgc-stepper--dark .hgc-stepper__dot.is-active span {
	color: #fff;
}

/* =========================================================================
   Scroll Reveal
   ========================================================================= */

.hgc-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--hgc-ease), transform 0.7s var(--hgc-ease);
}

.hgc-reveal--visible {
	opacity: 1;
	transform: none;
}

/* =========================================================================
   HERO — Cinematic, immersive
   ========================================================================= */

.hgc-hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 24px 40px;
	background: linear-gradient(160deg, var(--hgc-navy-deep) 0%, var(--hgc-navy) 40%, var(--hgc-navy-light) 100%);
	overflow: hidden;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.hgc-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

/* Animated wave canvas */
.hgc-hero__waves {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}


/* Soft color glows */
.hgc-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.25;
	will-change: transform;
}

.hgc-hero__glow--1 {
	width: 600px;
	height: 600px;
	background: var(--hgc-green);
	top: -25%;
	right: -10%;
	animation: hgcGlow 25s ease-in-out infinite;
}

.hgc-hero__glow--2 {
	width: 500px;
	height: 500px;
	background: var(--hgc-gold);
	bottom: -20%;
	left: -10%;
	animation: hgcGlow 30s ease-in-out infinite reverse;
}

@keyframes hgcGlow {
	0%, 100% { transform: translate(0, 0); opacity: 0.25; }
	50% { transform: translate(30px, -20px); opacity: 0.18; }
}



/* Hero content — choreographed entrance */
.hgc-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 720px;
}

.hgc-hero__badge {
	display: inline-block;
	background: rgba(40, 151, 71, 0.15);
	border: 1px solid rgba(40, 151, 71, 0.3);
	color: var(--hgc-green-light);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 20px;
	border-radius: 100px;
	margin-bottom: 24px;
	opacity: 0;
	transform: translateY(16px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.1s forwards;
}

.hgc-hero__title {
	font-family: var(--hgc-font-display);
	color: #fff;
	font-size: clamp(1.85rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 14px;
	opacity: 0;
	transform: translateY(20px);
	animation: hgcEntrance 0.8s var(--hgc-ease) 0.25s forwards;
}

.hgc-hero__title sup {
	font-size: 0.4em;
	vertical-align: super;
}

.hgc-hero__subtitle {
	font-family: var(--hgc-font-display);
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.25rem, 4.25vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 22px;
	line-height: 1.15;
	opacity: 0;
	transform: translateY(16px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.4s forwards;
}

.hgc-hero__desc-group {
	text-align: center;
	max-width: 44rem;
	margin: 0 auto 32px;
	opacity: 0;
	transform: translateY(14px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.5s forwards;
}

.hgc-hero__desc-group .hgc-hero__desc {
	margin: 0;
	max-width: none;
	opacity: 1;
	transform: none;
	animation: none;
}

.hgc-hero__desc-group .hgc-hero__desc + .hgc-hero__desc {
	margin-top: 0.4em;
}

.hgc-hero__desc--lead {
	white-space: nowrap;
}

.hgc-hero__desc {
	color: rgba(255, 255, 255, 0.75);
	font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
	max-width: 480px;
	margin: 0 auto 32px;
	line-height: 1.65;
	opacity: 0;
	transform: translateY(14px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.5s forwards;
}

.hgc-hero__desc strong {
	color: var(--hgc-gold);
}

/* Countdown */
.hgc-countdown {
	margin-bottom: 32px;
	opacity: 0;
	transform: translateY(14px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.6s forwards;
}

.hgc-countdown__label {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}

.hgc-countdown__timer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--hgc-radius);
	padding: 14px 24px;
	backdrop-filter: blur(12px);
}

.hgc-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
}

.hgc-countdown__num {
	font-family: var(--hgc-font-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 600;
	color: #fff;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: transform 0.3s var(--hgc-ease);
}

.hgc-countdown__num--tick {
	animation: hgcTick 0.4s var(--hgc-ease);
}

@keyframes hgcTick {
	0% { transform: translateY(0); }
	30% { transform: translateY(-6px) scale(1.06); }
	60% { transform: translateY(1px) scale(0.98); }
	100% { transform: translateY(0) scale(1); }
}

.hgc-countdown__txt {
	font-size: 0.625rem;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 4px;
}

.hgc-countdown__sep {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.2);
	font-weight: 600;
	align-self: flex-start;
	margin-top: 2px;
}

.hgc-countdown__ended {
	color: var(--hgc-green-light);
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 14px 24px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--hgc-radius);
}

/* Hero actions */
.hgc-hero__actions {
	opacity: 0;
	transform: translateY(14px);
	animation: hgcEntrance 0.7s var(--hgc-ease) 0.75s forwards;
}

@keyframes hgcEntrance {
	to { opacity: 1; transform: none; }
}

/* Topic chips — compact band at hero bottom */
.hgc-hero__topics {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 48px;
	opacity: 0;
	animation: hgcEntrance 0.7s var(--hgc-ease) 1s forwards;
}

.hgc-topic-chip {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all var(--hgc-transition);
}

.hgc-topic-chip:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.hgc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--hgc-font);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 12px 28px;
	border-radius: 100px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--hgc-transition);
	position: relative;
	overflow: hidden;
	letter-spacing: 0.01em;
}

.hgc-btn--primary {
	background: var(--hgc-green);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 12px var(--hgc-green-glow);
}

.hgc-btn--primary:hover {
	background: var(--hgc-green-light);
	box-shadow: 0 4px 20px var(--hgc-green-glow);
	transform: translateY(-2px);
}

.hgc-btn--outline {
	background: transparent;
	color: var(--hgc-navy);
	border-color: var(--hgc-border);
}

.hgc-btn--outline:hover {
	border-color: var(--hgc-navy);
	background: var(--hgc-navy);
	color: #fff;
	transform: translateY(-1px);
}

.hgc-btn--sm { font-size: 0.875rem; padding: 9px 20px; }
.hgc-btn--lg { font-size: 1.0625rem; padding: 15px 38px; }
.hgc-btn--block { width: 100%; }

.hgc-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

.hgc-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: hgcSpin 0.6s linear infinite;
}

.hgc-btn--loading .hgc-btn__text { opacity: 0.5; }
.hgc-btn--loading .hgc-btn__spinner { display: inline-block; }

@keyframes hgcSpin { to { transform: rotate(360deg); } }

/* =========================================================================
   Sections
   ========================================================================= */

.hgc-section {
	padding: 72px 0;
	position: relative;
}

.hgc-section:nth-child(odd) { background: var(--hgc-surface); }
.hgc-section:nth-child(even) { background: var(--hgc-bg); }

.hgc-section__title {
	font-family: var(--hgc-font-display);
	font-size: clamp(2rem, 4.4vw, 2.9rem);
	font-weight: 600;
	color: var(--hgc-navy);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 12px;
	text-align: center;
}

.hgc-section__subtitle {
	color: var(--hgc-text-muted);
	font-size: 1.08rem;
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
	line-height: 1.7;
	text-wrap: balance;
}

/* =========================================================================
   Topics — compact cards
   ========================================================================= */

.hgc-topics { background: var(--hgc-surface) !important; padding: 56px 0 !important; }

.hgc-topics__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 600px) {
	.hgc-topics__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
	.hgc-topics__grid { grid-template-columns: repeat(5, 1fr); }
}

.hgc-topic-card {
	background: var(--hgc-bg);
	border: 1px solid var(--hgc-border);
	border-radius: var(--hgc-radius);
	padding: 26px 20px;
	min-height: 260px;
	text-align: center;
	transition: all var(--hgc-transition);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.hgc-topic-card:hover {
	border-color: var(--hgc-green);
	box-shadow: var(--hgc-shadow);
	transform: translateY(-2px);
}

.hgc-topic-card__icon {
	font-size: 2.1rem;
	line-height: 1;
	margin-bottom: 12px;
}

.hgc-topic-card__title {
	font-family: var(--hgc-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 10px;
}

.hgc-topic-card__desc {
	font-size: 0.95rem;
	color: var(--hgc-text-muted);
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 1023px) {
	.hgc-topic-card {
		min-height: 220px;
		padding: 22px 18px;
	}
}

/* =========================================================================
   Contest Cards — grouped by format
   ========================================================================= */

.hgc-contests { background: var(--hgc-bg) !important; }

/* Format label row */
.hgc-contests__row-label {
	margin-bottom: 12px;
	text-align: center;
}

.hgc-contests__row-label + .hgc-contests__row-label {
	margin-top: 32px;
}

.hgc-contests__format-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--hgc-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 12px 28px;
	border-radius: 100px;
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.2) inset,
		0 12px 32px rgba(0, 0, 0, 0.18);
}

.hgc-contests__format-tag::before {
	content: '';
	width: 24px;
	height: 24px;
	display: inline-block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	font-size: 1.2rem;
	line-height: 1;
}

.hgc-contests__format-tag--writing::before {
	background-image: url('../img/icon-writing.svg');
}

.hgc-contests__format-tag--video::before {
	background-image: url('../img/icon-video.svg');
}

.hgc-contests__format-tag--writing {
	background: linear-gradient(130deg, #10375f 0%, #285d9a 100%);
	color: #fff;
}

.hgc-contests__format-tag--video {
	background: linear-gradient(130deg, #1f7a3a 0%, #37aa5d 100%);
	color: #fff;
}

/* Visual divide between writing block and video block */
.hgc-contests__between {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 36px 0 28px;
	max-width: min(560px, 100%);
	margin-left: auto;
	margin-right: auto;
	padding: 0 12px;
}

.hgc-contests__between-line {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(0, 43, 84, 0.2) 20%, rgba(0, 43, 84, 0.35) 50%, rgba(40, 151, 71, 0.35) 80%, transparent);
}

.hgc-contests__between-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--hgc-navy), var(--hgc-green));
	flex-shrink: 0;
	opacity: 0.75;
	box-shadow: 0 0 0 3px rgba(0, 43, 84, 0.08);
}

/* Card row */
.hgc-contests__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 8px;
}

@media (min-width: 600px) {
	.hgc-contests__row { grid-template-columns: 1fr 1fr; }
}

/* Card */
.hgc-contest-card {
	position: relative;
	background: linear-gradient(145deg, #ffffff 0%, #f6fbff 55%, #eff8ff 100%);
	border-radius: var(--hgc-radius-lg);
	padding: 28px 24px;
	text-align: center;
	transition: transform var(--hgc-transition), box-shadow var(--hgc-transition);
	border: 1px solid var(--hgc-border);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 10px 28px rgba(0, 43, 84, 0.07);
}

.hgc-contest-card:hover {
	transform: translateY(-4px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 20px 48px rgba(0, 43, 84, 0.11);
}

/* Color accent — top bar */
.hgc-contest-card--writing {
	border-top: 4px solid var(--hgc-navy);
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(16, 63, 114, 0.12) 0%, transparent 55%),
		linear-gradient(165deg, rgba(16, 63, 114, 0.06) 0%, #ffffff 38%, #f3f8ff 100%);
}

.hgc-contest-card--video {
	border-top: 4px solid var(--hgc-green);
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(40, 151, 71, 0.14) 0%, transparent 55%),
		linear-gradient(165deg, rgba(31, 122, 58, 0.07) 0%, #ffffff 38%, #f0fcf4 100%);
}

.hgc-contest-card__level {
	position: relative;
	font-family: var(--hgc-font-display);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 auto 16px;
	padding-bottom: 12px;
	max-width: 18ch;
}

.hgc-contest-card__level::after {
	content: '';
	display: block;
	margin: 10px auto 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, var(--hgc-navy) 20%, var(--hgc-navy) 80%, transparent);
	opacity: 0.35;
}

.hgc-contest-card--video .hgc-contest-card__level::after {
	background: linear-gradient(90deg, transparent, var(--hgc-green) 20%, var(--hgc-green) 80%, transparent);
	opacity: 0.45;
}

/* Prize cluster — framed “stage” for hero + runners */
.hgc-contest-card__prize-stage {
	position: relative;
	margin-bottom: 18px;
	padding: 14px;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 100%),
		linear-gradient(180deg, rgba(247, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.65) 100%);
	border: 1px solid rgba(0, 43, 84, 0.1);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 4px 20px rgba(0, 43, 84, 0.05);
}

.hgc-contest-card--video .hgc-contest-card__prize-stage {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 100%),
		linear-gradient(180deg, rgba(240, 252, 244, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
	border-color: rgba(40, 151, 71, 0.16);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 4px 24px rgba(40, 151, 71, 0.07);
}

@keyframes hgc-prize-glow {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.88; }
}

/* 1st place — spotlight panel */
.hgc-contest-card__hero-prize {
	position: relative;
	margin-bottom: 10px;
	padding: 22px 16px 20px;
	border-radius: 16px;
	text-align: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse 100% 85% at 50% -15%, rgba(255, 220, 140, 0.55) 0%, transparent 52%),
		radial-gradient(circle at 18% 88%, rgba(212, 168, 67, 0.12) 0%, transparent 45%),
		radial-gradient(circle at 82% 88%, rgba(212, 168, 67, 0.1) 0%, transparent 42%),
		linear-gradient(168deg, #fffef7 0%, #ffffff 35%, #faf4e8 100%);
	border: 1px solid rgba(212, 168, 67, 0.45);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.65) inset,
		0 12px 40px rgba(212, 168, 67, 0.22),
		0 6px 18px rgba(0, 43, 84, 0.06);
}

.hgc-contest-card__hero-prize::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(
		90deg,
		#c9a227 0%,
		#f0d060 18%,
		#fff8dc 42%,
		#e8c547 58%,
		#b8922a 100%
	);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

@media (prefers-reduced-motion: no-preference) {
	.hgc-contest-card__hero-prize::before {
		animation: hgc-prize-glow 5s ease-in-out infinite;
	}
}

.hgc-contest-card__hero-prize::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.45) 0%, transparent 8%),
		radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 6%);
	pointer-events: none;
}

.hgc-contest-card--video .hgc-contest-card__hero-prize {
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.65) inset,
		0 12px 40px rgba(212, 168, 67, 0.2),
		0 8px 28px rgba(40, 151, 71, 0.08);
}

.hgc-hero-prize__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #6b5420;
}

.hgc-hero-prize__badge {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 3.1rem;
	height: 3.1rem;
	padding: 0 9px;
	border-radius: 50%;
	font-family: var(--hgc-font-display);
	font-weight: 700;
	line-height: 1;
	color: #3d2f0a;
	background: linear-gradient(155deg, #fff4c4 0%, #e8c547 38%, #c9a227 72%, #8a6a1f 100%);
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow:
		0 4px 14px rgba(184, 146, 42, 0.45),
		inset 0 2px 0 rgba(255, 255, 255, 0.55),
		inset 0 -2px 6px rgba(138, 106, 31, 0.25);
}

.hgc-hero-prize__digit {
	font-size: 1.4rem;
	letter-spacing: -0.03em;
}

.hgc-hero-prize__suffix {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1;
	opacity: 0.95;
	transform: translateY(2px);
}

.hgc-hero-prize__place-word {
	color: #7a6230;
	font-family: var(--hgc-font);
	letter-spacing: 0.14em;
}

.hgc-hero-prize__amt {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0;
	font-family: var(--hgc-font-display);
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	color: var(--hgc-navy);
	text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hgc-contest-card--writing .hgc-hero-prize__amt {
	background: linear-gradient(180deg, #003a6e 0%, #002B54 45%, #1a5080 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	text-shadow: none;
	filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.85));
}

@supports not (background-clip: text) {
	.hgc-contest-card--writing .hgc-hero-prize__amt {
		color: var(--hgc-navy);
		-webkit-text-fill-color: var(--hgc-navy);
		filter: none;
		text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
	}
}

.hgc-contest-card--video .hgc-hero-prize__amt {
	background: linear-gradient(180deg, #1f8a42 0%, #145a2a 50%, #289747 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	text-shadow: none;
	filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.9));
}

@supports not (background-clip: text) {
	.hgc-contest-card--video .hgc-hero-prize__amt {
		color: #145a2a;
		-webkit-text-fill-color: #145a2a;
		filter: none;
		text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
	}
}

/* Runner-up row — mini panels matching 1st-place badge + “place” + amount */
.hgc-contest-card__runners {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 0;
}

@media (max-width: 380px) {
	.hgc-runner-pill {
		flex: 1 1 100%;
	}
}

.hgc-runner-pill {
	flex: 1;
	min-width: 0;
	display: flex;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(0, 43, 84, 0.1);
	box-shadow:
		0 2px 8px rgba(0, 43, 84, 0.05),
		0 8px 20px rgba(0, 43, 84, 0.06);
	transition: transform 0.25s var(--hgc-ease), box-shadow 0.25s var(--hgc-ease);
}

.hgc-contest-card:hover .hgc-runner-pill {
	transform: translateY(-2px);
	box-shadow:
		0 4px 12px rgba(0, 43, 84, 0.07),
		0 14px 28px rgba(0, 43, 84, 0.08);
}

.hgc-runner-pill__panel {
	flex: 1;
	position: relative;
	text-align: center;
	padding: 14px 10px 12px;
	overflow: hidden;
}

.hgc-runner-pill--2 .hgc-runner-pill__panel {
	background: linear-gradient(168deg, #f4f6fa 0%, #ffffff 38%, #eef1f7 100%);
	border: 1px solid rgba(90, 110, 130, 0.22);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.7) inset,
		0 6px 18px rgba(74, 90, 110, 0.12);
}

.hgc-runner-pill--3 .hgc-runner-pill__panel {
	background: linear-gradient(168deg, #fdf6f0 0%, #ffffff 38%, #faf0e6 100%);
	border: 1px solid rgba(180, 120, 72, 0.35);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.65) inset,
		0 6px 18px rgba(140, 90, 50, 0.12);
}

.hgc-runner-pill__panel::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 0;
}

.hgc-runner-pill--2 .hgc-runner-pill__panel::before {
	background: linear-gradient(90deg, #8a99ae 0%, #d1dae8 40%, #e8ecf2 70%, #5c6d82 100%);
}

.hgc-runner-pill--3 .hgc-runner-pill__panel::before {
	background: linear-gradient(90deg, #9a6238 0%, #d9a078 42%, #f0c9a8 72%, #7a4524 100%);
}

.hgc-runner-pill__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.hgc-runner-pill--2 .hgc-runner-pill__label {
	color: #4a5a6e;
}

.hgc-runner-pill--3 .hgc-runner-pill__label {
	color: #6b4018;
}

.hgc-runner-pill__badge {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 7px;
	border-radius: 50%;
	font-family: var(--hgc-font-display);
	font-weight: 700;
	line-height: 1;
}

.hgc-runner-pill--2 .hgc-runner-pill__badge {
	color: #2a3544;
	background: linear-gradient(155deg, #f0f4f9 0%, #c5d0e0 40%, #8b9cb0 72%, #4f5f72 100%);
	border: 2px solid rgba(255, 255, 255, 0.75);
	box-shadow:
		0 3px 10px rgba(79, 95, 114, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		inset 0 -2px 5px rgba(47, 58, 72, 0.18);
}

.hgc-runner-pill--3 .hgc-runner-pill__badge {
	color: #3d2410;
	background: linear-gradient(155deg, #fff2e0 0%, #e8b896 38%, #c47a48 68%, #8b5228 100%);
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow:
		0 3px 10px rgba(139, 82, 40, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		inset 0 -2px 5px rgba(90, 50, 24, 0.2);
}

.hgc-runner-pill__digit {
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.hgc-runner-pill__suffix {
	font-size: 0.52rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1;
	opacity: 0.95;
	transform: translateY(1px);
}

.hgc-runner-pill__place-word {
	font-family: var(--hgc-font);
	letter-spacing: 0.12em;
}

.hgc-runner-pill--2 .hgc-runner-pill__place-word {
	color: #5c6b7d;
}

.hgc-runner-pill--3 .hgc-runner-pill__place-word {
	color: #7a5230;
}

.hgc-runner-pill__amt {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0;
	font-family: var(--hgc-font-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

.hgc-contest-card--writing .hgc-runner-pill__amt {
	background: linear-gradient(180deg, #003a6e 0%, #002B54 45%, #1a5080 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

@supports not (background-clip: text) {
	.hgc-contest-card--writing .hgc-runner-pill__amt {
		color: var(--hgc-navy);
		-webkit-text-fill-color: var(--hgc-navy);
		filter: none;
	}
}

.hgc-contest-card--video .hgc-runner-pill__amt {
	background: linear-gradient(180deg, #1f8a42 0%, #145a2a 50%, #289747 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

@supports not (background-clip: text) {
	.hgc-contest-card--video .hgc-runner-pill__amt {
		color: #0d4d24;
		-webkit-text-fill-color: #0d4d24;
		filter: none;
	}
}

.hgc-contest-card__detail {
	font-size: 0.9375rem;
	color: var(--hgc-text-muted);
	margin: 0 0 16px;
}

.hgc-contest-card__actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}

/* =========================================================================
   Steps Strip — compact 3-step
   ========================================================================= */

.hgc-steps {
	background: var(--hgc-navy) !important;
	padding: 48px 0 !important;
}

.hgc-steps__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 768px) {
	.hgc-steps__grid { grid-template-columns: repeat(3, 1fr); }
}

.hgc-step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.hgc-step__num {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: var(--hgc-green);
	color: #fff;
	font-family: var(--hgc-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hgc-step__text h4 {
	font-family: var(--hgc-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hgc-step__text p {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	line-height: 1.5;
}

.hgc-step__text p strong { color: rgba(255, 255, 255, 0.85); }

/* Email format strip inside steps */
.hgc-steps__format {
	margin-top: 32px;
	padding: 18px 18px 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	text-align: center;
}

.hgc-steps__format-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 10px;
}

.hgc-steps__format-examples {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	margin-bottom: 12px;
}

.hgc-steps__format-examples code {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 8px 14px;
	border-radius: 100px;
	font-size: 0.875rem;
	color: #fff;
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.hgc-steps__format-note {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	line-height: 1.5;
}

/* =========================================================================
   Requirements Tabs
   ========================================================================= */

.hgc-details { background: var(--hgc-surface) !important; }

.hgc-tabs__nav {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	padding-bottom: 0;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--hgc-border);
}

.hgc-tabs__btn {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-family: var(--hgc-font);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--hgc-text-muted);
	padding: 12px 20px;
	cursor: pointer;
	white-space: nowrap;
	transition: all var(--hgc-transition);
	margin-bottom: -2px;
}

.hgc-tabs__btn:hover { color: var(--hgc-navy); }

.hgc-tabs__btn--active {
	color: var(--hgc-green);
	border-bottom-color: var(--hgc-green);
}

.hgc-tabs__panel { display: none; animation: hgcFadeIn 0.35s ease; }
.hgc-tabs__panel--active { display: block; }

@keyframes hgcFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.hgc-req-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) { .hgc-req-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hgc-req-grid { grid-template-columns: 1fr 1fr 260px; } }

.hgc-req-block {
	background: var(--hgc-bg);
	border: 1px solid var(--hgc-border);
	border-radius: var(--hgc-radius);
	padding: 24px;
}

.hgc-req-block h4 {
	font-family: var(--hgc-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hgc-green);
	display: inline-block;
}

.hgc-req-block ul { list-style: none; padding: 0; margin: 0; }

.hgc-req-block li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 8px;
	font-size: 0.9375rem;
	color: var(--hgc-text-secondary);
	line-height: 1.55;
}

.hgc-req-block li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hgc-green);
}

.hgc-req-block--prizes {
	background: linear-gradient(145deg, var(--hgc-navy-deep), var(--hgc-navy), var(--hgc-navy-light));
	border-color: transparent;
	color: #fff;
}

.hgc-req-block--prizes h4 {
	color: var(--hgc-green-light);
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.hgc-prize-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.hgc-prize {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	border-radius: var(--hgc-radius);
	font-size: 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(0, 0, 0, 0.18);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hgc-prize__step {
	flex: 0 0 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--hgc-font-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.98);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hgc-prize--1st .hgc-prize__step {
	background: linear-gradient(160deg, #e4c56a 0%, #b8922a 45%, #8a6a1f 100%);
}

.hgc-prize--2nd .hgc-prize__step {
	background: linear-gradient(160deg, #b8c4d4 0%, #7a8799 50%, #5a6575 100%);
}

.hgc-prize--3rd .hgc-prize__step {
	background: linear-gradient(160deg, #d4a078 0%, #a86b3d 50%, #7a4a28 100%);
}

.hgc-prize__body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.06);
}

.hgc-prize__title {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.72);
}

.hgc-prize__amt {
	margin: 0;
	font-family: var(--hgc-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fff;
	letter-spacing: -0.02em;
}

.hgc-req-eligible {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 16px;
	line-height: 1.5;
}

.hgc-req-block--prizes .hgc-btn--primary {
	background: var(--hgc-green);
}

/* =========================================================================
   Dates — horizontal timeline
   ========================================================================= */

.hgc-dates { background: var(--hgc-bg) !important; }

.hgc-dates__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	gap: 22px;
	align-items: start;
	padding-top: 24px;
}

.hgc-dates__timeline::before {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	top: 32px;
	height: 2px;
	background: linear-gradient(90deg, rgba(40, 151, 71, 0.45) 0%, rgba(0, 43, 84, 0.5) 100%);
	border-radius: 999px;
}

.hgc-date-milestone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.hgc-date-milestone__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--hgc-navy);
	z-index: 1;
	box-shadow: 0 0 0 4px rgba(0, 43, 84, 0.08);
}

.hgc-date-milestone--active .hgc-date-milestone__dot {
	border-color: var(--hgc-green);
	box-shadow: 0 0 0 5px rgba(40, 151, 71, 0.2);
}

.hgc-date-card {
	background: var(--hgc-surface);
	border: 1px solid var(--hgc-border);
	border-radius: var(--hgc-radius-lg);
	padding: 28px 24px;
	text-align: center;
	transition: all var(--hgc-transition);
	width: 100%;
	min-height: 230px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hgc-date-card:hover {
	box-shadow: var(--hgc-shadow-lg);
	transform: translateY(-3px);
}

.hgc-date-card--active {
	border-color: var(--hgc-green);
	box-shadow: 0 0 0 1px var(--hgc-green), var(--hgc-shadow);
}

.hgc-date-card__month {
	font-family: var(--hgc-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--hgc-green);
	margin-bottom: 4px;
}

.hgc-date-card__day {
	font-family: var(--hgc-font-display);
	font-size: 3.25rem;
	font-weight: 700;
	color: var(--hgc-navy);
	line-height: 1;
	margin-bottom: 12px;
}

.hgc-date-card h4 {
	font-family: var(--hgc-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 4px;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hgc-date-card p {
	font-size: 0.9375rem;
	color: var(--hgc-text-muted);
	margin: 0;
	line-height: 1.45;
	min-height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hgc-dates__action {
	text-align: center;
	margin-top: 24px;
}

@media (max-width: 980px) {
	.hgc-dates__timeline {
		grid-template-columns: 1fr;
		gap: 16px;
		padding-top: 0;
	}

	.hgc-dates__timeline::before {
		left: 24px;
		right: auto;
		top: 36px;
		bottom: 36px;
		width: 2px;
		height: auto;
	}

	.hgc-date-milestone {
		display: grid;
		grid-template-columns: 24px 1fr;
		align-items: start;
		gap: 12px;
	}

	.hgc-date-milestone__dot {
		margin-top: 16px;
	}
}

/* =========================================================================
   Winners
   ========================================================================= */

.hgc-winners { background: var(--hgc-surface) !important; }

.hgc-winners__stack {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hgc-winners__year-block {
	border-radius: var(--hgc-radius-lg);
	padding: 24px 20px 28px;
	margin-bottom: 0;
}

.hgc-winners__year-block--video {
	background: linear-gradient(160deg, rgba(0, 43, 84, 0.04) 0%, rgba(247, 250, 255, 0.95) 40%, #ffffff 100%);
	border: 1px solid rgba(0, 43, 84, 0.12);
	box-shadow: 0 8px 28px rgba(0, 43, 84, 0.06);
}

.hgc-winners__year-block--writing {
	background: linear-gradient(160deg, rgba(40, 151, 71, 0.05) 0%, rgba(248, 252, 255, 0.98) 45%, #ffffff 100%);
	border: 1px solid rgba(40, 151, 71, 0.14);
	box-shadow: 0 8px 28px rgba(0, 43, 84, 0.05);
	padding-top: 20px;
	margin-top: 36px;
}

.hgc-winners__year-head {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 22px;
}

.hgc-winners__year-head--writing-label {
	margin-bottom: 20px;
}

.hgc-winners__year-title {
	font-family: var(--hgc-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 8px;
}

.hgc-winners__year-block--writing .hgc-winners__year-title {
	color: #145a2a;
}

.hgc-winners__year-lead {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--hgc-text-muted);
	line-height: 1.55;
}

.hgc-winners__pair-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 900px) {
	.hgc-winners__pair-row {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 24px;
	}

	.hgc-winners__pair-row--writing {
		align-items: stretch;
	}
}

.hgc-winners-rank {
	font-family: var(--hgc-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 10px;
	text-align: center;
}

.hgc-winners__year-block--writing .hgc-winners-rank {
	color: #1a5c2e;
}

.hgc-winner-pair__col {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hgc-winners__pair-row--writing .hgc-winner-pair__col {
	flex: 1;
	min-width: 0;
}

.hgc-winners__pair-row--writing .hgc-writing-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.hgc-winners__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.hgc-winners__grid { grid-template-columns: 1fr 1fr; }
}

.hgc-winner-card {
	background: var(--hgc-surface);
	border-radius: var(--hgc-radius-lg);
	overflow: hidden;
	box-shadow: var(--hgc-shadow);
	transition: all var(--hgc-transition);
}

.hgc-winner-card:hover {
	box-shadow: var(--hgc-shadow-lg);
	transform: translateY(-3px);
}

.hgc-winner-card__badge {
	padding: 12px 20px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	background: var(--hgc-navy);
}

.hgc-video-wrap {
	position: relative;
	padding-top: 56.25%;
	background: #000;
}

.hgc-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hgc-writing-winners__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 600px) {
	.hgc-writing-winners__grid { grid-template-columns: 1fr 1fr; }
}

.hgc-writing-card {
	position: relative;
	background: linear-gradient(180deg, #f7f9fc 0%, #fdfefe 22%, #ffffff 100%);
	border: 1px solid rgba(0, 43, 84, 0.14);
	border-radius: var(--hgc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 18px rgba(0, 43, 84, 0.07);
}

.hgc-writing-card__cover {
	position: relative;
	padding: 0;
	min-height: 140px;
	max-height: 200px;
	border-bottom: 3px solid var(--hgc-green);
	background: linear-gradient(100deg, #00366b 0%, #0a4d8c 40%, #145a9e 100%);
	overflow: hidden;
}

.hgc-writing-card__cover::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 27, 54, 0.1) 0%, rgba(0, 27, 54, 0.55) 100%);
}

.hgc-writing-card__cover-img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	object-position: center center;
}

.hgc-writing-card__cover-label {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-family: var(--hgc-font-display);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hgc-writing-card__body {
	padding: 18px 18px 20px;
	background: #ffffff;
	border-left: 4px solid rgba(0, 43, 84, 0.12);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hgc-writing-card__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hgc-navy);
	background: rgba(0, 43, 84, 0.06);
	align-self: flex-start;
}

.hgc-writing-card__body h5 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--hgc-navy);
	margin: 0;
	line-height: 1.35;
}

.hgc-writing-card__meta {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hgc-text-secondary);
	margin: -2px 0 4px !important;
	line-height: 1.4;
}

.hgc-writing-card__body p {
	font-size: 0.875rem;
	color: var(--hgc-text-muted);
	margin: 0;
	line-height: 1.5;
}

.hgc-writing-card__body .hgc-btn {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 6px;
	text-decoration: none;
}

.hgc-btn--disabled {
	opacity: 0.85;
	cursor: default;
	pointer-events: none;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.hgc-faq { background: var(--hgc-surface) !important; }

.hgc-faq__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 900px) {
	.hgc-faq__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.hgc-faq-item {
	background: linear-gradient(145deg, #f8fbff, #f2f8f2);
	border: 1px solid var(--hgc-border);
	border-radius: var(--hgc-radius);
	padding: 18px 18px 16px;
}

.hgc-faq-item h4 {
	font-family: var(--hgc-font-display);
	font-size: 1.02rem;
	margin: 0 0 8px;
	color: var(--hgc-navy);
}

.hgc-faq-item p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--hgc-text-secondary);
}

/* =========================================================================
   Learn / Resources
   ========================================================================= */

.hgc-learn { background: var(--hgc-bg) !important; }

.hgc-learn__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.hgc-learn__grid { grid-template-columns: repeat(3, 1fr); }
}

.hgc-learn-card {
	background: var(--hgc-surface);
	border: 1px solid var(--hgc-border);
	border-radius: var(--hgc-radius-lg);
	overflow: hidden;
	transition: all var(--hgc-transition);
}

.hgc-learn-card:hover {
	box-shadow: var(--hgc-shadow-lg);
	transform: translateY(-3px);
}

.hgc-learn-card h4 {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--hgc-navy);
	margin: 14px 18px 6px;
}

.hgc-learn-card p {
	font-size: 0.9375rem;
	color: var(--hgc-text-muted);
	margin: 0 18px 18px;
	line-height: 1.5;
}

.hgc-learn-card--link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	padding: 32px 20px;
	cursor: pointer;
}

.hgc-learn-card--link:hover {
	border-color: var(--hgc-green);
}

.hgc-learn-card--link h4 { margin: 12px 0 6px; }
.hgc-learn-card--link p { margin: 0; }

.hgc-learn-card__icon {
	font-size: 2.25rem;
	line-height: 1;
}

/* =========================================================================
   CTA Section
   ========================================================================= */

.hgc-cta {
	position: relative;
	background: linear-gradient(145deg, var(--hgc-navy-deep), var(--hgc-navy), var(--hgc-navy-light)) !important;
	text-align: center;
	overflow: hidden;
	padding: 80px 0 !important;
	color: #fff;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.hgc-cta__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hgc-cta__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.3;
	will-change: transform;
}

.hgc-cta__blob--1 {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, var(--hgc-green), transparent 70%);
	top: -30%;
	left: -10%;
	animation: hgcGlow 18s ease-in-out infinite;
}

.hgc-cta__blob--2 {
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, var(--hgc-gold), transparent 70%);
	bottom: -25%;
	right: -5%;
	animation: hgcGlow 22s ease-in-out infinite reverse;
}

.hgc-cta__content {
	position: relative;
	z-index: 1;
}

.hgc-cta__title {
	font-family: var(--hgc-font-display);
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.hgc-cta__desc {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	max-width: 440px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.hgc-cta__fine {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8125rem;
	margin-top: 16px;
}

/* =========================================================================
   Registration Modal
   ========================================================================= */

.hgc-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.hgc-modal--open {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s, opacity 0.3s ease;
}

.hgc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 26, 51, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.hgc-modal__panel {
	position: relative;
	z-index: 1;
	background: var(--hgc-surface);
	width: 100%;
	max-width: 480px;
	max-height: 100vh;
	overflow-y: auto;
	padding: 36px 32px;
	box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.4s var(--hgc-ease);
	border-left: 3px solid var(--hgc-green);
}

.hgc-modal--open .hgc-modal__panel { transform: translateX(0); }

@media (max-width: 560px) {
	.hgc-modal__panel {
		max-width: 100%;
		padding: 28px 20px;
		border-left: none;
		border-top: 3px solid var(--hgc-green);
	}
}

@media (min-width: 561px) {
	.hgc-modal__panel {
		border-radius: var(--hgc-radius-lg) 0 0 var(--hgc-radius-lg);
		height: 100vh;
	}
}

.hgc-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--hgc-bg);
	border: none;
	font-size: 1.25rem;
	color: var(--hgc-text-muted);
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--hgc-transition);
	line-height: 1;
}

.hgc-modal__close:hover { background: var(--hgc-coral); color: #fff; }

.hgc-modal__header h2 {
	font-family: var(--hgc-font-display);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	margin: 0 0 2px;
}

.hgc-modal__header p {
	color: var(--hgc-text-muted);
	font-size: 0.8125rem;
	margin: 0 0 24px;
}

/* Form */
.hgc-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) { .hgc-form__row { grid-template-columns: 1fr; } }

.hgc-form__field { margin-bottom: 16px; }

.hgc-form__field label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hgc-text);
	margin-bottom: 4px;
}

.hgc-form__field label small { font-weight: 400; color: var(--hgc-text-muted); }

.hgc-form__field input,
.hgc-form__field select,
.hgc-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	font-family: var(--hgc-font);
	font-size: 0.875rem;
	color: var(--hgc-text);
	background: var(--hgc-bg);
	border: 1.5px solid var(--hgc-border);
	border-radius: var(--hgc-radius-sm);
	transition: border-color var(--hgc-transition), box-shadow var(--hgc-transition);
	outline: none;
}

.hgc-form__field input:focus,
.hgc-form__field select:focus,
.hgc-form__field textarea:focus {
	border-color: var(--hgc-green);
	box-shadow: 0 0 0 3px var(--hgc-green-glow);
}

.hgc-form__field input.hgc-field--error,
.hgc-form__field select.hgc-field--error,
.hgc-form__field textarea.hgc-field--error {
	border-color: var(--hgc-coral);
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.hgc-form__field textarea { resize: vertical; min-height: 100px; }

.hgc-form__wordcount {
	text-align: right;
	font-size: 0.6875rem;
	color: var(--hgc-text-muted);
	margin-top: 4px;
}

.hgc-form__error {
	background: rgba(192, 57, 43, 0.06);
	border: 1px solid rgba(192, 57, 43, 0.15);
	color: var(--hgc-coral);
	font-size: 0.8125rem;
	padding: 10px 14px;
	border-radius: var(--hgc-radius-sm);
	margin-bottom: 12px;
	display: none;
}

.hgc-form__error--visible { display: block; }

/* Success */
.hgc-modal__success { text-align: center; padding: 40px 20px; }

.hgc-success-icon {
	width: 64px;
	height: 64px;
	background: var(--hgc-green);
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	animation: hgcPop 0.5s var(--hgc-ease);
}

@keyframes hgcPop {
	0% { transform: scale(0); opacity: 0; }
	60% { transform: scale(1.15); }
	100% { transform: scale(1); opacity: 1; }
}

.hgc-modal__success h3 {
	font-family: var(--hgc-font-display);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--hgc-navy);
	text-transform: uppercase;
	margin: 0 0 6px;
}

.hgc-modal__success p {
	color: var(--hgc-text-muted);
	margin: 0 0 24px;
	font-size: 0.9375rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 767px) {
	.hgc-section { padding: 52px 0; }

	.hgc-hero {
		min-height: 80vh;
		padding: 60px 20px 36px;
	}

	.hgc-hero__desc--lead {
		white-space: normal;
	}

	.hgc-countdown__timer { padding: 10px 14px; gap: 4px; }
	.hgc-countdown__unit { min-width: 40px; }

	.hgc-steps { padding: 36px 0 !important; }
	.hgc-cta { padding: 56px 0 !important; }
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.hgc-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.hgc-hero__badge,
	.hgc-hero__title,
	.hgc-hero__subtitle,
	.hgc-hero__desc,
	.hgc-hero__desc-group,
	.hgc-countdown,
	.hgc-hero__actions,
	.hgc-hero__topics {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	.hgc-hero__glow,
	.hgc-cta__blob {
		animation: none !important;
	}

	.hgc-countdown__num--tick {
		animation: none !important;
	}

	.hgc-contest-card:hover,
	.hgc-winner-card:hover,
	.hgc-learn-card:hover {
		transform: none !important;
	}

	.hgc-tabs__panel { animation: none !important; }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
	.hgc-hero__bg,
	.hgc-modal,
	.hgc-countdown,
	.hgc-cta__bg,
	.hgc-hero__topics {
		display: none !important;
	}

	.hgc-hero {
		min-height: auto;
		padding: 32px 20px;
		background: var(--hgc-navy) !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.hgc-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
