/**
 * Section: Các vị trí khác — Chi tiết tuyển dụng
 * Nguồn số đo: Figma node 1760:16093 (Container 1600×524).
 * Carousel Swiper 2 card/row (spaceBetween 1.5rem, KHÔNG gap). Cần Swiper base CSS (dep "swiper") do page enqueue.
 */

.section-related {
	overflow: hidden;
	width: 100%;
	padding: var(--spacing-r-40, 2.5rem) 6.25rem var(--spacing-r-96, 6rem) 6.25rem;
	background-color: var(--color-r-semantic-background-x-m-xanh, #f4f5f6);
	font-family: "Nunito Sans", sans-serif;
}

/* Đầu section: tiêu đề trái + điều hướng phải ------------------------------ */
.section-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.section-related__title {
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 3.125rem;
	letter-spacing: -0.0938rem;
	color: #003253;
}

.section-related__nav {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 1rem;
}

.section-related__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 0.25rem;
	background-color: #ffffff;
	box-shadow: 0 0.25rem 1.25rem 0 rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.section-related__arrow + .section-related__arrow {
	margin-left: 0.75rem;
}

.section-related__arrow img {
	display: block;
	width: 1.375rem;
	height: auto;
	transition: filter 0.25s ease;
}

.section-related__arrow--next img {
	transform: rotate(180deg);
}

.section-related__arrow:hover,
.section-related__arrow:focus-visible {
	background-color: var(--color-r-brand-500, #079de2);
	outline: none;
}

.section-related__arrow:hover img,
.section-related__arrow:focus-visible img {
	filter: brightness(0) invert(1);
}

.section-related__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

.section-related__arrow.swiper-button-disabled:hover {
	background-color: #ffffff;
}

.section-related__arrow.swiper-button-disabled:hover img {
	filter: none;
}

/* Carousel ---------------------------------------------------------------- */
.section-related__carousel {
	width: 100%;
	margin-top: var(--spacing-r-40, 2.5rem);
	overflow: hidden;
}

.section-related__slide {
	display: flex;    
	height: auto;
}

/* Card fill chiều cao slide để các thẻ cao bằng nhau. */
.section-related__slide > .card-tuyen-dung {
	width: 100%;
	border-radius: 0rem;
}

/* Pagination bars (bar active brand rộng hơn, bar thường xám) -------------- */
.section-related__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
}

.section-related__bullet {
	width: 2.5rem;
	height: 0.1875rem;
	padding: 0;
	border: 0;
	background-color: var(--color-r-foundation-gray-100, #d5d5d5);
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.section-related__bullet + .section-related__bullet {
	margin-left: 0.3125rem;
}

.section-related__bullet--active {
	width: 4.375rem;
	background-color: var(--color-r-brand-500, #079de2);
}

/* Mobile — frame 1856:15811 (375×365) ------------------------------------- */
@media screen and (max-width: 639.98px) {
	/* padding [2.5, 0.75, 2.5, 0.75]rem: ngang = token Grid/Margin MB. */
	.section-related {
		background: #fff;
		padding: var(--spacing-r-40, 2.5rem) var(--spacing-r-12, 0.75rem);
		padding-right: 0;
	}
	.section-related__nav {
		display: none;
	}
	.section-related__slide {
	width: 18.75rem !important;
	height: 14.31rem ;
	}

	/* Node 1856:15812 "Info": 1.75rem/800/2.25rem, letter-spacing -0.0625rem. */
	.section-related__title {
		font-size: 1.75rem;
		line-height: 2.25rem;
		letter-spacing: -0.0625rem;
	}

	/* itemSpacing tiêu đề → carousel = 1.25rem từ layout cache. */
	.section-related__carousel {
		margin-top: 1.25rem;
	}

	/* Pagination/nav không nằm trong frame mobile (giữ hành vi desktop). */
	.section-related__pagination {
		margin-top: 1.5rem;
		display: none;
	}
}
