/* ============================================================
   CSA Job Listing — frontend.css
   All badge styles are applied inline via PHP (from the repeater).
   This file provides structural / layout defaults only, so nothing
   breaks if a builder setting is missing.
   ============================================================ */

/* Wrapper */
.csa-job-wrapper {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Job Grid / List */
.job-list {
    display: grid;
    gap: 15px;
}

.layout-list .job-list {
    grid-template-columns: 1fr;
}

/* Grid columns are set inline by PHP (columns attribute).
   This rule acts as a safe fallback for 2 cols. */
.layout-grid .job-list {
    grid-template-columns: repeat(2, 1fr);
}

/* Job Card */
.job-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 12px;         /* overridden inline by card_radius */
    background: #fff;            /* overridden inline by card_bg */
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.job-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

/* Card Content */
.job-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;                  /* overridden inline by title_color */
}

.job-company {
    font-size: 16px;
    color: #555;
    margin-bottom: 2px;
}

.job-location {
    font-size: 16px;
    color: #888;
    margin-bottom: 10px;
}

.job-desc {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Badge Container */
.job-badge-container {
    display: flex;
    flex-wrap: wrap;              /* default; overridden inline */
    gap: 8px;                     /* default; overridden inline */
    margin-bottom: 8px;
}

/* Individual Badge */
.job-badge {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.3;
    /* Inline styles from PHP take precedence over everything here */
    background: #f1f1f1;
    color: #333333;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    font-size: 16px;
    transition: background 0.15s;
}

.pagination a:hover {
    background: #e4e4e4;
}

.pagination a.active {
    background: #222;
    color: #fff;
    font-weight: 700;
    border-color: #222;
}

/* Similar Jobs */
.similar-jobs {
    margin-top: 16px;
}

.similar-jobs h4 {
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.similar-jobs .pill {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}

.similar-jobs .pill:hover {
    background: #e0e0e0;
}
