/* ==========================================================================
   Container
   ========================================================================== */

.afzsbc-section {
	width: 100%;
	max-width: var(--afzsbc-container-max, none);
	margin: var(--afzsbc-margin-top, 0) auto var(--afzsbc-margin-bottom, 0);
	padding: var(--afzsbc-pad-top, 40px) var(--afzsbc-pad-x, 20px) var(--afzsbc-pad-bottom, 40px);
	background: var(--afzsbc-bg, transparent);
	border-radius: var(--afzsbc-radius, 0);
	box-sizing: border-box;
}

/* Breaks out of the theme content wrapper for a true edge-to-edge section. */
.afzsbc-section.afzsbc-fullbleed {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	border-radius: 0;
}

/* Inner content wrapper: can be limited independently from the background. */
.afzsbc-inner {
	width: 100%;
	max-width: var(--afzsbc-content-max, none);
	margin: 0 auto;
	box-sizing: border-box;
}

.afzsbc-align-left .afzsbc-inner {
	text-align: left;
}

.afzsbc-align-center .afzsbc-inner {
	text-align: center;
}

.afzsbc-align-right .afzsbc-inner {
	text-align: right;
}

/* ==========================================================================
   Section texts
   ========================================================================== */

.afzsbc-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 6px;
}

.afzsbc-subtitle {
	color: #666;
	margin: 0 0 24px;
	font-size: 15px;
}

/* ==========================================================================
   Carousel
   ========================================================================== */

.afzsbc-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.afzsbc-track-viewport {
	overflow: hidden;
	flex: 1;
	width: 100%;
}

.afzsbc-track {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--afzsbc-rows, 2), auto);
	grid-auto-columns: calc((100% - (var(--afzsbc-cols, 8) - 1) * var(--afzsbc-gap, 18px)) / var(--afzsbc-cols, 8));
	gap: var(--afzsbc-gap, 18px);
	transition: transform 0.4s ease;
	will-change: transform;
	box-sizing: border-box;
}

.afzsbc-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.afzsbc-flag-wrap {
	display: block;
	width: var(--afzsbc-flag-width, 70px);
	height: calc(var(--afzsbc-flag-width, 70px) * 0.68);
	overflow: hidden;
	background: #f2f2f2;
	border: 1px solid #e5e5e5;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.afzsbc-flag-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.afzsbc-shape-rounded {
	border-radius: 10px;
}

.afzsbc-shape-square {
	border-radius: 0;
}

.afzsbc-shape-circle {
	border-radius: 50%;
	width: var(--afzsbc-flag-width, 70px);
	height: var(--afzsbc-flag-width, 70px);
}

.afzsbc-hover-zoom:hover {
	transform: scale(1.08);
}

.afzsbc-hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.afzsbc-name {
	font-size: var(--afzsbc-name-size, 13px);
	max-width: calc(var(--afzsbc-flag-width, 70px) + 20px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.afzsbc-arrow {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	background: transparent;
	color: #444;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.afzsbc-arrow svg {
	width: 16px;
	height: 16px;
	display: block;
}

.afzsbc-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* Style: Minimal — chevron only, no background. */
.afzsbc-arrows-minimal .afzsbc-arrow {
	color: #555;
}

.afzsbc-arrows-minimal .afzsbc-arrow:hover {
	color: #000;
}

/* Style: Outline circle. */
.afzsbc-arrows-outline .afzsbc-arrow {
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
}

.afzsbc-arrows-outline .afzsbc-arrow:hover {
	background: #f2f2f2;
	border-color: #c8c8c8;
}

/* Style: Solid circle (dark). */
.afzsbc-arrows-solid .afzsbc-arrow {
	border-radius: 50%;
	background: #222;
	color: #fff;
}

.afzsbc-arrows-solid .afzsbc-arrow:hover {
	background: #000;
}

/* Style: Soft square. */
.afzsbc-arrows-square .afzsbc-arrow {
	border-radius: 6px;
	background: #f2f2f2;
	color: #444;
}

.afzsbc-arrows-square .afzsbc-arrow:hover {
	background: #e5e5e5;
	color: #000;
}

.afzsbc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.afzsbc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	border: none;
	padding: 0;
}

.afzsbc-dot.afzsbc-dot-active {
	background: #333;
	width: 22px;
	border-radius: 5px;
	transition: width 0.2s;
}

/* Desktop: default values via inline data-attrs handled by the JS, fallback only. */
.afzsbc-track {
	--afzsbc-rows: 2;
	--afzsbc-cols: 8;
}

@media (max-width: 1024px) {
	.afzsbc-title {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.afzsbc-arrow {
		width: 24px;
		height: 24px;
	}
	.afzsbc-arrow svg {
		width: 14px;
		height: 14px;
	}
}
