/* ==========================================================================
   Reviews: filters, review cards and share band
   ========================================================================== */
.oqa-rgrid {
	padding: 60px 0 90px;
	background: #fcfaf6;
}

.oqa-rgrid__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}

.oqa-rgrid__chip {
	padding: 10px 20px;
	font-family: var(--oqa-font-body);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--oqa-green-900);
	background: var(--oqa-white);
	border: 1.5px solid rgba(69, 47, 95, 0.12);
	border-radius: var(--oqa-radius-pill);
	cursor: pointer;
	transition: background 0.2s var(--oqa-ease), color 0.2s var(--oqa-ease), border-color 0.2s var(--oqa-ease);
}

.oqa-rgrid__chip:hover {
	border-color: var(--oqa-gold-500);
}

.oqa-rgrid__chip.is-active {
	color: var(--oqa-white);
	background: linear-gradient(160deg, var(--oqa-green-700) 0%, var(--oqa-green-900) 100%);
	border-color: transparent;
}

.oqa-rgrid__chip:focus-visible {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 2px;
}

.oqa-rgrid__list {
	column-count: 3;
	column-gap: 28px;
}

.oqa-rcard {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0 0 28px;
	padding: 28px 28px 24px;
	overflow: hidden;
	background: var(--oqa-white);
	border: 1px solid rgba(69, 47, 95, 0.08);
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(42, 29, 58, 0.06);
	break-inside: avoid;
	transition: transform 0.3s var(--oqa-ease), box-shadow 0.3s var(--oqa-ease), border-color 0.3s var(--oqa-ease);
}

.oqa-rcard[hidden] {
	display: none;
}

.oqa-rcard:hover {
	transform: translateY(-4px);
	border-color: rgba(216, 171, 82, 0.45);
	box-shadow: 0 20px 40px rgba(42, 29, 58, 0.11);
}

.oqa-rcard__quote {
	position: absolute;
	right: 22px;
	bottom: 70px;
	font-size: 70px;
	color: rgba(216, 171, 82, 0.12);
	pointer-events: none;
}

.oqa-rcard__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.oqa-rcard__stars {
	font-size: 17px;
}

.oqa-rcard__stars span.is-on {
	color: var(--oqa-gold-500);
}

.oqa-rcard__course {
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--oqa-gold-600);
	background: #f8f1e1;
	border-radius: var(--oqa-radius-pill);
}

.oqa-rcard__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--oqa-green-900);
}

.oqa-rcard__text {
	position: relative;
	margin: 0 0 22px;
	padding: 0;
	font-size: 15.5px;
	font-style: normal;
	line-height: 1.75;
	color: var(--oqa-muted);
	border: 0;
}

.oqa-rcard__author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid rgba(69, 47, 95, 0.08);
}

.oqa-rcard__avatar {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border: 3px solid var(--oqa-white);
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(42, 29, 58, 0.18);
	flex-shrink: 0;
}

.oqa-rcard__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--oqa-font-heading);
	font-size: 21px;
	font-weight: 700;
	color: var(--oqa-white);
	background: radial-gradient(circle at 30% 30%, var(--oqa-green-600), var(--oqa-green-900));
}

.oqa-rcard__who {
	flex: 1;
	min-width: 0;
}

.oqa-rcard__who strong {
	display: block;
	font-size: 16px;
	color: var(--oqa-green-900);
}

.oqa-rcard__who small {
	font-size: 13px;
	color: var(--oqa-muted);
}

.oqa-rcard__country {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--oqa-green-800);
	white-space: nowrap;
}

.oqa-rcard__country .oqa-flag {
	width: 20px;
	height: 20px;
}

.oqa-rcard__globe {
	display: inline-flex;
	font-size: 19px;
	color: var(--oqa-green-700);
}

.oqa-rgrid__empty {
	margin: 0 0 30px;
	padding: 30px;
	text-align: center;
	color: var(--oqa-muted);
	background: var(--oqa-white);
	border: 1.5px dashed rgba(216, 171, 82, 0.6);
	border-radius: 20px;
}

.oqa-rgrid__empty[hidden] {
	display: none;
}

/* Share band */
.oqa-rgrid__share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: 26px;
	padding: 36px 40px;
	background: #f6efe0;
	border: 1px solid rgba(216, 171, 82, 0.45);
	border-radius: 24px;
}

.oqa-rgrid__share h2 {
	margin: 0 0 6px;
	font-size: clamp(22px, 2vw, 28px);
	color: var(--oqa-green-900);
}

.oqa-rgrid__share p {
	max-width: 560px;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--oqa-muted);
}

.oqa-rgrid__share-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

.oqa-rgrid__share-actions .oqa-icon {
	font-size: 19px;
}

@media (max-width: 1080px) {
	.oqa-rgrid__list {
		column-count: 2;
	}

	.oqa-rgrid__share {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.oqa-rgrid {
		padding: 44px 0 64px;
	}

	.oqa-rgrid__filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin: 0 calc(-1 * var(--oqa-gutter)) 30px;
		padding: 2px var(--oqa-gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.oqa-rgrid__filters::-webkit-scrollbar {
		display: none;
	}

	.oqa-rgrid__chip {
		flex-shrink: 0;
	}

	.oqa-rgrid__list {
		column-count: 1;
	}

	.oqa-rcard {
		padding: 24px 20px 20px;
	}

	.oqa-rgrid__share {
		padding: 28px 22px;
	}

	.oqa-rgrid__share-actions,
	.oqa-rgrid__share-actions .oqa-btn {
		width: 100%;
	}
}
