/**
 * Competitions page — front styles (matches Course stripe motif).
 */

.comp-page {
	background-color: #ffffff;
	background-image: url('../img/page-bg.png');
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 50% auto;
	overflow-x: clip;
}

@media (max-width: 1024px) {
	.comp-page {
		background-size: 60% auto;
	}
}

@media (max-width: 768px) {
	.comp-page {
		background-size: 80% auto;
	}
}

.comp-wrap {
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px) 0;
	box-sizing: border-box;
	overflow: visible;
}

/* CTA — desktop inset; mobile full-bleed flush to footer */
.comp-cta {
	margin-top: 8px;
	margin-bottom: 0;
	width: 100%;
	box-sizing: border-box;
}

.comp-cta .ssdc-cta-banner,
.comp-cta .ssdc-faq-banner {
	margin-top: 0;
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.comp-cta {
		max-width: var(--ssdc-page-max, none);
		margin-left: auto;
		margin-right: auto;
		padding-left: var(--ssdc-gutter, 112px);
		padding-right: var(--ssdc-gutter, 112px);
		margin-bottom: 48px;
		box-sizing: border-box;
	}

	.comp-cta .ssdc-cta-banner,
	.comp-cta .ssdc-faq-banner {
		border-radius: 20px;
	}
}

/* —— Breadcrumbs —— */
.comp-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #64748B;
	margin-bottom: 24px;
}

.comp-crumbs__home,
.comp-crumbs__link {
	color: #64748B;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: color 0.15s ease;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

.comp-crumbs__home:hover,
.comp-crumbs__link:hover {
	color: #03287C;
}

.comp-crumbs__home svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
}

.comp-crumbs__sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #CBD5E1;
	opacity: 1;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.comp-crumbs__current {
	color: #03287C;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

/* —— Buttons —— */
.comp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.comp-btn--red {
	background: #e20004;
	color: #fff;
	border: none;
}

.comp-btn--red:hover {
	background: #c40003;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(226, 0, 4, 0.28);
}

/* —— Hero —— */
.comp-hero {
	position: relative;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 64px 0 0;
	box-sizing: border-box;
}

.comp-hero__inner {
	position: relative;
	z-index: 3;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px);
	box-sizing: border-box;
}

.comp-hero__intro {
	max-width: 520px;
	margin-bottom: 40px;
}

.comp-hero__title {
	margin: 0 0 14px;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: clamp(34px, 4.2vw, 48px);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.08;
	color: #020617;
	text-transform: uppercase;
}

.comp-hero__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.65;
	color: #1e293b;
	max-width: 420px;
}

.comp-hero__stage {
	position: relative;
	z-index: 3;
	padding: 8px 0 0;
}

.comp-hero__frame {
	position: relative;
	width: 100%;
}

.comp-hero__foot {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.comp-hero__nav-wrap {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.comp-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.comp-hero__nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.04);
}

.comp-hero__nav--prev {
	left: 16px;
}

.comp-hero__nav--next {
	right: 16px;
}

.comp-hero__dots {
	position: absolute;
	left: 28px;
	bottom: 22px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.comp-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.comp-hero__dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

.comp-hero__decor {
	display: none !important;
	position: absolute;
	pointer-events: none;
	z-index: 1;
	opacity: 0.55;
}

.comp-hero__decor--left {
	bottom: 8px;
	left: -80px;
	width: 360px;
	height: 120px;
}

.comp-hero__decor--right {
	bottom: 8px;
	right: -80px;
	width: 420px;
	height: 140px;
}

.comp-hero__bar {
	display: none !important;
}

.comp-hero__bar--blue {
	bottom: 28px;
	left: 0;
	width: 340px;
	height: 36px;
	background: #01319d;
	transform: rotate(-7deg);
	transform-origin: bottom left;
}

.comp-hero__bar--blue-light {
	display: none;
}

.comp-hero__bar--red {
	bottom: 36px;
	right: 0;
	width: 380px;
	height: 36px;
	background: #e20004;
	transform: rotate(-7deg);
	transform-origin: bottom right;
}

.comp-hero__bar--red-light {
	display: none;
}

.comp-hero__carousel {
	position: relative;
	z-index: 2;
	width: 100%;
	min-width: 100%;
	border-radius: 18px;
	overflow: hidden;
	background: #0f172a;
	aspect-ratio: 16 / 9;
	max-height: 520px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.comp-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.comp-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	pointer-events: none;
}

.comp-hero__stage:not(.is-ready) .comp-hero-slide:first-child,
.comp-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.comp-hero-slide__media {
	position: relative;
	width: 100%;
	height: 100%;
}

.comp-hero-slide__media img,
.comp-hero-slide__media .ssdc-media-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.comp-hero-slide__media .ssdc-media-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.comp-hero-slide__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 48px 40px 36px;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 70%);
	color: #fff;
}

