.jooble-jobs {
    --jooble-primary: var(--wp--preset--color--primary, #A40A1F);
    --jooble-primary-hover: var(--wp--preset--color--primary-hover, #830A1B);
    --jooble-text: var(--wp--preset--color--contrast, #181D23);
    --jooble-text-secondary: #242E39;
    --jooble-text-muted: #64748b;
    --jooble-card-bg: #dee5ed;
    --jooble-card-bg-hover: #d5dfe9;
    --jooble-pill-bg: #DEE6ED;
    --jooble-pill-bg-hover: #cfdbe6;
    --jooble-border: #d2dbe5;
    width: 100%;
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    font-family: inherit;
    color: var(--jooble-text);
    box-sizing: border-box;
}

.jooble-jobs *,
.jooble-jobs *::before,
.jooble-jobs *::after {
    box-sizing: border-box;
}

/* Layout: search form above the listing */
.jooble-jobs-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* Row 1: "Search for" and "Jobs in" inputs */
.jooble-search {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.jooble-search-boxed {
    padding: 24px;
    border: 1px solid var(--jooble-border);
    border-radius: 8px;
    background-color: #ffffff;
}

.jooble-search-inputs-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

.jooble-search-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jooble-search-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--jooble-text-secondary);
}

.jooble-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.jooble-input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jooble-text-secondary);
}

.jooble-input-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jooble-search-select {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font: inherit;
    font-size: 1rem;
    color: var(--jooble-text);
    background-color: #ffffff;
    border: 1px solid var(--jooble-border);
    border-radius: 8px;
    appearance: none;
}

select.jooble-search-select {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

input.jooble-search-select {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background-image: none !important;
    cursor: text;
}

/* Hide datalist dropdown arrows across browsers (WebKit/Blink: Chrome, Edge, Safari) at rest and on hover/focus */
input.jooble-search-select::-webkit-calendar-picker-indicator,
input.jooble-search-select:hover::-webkit-calendar-picker-indicator,
input.jooble-search-select:focus::-webkit-calendar-picker-indicator,
input.jooble-search-select::-webkit-list-button,
input.jooble-search-select:hover::-webkit-list-button,
input.jooble-search-select:focus::-webkit-list-button,
input[list="jooble-area-suggestions"]::-webkit-calendar-picker-indicator,
input[list="jooble-area-suggestions"]:hover::-webkit-calendar-picker-indicator,
input[list="jooble-area-suggestions"]:focus::-webkit-calendar-picker-indicator,
input[list="jooble-area-suggestions"]::-webkit-list-button,
input[list="jooble-area-suggestions"]:hover::-webkit-list-button,
input[list="jooble-area-suggestions"]:focus::-webkit-list-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.jooble-search-separator {
    width: 1px;
    height: 48px;
    background-color: var(--jooble-border);
    margin: 0 10px;
}

.jooble-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--jooble-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.jooble-search-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Row 2: filter capsules */
.jooble-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.jooble-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.jooble-powered-by {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--jooble-border);
    font-size: 0.85rem;
    color: var(--jooble-text-muted);
}

.jooble-capsule {
    position: relative;
}

.jooble-capsule-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--jooble-text-secondary);
    background-color: #ffffff;
    border: 1px solid var(--jooble-border);
    cursor: pointer;
    list-style: none !important;
    user-select: none;
    transition: all 0.2s ease;
}

.jooble-capsule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jooble-capsule-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jooble-capsule-label::-webkit-details-marker,
.jooble-capsule-label::marker {
    display: none !important;
}

.jooble-jobs details.jooble-capsule summary.jooble-capsule-label::after,
.jooble-capsule-label::after {
    content: "" !important;
    position: static !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    border-top: none !important;
    border-left: none !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    font-size: 0 !important;
    line-height: 1 !important;
    margin-left: 2px !important;
    transform: translateY(-2px) rotate(45deg) !important;
    transition: transform 0.2s ease !important;
}

.jooble-jobs details.jooble-capsule[open] > summary.jooble-capsule-label::after,
.jooble-capsule[open] > .jooble-capsule-label::after {
    top: auto !important;
    right: auto !important;
    transform: translateY(2px) rotate(-135deg) !important;
}

