/* Active Portfolio — frontend styles */

.rpcg-ap-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	width: 100%;
}

.rpcg-ap-grid * {
	box-sizing: border-box;
}

.rpcg-ap-item {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* ---------- Media (background image) ---------- */

.rpcg-ap-media {
	position: relative;
	width: 100%;
	height: 620px;
	background-size: cover;
	background-position: center center;
	background-color: #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
}

.rpcg-ap-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
	pointer-events: none;
}

.rpcg-ap-inner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px;
}

/* ---------- Progress bar ---------- */

.rpcg-ap-progress-track {
	position: relative;
	width: 100%;
	height: 44px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.rpcg-ap-progress-fill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-width: 150px;
	max-width: 100%;
	padding-left: 18px;
	padding-right: 18px;
	background-color: #ffffff;
	border-radius: 999px;
	white-space: nowrap;
}

.rpcg-ap-progress-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #3f7d3f;
}

.rpcg-ap-progress-text {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ---------- Tags ---------- */

.rpcg-ap-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rpcg-ap-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background-color: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
}

.rpcg-ap-tag-label {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
}

.rpcg-ap-tag-value {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
}

/* ---------- Title ---------- */

.rpcg-ap-title {
	margin: 24px 0 0 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: #1a1a1a;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.rpcg-ap-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.rpcg-ap-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.rpcg-ap-tags {
		gap: 8px;
	}

	.rpcg-ap-tag {
		padding: 8px 12px;
	}
}
