/* ============================================================
   IQ Group Jobs — Front-end Stylesheet
   Branded to match iqgroup.com.au (Poppins / Red #E71332 / Navy #001236)
   ============================================================ */

.iqgj-board {
    --iqgj-red:        #E71332;
    --iqgj-red-dark:   #B80E27;
    --iqgj-navy:       #001236;
    --iqgj-navy-light: #0A2A5E;
    --iqgj-teal:       #19A78F;
    --iqgj-coral:      #FC5B5E;
    --iqgj-lavender:   #9595D0;
    --iqgj-gray-bg:    #F5F6F9;
    --iqgj-border:     #E3E6EE;
    --iqgj-text-muted: #6B7388;
}

/* ---- Reset / Scope ---------------------------------------- */
.iqgj-board *,
.iqgj-board *::before,
.iqgj-board *::after {
    box-sizing: border-box;
}

/* ---- Board wrapper ------------------------------------------ */
.iqgj-board {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--iqgj-navy);
    line-height: 1.6;
    max-width: 900px;
}

/* ---- Filter bar ----------------------------------------------- */
.iqgj-filters {
    background: var(--iqgj-gray-bg);
    border: 1px solid var(--iqgj-border);
    border-radius: 20px;
    padding: 20px 24px 14px;
    margin-bottom: 30px;
}

.iqgj-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.iqgj-filters__field {
    flex: 1 1 180px;
}

.iqgj-filters__search {
    flex: 2 1 280px;
}

.iqgj-filters input[type="search"],
.iqgj-filters select {
    width: 100%;
    padding: 11px 18px;
    border: 1.5px solid var(--iqgj-border);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--iqgj-navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.iqgj-filters select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23001236' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}

.iqgj-filters input[type="search"]:focus,
.iqgj-filters select:focus {
    outline: none;
    border-color: var(--iqgj-red);
    box-shadow: 0 0 0 3px rgba(231,19,50,.12);
}

.iqgj-count {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--iqgj-text-muted);
}

#iqgj-result-count {
    font-weight: 700;
    color: var(--iqgj-red);
}

/* ---- Category groups ------------------------------------------ */
.iqgj-category {
    margin-bottom: 34px;
}

.iqgj-category__title {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--iqgj-navy);
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 10px;
}

.iqgj-category__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--iqgj-red);
}

/* Cycle accent colour per category, echoing the multi-coloured
   industry cards on iqgroup.com.au */
.iqgj-category:nth-of-type(5n+2) .iqgj-category__title::after { background: var(--iqgj-teal); }
.iqgj-category:nth-of-type(5n+3) .iqgj-category__title::after { background: var(--iqgj-coral); }
.iqgj-category:nth-of-type(5n+4) .iqgj-category__title::after { background: var(--iqgj-lavender); }
.iqgj-category:nth-of-type(5n+5) .iqgj-category__title::after { background: var(--iqgj-navy-light); }

/* ---- Individual job card --------------------------------------- */
.iqgj-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--iqgj-border);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.iqgj-job:hover {
    border-color: var(--iqgj-red);
    box-shadow: 0 6px 20px rgba(0,18,54,.08);
    transform: translateY(-2px);
}

.iqgj-job__info {
    flex: 1;
    min-width: 0;
}

.iqgj-job__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--iqgj-navy);
    margin: 0 0 8px;
}

.iqgj-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--iqgj-text-muted);
}

.iqgj-job__location,
.iqgj-job__type,
.iqgj-job__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.iqgj-job__location svg {
    color: var(--iqgj-red);
}

.iqgj-job__type {
    background: rgba(231,19,50,.08);
    color: var(--iqgj-red);
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.iqgj-job__desc {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Action buttons --------------------------------------------- */
.iqgj-job__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.iqgj-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.iqgj-btn--primary {
    background: var(--iqgj-red);
    color: #fff !important;
    border: 2px solid var(--iqgj-red);
}

.iqgj-btn--primary:hover {
    background: var(--iqgj-red-dark);
    border-color: var(--iqgj-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(231,19,50,.30);
}

.iqgj-btn--secondary {
    background: transparent;
    color: var(--iqgj-navy) !important;
    border: 2px solid var(--iqgj-navy);
}

.iqgj-btn--secondary:hover {
    background: var(--iqgj-navy);
    color: #fff !important;
}

/* ---- Empty state -------------------------------------------------- */
.iqgj-empty {
    text-align: center;
    padding: 52px 20px;
    color: var(--iqgj-text-muted);
    background: var(--iqgj-gray-bg);
    border: 1px dashed var(--iqgj-border);
    border-radius: 20px;
}

.iqgj-empty a {
    color: var(--iqgj-red);
    font-weight: 600;
    text-decoration: none;
}

.iqgj-empty a:hover {
    text-decoration: underline;
}

/* ---- Loading spinner ----------------------------------------------- */
.iqgj-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(231,19,50,.2);
    border-top-color: var(--iqgj-red);
    border-radius: 50%;
    animation: iqgj-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes iqgj-spin {
    to { transform: rotate(360deg); }
}

/* ---- Widget list ------------------------------------------------- */
.iqgj-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.iqgj-widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--iqgj-border, #eee);
}

.iqgj-widget-list li:last-child {
    border-bottom: none;
}

.iqgj-widget-list a {
    font-weight: 600;
    color: var(--iqgj-navy, #001236);
    display: block;
    text-decoration: none;
}

.iqgj-widget-list a:hover {
    color: var(--iqgj-red, #E71332);
}

.iqgj-widget-location {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.iqgj-widget-footer {
    margin-top: 12px;
    font-size: 13px;
}

.iqgj-widget-footer a {
    color: var(--iqgj-red, #E71332);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 600px) {
    .iqgj-job {
        flex-direction: column;
        align-items: flex-start;
    }

    .iqgj-job__actions {
        flex-direction: row;
        width: 100%;
    }

    .iqgj-btn {
        flex: 1;
    }

    .iqgj-filters__field,
    .iqgj-filters__search {
        flex: 1 1 100%;
    }
}