.jooble-capsule-label:hover,
.jooble-capsule-active>.jooble-capsule-label {
    color: #ffffff;
    background-color: var(--jooble-primary);
    border-color: #5c040d;
}

.jooble-capsule-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid var(--jooble-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.jooble-capsule-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
}

.jooble-capsule-option:hover {
    background-color: var(--jooble-pill-bg);
}

.jooble-capsule-option input {
    accent-color: var(--jooble-primary);
    margin: 0;
}

.jooble-capsule-note {
    margin: 6px 8px 0;
    font-size: 0.82rem;
    color: var(--jooble-text-muted);
}

.jooble-clear-filters {
    padding: 8px 4px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--jooble-primary);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

/* Right Main Column (Listings & Pagination) */
.jooble-jobs-main {
    flex: 1 1 0;
    min-width: 0;
}

.jooble-jobs-main-full {
    flex: 0 0 100%;
    max-width: 100%;
}

.jooble-total-results {
    font-size: 1rem;
    font-weight: 500;
    color: var(--jooble-text);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

/* Job Listings */
.jooble-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Job Card (Matching /programmes course-section) */
.jooble-job {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 32px;
    background-color: var(--jooble-card-bg);
    border: none;
    position: relative;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.jooble-job:hover {
    background-color: var(--jooble-primary);
}

/* Left Circle Thumbnail */
.jooble-job-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.jooble-job-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--jooble-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Content Area */
.jooble-job-content {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

/* Red Company Name at Top */
.jooble-job:hover .jooble-job-company {
    color: #ffffff;
}

.jooble-job-company {
    color: var(--jooble-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
    transition: color 0.3s ease-in-out;
}

/* Bold Job Title */
.jooble-job-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
}

.jooble-job:hover .jooble-job-title a {
    color: #ffffff;
}

.jooble-job-title a {
    color: var(--jooble-text);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.jooble-job-title a:hover {
    color: var(--jooble-primary);
}

/* Snippet */
.jooble-job:hover .jooble-job-snippet {
    opacity: 0;
}

.jooble-job-snippet {
    margin: 0 0 16px 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--jooble-text-secondary);
    transition: opacity 0.3s ease-in-out;
}

/* Badges Container */
.jooble-job:hover .jooble-job-badges {
    opacity: 0;
}

.jooble-job-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    transition: opacity 0.3s ease-in-out;
}

/* Dark Pill Badge (Job Type / Duration style) */
.jooble-job-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background-color: #181D23;
}

/* White Pill Badges (Meta: Location, Source, Salary) */
.jooble-job-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.jooble-job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--jooble-text);
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.jooble-job-meta-item svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--jooble-text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* White Pill Badge (Updated Time) */
.jooble-job-updated {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--jooble-text);
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.jooble-job-divider {
    display: none;
}

/* Apply CTA Button */
.jooble-job:hover .jooble-job-action {
    opacity: 1;
}

.jooble-job-action {
    display: flex;
    align-items: center;
    margin-top: 4px;
    position: absolute;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.jooble-job-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.jooble-job-apply:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    transform: none;
}

.jooble-job-apply .cta-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
}

.jooble-job-apply .cta-with-icon::after {
    display: inline-block;
    height: 14px;
    width: 14px;
    background-color: var(--jooble-primary);
    -webkit-mask: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20viewBox%3D%220%200%2018%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12.408%201.968A1.973%201.973%200%200111.763.5H9.23c0%201.34.559%202.613%201.53%203.485l2.99%202.687H0v2.656h13.374l-1.92%201.51c-1.401%201.1-2.225%202.828-2.225%204.662h2.534c0-.998.449-1.938%201.211-2.537l4.962-3.9L18%206.992l-5.592-5.024z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    mask: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20viewBox%3D%220%200%2018%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12.408%201.968A1.973%201.973%200%200111.763.5H9.23c0%201.34.559%202.613%201.53%203.485l2.99%202.687H0v2.656h13.374l-1.92%201.51c-1.401%201.1-2.225%202.828-2.225%204.662h2.534c0-.998.449-1.938%201.211-2.537l4.962-3.9L18%206.992l-5.592-5.024z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    background-size: cover;
    content: "";
}

