/* ==========================================================
   Kiddo Job Postings — grid + single job page styles
   Matched to the site's existing look: Satoshi font, gold
   (#D69A00 / #a6730a) accent, rounded pill buttons & cards.
   ========================================================== */

/* ---------- Carousel (shortcode: [kiddo_jobs]) ---------- */

/* NOTE: this theme's own stylesheet loads AFTER this plugin's CSS and
   gives every <button>/<a> element big pill padding + rounded corners
   (to match the site's CTA buttons). That was silently overriding this
   carousel's arrow/dot sizing, which is why every box-model property
   below is locked down with !important — it must win regardless of
   what any theme or page-builder CSS declares for buttons/links. */

.kjp-carousel {
    margin: 30px 0 !important;
    font-family: 'Satoshi', sans-serif !important;
    position: relative !important;
}

.kjp-carousel-viewport {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 00px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 560px) {
    .kjp-carousel-viewport { padding: 0 0px !important; }
}

.kjp-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.kjp-carousel-slide {
    flex: 0 0 calc((100% - 50px) / 3) !important;
    max-width: calc((100% - 50px) / 3) !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .kjp-carousel-slide {
        flex-basis: calc((100% - 25px) / 2) !important;
        max-width: calc((100% - 25px) / 2) !important;
    }
}
@media (max-width: 560px) {
    .kjp-carousel-track { gap: 16px !important; }
    .kjp-carousel-slide {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* Round arrow buttons, overlaid on the edges of the visible cards.
   Solid dark-gold border + icon by default so they read clearly
   against the white cards (not the faint/washed-out look before). */
.kjp-car-arrow {
    position: absolute !important;
    top: 50% !important;
    left: auto;
    right: auto;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #a6730a !important;
    color: #a6730a !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: 0.2s ease;
    z-index: 3 !important;
    padding: 0 !important;
}

.kjp-car-prev { left: 6px !important; }
.kjp-car-next { right: 6px !important; }

.kjp-car-arrow:hover:not(:disabled) {
    background: #a6730a !important;
    color: #fff !important;
    border-color: #a6730a !important;
}

.kjp-car-arrow:disabled {
    opacity: 0.3 !important;
    cursor: default;
}

@media (max-width: 560px) {
    .kjp-car-arrow {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 16px !important;
    }
}

.kjp-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 22px 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.kjp-car-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    background: #c99b3a !important;
    opacity: 0.55;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.kjp-car-dot:hover { opacity: 0.85; }

.kjp-car-dot-active {
    background: #a6730a !important;
    opacity: 1 !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    border-radius: 5px !important;
}

/* No scrolling needed — everything fits in one page */
.kjp-carousel-static .kjp-car-arrow,
.kjp-carousel-static .kjp-carousel-dots {
    display: none !important;
}

.kjp-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box !important;
}

.kjp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(214, 154, 0, 0.15);
    border-color: #D69A00;
}

.kjp-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #a6730a;
    margin: 0 0 12px;
}

.kjp-card-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0 0 22px;
}

.kjp-card-cta {
    display: inline-block;
    align-self: flex-start;
    background: #f9dfa3;
    color: #7a5300 !important;
    text-decoration: none !important;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s ease;
}

.kjp-card:hover .kjp-card-cta {
    background: #D69A00;
    color: #fff !important;
}

.kjp-empty {
    text-align: center;
    color: #777;
    padding: 40px 0;
}

/* ---------- Single job page ---------- */

.kjp-single-wrap {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Satoshi', sans-serif;
}

.kjp-back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: #a6730a;
    text-decoration: none;
    font-weight: 600;
}
.kjp-back-link:hover { text-decoration: underline; }

/* Wide, soft, off-white card — matches the site's existing job
   pages (large radius, generous padding, no border). */
.kjp-single-card {
    background: #fafaf8;
    border-radius: 40px;
    padding: 50px 60px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .kjp-single-card { padding: 32px 24px; border-radius: 24px; }
}

/* The reading column stays narrower than the card itself and
   centers inside it, same as the reference page. */
