/* ============================================================
   JOIN US COMPONENT STYLES
   ============================================================ */

.rs-join-us-area {
	background-color: #f8f9fa;
	padding: 95px 0;
}

.rs-join-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
}

.rs-join-title-wrap {
	max-width: 70%;
}

.rs-join-title {
	font-size: 32px;
	font-weight: 700;
	color: #1e1e1e;
	text-transform: uppercase;
	margin-bottom: 12px;
	letter-spacing: 0.5px;
}

.rs-join-desc {
	font-size: 16px;
	color: #666666;
	line-height: 1.6;
	margin: 0;
}

.rs-join-btn-wrap {
	flex-shrink: 0;
}

.rs-join-more-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid #1e1e1e;
	border-radius: 4px;
	color: #1e1e1e !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.rs-join-more-btn:hover {
	background-color: #1e1e1e;
	color: #ffffff !important;
}

.rs-join-cards-container {
	display: flex;
	gap: 20px;
	width: 100%;
}

.rs-join-card {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0%;
	height: 520px;
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: flex-grow 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
	will-change: flex-grow, transform;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.rs-join-card.active {
	flex-grow: 2.3;
}

.rs-join-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 60%,
		rgba(0, 0, 0, 0.85) 100%
	);
	transition: background 0.4s ease;
}

.rs-join-card:hover .rs-join-card-overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 50%,
		rgba(0, 0, 0, 0.9) 100%
	);
}

.rs-join-card-content {
	position: absolute;
	bottom: 30px;
	left: 15px;
	right: 15px;
	z-index: 2;
	color: #ffffff;
	transition:
		left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
		right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-join-card.active .rs-join-card-content {
	left: 30px;
	right: 30px;
}

.rs-join-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	transition: font-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-join-card.active .rs-join-card-title {
	font-size: 19px;
}

.rs-join-card-arrow {
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	display: inline-flex;
	align-items: center;
}

.rs-join-card.active .rs-join-card-arrow {
	opacity: 1;
	transform: translateX(0);
}

.rs-join-card-underline {
	height: 2px;
	background: linear-gradient(90deg, #1e6091 0%, #ffb703 100%);
	width: 0;
	margin-top: 8px;
	transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-join-card.active .rs-join-card-underline {
	width: 120px;
}

@media (max-width: 991px) {
	.rs-join-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.rs-join-title-wrap {
		max-width: 100%;
	}
	.rs-join-cards-container {
		flex-direction: column;
		height: auto;
		gap: 20px;
	}
	/* Join us cards stay expanded in mobile UI */
	.rs-join-card,
	.rs-join-card.active {
		height: 240px;
		flex: none !important;
		width: 100%;
	}
	.rs-join-card-overlay {
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.15) 30%,
			rgba(0, 0, 0, 0.85) 100%
		);
	}
	.rs-join-card-content,
	.rs-join-card.active .rs-join-card-content {
		bottom: 25px;
		left: 25px;
		right: 25px;
	}
	.rs-join-card-title,
	.rs-join-card.active .rs-join-card-title {
		font-size: 19px;
		white-space: normal;
	}
	.rs-join-card-arrow,
	.rs-join-card.active .rs-join-card-arrow {
		opacity: 1;
		transform: translateX(0);
	}
	.rs-join-card-underline,
	.rs-join-card.active .rs-join-card-underline {
		width: 120px;
	}
}

@media (max-width: 575px) {
	.rs-join-card,
	.rs-join-card.active {
		height: 210px;
	}
	.rs-join-card-content,
	.rs-join-card.active .rs-join-card-content {
		bottom: 20px;
		left: 20px;
		right: 20px;
	}
	.rs-join-card-title,
	.rs-join-card.active .rs-join-card-title {
		font-size: 17px;
	}
	.rs-join-card-underline,
	.rs-join-card.active .rs-join-card-underline {
		width: 100px;
	}
}
