/* College: Hero de curso */
.cw-hero { --cw-hero-accent: var(--cw-yellow); overflow: hidden; isolation: isolate; }
.cw-hero--navy::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(80% 70% at 85% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(80% 70% at 85% 40%, #000 0%, transparent 70%);
}
.cw-hero--navy::after {
	content: "";
	position: absolute; z-index: -1;
	width: 620px; height: 620px; left: -260px; bottom: -380px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(11, 112, 177, .55), transparent);
}

.cw-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(48px, 6.5vw, 96px);
}
.cw-hero--sm .cw-hero__grid { padding-block: clamp(36px, 4.5vw, 64px); }
.cw-hero--lg .cw-hero__grid { padding-block: clamp(64px, 9vw, 132px); }

.cw-hero__text { display: grid; gap: 22px; justify-items: start; }
.cw-hero__eyebrow {
	padding: 7px 16px 7px 8px;
	border-radius: var(--cw-r-pill);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	letter-spacing: .08em;
}
.cw-hero__eyebrow::before { width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: var(--cw-hero-accent); }
.cw-hero__eyebrow:has(.cw-flag)::before { display: none; }
.cw-hero__flag.cw-flag { width: 24px; height: 24px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

.cw-hero__title.cw-title { font-size: var(--cw-fs-hero); font-weight: 800; line-height: 1.02; max-width: 13ch; }
.cw-hero .cw-hl { color: var(--cw-hero-accent); }
.cw-hero__lead { font-size: var(--cw-fs-lead); max-width: 34em; color: var(--cw-sec-text); }
.cw-hero__checks { font-size: 1rem; color: #fff; }
.cw-hero__checks li { align-items: center; }
.cw-hero__checks .cw-ico { margin-top: 0; }
.cw-hero__actions { margin-top: 6px; }
.cw-hero__note { font-size: .875rem; color: rgba(255, 255, 255, .72); margin-top: -8px; }

/* foto */
.cw-hero__media { position: relative; justify-self: end; width: 100%; max-width: 540px; }
.cw-hero__photo {
	position: relative; z-index: 1;
	aspect-ratio: 6 / 5.4;
	border-radius: 220px 28px 28px 28px;
	overflow: hidden;
	box-shadow: var(--cw-shadow-lg);
	background: var(--cw-navy-2);
}
.cw-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.cw-hero__arc {
	position: absolute; z-index: 0;
	width: 78%; aspect-ratio: 1;
	right: -14%; bottom: -16%;
	border-radius: 50%;
	border: clamp(14px, 2vw, 24px) solid var(--cw-hero-accent);
	border-left-color: transparent;
	border-bottom-color: transparent;
	transform: rotate(18deg);
}

.cw-hero__badge {
	position: absolute; z-index: 2;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 18px 12px 12px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--cw-shadow);
	color: var(--cw-ink);
	line-height: 1.15;
	max-width: 250px;
}
.cw-hero__badge strong { display: block; font-family: var(--cw-font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: var(--cw-display-tracking); color: var(--cw-navy); }
.cw-hero__badge small { display: block; font-size: .8125rem; color: var(--cw-muted); margin-top: 3px; }
.cw-hero__badge-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cw-yellow-soft); color: var(--cw-navy); flex: none; }
.cw-hero__badge-ico .cw-ico { width: 22px; height: 22px; }
.cw-hero__badge--1 { left: -34px; bottom: 9%; }
.cw-hero__badge--2 { right: -18px; top: 8%; }

@media (prefers-reduced-motion: no-preference) {
	.cw-hero__badge { animation: cw-hero-float 6s ease-in-out infinite; }
	.cw-hero__badge--2 { animation-delay: -3s; }
	@keyframes cw-hero-float { 50% { transform: translateY(-6px); } }
}

/* claro */
.cw-hero--light .cw-hero__eyebrow { background: #fff; border-color: var(--cw-line); color: var(--cw-navy); }
.cw-hero--light .cw-hero__checks { color: var(--cw-ink); }
.cw-hero--light .cw-hero__note { color: var(--cw-muted); }
.cw-hero--light .cw-hl { color: inherit; }

/* tablet e celular */
@media (max-width: 960px) {
	.cw-hero__grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 104px; }
	.cw-hero__title.cw-title { max-width: 16ch; }
	.cw-hero__media { justify-self: center; max-width: 560px; margin-right: 18px; }
	.cw-hero__photo { aspect-ratio: 16 / 11; border-radius: 160px 24px 24px 24px; }
	.cw-hero__badge--1 { left: -6px; bottom: -22px; }
	.cw-hero__badge--2 { right: -10px; top: -18px; }
}
@media (max-width: 600px) {
	.cw-hero__grid { padding-top: 36px; padding-bottom: 76px; gap: 40px; }
	.cw-hero__text { gap: 18px; }
	.cw-hero__actions { width: 100%; }
	.cw-hero__photo { border-radius: 110px 20px 20px 20px; }
	.cw-hero__badge { padding: 9px 14px 9px 9px; gap: 10px; max-width: 200px; }
	.cw-hero__badge strong { font-size: 1rem; }
	.cw-hero__badge-ico { width: 34px; height: 34px; border-radius: 10px; }
	.cw-hero__badge-ico .cw-ico { width: 18px; height: 18px; }
	.cw-hero__arc { right: -18%; bottom: -14%; }
}

/* Layout "Só texto": faixa baixa, sem foto (ex.: home abaixo do slider). Espaço de baixo reserva a sobreposição da prova social. */
.cw-hero--text .cw-hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(32px, 3.6vw, 48px) clamp(80px, 7vw, 100px); }
.cw-hero--text .cw-hero__text { gap: 16px; max-width: 820px; }
.cw-hero--text .cw-hero__lead { max-width: 64ch; }
.cw-hero--text::before { -webkit-mask-image: radial-gradient(60% 90% at 90% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(60% 90% at 90% 30%, #000 0%, transparent 70%); }
@media (max-width: 960px) {
	.cw-hero--text .cw-hero__grid { padding-top: 32px; padding-bottom: 88px; }
}
@media (max-width: 600px) {
	.cw-hero--text .cw-hero__grid { padding-top: 26px; padding-bottom: 64px; }
}
/* "Só texto" no computador: chamada + H1 à esquerda, descrição à direita (faixa bem baixa) */
@media (min-width: 961px) {
	.cw-hero--text .cw-hero__grid { padding-block: clamp(28px, 3vw, 40px) 84px; }
	.cw-hero--text .cw-hero__text {
		max-width: none; width: 100%;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
		grid-template-areas: "eye lead" "title lead";
		column-gap: clamp(32px, 4vw, 64px); row-gap: 14px; align-items: end;
	}
	.cw-hero--text .cw-hero__eyebrow { grid-area: eye; }
	.cw-hero--text .cw-hero__title { grid-area: title; }
	.cw-hero--text .cw-hero__lead { grid-area: lead; align-self: end; margin: 0; max-width: none; font-size: 1.05rem; }
}
.cw-hero--text .cw-hero__title.cw-title { max-width: none; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; }
