/* 3Sixty Job Manager – Jobs Showcase layouts (works inside any page builder)
   Every option is a CSS variable or a modifier class set by the shortcode, so skins can be overridden by a theme. */
.tsjm-sc {
	--a: var(--tsjm-accent, #0b6e4f); --cols: 3;
	--card-bg: var(--tsjm-card-bg, #fff); --card-r: var(--tsjm-card-radius, 6px);
	--t-color: var(--tsjm-title-color, #1f2933); --t-size: var(--tsjm-title-size, 18px);
	--x-color: var(--tsjm-text-color, #52606d); --m-color: #6b7785;
	--tag: var(--tsjm-tag-color, var(--a)); --btn-bg: var(--tsjm-btn-bg, var(--a)); --btn-fg: var(--tsjm-btn-fg, #fff);
	color: #1f2933; line-height: 1.55; font-family: inherit; width: 100%; background: var(--tsjm-sec-bg, transparent); padding: var(--tsjm-sec-pad, 0); border-radius: var(--card-r);
}
.tsjm-sc *, .tsjm-sc *::before, .tsjm-sc *::after { box-sizing: border-box; }
.tsjm-sc a { text-decoration: none; box-shadow: none; }
.tsjm-sc img { max-width: 100%; height: auto; }
.tsjm-cols-1 { --cols: 1; } .tsjm-cols-2 { --cols: 2; } .tsjm-cols-3 { --cols: 3; } .tsjm-cols-4 { --cols: 4; }
.tsjm-sc__empty { text-align: center; padding: 28px; color: #6b7785; background: #f7f9fa; border-radius: 8px; margin: 0; }
.tsjm-sc__more { text-align: center; margin: 26px 0 0; }

/* ---------- Skins (set variables; explicit shortcode colours still win) ---------- */
.tsjm-skin-shadow { --sk-shadow: 0 10px 28px rgba(16, 24, 40, .1); }
.tsjm-skin-bordered { --sk-border: 1px solid #dfe4ea; }
.tsjm-skin-minimal { --card-bg: transparent; --card-r: 0; }
.tsjm-skin-dark { --card-bg: #111827; --t-color: #fff; --x-color: #cbd5e1; --m-color: #94a3b8; --sk-border: 1px solid #1f2937; }
.tsjm-skin-accent { --card-bg: var(--a); --t-color: #fff; --x-color: rgba(255, 255, 255, .88); --m-color: rgba(255, 255, 255, .78); --tag: #fff; --btn-bg: #fff; --btn-fg: var(--a); }

/* ---------- Section heading ---------- */
.tsjm-sc__head { margin: 0 0 22px; } .tsjm-sc__head h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; } .tsjm-sc__head p { margin: 0; color: #6b7785; font-size: 16px; }
.tsjm-sc__head--center { text-align: center; } .tsjm-sc__head--right { text-align: right; }

/* ---------- Buttons & meta ---------- */
.tsjm-sc .tsjm-jbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--btn-bg); padding: 0; border: 0; background: none; transition: gap .15s, filter .15s, background .15s, color .15s; cursor: pointer; }
.tsjm-skin-accent .tsjm-jcard .tsjm-jbtn { color: #fff; }
.tsjm-sc .tsjm-jbtn:hover { gap: 12px; }
.tsjm-sc .tsjm-jbtn--solid, .tsjm-sc .tsjm-jbtn--hero { background: var(--btn-bg); color: var(--btn-fg); padding: 10px 22px; border-radius: 4px; }
.tsjm-sc .tsjm-jbtn--solid:hover, .tsjm-sc .tsjm-jbtn--hero:hover { gap: 8px; filter: brightness(1.1); color: var(--btn-fg); }
.tsjm-bt-solid .tsjm-jcard .tsjm-jbtn { background: var(--btn-bg); color: var(--btn-fg); padding: 9px 18px; border-radius: 4px; }
.tsjm-bt-outline .tsjm-jcard .tsjm-jbtn { border: 2px solid var(--btn-bg); color: var(--btn-bg); padding: 7px 16px; border-radius: 4px; }
.tsjm-bt-outline .tsjm-jcard .tsjm-jbtn:hover { background: var(--btn-bg); color: var(--btn-fg); gap: 8px; }
.tsjm-bt-pill .tsjm-jcard .tsjm-jbtn { background: var(--btn-bg); color: var(--btn-fg); padding: 9px 20px; border-radius: 999px; }
.tsjm-sc .tsjm-jmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--m-color); margin: 8px 0 0; }
.tsjm-sc .tsjm-jmeta span { display: inline-flex; align-items: center; gap: 6px; }
.tsjm-sc .tsjm-jmeta svg { flex: none; opacity: .8; }
.tsjm-star { color: #f5a524; font-style: normal; }

/* ---------- Pictures ---------- */
.tsjm-sc .tsjm-pic { display: block; width: 100%; overflow: hidden; aspect-ratio: var(--tsjm-ratio, 16 / 10); background: #eef1f4; position: relative; }
.tsjm-sc .tsjm-pic > img:not(.tsjm-pic__logo) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tsjm-sc .tsjm-pic--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 50%, #000)); }
.tsjm-sc .tsjm-pic--ph b { font-size: 54px; color: rgba(255, 255, 255, .92); font-weight: 700; line-height: 1; }
.tsjm-sc .tsjm-pic--ph .tsjm-pic__logo { max-width: 55%; max-height: 55%; object-fit: contain; background: #fff; padding: 12px; border-radius: 10px; }
.tsjm-sc .tsjm-pic--logo { display: flex; align-items: center; justify-content: center; background: #f7f9fa; }
.tsjm-sc .tsjm-pic--logo img { width: auto; max-width: 62%; max-height: 62%; object-fit: contain; }
.tsjm-sc .tsjm-pic--logo b { font-size: 54px; color: var(--a); font-weight: 700; }

/* ---------- Cards ---------- */
.tsjm-jgrid { display: grid; gap: var(--tsjm-gap, 24px); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: start; }
.tsjm-sc--hero-grid .tsjm-jgrid { margin-top: var(--tsjm-gap, 24px); }
.tsjm-sc .tsjm-jcard { display: flex; flex-direction: column; background: var(--card-bg); color: var(--x-color); border-radius: var(--card-r); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; height: 100%; border: var(--sk-border, 0); box-shadow: var(--sk-shadow, none); position: relative; }
.tsjm-sc .tsjm-jcard__media { display: block; position: relative; }
.tsjm-sc .tsjm-jcard__body { padding: 16px 4px 18px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.tsjm-skin-default .tsjm-jcard__body, .tsjm-skin-minimal .tsjm-jcard__body { padding-left: 2px; padding-right: 2px; }
.tsjm-skin-shadow .tsjm-jcard__body, .tsjm-skin-bordered .tsjm-jcard__body, .tsjm-skin-dark .tsjm-jcard__body, .tsjm-skin-accent .tsjm-jcard__body, .tsjm-bd-thin .tsjm-jcard__body, .tsjm-bd-thick .tsjm-jcard__body, .tsjm-sh-soft .tsjm-jcard__body, .tsjm-sh-strong .tsjm-jcard__body { padding: 16px 18px 18px; }
.tsjm-sc .tsjm-jcard__title { margin: 0 0 4px; font-size: var(--t-size); line-height: 1.3; font-weight: 600; }
.tsjm-sc .tsjm-jcard__title a { color: var(--t-color); }
.tsjm-sc .tsjm-jcard__title a:hover { color: var(--a); }
.tsjm-skin-dark .tsjm-jcard__title a:hover, .tsjm-skin-accent .tsjm-jcard__title a:hover { color: #fff; opacity: .85; }
.tsjm-sc .tsjm-jcard__tag { display: inline-block; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--tag); margin: 0 0 8px; }
.tsjm-sc .tsjm-jcard__excerpt { margin: 0; font-size: 14px; color: var(--x-color); }
.tsjm-sc .tsjm-jcard .tsjm-jbtn { margin-top: 14px; }
.tsjm-sc .tsjm-jcard__body > .tsjm-jbtn:last-child { margin-top: auto; }
.tsjm-sc .tsjm-jcard__body > .tsjm-jbtn:last-child { margin-top: 14px; }

/* Border / shadow options */
.tsjm-bd-thin .tsjm-jcard { border: 1px solid #e0e5ea; } .tsjm-bd-thick .tsjm-jcard { border: 2px solid var(--a); }
.tsjm-sh-soft .tsjm-jcard { box-shadow: 0 8px 24px rgba(16, 24, 40, .1); } .tsjm-sh-strong .tsjm-jcard { box-shadow: 0 18px 44px rgba(16, 24, 40, .24); }

/* Hover effects */
.tsjm-hv-lift .tsjm-jcard:hover, .tsjm-hv-both .tsjm-jcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 24, 40, .16); }
.tsjm-hv-zoom .tsjm-jcard:hover .tsjm-pic > img:not(.tsjm-pic__logo), .tsjm-hv-both .tsjm-jcard:hover .tsjm-pic > img:not(.tsjm-pic__logo) { transform: scale(1.06); }

/* Alignment */
.tsjm-al-center .tsjm-jcard__body { align-items: center; text-align: center; } .tsjm-al-center .tsjm-jmeta { justify-content: center; }

/* Category label styles */
.tsjm-tg-pill .tsjm-jcard__tag { background: color-mix(in srgb, var(--tag) 14%, transparent); padding: 3px 11px; border-radius: 999px; }
.tsjm-sc .tsjm-jcard__badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--tag); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.tsjm-skin-accent.tsjm-tg-badge .tsjm-jcard__badge { color: var(--a); background: #fff; }
.tsjm-sc .tsjm-jcard.is-featured .tsjm-jcard__media::before { content: "★"; position: absolute; right: 10px; top: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: #f5a524; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Card layout: text over image */
.tsjm-cs-overlay .tsjm-jcard { color: #fff; background: #101828; min-height: 260px; aspect-ratio: var(--tsjm-ratio, 16 / 10); }
.tsjm-cs-overlay .tsjm-jcard__media { position: absolute; inset: 0; } .tsjm-cs-overlay .tsjm-pic { height: 100%; aspect-ratio: auto; }
.tsjm-cs-overlay .tsjm-jcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 30, .05) 25%, rgba(10, 16, 30, .82)); pointer-events: none; }
.tsjm-cs-overlay .tsjm-jcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.tsjm-cs-overlay .tsjm-jcard__title a, .tsjm-cs-overlay .tsjm-jcard__excerpt, .tsjm-cs-overlay .tsjm-jmeta { color: #fff; }
.tsjm-cs-overlay .tsjm-jcard__tag { color: #fff; } .tsjm-cs-overlay .tsjm-jcard .tsjm-jbtn { color: #fff; }
.tsjm-cs-overlay .tsjm-jcard__excerpt { opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tsjm-cs-overlay .tsjm-jcard__badge { z-index: 3; }
/* Card layout: image beside text */
.tsjm-cs-horizontal .tsjm-jcard { flex-direction: row; align-items: stretch; }
.tsjm-cs-horizontal .tsjm-jcard__media { flex: 0 0 42%; } .tsjm-cs-horizontal .tsjm-pic { height: 100%; min-height: 150px; aspect-ratio: auto; }
.tsjm-cs-horizontal .tsjm-jcard__body { padding: 16px 18px; justify-content: center; }

/* Masonry */
.tsjm-sc--masonry .tsjm-jgrid { display: block; column-count: var(--cols); column-gap: var(--tsjm-gap, 24px); }
.tsjm-sc--masonry .tsjm-jcard { break-inside: avoid; margin-bottom: var(--tsjm-gap, 24px); height: auto; }
.tsjm-sc--masonry .tsjm-jcard:nth-child(3n+1) .tsjm-pic { aspect-ratio: 4 / 3; }
.tsjm-sc--masonry .tsjm-jcard:nth-child(3n+2) .tsjm-pic { aspect-ratio: 1 / 1; }
.tsjm-sc--masonry .tsjm-jcard:nth-child(3n) .tsjm-pic { aspect-ratio: 3 / 4; }

/* Horizontal list */
.tsjm-sc--list .tsjm-jgrid { grid-template-columns: 1fr; }
.tsjm-sc--list .tsjm-jcard { flex-direction: row; gap: 22px; align-items: stretch; border: var(--sk-border, 1px solid #e4e7eb); }
.tsjm-sc--list .tsjm-jcard__media { flex: 0 0 min(280px, 34%); }
.tsjm-sc--list .tsjm-jcard__media .tsjm-pic { height: 100%; min-height: 160px; aspect-ratio: auto; }
.tsjm-sc--list .tsjm-jcard__body { padding: 18px 22px 18px 0; justify-content: center; }
.tsjm-sc--list .tsjm-jcard:not(:has(.tsjm-jcard__media)) .tsjm-jcard__body { padding-left: 22px; }

/* ---------- Hero slider ---------- */
.tsjm-hero { position: relative; height: var(--tsjm-hero-h, 420px); border-radius: var(--card-r); overflow: hidden; background: #101828; color: var(--tsjm-hero-text, #fff); }
.tsjm-hero__track { position: absolute; inset: 0; }
.tsjm-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.tsjm-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.tsjm-hero--slide .tsjm-hero__track { display: flex; transition: transform .65s cubic-bezier(.22, .8, .24, 1); }
.tsjm-hero--slide .tsjm-hero__slide { position: relative; flex: 0 0 100%; opacity: 1; visibility: visible; transition: none; }
.tsjm-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transform: scale(1.04); transition: transform 7s ease-out; }
.tsjm-hero__slide.is-active .tsjm-hero__bg { transform: scale(1.12); }
.tsjm-hero__bg--ph { background: linear-gradient(120deg, color-mix(in srgb, var(--a) 60%, #0b1734), #0b1734); }
.tsjm-hero__shade { position: absolute; inset: 0; background: var(--tsjm-shade, linear-gradient(90deg, rgba(10, 20, 48, .86) 0%, rgba(10, 20, 48, .55) 55%, rgba(10, 20, 48, .2) 100%)); }
.tsjm-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px clamp(24px, 7%, 80px); max-width: min(100%, 760px); }
.tsjm-ha-center .tsjm-hero__content { align-items: center; text-align: center; margin: 0 auto; }
.tsjm-ha-right .tsjm-hero__content { align-items: flex-end; text-align: right; margin-left: auto; }
.tsjm-ha-center .tsjm-hero .tsjm-jmeta { justify-content: center; } .tsjm-ha-right .tsjm-hero .tsjm-jmeta { justify-content: flex-end; }
.tsjm-hero__tag { text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; background: var(--a); color: #fff; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.tsjm-hero__title { margin: 0 0 12px; font-size: var(--tsjm-hero-title, clamp(26px, 4vw, 40px)); line-height: 1.15; color: var(--tsjm-hero-text, #fff); font-weight: 700; }
.tsjm-hero__title a { color: var(--tsjm-hero-text, #fff); }
.tsjm-hero__excerpt { margin: 0 0 14px; font-size: 15px; color: var(--tsjm-hero-text, #fff); opacity: .92; max-width: 60ch; }
.tsjm-hero .tsjm-jmeta { color: var(--tsjm-hero-text, #fff); opacity: .88; margin: 0 0 18px; }
.tsjm-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .15s; padding: 0; }
.tsjm-hero__nav:hover { background: var(--a); }
.tsjm-hero__nav--prev { left: 14px; } .tsjm-hero__nav--next { right: 14px; }
.tsjm-hero__dots { position: absolute; z-index: 3; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.tsjm-hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s, background .25s; }
.tsjm-hero__dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }

/* ---------- Carousel ---------- */
.tsjm-carousel { position: relative; }
.tsjm-carousel__track { display: flex; gap: var(--tsjm-gap, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; }
.tsjm-carousel__track::-webkit-scrollbar { display: none; }
.tsjm-carousel__item { flex: 0 0 calc((100% - var(--tsjm-gap, 24px) * (var(--cols) - 1)) / var(--cols)); scroll-snap-align: start; min-width: 0; }
.tsjm-carousel__nav { position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #1f2933; box-shadow: 0 6px 18px rgba(16, 24, 40, .22); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, color .15s, opacity .15s; }
.tsjm-carousel__nav:hover { background: var(--a); color: #fff; }
.tsjm-carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.tsjm-carousel__nav--prev { left: -14px; } .tsjm-carousel__nav--next { right: -14px; }

/* ---------- Compact list ---------- */
.tsjm-clist { border-top: 1px solid #e4e7eb; }
.tsjm-crow { display: flex; align-items: center; gap: 18px; padding: 15px 6px; border-bottom: 1px solid #e4e7eb; color: var(--t-color); transition: background .15s, padding .15s; }
.tsjm-crow:hover { background: #f7f9fa; padding-left: 14px; color: var(--a); }
.tsjm-skin-dark .tsjm-crow:hover { background: #1f2937; }
.tsjm-crow__title { flex: 1 1 40%; font-weight: 600; font-size: var(--t-size); min-width: 0; }
.tsjm-crow .tsjm-jmeta { margin: 0; flex: 1 1 45%; justify-content: flex-start; }
.tsjm-crow__go { color: var(--a); display: inline-flex; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.tsjm-cols-3, .tsjm-cols-4 { --cols: 2; }
	.tsjm-hero { height: min(var(--tsjm-hero-h, 420px), 380px); }
}
@media (max-width: 640px) {
	.tsjm-cols-2, .tsjm-cols-3, .tsjm-cols-4 { --cols: 1; }
	.tsjm-carousel__item { flex-basis: 82%; }
	.tsjm-carousel__nav { display: none; }
	.tsjm-sc--list .tsjm-jcard, .tsjm-cs-horizontal .tsjm-jcard { flex-direction: column; gap: 0; }
	.tsjm-sc--list .tsjm-jcard__media, .tsjm-cs-horizontal .tsjm-jcard__media { flex-basis: auto; }
	.tsjm-sc--list .tsjm-jcard__media .tsjm-pic, .tsjm-cs-horizontal .tsjm-pic { aspect-ratio: var(--tsjm-ratio, 16 / 10); height: auto; min-height: 0; }
	.tsjm-sc--list .tsjm-jcard__body, .tsjm-cs-horizontal .tsjm-jcard__body { padding: 16px 18px 18px; }
	.tsjm-hero { height: 340px; }
	.tsjm-hero__content { padding: 24px 22px 44px; }
	.tsjm-hero__nav { display: none; }
	.tsjm-crow { flex-wrap: wrap; gap: 6px 12px; }
	.tsjm-crow__title, .tsjm-crow .tsjm-jmeta { flex-basis: 100%; }
	.tsjm-crow__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tsjm-hero__slide, .tsjm-hero__bg, .tsjm-jcard, .tsjm-pic > img, .tsjm-hero__track { transition: none !important; }
	.tsjm-carousel__track { scroll-behavior: auto; }
}


/* ---------- Slider heights per device (set in the layout builder) ---------- */
@media (max-width: 1024px) { .tsjm-hero { height: var(--tsjm-hero-h-t, min(var(--tsjm-hero-h, 420px), 380px)); } }
@media (max-width: 640px)  { .tsjm-hero { height: var(--tsjm-hero-h-m, 340px); } }

/* ---------- Video ---------- */
.tsjm-hero__video { opacity: 0; transition: opacity .6s ease; transform: none !important; }
.tsjm-hero__video.is-playing { opacity: 1; }
.tsjm-hero__embed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tsjm-hero__embed iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; max-width: none; width: 100%; height: 100%; }
.tsjm-sc .tsjm-pic__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; background: #000; }
.tsjm-sc .tsjm-pic__video.is-on { opacity: 1; }
.tsjm-sc .tsjm-jcard.has-video .tsjm-jcard__media .tsjm-pic { position: relative; }
.tsjm-jcard__play { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 16, 30, .72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px; backdrop-filter: blur(4px); transition: opacity .25s, transform .25s; pointer-events: none; }
.tsjm-sc .tsjm-jcard.has-video:hover .tsjm-jcard__play { opacity: 0; transform: scale(.7); }
@media (prefers-reduced-motion: reduce) { .tsjm-hero__video { transition: none; } }
