/* ==========================================================================
   Jobs archive (post-type-archive-jobs) – MOBILE per Figma "mobile Career lobby" (375px)
   Enqueued in functions.php on the jobs archive only (handle: jobs-archive),
   after responsive.css / added-style.css / jobs-cta-banner.css.
   Everything is scoped to body.post-type-archive-jobs so the shared
   components (top banner, networking communities, testimonials) are not
   affected on other pages.
   767px = the theme's mobile breakpoint (responsive.css).
   ========================================================================== */

/* Dots of the testimonials slider are mobile-only */
.post-type-archive-jobs .block-tells-about-us-2-swiper .swiper-pagination {
	display: none;
}

@media all and (max-width: 767px) {

	/* ---------- Hero – 345×440, radius 10, title top-right ---------- */
	.post-type-archive-jobs .content-main-title-wrap {
		position: relative;
		padding: 0 15px;
	}

	.post-type-archive-jobs .content-main-title-wrap2 {
		min-height: 440px;
		padding: 62px 0 30px;
		border-radius: 0 0 10px 10px; /* square top – flush with the header */
		text-align: right;
	}

	.post-type-archive-jobs .content-main-title-wrap2 .container1640 {
		padding: 0 30px;
	}

	/* mobile_title 700 30/39 */
	.post-type-archive-jobs .content-main-title {
		max-width: 235px;
		margin: 0 0 10px;
		font-weight: 700;
		font-size: 30px;
		line-height: 39px;
	}

	.post-type-archive-jobs .content-main-title-wrap2 .container1640 p {
		margin: 0;
		font-size: 18px;
		line-height: 24px;
	}

	/* Figma "Rectangle 717": navy wash on the right side only */
	.post-type-archive-jobs .content-main-img-wrap::after {
		background: linear-gradient(270deg, rgba(20, 10, 97, .5) 0, rgba(20, 10, 97, 0) 140px);
		opacity: .8;
		filter: none;
	}

	/* Figma "purple": stamp hanging under the hero – images/jobs-stamp.svg (170×85) */
	.post-type-archive-jobs .content-main-title-wrap::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 50%;
		z-index: 5;
		width: 170px;
		height: 85px;
		background: url("../../images/jobs-stamp.svg") center top / 170px 85px no-repeat;
		transform: translateX(-50%);
		pointer-events: none;
	}

	/* ---------- Not in the mobile design ---------- */
	.post-type-archive-jobs #breadcrumbs,
	.post-type-archive-jobs .jobs-table-section .floating-socials {
		display: none;
	}

	.post-type-archive-jobs .jobs-table-section {
		padding-bottom: 0;
	}

	/* ---------- "קריירה ותעסוקה" – networking communities ---------- */
	.post-type-archive-jobs .networking-communities-section {
		margin-top: 0;
		padding: 115px 0 0; /* 85px purple shape + 30px */
	}

	/* The section sits inside the page's container1640 – drop the 2nd 15px padding */
	.post-type-archive-jobs .networking-communities-section .container1640 {
		padding: 0;
	}

	.post-type-archive-jobs .networking-communities-title {
		margin: 0 0 15px;
		padding: 0 22px;
		font-size: 30px;
		line-height: 39px;
		text-align: right;
		color: #000072;
	}

	/* mobile sub 400 20/26 */
	.post-type-archive-jobs .networking-communities-text {
		padding: 0 22px;
		font-size: 20px;
		line-height: 26px;
		text-align: right;
		color: #000072;
	}

	.post-type-archive-jobs .networking-communities-text p:last-child {
		margin-bottom: 0;
	}

	.post-type-archive-jobs .networking-communities-list {
		gap: 30px;
		margin: 40px 0 0;
	}

	.post-type-archive-jobs .networking-communities-item {
		width: 100%;
		border: 1px solid rgba(24, 48, 255, .2);
		border-radius: 10px;
	}

	/* Picture 305×200 – 30px from the top, 20px from the sides */
	.post-type-archive-jobs .networking-communities-item-media {
		aspect-ratio: 305 / 200;
		margin: 30px 20px 0;
		padding: 0;
		border-radius: 10px;
	}

	/* Gallery arrows – 30px white circles inside the picture */
	.post-type-archive-jobs .networking-communities-item-media .arrow-in-circle {
		width: 30px;
		height: 30px;
		margin-top: -15px;
		border: 0;
		background: #fff;
	}

	.post-type-archive-jobs .networking-communities-item-media .arrow-in-circle::after {
		width: 8px;
		height: 8px;
		border-bottom-color: #000072;
		border-right-color: #000072;
	}

	.post-type-archive-jobs .networking-communities-item-media .arrow-in-circle.next {
		left: 7px;
	}

	.post-type-archive-jobs .networking-communities-item-media .arrow-in-circle.prev {
		right: 7px;
	}

	/* Text – 20px under the picture, 30px from the card edges */
	.post-type-archive-jobs .networking-communities-item-body {
		padding: 20px 30px 22px;
	}

	.post-type-archive-jobs .networking-communities-item-body:has(.meta-badge) {
		padding-top: 64px;
	}

	.post-type-archive-jobs .networking-communities-item-body .meta-badge {
		top: 20px;
	}

	.post-type-archive-jobs .networking-communities-item-icon {
		margin-bottom: 12px;
	}

	/* mobile_small_title 600 22/26 */
	.post-type-archive-jobs .networking-communities-item-title {
		margin: 0 0 15px;
		font-weight: 600;
		font-size: 22px;
		line-height: 26px;
		color: #000072;
	}

	/* mobile_text 400 18/24, 80% */
	.post-type-archive-jobs .networking-communities-item-text {
		margin: 0 0 15px;
		font-size: 18px;
		line-height: 24px;
	}

	.post-type-archive-jobs .networking-communities-item-text:last-child {
		margin-bottom: 0;
	}

	/* CTA: text + 40px orange circle, 10px apart */
	.post-type-archive-jobs .networking-communities-item-link {
		padding-right: 50px;
	}

	/* ---------- "משרות חמות" ---------- */
	.post-type-archive-jobs .jobs-title-row .jobs-title {
		margin: 50px 0 20px;
		padding: 0 22px;
		font-size: 30px;
		line-height: 39px;
	}

	.post-type-archive-jobs .jobs-table-section-inner .jobs-top-form-wrap {
		margin-bottom: 20px;
	}

	/* Navy bar with the sort combo on the right */
	.post-type-archive-jobs .jobs-thead {
		height: 60px;
		line-height: 60px;
		margin: 0 0 20px;
		padding: 0 10px;
		border-radius: 0;
	}

	.post-type-archive-jobs .jobs-orderby-combo-wrap {
		margin: 0;
	}

	.post-type-archive-jobs .jobs-th .select2-container--default .select2-selection--single {
		justify-content: flex-start;
	}

	.post-type-archive-jobs .jobs-th .select2-container--default .select2-selection--single .select2-selection__rendered {
		font-size: 18px;
		font-weight: 400;
		line-height: 60px;
	}

	.post-type-archive-jobs .jobs-thead .select2-container--default .select2-selection--single .select2-selection__arrow {
		width: 24px;
		margin-right: 6px;
	}

	/* Job card – #F3F5FF / 50%, radius 10, 20px apart */
	.post-type-archive-jobs .jobs-tbody-row {
		margin: 0 0 20px;
		border-radius: 10px;
		background: #F3F5FF;
	}

	.post-type-archive-jobs .jobs-tbody-row:nth-child(even) {
		background: rgba(243, 245, 255, .5);
	}

	/* Text column: 51px from the left (chevron), 20px from the right */
	.post-type-archive-jobs .jobs-tbody-tr {
		min-height: 0;
		padding: 30px 20px 0 51px;
		border-radius: 10px;
		font-size: 18px;
		line-height: 24px;
	}

	/* Hot job: 32px icon in the top-right corner, text moves 54px in */
	.post-type-archive-jobs .jobs-tbody-tr:has(.row-title.hot-job) {
		padding-right: 54px;
	}

	.post-type-archive-jobs .row-title {
		font-weight: 700;
	}

	.post-type-archive-jobs .row-title.hot-job {
		position: static;
		padding-right: 0;
		font-size: 18px;
	}

	.post-type-archive-jobs .row-title.hot-job::after {
		width: 32px;
		height: 32px;
		top: 30px;
		right: 10px;
		transform: none;
	}

	/* Company (first line) – same 5px rhythm as the other lines */
	.post-type-archive-jobs .jobs-tbody-tr .only-mobile {
		padding: 0 0 5px;
	}

	/* Chevron – 24px box at left 20 / top 30 */
	.post-type-archive-jobs .jobs-tbody-tr::before {
		width: 9px;
		height: 9px;
		left: 27px;
		top: 35px;
		border-bottom-color: #000072;
		border-right-color: #000072;
	}

	.post-type-archive-jobs .jobs-tbody-row.active .jobs-tbody-tr::before {
		top: 41px;
	}

	/* No apply button – keep the bottom padding of the card */
	.post-type-archive-jobs .jobs-tbody-row:not(:has(.apply-for-job-btn-in-content)) .jobs-tbody-tr {
		padding-bottom: 25px;
	}

	.post-type-archive-jobs .jobs-td-content {
		padding-right: 20px;
		padding-left: 20px;
	}

	/* Apply – 150×45 blue pill, bottom-left, 20px from the edges */
	.post-type-archive-jobs .apply-for-job-btn-in-content {
		position: static;
		float: left;
		width: auto;
		min-width: 150px;
		max-width: calc(100% - 40px);
		min-height: 45px;
		margin: 5px 0 20px 20px;
		padding: 0 16px;
		font-weight: 600;
		font-size: 18px;
		line-height: 24px;
	}

	/* "עוד" – 300×45 filled blue pill */
	.post-type-archive-jobs .js-load-more-jobs {
		width: 300px;
		max-width: 100%;
		height: 45px;
		margin: 40px 0 0;
		border-color: #337DFF;
		border-radius: 1000px;
		background: #337DFF;
		color: #fff;
		font-weight: 600;
		line-height: 43px;
	}

	.post-type-archive-jobs button.js-load-more-jobs:hover,
	.post-type-archive-jobs button.js-load-more-jobs:focus-visible {
		border-color: #1830FF;
		background: #1830FF;
		color: #fff;
	}

	/* ---------- "מהלימודים לקריירה" – testimonials slider ---------- */
	.post-type-archive-jobs .block-tells-about-us-2-section {
		margin: 0 -15px;
		padding: 41px 0 49px;
		background: #F3F5FF;
	}

	.post-type-archive-jobs .block-tells-about-us-2-section .container1640 {
		padding: 0;
	}

	.post-type-archive-jobs .block-tells-about-us-2-title {
		margin: 0 0 13px;
		padding: 0 15px;
		font-size: 30px;
		line-height: 39px;
		color: #337DFF;
	}

	/* mobile sub 400 20/26 */
	.post-type-archive-jobs .block-tells-about-us-2-description {
		max-width: 296px;
		margin: 0 auto 25px;
		font-size: 20px;
		line-height: 26px;
		color: #000072;
	}

	/* 270px card centered, neighbours peeking, 15px apart */
	.post-type-archive-jobs .block-tells-about-us-2-swiper {
		padding: 0;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper.is-mobile-peek .swiper-slide {
		width: 270px;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item {
		min-height: 290px;
		padding: 20px;
		border: 1px solid rgba(24, 48, 255, .2);
		border-radius: 10px;
		box-shadow: none;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-img-wrap {
		aspect-ratio: 230 / 145;
		margin: 0 0 22px;
		border-radius: 10px;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-img-wrap::before {
		background-color: #000072;
		opacity: .4;
	}

	/* Play – 40px white circle (80%) with a blue triangle */
	.post-type-archive-jobs .block-tells-about-us-2-item-img-wrap.video-wrap::after {
		width: 40px;
		height: 40px;
		margin: -20px 0 0 -20px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23fff' fill-opacity='.8'/%3E%3Cpath d='M16 13.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72l-10.4-6.5A1 1 0 0 0 16 13.5z' fill='%23337DFF'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-name,
	.post-type-archive-jobs .block-tells-about-us-2-item-role,
	.post-type-archive-jobs .block-tells-about-us-2-item-company {
		margin: 0;
		font-size: 18px;
		line-height: 24px;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-name {
		font-weight: 700;
		color: #000072;
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-role {
		font-weight: 400;
		color: rgba(0, 0, 114, .8);
	}

	.post-type-archive-jobs .block-tells-about-us-2-item-company {
		font-weight: 700;
		color: rgba(0, 0, 114, .8);
	}

	/* Arrows + dots row – 270px, centered, 35px under the cards */
	.post-type-archive-jobs .block-tells-about-us-2-swiper .hp-gallery-arrows-wrap {
		width: 270px;
		max-width: calc(100% - 30px);
		margin: 35px auto 0;
		align-items: center;
		gap: 10px;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .hp-gallery-arrows-wrap .prev,
	.post-type-archive-jobs .block-tells-about-us-2-swiper .hp-gallery-arrows-wrap .next {
		flex: none;
		width: 39px;
		height: 39px;
		margin-top: 0; /* style.css gives .flexible-content-row arrows 25px */
		border: 1px solid #fff;
		background: #000072;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .hp-gallery-arrows-wrap .swiper-button-disabled {
		opacity: .35;
		cursor: default;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .swiper-pagination {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 6px 10px;
		width: auto;
		transform: none;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .swiper-pagination-bullet {
		width: 12px;
		height: 12px;
		margin: 0 !important; /* beats Swiper's --swiper-pagination-bullet-horizontal-gap */
		padding: 0;
		border: 1px solid rgba(24, 48, 255, .2);
		background: #fff;
		opacity: 1;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .swiper-pagination-bullet-active {
		background: #000072;
	}

	.post-type-archive-jobs .block-tells-about-us-2-swiper .swiper-pagination-bullet:focus-visible {
		outline: 2px solid #337DFF;
		outline-offset: 2px;
	}
}

/* ==========================================================================
   Tablet + desktop (768px+) – Figma "Career lobby": purple triangle stamp
   hanging from the bottom edge of the hero, horizontally centred.
   Same asset as mobile (images/jobs-stamp.svg). The hero wrap gets a bottom
   margin equal to the stamp height, so the breadcrumbs (and the
   "קריירה ותעסוקה" section below them) start under the stamp instead of
   colliding with it. Size is set with variables – change them in one place.
   ========================================================================== */
@media all and (min-width: 768px) {

	.post-type-archive-jobs .content-main-title-wrap {
		--jobs-stamp-w: 170px;
		--jobs-stamp-h: 85px;
		--jobs-stamp-gap: 20px; /* space between the stamp tip and the breadcrumbs */
		position: relative;
		/* stamp height + gap (the breadcrumbs' own 20px top margin collapses into this) */
		margin-bottom: calc(var(--jobs-stamp-h) + var(--jobs-stamp-gap));
	}

	.post-type-archive-jobs .content-main-title-wrap::after {
		content: "";
		position: absolute;
		top: 100%; /* flush with the hero's bottom edge */
		left: 50%;
		z-index: 5;
		width: var(--jobs-stamp-w);
		height: var(--jobs-stamp-h);
		background: url("../../images/jobs-stamp.svg") center top / 100% 100% no-repeat;
		transform: translateX(-50%);
		pointer-events: none;
	}
}
