/* ============================================
   Jobs Page — External Stylesheet
   ============================================ */

/* ── Search Bar ── */
.job-search-section {
    background: #f7f3ef;
    padding: 30px 0;
    border-bottom: 1px solid #ede3d8;
}
.job-search-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.job-search-box .search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.job-search-box .search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8893a;
    font-size: 16px;
}
.job-search-box input[type="text"],
.job-search-box select {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #e8ddd4;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #faf8f6;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.job-search-box select { padding-left: 40px; cursor: pointer; }
.job-search-box input[type="text"]:focus,
.job-search-box select:focus { border-color: #c8893a; background: #fff; }
.job-search-box .search-input-wrap.select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 14px;
}
.job-search-btn {
    background: linear-gradient(135deg, #c8893a 0%, #a66820 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}
.job-search-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── Main Layout ── */
.jobs-main-section {
    background: #f7f3ef;
    padding: 50px 0;
}

/* ── Category Pills ── */
.job-categories-strip {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.job-categories-strip h5 {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f0eb;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.category-pill:hover,
.category-pill.active {
    background: #fff3e8;
    border-color: #c8893a;
    color: #c8893a;
}
.category-pill i { font-size: 13px; }

/* ── Section Headers ── */
.jobs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.jobs-section-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    padding-left: 14px;
}
.jobs-section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, #c8893a, #a66820);
    border-radius: 2px;
}
.jobs-section-header .view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #c8893a;
    text-decoration: none;
    border: 1.5px solid #c8893a;
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.2s;
}
.jobs-section-header .view-all-link:hover {
    background: #c8893a;
    color: #fff;
}

/* ── Job Card ── */
.job-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    border: 1.5px solid #ede3d8;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8893a, #a66820);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}
.job-card:hover {
    box-shadow: 0 8px 32px rgba(200, 137, 58, 0.15);
    border-color: #c8893a;
    transform: translateY(-3px);
}
.job-card:hover::before { transform: scaleX(1); }

.job-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.job-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff3e8, #ffe0bc);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #c8893a;
}
.job-card-info { flex: 1; min-width: 0; }
.job-card-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-card-info .company-name {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.job-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}
.job-badge.badge-type {
    background: #eef2ff;
    color: #4f46e5;
}
.job-badge.badge-location {
    background: #f0fdf4;
    color: #16a34a;
}
.job-badge.badge-category {
    background: #fff7ed;
    color: #c8893a;
}
.job-badge.badge-trending {
    background: #fef2f2;
    color: #dc2626;
}
.job-badge.badge-featured {
    background: #fefce8;
    color: #ca8a04;
}

.job-card-salary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.job-card-salary .salary-amount {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}
.job-card-salary .salary-period {
    font-size: 12px;
    color: #999;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    flex: 1;
}
.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-card-meta i { color: #c8893a; font-size: 13px; }

.job-card-footer {
    border-top: 1px solid #f0e8e0;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.job-card-footer .openings {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-card-footer .openings i { color: #c8893a; }
.btn-view-job {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #c8893a 0%, #a66820 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-view-job:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

/* ── Sections ── */
.jobs-section { margin-bottom: 50px; }
.jobs-section .jobs-grid { margin-bottom: 0; }

/* ── How It Works ── */
.how-it-works-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    margin-top: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.how-it-works-section h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
    text-align: center;
}
.how-steps { display: flex; flex-wrap: wrap; gap: 20px; }
.how-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    position: relative;
}
.how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 28px;
    width: 20px;
    height: 2px;
    background: #ede3d8;
}
.how-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3e8, #ffe0bc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: #c8893a;
}
.how-step h6 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.how-step p { font-size: 14px; color: #999; margin: 0; line-height: 1.4; }

/* ── No Jobs Found ── */
.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.no-jobs-found i { font-size: 48px; margin-bottom: 16px; color: #ddd; }
.no-jobs-found h5 { color: #888; font-size: 18px; }

/* ── Pagination ── */
.jobs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 6px;
    flex-wrap: wrap;
}
.jobs-pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 1.5px solid #ede3d8;
    color: #666;
    padding: 8px 14px;
    font-size: 14px;
    transition: all 0.2s;
}
.jobs-pagination .page-item.active .page-link {
    background: #c8893a;
    border-color: #c8893a;
    color: #fff;
}
.jobs-pagination .page-item .page-link:hover {
    background: #fff3e8;
    border-color: #c8893a;
    color: #c8893a;
}

/* ══════════════════════════════════════════
   JOB DETAIL PAGE
══════════════════════════════════════════ */

.job-detail-section { padding: 60px 0 80px; background: #f7f3ef; }

/* ── Detail Header Card ── */
.job-detail-header-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1.5px solid #ede3d8;
    border-top: 4px solid #c8893a;
}
.job-detail-header-card .job-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.2;
}
.job-detail-header-card .company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #666;
    margin-bottom: 18px;
}
.job-detail-header-card .company-info i { color: #c8893a; }
.job-detail-header-card .job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.job-detail-header-card .salary-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff3e8, #ffe8cc);
    border: 1.5px solid #e8c49a;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
}
.job-detail-header-card .salary-highlight .amount {
    font-size: 22px;
    font-weight: 800;
    color: #a66820;
}
.job-detail-header-card .salary-highlight .period {
    font-size: 13px;
    color: #999;
}
.btn-apply-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c8893a 0%, #a66820 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(200, 137, 58, 0.35);
}
.btn-apply-now:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 137, 58, 0.45); }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-whatsapp:hover { background: #1eb859; color: #fff; transform: translateY(-2px); }

/* ── Detail Info Grid ── */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}
.job-info-item {
    background: #faf8f6;
    border: 1px solid #ede3d8;
    border-radius: 10px;
    padding: 16px;
}
.job-info-item .info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    margin-bottom: 5px;
}
.job-info-item .info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.job-info-item .info-value i { color: #c8893a; font-size: 14px; }

/* ── Content Blocks ── */
.job-content-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1.5px solid #ede3d8;
}
.job-content-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0e8e0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-content-card h5 i { color: #c8893a; }
.job-content-card p { color: #555; font-size: 14px; line-height: 1.8; margin: 0; }
.job-content-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 14px;
    line-height: 2;
}

/* ── Sidebar ── */
.job-sidebar { position: sticky; top: 90px; }
.sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1.5px solid #ede3d8;
}
.sidebar-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0e8e0;
}