.kjp-single-inner {
    max-width: 760px;
    margin: 0 auto;
}

.kjp-single-title {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .kjp-single-title { font-size: 28px; }
}

/* The content below is whatever was written in the normal editor —
   style it so headings, bold labels and bullet lists read the same
   way the rest of the site does. */
.kjp-single-content {
    line-height: 1.8;
    color: #333;
    margin: 10px 0 0;
}

.kjp-single-content p { margin: 0 0 16px; }

.kjp-single-content h1,
.kjp-single-content h2,
.kjp-single-content h3,
.kjp-single-content h4 {
    font-weight: 800;
    color: #a6730a;
    margin: 30px 0 14px;
    line-height: 1.3;
}

.kjp-single-content h2 { font-size: 22px; }
.kjp-single-content h3 { font-size: 19px; }
.kjp-single-content h4 { font-size: 17px; }

.kjp-single-content ul,
.kjp-single-content ol {
    padding-left: 22px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 18px;
}

.kjp-single-content li { margin-bottom: 8px; }
.kjp-single-content strong { color: #1a1a1a; }

.kjp-apply-btn {
    display: inline-block;
    background: #D69A00;
    color: #fff !important;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 10px 20px rgba(214, 154, 0, 0.2);
    transition: 0.3s ease;
}

.kjp-apply-btn:hover {
    background: #a6730a;
}

button.kjp-apply-btn {
    border: none;
    cursor: pointer;
}

/* ---------- Application form (shortcode: [kiddo_job_apply]) ---------- */

.kjp-apply-section {
    margin-top: 40px;
}

.kjp-apply-form {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    font-family: 'Satoshi', sans-serif;
    box-sizing: border-box;
}

.kjp-apply-heading {
    font-size: 24px;
    font-weight: 800;
    color: #a6730a;
    margin: 0 0 25px;
}

.kjp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .kjp-form-grid { grid-template-columns: 1fr; }
    .kjp-apply-form { padding: 24px; border-radius: 20px; }
}

.kjp-form-field { display: flex; flex-direction: column; }

.kjp-form-field label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 7px;
}

.kjp-form-field .kjp-hint {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.kjp-form-field input[type="text"],
.kjp-form-field input[type="email"],
.kjp-form-field input[type="tel"],
.kjp-form-field select,
.kjp-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1.5px solid #e3e3e3;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: 0.2s ease;
}

.kjp-form-field textarea { min-height: 110px; resize: vertical; }

.kjp-form-field input:focus,
.kjp-form-field select:focus,
.kjp-form-field textarea:focus {
    outline: none;
    border-color: #D69A00;
    box-shadow: 0 0 0 3px rgba(214, 154, 0, 0.12);
}

.kjp-form-field:not(.kjp-file-field) { margin-bottom: 0; }
.kjp-apply-form > .kjp-form-field { margin-bottom: 18px; }

/* File inputs, styled to look like the gold "Choose File" pills
   used elsewhere on the site, and touch-friendly on mobile. */
.kjp-file-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1.5px dashed #e3c98a;
    border-radius: 12px;
    background: #fffaf0;
    font-size: 13px;
    color: #555;
}

.kjp-file-field input[type="file"]::file-selector-button {
    background: #D69A00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    margin-right: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.kjp-file-field input[type="file"]::file-selector-button:hover {
    background: #a6730a;
}

.kjp-apply-submit-row {
    text-align: center;
    margin-top: 10px;
}

.kjp-apply-submit-row .kjp-apply-btn {
    width: 100%;
    max-width: 320px;
}

.kjp-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kjp-apply-success {
    background: #fdf7e7;
    border: 1px solid #f0e6cc;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
}

.kjp-apply-success h3 {
    color: #a6730a;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
}

.kjp-apply-success p { color: #444; line-height: 1.6; margin: 0; }

.kjp-apply-errors {
    background: #fdecea;
    border: 1px solid #ef9a9a;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    color: #d32f2f;
}

.kjp-apply-errors ul { margin: 0; padding-left: 18px; }
.kjp-apply-errors li { margin-bottom: 4px; }
