/* commonBody10Banner.css - start
   Rewritten as a flex/transform-based carousel: responsive by aspect-ratio
   instead of fixed pixel heights, arrows centered with transforms instead
   of magic top:100px offsets, and palette aligned with the nav/sidebar
   accent color so all three components read as one system. */

:root {
	--banner-accent: #e58434;      /* matches nav/sidebar accent family */
	--banner-accent-strong: #cc7218;
	--banner-heading-bg: #2f3a44;  /* replaces low-contrast #99ccff-on-white */
	--banner-heading-text: #ffffff;
	--banner-arrow: #474544;
	--banner-arrow-bg: rgba(255, 255, 255, 0.85);
	--banner-radius: 10px;
	--banner-transition: 0.45s ease;
}

#divcontainerbanner, #divcontainerbanner * {
	box-sizing: border-box;
}

#divcontainerbanner {
	background: #ffffff;
	/* Flex sibling of #columncats inside #divcenter (see commonBody9Side.css)
	   instead of a hardcoded 70% — fills whatever space is left next to
	   the sidebar, and simply goes full-width if the sidebar is absent. */
	flex: 1 1 480px;
	width: 100%;
	min-width: 0;         /* required for a flex child to shrink below content size */
	overflow: hidden;
	border-radius: var(--banner-radius);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
}

#divcontainerbanner h1 {
	font-size: 1.1rem;
	margin: 0;
	padding: 12px 16px;
	color: var(--banner-heading-text);
	background: var(--banner-heading-bg);
	letter-spacing: 0.02em;
}

#divcontainerbanner a {
	text-decoration: none;
	color: #6b4a27;
}

/* ---------- Slider shell ---------- */
.slider {
	position: relative;
}

.slide_viewer {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;      /* responsive height that scales with width */
	min-height: 220px;
	overflow: hidden;
}

.slide_group {
	display: flex;             /* track of slides laid out side by side */
	height: 100%;
	width: 100%;
	transition: transform var(--banner-transition);
	will-change: transform;
}

.slide {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
}
.slide > a {
	display: block;
	height: 100%;
	width: 100%;
	position: relative;
}
.slide > a > img {
	width: 100%;
	height: 100%;
	object-fit: cover;        /* fills the frame without distorting aspect ratio */
	display: block;
}

.spanbanner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 10px 14px;
	text-transform: capitalize;
	color: #ffffff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	text-align: left;
	font-weight: 600;
}

/* ---------- Bullets ---------- */
/* The dots sit over the bottom of the slides, above the caption (below the slides the banner cut them off). */
.slide_buttons {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 52px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	pointer-events: none;
}
a.slide_btn {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d7d7d7;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
	transition: background var(--banner-transition), transform var(--banner-transition);
}
a.slide_btn img {
	display: none;   /* dot styling now handled purely in CSS — see PHP/JS notes */
}
.slide_btn.activeimg,
.slide_btn:hover,
.slide_btn:focus-visible {
	background: var(--banner-accent);
	transform: scale(1.2);
	outline: none;
}

/* ---------- Prev/Next arrows ---------- */
.directional_nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
}
#divprev { left: 10px; }
#divnex  { right: 10px; }

.previous_btn, .next_btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--banner-arrow-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.85;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: opacity var(--banner-transition), background var(--banner-transition);
}
.previous_btn svg, .next_btn svg {
	width: 20px;
	height: 20px;
}
.previous_btn:hover, .next_btn:hover,
.previous_btn:focus-visible, .next_btn:focus-visible {
	opacity: 1;
	background: #ffffff;
	outline: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 960px) {
	.slide_viewer {
		aspect-ratio: 4 / 3;
	}
	.directional_nav {
		width: 36px;
		height: 36px;
	}
	.previous_btn, .next_btn {
		width: 36px;
		height: 36px;
	}
	.previous_btn svg, .next_btn svg {
		width: 16px;
		height: 16px;
	}
}

@media screen and (max-width: 480px) {
	.slide_viewer {
		aspect-ratio: 1 / 1;
	}
	#divprev { left: 6px; }
	#divnex  { right: 6px; }
	.spanbanner {
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slide_group, .slide_btn, .previous_btn, .next_btn {
		transition: none !important;
	}
}
/* commonBody10Banner.css - end */