.jooble-jobs-message {
    padding: 60px 20px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--jooble-text-secondary);
}

/* Pagination - Center Aligned under Right Main Column */
.jooble-jobs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.jooble-jobs-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.jooble-jobs-pagination .page-item {
    display: inline-flex;
    align-items: center;
    list-style: none;
    margin: 0;
}

.jooble-jobs-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--jooble-text);
    background-color: #ffffff;
    border: 1px solid var(--jooble-border);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.jooble-jobs-pagination .page-link:hover {
    color: var(--jooble-primary);
    border-color: var(--jooble-primary);
    background-color: color-mix(in srgb, var(--jooble-primary) 8%, white);
}

.jooble-jobs-pagination .page-item.active .page-link,
.jooble-jobs-pagination .page-link.jooble-jobs-page-active {
    background-color: var(--jooble-primary) !important;
    color: #ffffff !important;
    border-color: var(--jooble-primary) !important;
    box-shadow: none;
    cursor: default;
}

.jooble-jobs-pagination .page-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    background-color: var(--jooble-primary);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.jooble-jobs-pagination .page-icon:hover {
    background-color: var(--jooble-primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.jooble-jobs-pagination .page-item.disabled .page-icon,
.jooble-jobs-pagination .page-icon.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.jooble-jobs-pagination .page-item.disabled .page-link {
    border: none;
    background: transparent;
    color: var(--jooble-text-muted);
    pointer-events: none;
    cursor: default;
}

.jooble-jobs-pagination .cta-with-icon {
    display: inline-flex;
    align-items: center;
}

.jooble-jobs-pagination .cta-with-icon::after {
    display: inline-block;
    height: 0.85rem;
    width: 0.95rem;
    background-color: #ffffff;
    -webkit-mask: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20viewBox%3D%220%200%2018%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12.408%201.968A1.973%201.973%200%200111.763.5H9.23c0%201.34.559%202.613%201.53%203.485l2.99%202.687H0v2.656h13.374l-1.92%201.51c-1.401%201.1-2.225%202.828-2.225%204.662h2.534c0-.998.449-1.938%201.211-2.537l4.962-3.9L18%206.992l-5.592-5.024z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    mask: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20viewBox%3D%220%200%2018%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12.408%201.968A1.973%201.973%200%200111.763.5H9.23c0%201.34.559%202.613%201.53%203.485l2.99%202.687H0v2.656h13.374l-1.92%201.51c-1.401%201.1-2.225%202.828-2.225%204.662h2.534c0-.998.449-1.938%201.211-2.537l4.962-3.9L18%206.992l-5.592-5.024z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    background-size: cover;
    content: "";
}

.jooble-jobs-pagination .page-prev .cta-with-icon::after {
    transform: rotate(180deg);
}

/* Responsive Scaling */
@media (max-width: 900px) {
    .jooble-jobs-layout {
        gap: 24px;
    }

    .jooble-job {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .jooble-jobs {
        padding-left: 20px;
        padding-right: 20px;
    }

    .jooble-jobs-layout {
        gap: 24px;
    }

    .jooble-search-inputs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .jooble-search-separator {
        display: none;
    }

    .jooble-filter-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .jooble-search-submit {
        width: 100%;
        justify-content: center;
    }

    .jooble-job {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .jooble-job-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .jooble-job-action {
        width: 100%;
        position: relative;
        /* On mobile, move it back to document flow */
    }

    .jooble-job-apply {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0;
        background-color: transparent !important;
        color: #ffffff !important;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
        box-shadow: none;
    }

    .jooble-jobs-pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .jooble-jobs-pagination .page-icon {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Loading State for AJAX Pagination & Filtering */
.jooble-jobs.is-loading {
    position: relative;
    pointer-events: none;
}

.jooble-jobs.is-loading .jooble-jobs-main {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}


/* Remove focus outline on anchor tags as requested */
.jooble-job-title a:focus,
.jooble-job-title a:active,
.jooble-job-title a:focus-visible,
.jooble-job-apply:focus,
.jooble-job-apply:active,
.jooble-job-apply:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


.jooble-jobs-pagination .pagination>li:first-child {
    margin-right: auto;
}

.jooble-jobs-pagination .pagination>li:last-child {
    margin-left: auto;
}