/*! UT Academy OS — campaign banners (app + website). Colours come from each campaign (--c-*). */

.c-banner {
	--c-bg1: var(--u-primary); --c-bg2: var(--u-primary-700); --c-text: #fff; --c-accent: var(--u-accent);
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px;
	min-height: 168px; padding: 24px 26px; border-radius: 22px; color: var(--c-text) !important; text-decoration: none !important;
	background: linear-gradient(125deg, var(--c-bg1), var(--c-bg2));
	box-shadow: 0 18px 40px -22px var(--c-bg2); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c-bg2) 85%, transparent);
	transform: translateZ(0);
}
.c-banner--card { min-height: 190px; border-radius: 20px; }
.c-banner--big { min-height: 176px; }
a.c-banner:active { transform: scale(.985); }
.c-banner__pattern { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.c-pat--dots .c-banner__pattern { background-image: radial-gradient(rgba(255, 255, 255, .28) 1.4px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.c-pat--stripes .c-banner__pattern { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .1) 0 14px, transparent 14px 28px); }
.c-pat--waves .c-banner__pattern { background-image: radial-gradient(circle at 100% 120%, transparent 38%, rgba(255, 255, 255, .12) 39%, rgba(255, 255, 255, .12) 44%, transparent 45%), radial-gradient(circle at 100% 120%, transparent 55%, rgba(255, 255, 255, .09) 56%, rgba(255, 255, 255, .09) 61%, transparent 62%), radial-gradient(circle at 100% 120%, transparent 72%, rgba(255, 255, 255, .07) 73%, rgba(255, 255, 255, .07) 78%, transparent 79%); }
.c-pat--sparkle .c-banner__pattern { background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 1.5px), radial-gradient(circle, rgba(255, 255, 255, .6) 1px, transparent 1.5px); background-size: 46px 46px, 31px 31px; background-position: 0 0, 17px 21px; animation: c-twinkle 3s ease-in-out infinite alternate; }
@keyframes c-twinkle { to { opacity: .2; } }
.c-banner::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%; background: var(--c-accent); opacity: .28; filter: blur(30px); z-index: -1; }
.c-banner__img { position: absolute; right: 0; bottom: 0; height: 100%; width: 46%; object-fit: cover; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.c-banner.has-img .c-banner__copy { max-width: 62%; }
.c-banner__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; flex: 1; }
.c-banner__title { font: 900 clamp(1.4rem, 1.05rem + 1.8vw, 2.2rem)/1.08 var(--u-font-heading); letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.c-banner__sub { font-size: .9375rem; line-height: 1.45; opacity: .9; max-width: 46ch; }
.c-banner__cta { margin-top: 8px; display: inline-flex; white-space: nowrap; align-self: flex-start; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: .875rem; color: var(--c-bg2); background: var(--c-text); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.c-banner__cta svg { width: 16px; height: 16px; }
.c-banner__sticker { font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); line-height: 1; flex: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); animation: c-float 3.2s ease-in-out infinite; }
@keyframes c-float { 50% { transform: translateY(-8px) rotate(-6deg); } }
.c-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 800 .6875rem/1.4 var(--u-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-bg2, #111); background: var(--c-accent, #FFD43B); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }

/* animations */
.c-anim--shine::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); transform: translateX(-100%); animation: c-shine 3.4s ease-in-out infinite; }
@keyframes c-shine { 55%, 100% { transform: translateX(100%); } }
.c-anim--glow { animation: c-glow 2.2s ease-in-out infinite; }
@keyframes c-glow { 50% { box-shadow: 0 0 0 6px var(--c-accent), 0 18px 40px -22px var(--c-bg2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accent) 35%, transparent), 0 18px 40px -22px var(--c-bg2); } }
.c-anim--bounce .c-banner__title { animation: c-bounce 1s cubic-bezier(.3, 1.6, .5, 1) both; }
.c-anim--bounce .c-banner__sub { animation: c-bounce 1s .12s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes c-bounce { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.c-anim--typewriter .c-banner__title { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; border-right: 3px solid var(--c-accent); animation: c-type 2.6s steps(28, end) both, c-caret .8s step-end infinite; }
@keyframes c-type { from { max-width: 0; } }
@keyframes c-caret { 50% { border-color: transparent; } }
@media (max-width: 520px) { .c-anim--typewriter .c-banner__title { white-space: normal; border-right: 0; animation: c-bounce .9s both; } }
.c-anim--marquee .c-banner__title { animation: c-slidein .8s ease-out both; }
@keyframes c-slidein { from { opacity: 0; transform: translateX(40px); } }
.c-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.c-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6%); width: 7px; height: 12px; border-radius: 2px; opacity: .9; background: hsl(calc(var(--i) * 47), 90%, 62%); animation: c-fall calc(2.6s + var(--i) * .13s) linear calc(var(--i) * -.37s) infinite; }
.c-confetti i:nth-child(3n) { background: var(--c-accent); }
.c-confetti i:nth-child(4n) { background: #fff; width: 5px; height: 5px; border-radius: 50%; }
@keyframes c-fall { to { transform: translateY(240px) rotate(540deg); } }

/* bars & tickers */
.c-bar { --c-bg1: var(--u-primary); --c-bg2: var(--u-primary-700); --c-text: #fff; --c-accent: var(--u-accent);
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 16px; overflow: hidden;
	color: var(--c-text); background: linear-gradient(90deg, var(--c-bg1), var(--c-bg2)); font-weight: 700; font-size: .875rem; }
.c-bar__text { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 8px 0; }
.c-bar__text.c-anim--shine { position: relative; overflow: hidden; }
.c-bar__cta { flex: none; color: var(--c-text) !important; text-decoration: none; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-weight: 800; white-space: nowrap; }
.c-bar--ticker { border-radius: 0; }
.c-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.c-marquee__track { display: inline-flex; gap: 64px; white-space: nowrap; padding: 10px 0; animation: c-marquee 22s linear infinite; }
.c-marquee:hover .c-marquee__track { animation-play-state: paused; }
@keyframes c-marquee { to { transform: translateX(-50%); } }
.c-sticker { font-size: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	.c-banner *, .c-banner::before, .c-banner, .c-marquee__track, .c-banner__sticker { animation: none !important; }
	.c-confetti { display: none; }
	.c-anim--typewriter .c-banner__title { max-width: none; border-right: 0; white-space: normal; }
}

/* website: banners below the slider + popup */
.s-campaigns { padding: 28px 0 0; }
.s-campaigns__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .s-campaigns__grid.is-two { grid-template-columns: 1fr 1fr; } }
.s-campaigns .c-banner--card { min-height: 170px; }
.c-popup { width: min(440px, calc(100vw - 32px)); padding: 12px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); position: fixed; }
.c-popup::backdrop { background: rgba(10, 14, 30, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.c-popup[open] { animation: c-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes c-pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.c-popup__x { position: absolute; z-index: 3; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; }
.c-popup__x svg { width: 18px; height: 18px; }
.c-popup__body { margin: 14px 8px 4px; color: var(--u-ink-2); line-height: 1.6; }
.c-popup__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 12px 4px 4px; }
@media (prefers-reduced-motion: reduce) { .c-popup[open] { animation: none; } }

/* phones: one tidy line — title only (subtitle hidden), small button, no badge */
@media (max-width: 640px) {
	.c-bar { gap: 10px; min-height: 46px; padding: 0 10px 0 12px; font-size: .8125rem; }
	.c-bar__text { justify-content: flex-start; text-align: left; gap: 6px; padding: 7px 0; }
	.c-bar__text .c-badge { display: none; }
	.c-bar__msg { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
	.c-bar__sub { display: none; }
	.c-bar__cta { padding: 6px 11px; font-size: .75rem; }
}
