/* Koba Hub: job pages. Colours, fonts and corner sizes come from the theme (WoodMart), so the pages keep the site's own look. */
.kbc { --kbc-accent: var(--wd-primary-color, #c72127); --kbc-radius: var(--wd-brd-radius, 20px); --kbc-title: var(--wd-title-color, #242424); display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.6; color: #6a6a6a; }
.kbc *, .kbc *::before, .kbc *::after { box-sizing: border-box; }
.kbc [hidden] { display: none !important; }
.kbc .is-running .kbc-if-ended, .kbc.is-running .kbc-if-ended,
.kbc .is-ended .kbc-if-running, .kbc.is-ended .kbc-if-running { display: none !important; }
.kbc__h2 { margin: 0; font-family: var(--wd-title-font, inherit); font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--kbc-title); }

/* Status label: a small plain label, the same on the list and on the job page. */
.kbc-badge { flex: none; font-size: 13px; line-height: 1.4; font-weight: 600; padding: 2px 10px; border-radius: 4px; white-space: nowrap; }
.kbc-badge--on { background: #e3f3e8; color: #17603a; }
.kbc-badge--off { background: #ececf0; color: #555; }

/* Buttons take the theme's accent button settings. */
.kbc a.kbc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; background: var(--btn-accented-bgcolor, #c72127); color: var(--btn-accented-color, #fff); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 0; border-radius: var(--btn-accented-brd-radius, 35px); white-space: nowrap; cursor: pointer; }
.kbc a.kbc-btn:hover, .kbc a.kbc-btn:focus { background: var(--btn-accented-bgcolor-hover, #e14a5c); color: var(--btn-accented-color-hover, #fff); }

/* ---------- List ---------- */
/* The filter row sits 20px under the page title area (the theme gives 40px), so the first cards do not start too low. */
.kbc.kbc--list { margin-top: -20px; }
/* A little more room before the footer than the theme's 40px. */
.kbc.kbc--list, .kbc.kbc--single { padding-bottom: 20px; }
.kbc__bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.kbc__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kbc button.kbc__tab { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; min-height: 44px; padding: 0 20px; cursor: pointer; border-radius: 22px; border: 1px solid #dcdce2; background: #fff; color: #333; text-transform: none; box-shadow: none; display: inline-block; }
.kbc button.kbc__tab:hover { border-color: var(--kbc-accent); color: var(--kbc-accent); background: #fff; }
.kbc button.kbc__tab.is-on, .kbc button.kbc__tab.is-on:hover { border-color: var(--kbc-accent); background: var(--kbc-accent); color: #fff; }

.kbc-search { position: relative; flex: 0 1 340px; min-width: 240px; }
.kbc-search input[type="search"] { box-sizing: border-box; width: 100%; max-width: none; height: 44px; margin: 0; padding: 0 52px 0 20px; font-family: inherit; font-size: 15px; line-height: 1.2; color: #333; background: #fff; border: 1px solid #dcdce2; border-radius: 22px; box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; }
.kbc-search input[type="search"]::placeholder { color: #767676; opacity: 1; }
.kbc-search input[type="search"]:focus { border-color: var(--kbc-accent); }
.kbc-search__icon { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; background: var(--kbc-accent); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }

/* Job cards: the look of the site's blog cards, with a square picture. */
.kbc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.kbc-card { background: #fff; border-radius: var(--kbc-radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.kbc .kbc-card__img { display: block; position: relative; aspect-ratio: 1 / 1; background: #f1f1f4; overflow: hidden; }
.kbc .kbc-card .kbc-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.kbc-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b4b4bd; }
.kbc-card__body { flex: 1; padding: 25px; display: flex; flex-direction: column; gap: 10px; }
.kbc-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; font-size: 14px; line-height: 1.4; }
.kbc-card__meta > span:first-child:empty { display: none; }
.kbc .kbc-card__title { margin: 0; font-family: var(--wd-entities-title-font, var(--wd-title-font, inherit)); font-size: 22px; line-height: 1.3; font-weight: 600; }
.kbc .kbc-card__title a { color: var(--wd-entities-title-color, #333); text-decoration: none; }
.kbc .kbc-card__title a:hover { color: var(--kbc-accent); }
.kbc .kbc-card__text { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.kbc .kbc-card__date { margin: 0; font-weight: 500; color: #333; }
.kbc .kbc-card.is-ended .kbc-card__date { color: #555; }
.kbc a.kbc-card__more { align-self: flex-start; margin-top: auto; padding: 6px 0; font-size: 13.5px; font-weight: 600; color: var(--kbc-accent); text-decoration: none; }
.kbc a.kbc-card__more:hover { text-decoration: underline; }
.kbc__empty { margin: 0; background: #fff; border-radius: var(--kbc-radius); padding: 25px; }

/* ---------- Single job ---------- */
.kbc__banner img { display: block; width: 100%; height: auto; border-radius: var(--kbc-radius); }
.kbc-box { background: #fff; border-radius: var(--kbc-radius); padding: 30px; }
.kbc-job { display: flex; flex-direction: column; gap: 28px; }
.kbc-job__top { display: flex; flex-direction: column; gap: 14px; }
.kbc-job__line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.kbc-job__deadline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #555; }
.kbc .kbc-job__title { margin: 0; font-family: var(--wd-title-font, inherit); font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--kbc-title); }
.kbc .kbc-job__intro { margin: 0; font-size: 15px; line-height: 1.7; }
.kbc-job__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; padding: 20px; background: #f6f5f8; border-radius: calc(var(--kbc-radius) / 2); }
.kbc-job__facts > div { display: flex; flex-direction: column; gap: 2px; }
.kbc-job__fact-l { font-size: 13px; line-height: 1.5; color: #5c5c5c; }
.kbc-job__fact-v { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--kbc-title); }
.kbc-job__ended { background: #f3f3f5; border-radius: calc(var(--kbc-radius) / 2); padding: 16px 20px; font-size: 15px; line-height: 1.6; font-weight: 600; color: #3a3a3a; }

.kbc-job__sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kbc-sec { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kbc-sec--half { grid-column: span 1; }
.kbc-sec--box { background: #f6f5f8; border-radius: calc(var(--kbc-radius) / 2); padding: 24px; }
.kbc-sec--apply { gap: 16px; }
.kbc-sec__body { font-size: 15px; line-height: 1.7; }
.kbc-sec__body > :first-child { margin-top: 0; }
.kbc-sec__body > :last-child { margin-bottom: 0; }
.kbc-sec__body p { margin: 0 0 10px; }
.kbc-sec__body a { color: var(--kbc-accent); text-decoration: underline; }
.kbc-sec__body ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kbc-sec__body ul > li { position: relative; margin: 0; padding-left: 30px; }
.kbc-sec__body ul > li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ddf3e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%231E7B46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.kbc-sec__body ol { margin: 0 0 10px; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.kbc-sec__body ol > li { margin: 0; }
/* The note box uses plain bullets. */
.kbc-sec--box:not(.kbc-sec--apply) .kbc-sec__body ul { list-style: disc; padding-left: 22px; gap: 8px; }
.kbc-sec--box:not(.kbc-sec--apply) .kbc-sec__body ul > li { padding-left: 0; }
.kbc-sec--box:not(.kbc-sec--apply) .kbc-sec__body ul > li::before { content: none; }
.kbc-sec__subject { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; color: #3a3a3a; }
.kbc-sec__subject code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; padding: 6px 12px; background: #fff; border: 1px solid #dadae0; border-radius: 8px; color: #242424; }
.kbc-sec__cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 15px; color: #3a3a3a; }

@media (max-width: 767px) {
	.kbc-search { flex: 1 1 100%; }
	.kbc-card__body { padding: 20px; }
	.kbc .kbc-card__title { font-size: 20px; }
	.kbc-box { padding: 18px; }
	.kbc-sec--box { padding: 18px; }
	.kbc-job__sections { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.kbc-sec--half { grid-column: 1 / -1; }
	.kbc a.kbc-btn { white-space: normal; text-align: center; }
}
