/* Smart Carousel – Relayout Designs */
.rd-sc {
	--rd-sc-gap: 24px;
	--rd-sc-card-radius: 16px;
	--rd-sc-img-radius: 12px;
	--rd-sc-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	width: 100%;
}

.rd-sc__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
	align-items: center;
}

.rd-sc__filters--tabs {
	gap: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rd-sc__filters--tabs .rd-sc__filter {
	border-radius: 8px 8px 0 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
}

.rd-sc__filters--tabs .rd-sc__filter.is-active {
	border-bottom-color: currentColor;
}

.rd-sc__filters--pills .rd-sc__filter {
	border-radius: 999px;
}

.rd-sc__filters--underline .rd-sc__filter {
	border-radius: 0;
	background: transparent;
	border-bottom: 2px solid transparent;
	padding-bottom: 8px;
}

.rd-sc__filters--underline .rd-sc__filter.is-active {
	border-bottom-color: currentColor;
}

.rd-sc__filter {
	appearance: none;
	border: none;
	cursor: pointer;
	font: inherit;
	padding: 10px 18px;
	background: rgba(0, 0, 0, 0.04);
	color: inherit;
	transition: background var(--rd-sc-transition), color var(--rd-sc-transition), transform 0.2s ease;
	line-height: 1.3;
}

.rd-sc__filter:hover,
.rd-sc__filter:focus-visible {
	outline: none;
	background: rgba(0, 0, 0, 0.08);
}

.rd-sc__filters--pills .rd-sc__filter.is-active {
	background: #111;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.rd-sc__filters--tabs .rd-sc__filter.is-active,
.rd-sc__filters--underline .rd-sc__filter.is-active {
	background: transparent;
	color: inherit;
}

.rd-sc__swiper {
	overflow: hidden;
	position: relative;
	padding-bottom: 8px;
}

.rd-sc__swiper.swiper-centered .swiper-slide {
	transition: transform var(--rd-sc-transition), opacity var(--rd-sc-transition);
}

.rd-sc__slide {
	height: auto;
	box-sizing: border-box;
}

.rd-sc__slide-pool {
	display: none !important;
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

.rd-sc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--rd-sc-card-radius);
	overflow: hidden;
	transition: transform var(--rd-sc-transition), box-shadow var(--rd-sc-transition);
	text-decoration: none;
	color: inherit;
}

.rd-sc--equal-height .rd-sc__card {
	min-height: 100%;
}

.rd-sc__card--hover-lift:hover {
	transform: translateY(-6px);
}

.rd-sc__card--align-center {
	text-align: center;
	align-items: center;
}

.rd-sc__card--align-right {
	text-align: right;
	align-items: flex-end;
}

.rd-sc__media {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	width: 100%;
}

.rd-sc__media--ratio-1-1 { aspect-ratio: 1 / 1; }
.rd-sc__media--ratio-4-3 { aspect-ratio: 4 / 3; }
.rd-sc__media--ratio-16-9 { aspect-ratio: 16 / 9; }
.rd-sc__media--ratio-3-4 { aspect-ratio: 3 / 4; }
.rd-sc__media--ratio-auto { aspect-ratio: auto; }

.rd-sc__media--shape-circle {
	aspect-ratio: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0;
}

.rd-sc__img-wrap {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	overflow: hidden;
}

.rd-sc__img-wrap--circle {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	width: var(--rd-sc-img-w, 120px);
	height: var(--rd-sc-img-w, 120px);
	max-width: 100%;
}

.rd-sc__img-wrap--rounded {
	border-radius: var(--rd-sc-img-radius);
}

.rd-sc__img-wrap--custom {
	width: var(--rd-sc-img-w, 100%);
	height: var(--rd-sc-img-h, auto);
	border-radius: var(--rd-sc-img-rt, 0) var(--rd-sc-img-rr, 0) var(--rd-sc-img-rb, 0) var(--rd-sc-img-rl, 0);
}

.rd-sc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--rd-sc-transition);
}

.rd-sc--img-zoom .rd-sc__card:hover .rd-sc__img {
	transform: scale(1.06);
}

.rd-sc__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--rd-sc-transition);
}

.rd-sc__body {
	padding: 20px 22px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rd-sc__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
}

.rd-sc__title a {
	color: inherit;
	text-decoration: none;
}

.rd-sc__title a:hover {
	text-decoration: underline;
}

.rd-sc__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	opacity: 0.85;
	flex: 1;
}

.rd-sc__desc p:last-child {
	margin-bottom: 0;
}

.rd-sc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--rd-sc-transition), color var(--rd-sc-transition), transform 0.2s ease;
	border: none;
	cursor: pointer;
	margin-top: auto;
}

.rd-sc__card--align-center .rd-sc__btn {
	align-self: center;
}

.rd-sc__card--align-right .rd-sc__btn {
	align-self: flex-end;
}

.rd-sc__btn:hover {
	transform: translateY(-1px);
}

.rd-sc__link-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}

.rd-sc__card--link-card {
	position: relative;
}

/* Navigation */
.rd-sc .swiper-button-next,
.rd-sc .swiper-button-prev {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	color: #111;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-sc .swiper-button-next:after,
.rd-sc .swiper-button-prev:after {
	font-size: 18px;
	font-weight: 700;
}

.rd-sc .swiper-button-next:hover,
.rd-sc .swiper-button-prev:hover {
	transform: scale(1.05);
}

.rd-sc--arrows-outside {
	padding-left: 52px;
	padding-right: 52px;
}

.rd-sc--arrows-outside .swiper-button-prev {
	left: 0;
}

.rd-sc--arrows-outside .swiper-button-next {
	right: 0;
}

.rd-sc--arrows-bottom {
	padding-bottom: 56px;
}

.rd-sc--arrows-bottom .swiper-button-prev,
.rd-sc--arrows-bottom .swiper-button-next {
	top: auto;
	bottom: 0;
	transform: none;
}

.rd-sc--arrows-bottom .swiper-button-prev {
	left: calc(50% - 52px);
}

.rd-sc--arrows-bottom .swiper-button-next {
	right: calc(50% - 52px);
	left: auto;
}

.rd-sc .swiper-pagination {
	position: relative;
	margin-top: 20px;
}

.rd-sc .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	opacity: 0.35;
	transition: opacity var(--rd-sc-transition), transform 0.2s ease;
}

.rd-sc .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.2);
}

.rd-sc--dots-line .swiper-pagination-bullet {
	width: 24px;
	border-radius: 4px;
}

.rd-sc .swiper-scrollbar {
	position: relative;
	margin-top: 16px;
	height: 4px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 4px;
}

.rd-sc .swiper-scrollbar-drag {
	background: #111;
	border-radius: 4px;
}

.rd-sc__empty {
	text-align: center;
	padding: 48px 24px;
	color: #888;
	background: #f8f9fa;
	border-radius: var(--rd-sc-card-radius);
}

@media (prefers-reduced-motion: reduce) {
	.rd-sc__card,
	.rd-sc__img,
	.rd-sc__filter,
	.rd-sc .swiper-button-next,
	.rd-sc .swiper-button-prev {
		transition: none;
	}
}

@media (max-width: 767px) {
	.rd-sc__filters {
		margin-bottom: 20px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.rd-sc__filter {
		flex-shrink: 0;
	}
}
