/* ExpertCN hero carousel: image / video slides filling the hero media layer. */
.ecn-hc { position: absolute; inset: 0; overflow: hidden; background: var(--ecn-hc-fade, #09253d); }
.ecn-hc-track { position: absolute; inset: 0; }
.ecn-hc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ecn-hc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.ecn-hc-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* video: cover = full bleed; fade = original ratio, anchored right, edges melt into the hero colour */
.ecn-hc .ecn-hc-video { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ecn-hc-fade, #09253d); }
.ecn-hc .ecn-hc-slide--cover .ecn-hc-video { width: 100%; max-width: none; aspect-ratio: auto; }
.ecn-hc .ecn-hc-slide--fade .ecn-hc-video {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%);
}
@media (max-width: 767px) {
	.ecn-hc .ecn-hc-slide--fade .ecn-hc-video { width: 100%; max-width: none; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
}

/* controls (moved by JS into the hero section so they sit above overlay and text) */
.ecn-hc-controls { position: absolute; left: 76px; bottom: 28px; z-index: 6; display: flex; align-items: center; gap: 12px; }
.ecn-hc-dots { display: flex; align-items: center; gap: 8px; }
.ecn-hc-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.ecn-hc-dot:hover { background: rgba(255, 255, 255, .8); }
.ecn-hc-dot.is-active { width: 24px; background: #fff; }
.ecn-hc-toggle, .ecn-hc-prev, .ecn-hc-next { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #ffffff8f; border-radius: 999px; background: rgba(8, 32, 52, .35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s ease; }
.ecn-hc-toggle:hover, .ecn-hc-prev:hover, .ecn-hc-next:hover { background: rgba(8, 32, 52, .6); }
.ecn-hc-toggle svg, .ecn-hc-prev svg, .ecn-hc-next svg { display: block; margin: 0 !important; }
.ecn-hc-toggle .i-play { display: none; }
.ecn-hc.is-paused .ecn-hc-toggle .i-pause, .ecn-hc-controls.is-paused .ecn-hc-toggle .i-pause { display: none; }
.ecn-hc.is-paused .ecn-hc-toggle .i-play, .ecn-hc-controls.is-paused .ecn-hc-toggle .i-play { display: block; }
.ecn-hc-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 1024px) { .ecn-hc-controls { left: 56px; } }
@media (max-width: 767px) { .ecn-hc-controls { left: 20px; bottom: 18px; } }
@media (prefers-reduced-motion: reduce) {
	.ecn-hc-slide, .ecn-hc-slide.is-active, .ecn-hc-dot { transition: none; }
}
