/* 5thAXIS — Related Resources */

.axis5th-rr {
	--axis5th-rr-accent: #c4191f;
	--axis5th-rr-featured-bg: #000000;
}

.axis5th-rr-header {
	margin-bottom: 2rem;
}

.axis5th-rr-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9a9a9a;
	margin: 0 0 0.5rem;
}

.axis5th-rr-heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: #000000;
	margin: 0;
}

.axis5th-rr-swiper-wrap {
	position: relative;
}

.axis5th-rr-swiper {
	overflow: hidden;
}

/* Cards */
.axis5th-rr-card {
	display: flex;
	flex-direction: column;
	height: 440px;
	text-decoration: none;
	border: 1px solid #e5e5e5;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.axis5th-rr-card:hover {
	border-color: var(--axis5th-rr-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.axis5th-rr-card__image {
	flex: 1 1 auto;
	min-height: 0;
	background: #f0f0f0;
	overflow: hidden;
}

.axis5th-rr-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.axis5th-rr-card:hover .axis5th-rr-card__image img {
	transform: scale(1.04);
}

.axis5th-rr-card__body {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
}

.axis5th-rr-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #18181b;
	line-height: 1.35;
	margin: 0;
	height: 47px;
}

.axis5th-rr-card__desc {
	display: none;
}

.axis5th-rr-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
}

.axis5th-rr-card__badge {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9a9a9a;
}

.axis5th-rr-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--axis5th-rr-accent);
	border: 1px solid var(--axis5th-rr-accent);
	padding: 0.5rem 0.9rem;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.axis5th-rr-card:hover .axis5th-rr-card__btn {
	background: var(--axis5th-rr-accent);
	color: #ffffff;
}


/* Featured card */
.axis5th-rr-card__body .axis5th-rr-card__footer{
	opacity: 0;
}

.swiper-slide-active .axis5th-rr-card__body{
	background: var(--axis5th-rr-featured-bg);
	border-color: var(--axis5th-rr-featured-bg);
}
.swiper-slide-active .axis5th-rr-card__body .axis5th-rr-card__footer{
	opacity: 1;
}
.axis5th-rr-card:hover .axis5th-rr-card__body .axis5th-rr-card__footer{
	opacity: 1 !important;
}
.axis5th-rr-swiper-wrap .swiper-slide-active{
	width: 600px !important;
}

.swiper-slide-active .axis5th-rr-card__image {
	flex: 1 1 auto;
}

.swiper-slide-active .axis5th-rr-card__title {
	color: #ffffff;
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	height: auto;
}

.swiper-slide-active .axis5th-rr-card__desc {
	display: block;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #9a9a9a;
	margin: 0;
}

.swiper-slide-active .axis5th-rr-card__footer {
	padding-top: 1.5rem;
}

.swiper-slide-active .axis5th-rr-card__badge {
	color: #6c6c6c;
}

.swiper-slide-active .axis5th-rr-card__btn {
	color: #000000;
	background: #ffffff;
	border-color: #ffffff;
}

.swiper-slide-active:hover .axis5th-rr-card__btn {
	background: var(--axis5th-rr-accent);
	color: #ffffff;
	border-color: var(--axis5th-rr-accent);
}

/* Nav */
.axis5th-rr-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.axis5th-rr-nav__btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid #d9d9d9;
	color: #4a4a4a;
	font-size: 1.1rem;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.axis5th-rr-nav__btn:hover {
    background: #DD2828;
    border-color: #DD2828;
    color: #ffffff;
}

.axis5th-rr-nav__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}
@media (max-width: 767px) {
.axis5th-rr-swiper-wrap .swiper-slide-active{
	width: fit-content !important;
}
}
@media (max-width: 640px) {
	.axis5th-rr-card {
		height: 380px;
	}
}
