/*
 * Adinkra Hero Slider. Everything is scoped to .ahs-hero so it looks the same on any theme.
 * Colours follow the Adinkra theme when it is active (its --gaec-* variables), otherwise the fallbacks.
 */
.ahs-hero {
	--ahs-primary: var(--gaec-primary, #0B4F8A);
	--ahs-primary-dark: var(--gaec-primary-dark, #083F77);
	position: relative; overflow: hidden; min-height: 520px; background: var(--ahs-primary-dark);
	font-family: inherit; line-height: 1.6;
}
.ahs-hero *, .ahs-hero *::before, .ahs-hero *::after { box-sizing: border-box; }
.ahs-hero .ahs-container {
	width: 100%; max-width: calc(var(--ahs-container, var(--gaec-container, 1200px)) + 48px);
	margin: 0 auto; padding: 0 24px; position: relative; z-index: 2;
}
.ahs-hero .gaec-hero__slide {
	position: absolute; inset: 0; background: center / cover no-repeat;
	display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s;
}
.ahs-hero .gaec-hero__slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: inherit; }
.ahs-hero .gaec-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); pointer-events: none; }
.ahs-hero .gaec-hero__caption {
	background: color-mix(in srgb, var(--ahs-primary-dark) 82%, transparent); color: #fff;
	padding: 32px 36px; max-width: 600px; border-radius: 10px;
}
.ahs-hero .gaec-hero__title { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
.ahs-hero .gaec-hero__text { color: #fff; opacity: .95; margin: 0 0 8px; }
.ahs-hero .gaec-meta { margin-bottom: 8px; }
.ahs-hero .gaec-meta__label { color: #fff; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-size: .85rem; }
.ahs-hero .gaec-btn {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
	padding: 10px 26px; border-radius: 50px; border: 2px solid #fff;
	background: #fff; color: var(--ahs-primary); font-weight: 500; font-size: .95rem; line-height: 1.3;
	text-decoration: none !important; transition: background .2s, color .2s, border-color .2s;
}
.ahs-hero .gaec-btn:hover, .ahs-hero .gaec-btn:focus-visible { background: transparent; color: #fff; }
.ahs-hero .ahs-icon { width: 14px; height: 14px; flex: none; }
.ahs-hero .gaec-hero__nav { position: absolute; z-index: 3; bottom: 20px; left: 0; right: 0; }
.ahs-hero .gaec-hero__nav .ahs-container { display: flex; align-items: center; gap: 10px; }
.ahs-hero .gaec-hero__dots { display: flex; gap: 8px; }
.ahs-hero .gaec-hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.ahs-hero .gaec-hero__dot.is-active { background: #fff; }
.ahs-hero .gaec-hero__arrow {
	width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .9);
	color: var(--ahs-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ahs-hero .gaec-hero__arrow .ahs-icon { width: 18px; height: 18px; }

@media (max-width: 640px) {
	.ahs-hero .gaec-hero__caption { padding: 22px; }
}

/* Phones: photo on top, text in a solid block underneath (as on iaea.org). */
@media (max-width: 767px) {
	.ahs-hero--stack { min-height: 0 !important; height: auto !important; background: var(--ahs-mobile-bg, #000); }
	.ahs-hero--stack .gaec-hero__slide.is-active {
		display: block; min-height: 0 !important; padding-top: 56vw;
		background-size: auto 56vw !important; background-position: center top !important; background-color: var(--ahs-mobile-bg, #000);
	}
	.ahs-hero--stack .gaec-hero__overlay { bottom: auto; height: 56vw; }
	.ahs-hero--stack .gaec-hero__slide .ahs-container { padding: 0; max-width: none; }
	.ahs-hero--stack .gaec-hero__caption {
		max-width: none !important; border-radius: 0 !important; margin: 0 !important; padding: 24px 15px 32px !important;
		background: var(--ahs-mobile-bg, #000) !important;
	}
	.ahs-hero--stack .gaec-hero__title::after { content: ""; display: block; width: 40px; height: 6px; background: var(--ahs-bar, var(--ahs-primary)); margin-top: 20px; }
	.ahs-hero--stack .gaec-hero__nav { top: calc(56vw - 44px); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ahs-hero .gaec-hero__slide { transition: none; }
}

/* Themes often style every <button>; keep the slider controls as designed. */
.ahs-hero button.gaec-hero__dot, .ahs-hero button.gaec-hero__arrow {
	min-height: 0 !important; min-width: 0 !important; margin: 0 !important; box-shadow: none !important;
	text-transform: none !important; letter-spacing: 0 !important; line-height: 1 !important; font-size: 0 !important;
}
.ahs-hero button.gaec-hero__dot { width: 12px !important; height: 12px !important; padding: 0 !important; border: 2px solid #fff !important; border-radius: 50% !important; background: transparent !important; }
.ahs-hero button.gaec-hero__dot.is-active { background: #fff !important; }
.ahs-hero button.gaec-hero__arrow { width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .9) !important; color: var(--ahs-primary) !important; }
.ahs-hero button.gaec-hero__arrow:hover, .ahs-hero button.gaec-hero__arrow:focus-visible { background: #fff !important; }
.ahs-hero a.gaec-btn { text-decoration: none !important; }
