/**
 * BBP Features Rounded widget styles.
 *
 * The 6 badge/text slots are positioned via :nth-child at fixed
 * percentages measured directly off the Figma reference (a regular
 * hexagon inscribed on the photo circle's rim, points at 30/90/150 deg
 * either side of vertical). This is a fixed 6-slot diagram, not a
 * variable-count grid — see the widget's PHP docblock.
 *
 * Deliberately has NO hardcoded outer padding of its own: Elementor's
 * native Advanced > Padding control (which targets
 * .elementor-widget-container) is the only source of outer spacing.
 */

.elementor-widget-bbp-features-rounded {
	width: 100%;
}

.bbp-features-section {
	width: 100%;
	max-width: var(--bbp-content-width);
	margin: 0 auto;
	text-align: center;
}

.bbp-features-heading {
	font-family: var(--bbp-heading-font);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.2;
	color: var(--bbp-text-white);
	text-transform: uppercase;
	margin: 0 0 24px;
}

.bbp-features-heading .bbp-text-gold {
	color: var(--bbp-gold);
}

.bbp-features-description {
	font-family: var(--bbp-font-family);
	font-size: 17px;
	line-height: 1.7;
	color: var(--bbp-text-muted);
	max-width: 1000px;
	margin: 0 auto;
}

/* --- diagram --- */

.bbp-features-wheel {
	position: relative;
	width: 620px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin: 60px auto 0;
}

.bbp-features-photo {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 80%;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	overflow: hidden;
}

.bbp-features-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbp-features-item {
	position: absolute;
	width: 20%;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
}

.bbp-features-item:nth-child(1),
.bbp-features-item:nth-child(2) {
	top: 15%;
}

.bbp-features-item:nth-child(3),
.bbp-features-item:nth-child(4) {
	top: 50%;
}

.bbp-features-item:nth-child(5),
.bbp-features-item:nth-child(6) {
	top: 85%;
}

.bbp-features-item:nth-child(odd) {
	left: 30%;
}

.bbp-features-item:nth-child(even) {
	left: 70%;
}

.bbp-features-item:nth-child(3) {
	left: 10%;
}

.bbp-features-item:nth-child(4) {
	left: 90%;
}

.bbp-features-badge {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: var(--bbp-bg-footer);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.bbp-features-badge svg,
.bbp-features-badge i {
	width: 55%;
	height: 55%;
	font-size: 55%;
	color: var(--bbp-gold);
	fill: var(--bbp-gold);
}

.bbp-features-item-text {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 260px;
	max-width: 40vw;
}

.bbp-features-item:nth-child(odd) .bbp-features-item-text {
	right: 100%;
	margin-right: 18px;
	text-align: right;
}

.bbp-features-item:nth-child(even) .bbp-features-item-text {
	left: 100%;
	margin-left: 18px;
	text-align: left;
}

.bbp-features-item:nth-child(7) {
	top: 15%;
}

.bbp-features-item-title {
	font-family: var(--bbp-font-family);
	font-weight: 700;
	font-size: 18px;
	color: var(--bbp-text-white);
	margin-bottom: 6px;
	transition: color 0.25s ease;
}

.bbp-features-item-description {
	font-family: var(--bbp-font-family);
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* Hover — gated to real hover input (mouse/trackpad) so touch devices
   don't get stuck showing the "activated" state after a tap. */
@media (hover: hover) {
	.bbp-features-item:hover .bbp-features-item-title {
		color: var(--bbp-gold);
	}

	.bbp-features-item:hover .bbp-features-badge {
		transform: scale(1.08);
		border-color: var(--bbp-gold);
	}
}

/* --- responsive: below this width the hexagon diagram no longer fits, fall back to a stacked list --- */

@media (max-width: 900px) {
	.bbp-features-heading {
		font-size: 30px;
	}

	.bbp-features-wheel {
		width: 100%;
		max-width: 360px;
		aspect-ratio: auto;
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 28px;
	}

	.bbp-features-photo {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 200px;
	}

	.bbp-features-item {
		position: relative;
		left: auto !important;
		top: auto !important;
		transform: none;
		width: 100%;
		aspect-ratio: auto;
		display: flex;
		align-items: center;
		gap: 16px;
		text-align: left;
	}

	.bbp-features-badge {
		flex: 0 0 auto;
		width: 64px;
		height: 64px;
	}

	.bbp-features-item-text {
		position: relative;
		top: auto;
		transform: none;
		width: auto;
		max-width: none;
		flex: 1;
	}

	.bbp-features-item:nth-child(odd) .bbp-features-item-text,
	.bbp-features-item:nth-child(even) .bbp-features-item-text {
		/* Neutralize the desktop rules' right:100%/left:100% — those are
		   edge-anchors under position:absolute, but the text is
		   position:relative here, where right/left instead act as
		   relative offsets and were shoving it ~100% of the container's
		   width off-screen. */
		right: auto;
		left: auto;
		margin: 0;
		text-align: left;
	}
}
