/* =============================================================================
   job-opening.css — the Careers / Job Opening page. Semantic HTML on tokens +
   the shared kk-tabs component (per-school job listings). Mirrors the Elementor
   design (colours from post-848.css): teal #44ACAF headings/accents, job cards
   in a responsive grid, teal apply-form band, gold buttons. Fluid + responsive;
   replaces the Elementor nested-tabs, swiper carousels and duplicate forms.
   ============================================================================= */
.kk-job {
    --kk-job-wide: 1300px;          /* content box — matches the original       */
    --kk-job-gutter: 20px;
    color: #3b3b3b; overflow-x: clip;
}
/* The max-width carries the gutters, so the *content* box is the full 1300px the
   original used (a plain max-width would leave the cards 40px narrower). */
.kk-job__inner {
    max-width: calc(var(--kk-job-wide) + 2 * var(--kk-job-gutter));
    margin: 0 auto; padding: 0 var(--kk-job-gutter); box-sizing: border-box;
}
.kk-job img { max-width: 100%; }

/* Hero */
.kk-job__hero { text-align: center; padding: 40px 0 4px; }
.kk-job__hero-title {
    font-family: "Montserrat", var(--kk-font-heading);
    font-size: clamp(28px, 5vw, 46px); font-weight: 700; text-transform: uppercase;
    line-height: 1.15; color: #44ACAF; margin: 0 0 12px;
}
.kk-job__hero-text { max-width: 760px; margin: 0 auto; font-family: "Montserrat", var(--kk-font-body); font-size: 16px; line-height: 1.7; color: #525252; }

/* Section heading (RBKEI Team / OUR VALUES) */
.kk-job__section { padding: 44px 0; }
.kk-job__heading {
    font-family: "Montserrat", var(--kk-font-heading);
    font-size: clamp(26px, 4vw, 40px); font-weight: 700; text-transform: uppercase;
    line-height: 1.1; color: #464646; text-align: center; margin: 0 0 24px;
}

/* Tabs + job cards */
.kk-job__tabs { padding: 28px 0 8px; }
.kk-job__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kk-job__card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #e6e6e6; border-radius: 12px; padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.kk-job__card-title { font-family: "Montserrat", var(--kk-font-heading); font-size: 18px; font-weight: 600; color: #353535; margin: 0 0 8px; }
.kk-job__card-dept { font-family: "Montserrat", var(--kk-font-body); font-size: 14px; font-weight: 500; color: #525252; margin: 0 0 6px; }
.kk-job__card-qual { font-family: "Montserrat", var(--kk-font-body); font-size: 14px; line-height: 1.55; color: #3b3b3b; margin: 0 0 16px; flex: 1 1 auto; }
.kk-job__apply {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    font-family: "Montserrat", var(--kk-font-heading); font-size: 14px; font-weight: 600;
    color: #44ACAF; background: transparent; border: 1px solid #44ACAF; border-radius: 50px;
    padding: 8px 20px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.kk-job__apply:hover { background: #44ACAF; color: #fff; }
.kk-job__apply:focus-visible { outline: 2px solid #44ACAF; outline-offset: 2px; }
@media (max-width: 1024px) { .kk-job__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .kk-job__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kk-job__grid { grid-template-columns: 1fr; } }

/* RBKEI Team — responsive photo grid (replaces the autoplay swiper) */
.kk-job__team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kk-job__team img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 768px) { .kk-job__team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kk-job__team { grid-template-columns: 1fr; } }

/* OUR VALUES — icon + caption grid */
.kk-job__values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.kk-job__value { text-align: center; }
.kk-job__value img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 10px; display: block; }
.kk-job__value-label { font-family: "Montserrat", var(--kk-font-heading); font-size: 16px; font-weight: 700; line-height: 1.3; }
@media (max-width: 768px) { .kk-job__values { grid-template-columns: repeat(2, 1fr); } }
.kk-job__deck { text-align: center; }
.kk-job__deck a { display: inline-block; font-family: "Montserrat", var(--kk-font-heading); font-size: 15px; font-weight: 600; color: #fff; background: #EBA82F; border-radius: 6px; padding: 12px 28px; text-decoration: none; }
.kk-job__deck a:hover { filter: brightness(.95); }

/* Apply Now — single application form on a teal band */
.kk-job__apply-band { background: #2fa59f; padding: 48px 0; }
.kk-job__apply-band .kk-job__heading { color: #fff; margin-bottom: 20px; }
.kk-job__form { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.kk-job__form input, .kk-job__form select, .kk-job__form textarea {
    width: 100%; box-sizing: border-box; font-family: "Montserrat", var(--kk-font-body);
    font-size: 15px; padding: 12px 14px; border: 0; border-radius: 6px; background: #fff; color: #333;
}
.kk-job__form textarea { resize: vertical; }
.kk-job__form input[type="file"] { padding: 10px; }
.kk-job__form-hint { color: #fff; font-family: "Montserrat", var(--kk-font-heading); font-size: 14px; font-weight: 600; margin: 2px 0 -6px; }
.kk-job__submit { align-self: center; font-family: "Montserrat", var(--kk-font-heading); font-size: 15px; font-weight: 700; color: #fff; background: #EBA82F; border: 0; border-radius: 6px; padding: 12px 44px; cursor: pointer; }
.kk-job__submit:hover { filter: brightness(.95); }
.kk-job__form input:focus-visible, .kk-job__form select:focus-visible, .kk-job__form textarea:focus-visible, .kk-job__submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Screen-reader-only labels */
.kk-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
