/*! KCAU eLearning Blocks — hero carousel. Author: Kiriago. Override the variables in the theme to re-brand. */
.kcau-hc {
	--kcau-hc-navy: #192C57;
	--kcau-hc-navy-hover: #0F1C3A;
	--kcau-hc-gold: #CBAE2D;
	--kcau-hc-gold-hover: #B89B22;
	--kcau-hc-cream: #F7F0D0;
	--kcau-hc-overlay: rgba(25, 44, 87, .86); /* navy at 86 %: white text ≥ 8.8:1 on any photo pixel */
	--kcau-hc-font: 'futura-pt', sans-serif;
	--kcau-hc-min-h: clamp(520px, 68vh, 640px);
	--kcau-hc-focus: 0 0 0 2px var(--kcau-hc-navy), 0 0 0 5px var(--kcau-hc-gold);
	position: relative; overflow: hidden; background: var(--kcau-hc-navy); color: #fff; font-family: var(--kcau-hc-font);
}
/* All slides share one grid cell: the carousel is as tall as its tallest slide, so switching never shifts layout. */
.kcau-hc__slides { display: grid; }
.kcau-hc__slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: var(--kcau-hc-min-h);
	opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.kcau-hc__slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.kcau-hc__media { position: absolute; inset: 0; }
.kcau-hc__media::after { content: ""; position: absolute; inset: 0; background: var(--kcau-hc-overlay); }
.kcau-hc__img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder until real photography is supplied: plain navy with a faint gold ring motif (no image request). */
.kcau-hc__media--placeholder { background: var(--kcau-hc-navy); }
.kcau-hc__media--placeholder::before {
	content: ""; position: absolute; right: -8%; top: 50%; width: min(70vw, 760px); aspect-ratio: 1; transform: translateY(-50%);
	border-radius: 50%; border: 60px solid rgba(203, 174, 45, .10); box-shadow: 0 0 0 90px rgba(203, 174, 45, .05);
}
.kcau-hc__inner { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 72px 24px 112px; box-sizing: border-box; }
.kcau-hc__content { max-width: 680px; }
.kcau-hc__eyebrow {
	display: inline-block; margin: 0 0 18px !important; padding: 6px 16px; border-radius: 30px; background: var(--kcau-hc-cream);
	color: var(--kcau-hc-navy) !important; font-size: 14px !important; font-weight: 600; letter-spacing: .5px; line-height: 1.4;
} /* !important: the theme forces p margins/sizes with !important */
.kcau-hc .kcau-hc__title {
	margin: 0 0 16px; color: #fff !important; font-family: var(--kcau-hc-font) !important; font-size: clamp(30px, 4.4vw, 54px) !important; text-wrap: balance; /* Round 6: longer slide-1 headline ("…Centre for Open and Distance Education"); balance avoids a lone last word */
	font-weight: 700 !important; line-height: 1.1; letter-spacing: 0; text-transform: none;
} /* !important: theme heading rules */
.kcau-hc__title .gold, .kcau-hc__title .kcau-text-gold-on-dark { color: var(--kcau-hc-gold); }
.kcau-hc .kcau-hc__text { margin: 0 !important; max-width: 34em; color: #fff !important; font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.55; }
.kcau-hc__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 28px; }
.kcau-hc__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 2px solid transparent;
	border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important; transition: background-color .2s ease, color .2s ease;
}
.kcau-hc__btn--primary { background: var(--kcau-hc-gold); color: var(--kcau-hc-navy) !important; }
.kcau-hc__btn--primary:hover, .kcau-hc__btn--primary:focus-visible { background: var(--kcau-hc-gold-hover); }
.kcau-hc__btn--secondary { background: transparent; border-color: #fff; color: #fff !important; }
.kcau-hc__btn--secondary:hover, .kcau-hc__btn--secondary:focus-visible { background: #fff; color: var(--kcau-hc-navy) !important; }
.kcau-hc__icon { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

/* Controls (shown only once JS has initialised) */
.kcau-hc__controls { display: none; }
.kcau-hc--js .kcau-hc__controls {
	position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
	padding: 6px 10px; border-radius: 40px; background: rgba(15, 28, 58, .72);
}
.kcau-hc__ctrl {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 255, 255, .85);
	border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.kcau-hc__ctrl:hover { background: #fff; color: var(--kcau-hc-navy); }
.kcau-hc__i { display: block; width: 14px; height: 14px; background: currentColor; }
.kcau-hc__i--prev { clip-path: polygon(70% 0, 15% 50%, 70% 100%, 85% 85%, 45% 50%, 85% 15%); }
.kcau-hc__i--next { clip-path: polygon(30% 0, 85% 50%, 30% 100%, 15% 85%, 55% 50%, 15% 15%); }
.kcau-hc__i--pause { clip-path: polygon(10% 0, 40% 0, 40% 100%, 10% 100%, 10% 0, 60% 0, 90% 0, 90% 100%, 60% 100%, 60% 0); }
.kcau-hc.is-paused .kcau-hc__i--pause { clip-path: polygon(15% 0, 95% 50%, 15% 100%); } /* play triangle */
.kcau-hc__dots { display: flex; gap: 2px; }
.kcau-hc__dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; } /* 44px target, small visible dot */
.kcau-hc__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; }
.kcau-hc__dot[aria-current="true"]::before { background: var(--kcau-hc-gold); border-color: var(--kcau-hc-gold); width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.kcau-hc .kcau-hc__ctrl:focus-visible, .kcau-hc .kcau-hc__dot:focus-visible, .kcau-hc .kcau-hc__btn:focus-visible {
	outline: 3px solid var(--kcau-hc-gold) !important; outline-offset: 2px; transition-duration: 0s; /* !important: theme outline resets */
}

@media (max-width: 1024px) {
	.kcau-hc { --kcau-hc-min-h: 500px; }
}
@media (max-width: 767px) {
	.kcau-hc { --kcau-hc-min-h: 0px; }
	.kcau-hc__inner { padding: 44px 16px 104px; }
	.kcau-hc__actions { flex-direction: column; }
	.kcau-hc__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.kcau-hc__slide, .kcau-hc__slide.is-active, .kcau-hc__btn { transition: none; }
}

/* Theme-proofing: the theme styles every <button> and <img>; reset them inside the carousel. */
.kcau-hc .kcau-hc__dot, .kcau-hc .kcau-hc__dot:hover, .kcau-hc .kcau-hc__dot:focus { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; min-width: 0; }
.kcau-hc .kcau-hc__ctrl { background: transparent !important; box-shadow: none !important; min-width: 0; line-height: 1; }
.kcau-hc .kcau-hc__ctrl:hover { background: #fff !important; color: var(--kcau-hc-navy); }
.kcau-hc .kcau-hc__media .kcau-hc__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