/* ── Related Job Cards (Sidebar) ── */
.related-job-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5ede6;
    text-decoration: none;
    transition: background 0.2s;
}
.related-job-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-job-item:hover { background: #faf8f6; border-radius: 8px; padding-left: 8px; }
.related-job-item .rj-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff3e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #c8893a;
}
.related-job-item .rj-info { flex: 1; min-width: 0; }
.related-job-item .rj-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-job-item .rj-meta { font-size: 12px; color: #999; }
.related-job-item .rj-salary { font-size: 12px; color: #c8893a; font-weight: 600; }

/* ── Apply Modal / Contact ── */
.contact-sidebar-box {
    background: linear-gradient(135deg, #1a0900, #3d1500);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    color: #fff;
}
.contact-sidebar-box h5 { color: #fff; border-bottom-color: rgba(255,255,255,0.1); }
.contact-sidebar-box p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 16px; }
.contact-sidebar-box .phone-number {
    font-size: 18px;
    font-weight: 700;
    color: #f5c07a;
    margin-bottom: 16px;
    display: block;
}

/* ── Apply Modal ── */
.job-apply-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}
.job-apply-modal .modal-header {
    background: linear-gradient(135deg, #1a0900, #3d1500);
    color: #fff;
    border: none;
    padding: 20px 24px;
}
.job-apply-modal .modal-header h5 { color: #fff; font-weight: 700; font-size: 18px; }
.job-apply-modal .btn-close { filter: invert(1); }
.job-apply-modal .modal-body { padding: 28px 24px; }
.job-apply-modal .form-label { font-weight: 600; font-size: 13px; color: #555; }
.job-apply-modal .form-control {
    border: 1.5px solid #e8ddd4;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 14px;
}
.job-apply-modal .form-control:focus { border-color: #c8893a; box-shadow: 0 0 0 3px rgba(200,137,58,0.1); }

/* ── Search page filters ── */
.job-filter-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1.5px solid #ede3d8;
    position: sticky;
    top: 90px;
}
.job-filter-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0e8e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.job-filter-card h5 a { font-size: 12px; font-weight: 500; color: #c8893a; }
.filter-group { margin-bottom: 18px; }
.filter-group label.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}
.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e8ddd4;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #faf8f6;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.filter-group select:focus { border-color: #c8893a; }
.filter-group .check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    cursor: pointer;
}
.filter-group .check-label input[type="checkbox"] { accent-color: #c8893a; width: 15px; height: 15px; }
/* ── Filter select wrapper (dropdown arrow) ── */
.filter-select-wrap {
    position: relative;
}
.filter-select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 13px;
}
.filter-select-wrap select { padding-right: 32px !important; }

.btn-apply-filter {
    width: 100%;
    background: linear-gradient(135deg, #c8893a, #a66820);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-apply-filter:hover { opacity: 0.9; }

/* ── Search results count ── */
.search-result-bar {
    background: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1.5px solid #ede3d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}
.search-result-bar strong { color: #1a1a2e; }

/* ── Mobile Filter Toggle ── */
.btn-mobile-filter {
    width: 100%;
    background: #fff;
    border: 1.5px solid #c8893a;
    color: #c8893a;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-mobile-filter:hover { background: #fff3e8; }
@media (max-width: 991px) {
    #filterSidebar { display: none; }
    #filterSidebar.open { display: block; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .job-sidebar { position: static; }
    .job-filter-card { position: static; }
    .how-step:not(:last-child)::after { display: none; }
    .jobs-page-header h2 { font-size: 26px; }
    .job-detail-header-card .job-title { font-size: 22px; }
}
@media (max-width: 767px) {
    .job-search-box { flex-direction: column; }
    .job-search-box .search-input-wrap { flex: none; width: 100%; min-width: unset; }
    .job-search-btn { width: 100%; }
    .job-info-grid { grid-template-columns: 1fr 1fr; }
    .how-steps { flex-direction: column; }
    .jobs-page-header { padding: 50px 0 35px; }
    .job-detail-header-card { padding: 20px; }
    .btn-apply-now, .btn-whatsapp { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .job-info-grid { grid-template-columns: 1fr; }
}
