/* All Jobs / All Postings page */

.aj-page {
    background: #f7f9fb;
    min-height: 70vh;
    padding-bottom: 3rem;
}

/* Header */
.aj-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #212529;
}
.aj-sub {
    color: #6c757d;
    font-size: 1rem;
}

/* Category tabs */
.aj-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #e3e7eb;
    padding-bottom: 0.75rem;
}
.aj-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d8dee4;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.aj-tab:hover {
    border-color: #198754;
    color: #198754;
    text-decoration: none;
}
.aj-tab-active {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}
.aj-tab-active:hover {
    color: #ffffff;
    background: #157347;
    border-color: #157347;
}
.aj-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
}
.aj-tab-active .aj-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Filter bar */
.aj-filterbar {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.aj-filterbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.aj-search-wrap {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}
.aj-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
.aj-search {
    width: 100%;
    height: 42px;
    padding: 0 0.85rem 0 2.3rem;
    border-radius: 8px;
    border: 1px solid #d8dee4;
    font-size: 0.95rem;
    background: #ffffff;
    color: #212529;
}
.aj-search:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}
.aj-select {
    height: 42px;
    padding: 0 2rem 0 0.85rem;
    border-radius: 8px;
    border: 1px solid #d8dee4;
    font-size: 0.95rem;
    background: #ffffff;
    color: #212529;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #6c757d 50%),
        linear-gradient(135deg, #6c757d 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 18px,
        calc(100% - 11px) 18px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.aj-select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

/* Buttons */
.aj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1.2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.aj-btn-primary {
    background: #198754;
    color: #ffffff;
}
.aj-btn-primary:hover {
    background: #157347;
    color: #ffffff;
    text-decoration: none;
}
.aj-btn-ghost {
    background: transparent;
    color: #495057;
    border-color: #d8dee4;
}
.aj-btn-ghost:hover {
    border-color: #198754;
    color: #198754;
    text-decoration: none;
}

/* Result meta */
.aj-result-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Card grid */
.aj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}
.aj-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.aj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #b7e0c8;
    text-decoration: none;
    color: inherit;
}
.aj-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e6f4ec 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aj-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aj-card-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: #198754;
    letter-spacing: -0.02em;
}
.aj-card-badges {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.25rem;
}
.aj-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}
.aj-badge-remote { background: #198754; }
.aj-badge-hybrid { background: #0d6efd; }
.aj-badge-on-site { background: #495057; }

.aj-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.aj-card-cat {
    color: #198754;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
.aj-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aj-card-business {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}
.aj-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-size: 0.85rem;
}
.aj-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.aj-meta-item svg {
    flex-shrink: 0;
    color: #198754;
}
.aj-card-foot {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #6c757d;
}
.aj-card-view {
    color: #198754;
    font-weight: 700;
}

/* Pagination */
.aj-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
}
.aj-pagination .aj-page {
    min-width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #d8dee4;
    color: #495057;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.15s ease;
}
.aj-pagination .aj-page:hover {
    border-color: #198754;
    color: #198754;
    text-decoration: none;
}
.aj-pagination .aj-page-current {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}
.aj-pagination .aj-page-current:hover {
    background: #157347;
    border-color: #157347;
    color: #ffffff;
}
.aj-pagination .aj-page-disabled {
    color: #adb5bd;
    background: #f8f9fa;
    cursor: not-allowed;
}
.aj-pagination .aj-page-ellipsis {
    border: none;
    background: transparent;
}

/* Empty state */
.aj-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: #ffffff;
    border: 1px dashed #d8dee4;
    border-radius: 12px;
}
.aj-empty-icon {
    color: #adb5bd;
    margin-bottom: 1rem;
}
.aj-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}
.aj-empty-sub {
    color: #6c757d;
    max-width: 28rem;
    margin: 0 auto 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 575px) {
    .aj-title { font-size: 1.5rem; }
    .aj-filterbar-row > * { flex: 1 1 100%; }
    .aj-tab-label { font-size: 0.85rem; }
}

/* User (Member) card variant */
.aj-card-user .aj-user-media {
    aspect-ratio: 1 / 1;
    max-height: 180px;
}
.aj-card-user .aj-user-media img {
    object-fit: cover;
}
.aj-card-user .aj-card-initials {
    font-size: 3rem;
}
.aj-user-about {
    color: #495057;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (min-device-width: 320px) and (max-device-width: 455px) {
    body, h1, h2, h3, h4, h5, h6 { font-size: 4vw !important; }
    .btn-default { font-size: 3vw !important; }
    .btn { font-size: 3.5vw !important; }
    .icon { width: 6vw !important; }
    input { font-size: 3.5vw !important; }
}