.comp-hero-slide__title {
	margin: 0 0 8px;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	max-width: 640px;
}

.comp-hero-slide__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	max-width: 520px;
}

/* —— Competition sections —— */
.comp-section {
	padding: 64px 0;
}

.comp-section__head {
	margin-bottom: 32px;
}

.comp-section__meta {
	margin: 0 0 10px;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #e20004;
}

.comp-section__title {
	margin: 0;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #020617;
	max-width: 920px;
}

.comp-section__slider {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.comp-section__slider::-webkit-scrollbar {
	display: none;
}

/* Honda Rainbow — full-bleed section like Home `.hv2-life` (Real students. Real stories.) */
.comp-section--bleed {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: var(--ssdc-gutter, 112px);
	padding-right: 0;
	box-sizing: border-box;
	overflow: visible;
}

.comp-section--bleed .comp-section__head {
	padding-right: var(--ssdc-gutter, 112px);
	box-sizing: border-box;
}

.comp-section--bleed .comp-section__slider {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

.comp-section--bleed .comp-section__foot,
.comp-section--bleed .comp-section__foot.hv2-carousel-nav {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100% !important;
	max-width: none !important;
	margin-top: 28px !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: var(--ssdc-gutter, 112px) !important;
	box-sizing: border-box !important;
}

@media (max-width: 1280px) {
	.comp-section--bleed {
		padding-left: var(--ssdc-gutter, 24px);
	}

	.comp-section--bleed .comp-section__head {
		padding-right: var(--ssdc-gutter, 24px);
	}

	.comp-section--bleed .comp-section__foot,
	.comp-section--bleed .comp-section__foot.hv2-carousel-nav {
		padding-right: var(--ssdc-gutter, 24px) !important;
	}
}

@media (max-width: 767px) {
	.comp-section--bleed {
		padding-left: var(--ssdc-gutter, 16px);
	}

	.comp-section--bleed .comp-section__head,
	.comp-section--bleed .comp-section__foot,
	.comp-section--bleed .comp-section__foot.hv2-carousel-nav {
		padding-right: var(--ssdc-gutter, 16px) !important;
	}
}

.comp-card {
	/* Show ~3.15 cards so 4+ always overflow (prev/next can scroll on any desktop width). */
	flex: 0 0 calc((100% - 40px) / 3.15);
	width: calc((100% - 40px) / 3.15);
	min-width: 220px;
	max-width: 320px;
	scroll-snap-align: start;
	box-sizing: border-box;
}

.comp-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.comp-card__media {
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e2e8f0;
	margin-bottom: 12px;
}

.comp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.comp-card:hover .comp-card__media img {
	transform: scale(1.04);
}

.comp-card__tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 6px;
}

.comp-card__title {
	margin: 0;
	font-family: "Hanken Grotesk", "Inter", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #020617;
}

/* Nav — match Home Student Life carousel (dots left, arrows right).
   Override global .hv2-carousel-nav { display: none } from home-figma.css. */
.comp-section__foot,
.comp-section__foot.hv2-carousel-nav {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
}

.comp-section--single .comp-section__foot,
.comp-section--single .comp-section__foot.hv2-carousel-nav,
.comp-section__foot[aria-hidden="true"],
.comp-section__foot.hv2-carousel-nav[aria-hidden="true"] {
	display: none !important;
}

.comp-section__dots {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 10px;
}

.comp-section__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: #e2e8f0;
	cursor: pointer;
	transition: background 0.15s ease;
}

.comp-section__dot.is-active,
.comp-section__dot.is-on {
	background: #01319d;
}

.comp-section__nav {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 0;
	margin-left: auto;
	flex-shrink: 0;
}

.comp-section__btn {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 12px;
	border-radius: 999px;
	border: 1px solid rgba(203, 213, 225, 1);
	background: #fff !important;
	color: #94a3b8;
	box-shadow: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 1;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.comp-section__btn svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

.comp-section__btn:hover {
	border-color: #01319d;
	color: #0f172a;
	background: #f8fafc !important;
}

.comp-section__btn:disabled,
.comp-section__btn.is-disabled {
	opacity: 1;
	cursor: pointer;
	pointer-events: auto;
}

@media (max-width: 1024px) {
	.comp-hero {
		padding: 48px 0 0;
	}

	.comp-wrap {
		padding: 0 var(--ssdc-gutter, 24px) 0;
	}

	.comp-hero__inner {
		padding: 0 var(--ssdc-gutter, 24px);
	}

	.comp-cta {
		padding-left: var(--ssdc-gutter, 24px);
		padding-right: var(--ssdc-gutter, 24px);
	}

	.comp-card {
		flex: 0 0 calc((100% - 20px) / 2.2);
		width: calc((100% - 20px) / 2.2);
		min-width: 200px;
		max-width: 300px;
	}

	.comp-hero__decor--left {
		left: -30px;
	}

	.comp-hero__decor--right {
		right: -30px;
	}
}

@media (max-width: 991px) {
	.comp-wrap,
	.comp-hero__inner {
		padding-left: var(--ssdc-gutter, 20px);
		padding-right: var(--ssdc-gutter, 20px);
	}

	.comp-cta {
		padding-left: var(--ssdc-gutter, 20px);
		padding-right: var(--ssdc-gutter, 20px);
	}

	/* Hero + section carousels: dots left, prev/next right below slide */
	.comp-hero__foot {
		position: static;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin-top: 20px;
		pointer-events: auto;
	}

	.comp-hero__nav-wrap {
		position: static;
		display: flex;
		align-items: center;
		gap: 10px;
		pointer-events: auto;
	}

	.comp-hero__nav {
		position: static;
		top: auto;
		transform: none;
		width: 40px;
		height: 40px;
		border: 1px solid rgba(226, 232, 240, 1);
		background: #ffffff;
		color: #64748b;
		box-shadow: none;
	}

	.comp-hero__nav:hover {
		transform: none;
		border-color: #94a3b8;
		color: #0f172a;
		background: #f8fafc;
	}

	.comp-hero__nav--prev,
	.comp-hero__nav--next {
		left: auto;
		right: auto;
	}

	.comp-hero__dots {
		position: static;
		left: auto;
		bottom: auto;
	}

	.comp-hero__dot {
		background: #cbd5e1;
	}

	.comp-hero__dot.is-active {
		background: #01319d;
		transform: none;
	}

	.comp-section__foot {
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	.comp-page {
		padding-bottom: 0;
	}

	.comp-wrap {
		padding: 0 var(--ssdc-gutter, 16px) 24px;
	}

	.comp-cta {
		margin: 24px 0 0;
		padding: 0;
		max-width: none;
		width: 100%;
	}

	.comp-cta .ssdc-cta-banner,
	.comp-cta .ssdc-faq-banner {
		margin: 0;
		padding: 40px 20px;
		border-radius: 0;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		box-shadow: none;
	}

	.comp-cta .ssdc-cta-banner__actions,
	.comp-cta .ssdc-faq-banner__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 12px;
	}

	.comp-cta .ssdc-cta-btn,
	.comp-cta .ssdc-faq-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
		box-sizing: border-box;
	}

	.comp-hero {
		padding: 32px 0 0;
	}

	.comp-hero__inner {
		padding: 0 var(--ssdc-gutter, 16px);
	}

	.comp-hero__intro {
		max-width: none;
		margin-bottom: 28px;
	}

	.comp-hero__carousel {
		border-radius: 14px;
		aspect-ratio: 4 / 3;
		max-height: none;
	}

	.comp-hero-slide__overlay {
		padding: 32px 20px 28px;
	}

	.comp-hero__decor--left,
	.comp-hero__decor--right {
		display: none;
	}

	.comp-section {
		padding: 48px 0;
	}

	.comp-section__foot {
		margin-top: 24px;
	}

	.comp-section__btn {
		min-width: 44px;
		min-height: 44px;
	}

	.comp-card {
		flex: 0 0 min(300px, 85%);
		width: min(300px, 85%);
		min-width: min(300px, 85%);
		max-width: none;
	}
}

@media (max-width: 480px) {
	.comp-hero__title {
		letter-spacing: 0;
		font-size: clamp(26px, 7vw, 34px);
	}

	.comp-hero-slide__overlay {
		padding: 24px 16px 20px;
	}

	.comp-card {
		flex-basis: 92%;
	}
}
