/* ==========================================================
   Probashi Jobs — Inner Public Pages
   ========================================================== */

:root {
    --pj-navy: #0F1B2E;
    --pj-blue: #2563EB;
    --pj-blue-dark: #1D4ED8;
    --pj-pink: #EC1561;
    --pj-pink-dark: #C10E4F;
    --pj-pink-soft: #FCE4EC;
    --pj-gold: #FBBF24;
    --pj-border: #E5E9F0;
    --pj-muted: #6B7280;
    --pj-bg: #F5F7FB;
}

/* ---------- Page banner ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--pj-navy) 0%, #1B2E4A 100%);
    color: #fff;
    padding: 2.5rem 0;
}
.page-banner h1 { font-weight: 800; font-size: 1.9rem; margin-bottom: 0.4rem; }
.page-banner .breadcrumb-nav { font-size: 0.86rem; color: rgba(255,255,255,0.75); }
.page-banner .breadcrumb-nav a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-banner .breadcrumb-nav a:hover { color: #fff; }
.page-banner .breadcrumb-nav .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ---------- Filter sidebar ---------- */
.filter-card {
    background: #fff;
    border: 1px solid var(--pj-border);
    border-radius: 14px;
    padding: 1.4rem;
}
.filter-card h6 { font-weight: 800; color: var(--pj-navy); font-size: 0.92rem; margin-bottom: 0.8rem; }
.filter-card label { font-weight: 600; font-size: 0.82rem; color: #3A4A63; margin-bottom: 0.3rem; }
.filter-card .form-control, .filter-card .form-select {
    border: 1.5px solid var(--pj-border); border-radius: 8px; font-size: 0.88rem;
}
.filter-card .form-control:focus, .filter-card .form-select:focus {
    border-color: var(--pj-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.filter-check { font-size: 0.85rem; color: #3A4A63; }

/* ---------- Job list card (horizontal, for listing page) ---------- */
.job-list-card {
    background: #fff;
    border: 1px solid var(--pj-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.job-list-card:hover { border-color: var(--pj-pink); box-shadow: 0 8px 20px rgba(236,21,97,0.1); }
.job-list-card .company-logo {
    width: 52px; height: 52px; border-radius: 12px; background: var(--pj-pink-soft); color: var(--pj-pink);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.job-list-card .job-title { font-weight: 800; color: var(--pj-navy); font-size: 1.05rem; text-decoration: none; }
.job-list-card .job-title:hover { color: var(--pj-pink); }
.job-list-card .company-name { font-size: 0.85rem; color: var(--pj-muted); }
.job-list-card .job-meta-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: #3A4A63; margin: 0.55rem 0; }
.job-list-card .job-meta-row i { color: #9AA5B8; width: 15px; }
.job-list-card .badge-tag { font-size: 0.7rem; font-weight: 700; border-radius: 6px; padding: 0.25rem 0.55rem; margin-right: 0.3rem; }
.badge-tag.full-time { background: var(--pj-pink-soft); color: var(--pj-pink-dark); }
.badge-tag.urgent { background: #FEE2E2; color: #DC2626; }
.badge-tag.new { background: #DCFCE7; color: #16A34A; }
.badge-tag.paused { background: #FEF3C7; color: #92400E; }
.job-list-card .apply-col { text-align: right; flex-shrink: 0; }
.job-list-card .posted-time { font-size: 0.74rem; color: #9AA5B8; margin-top: 0.5rem; }

/* ---------- Pagination ---------- */
.pj-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; }
.pj-pagination a, .pj-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--pj-border);
    color: #3A4A63; text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 0 0.6rem;
}
.pj-pagination a:hover { border-color: var(--pj-pink); color: var(--pj-pink); }
.pj-pagination .active { background: var(--pj-pink); border-color: var(--pj-pink); color: #fff; }
.pj-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Country grid card (full page) ---------- */
.country-grid-card {
    background: #fff; border: 1px solid var(--pj-border); border-radius: 14px; padding: 1.4rem;
    text-decoration: none; display: block; height: 100%;
}
.country-grid-card:hover { border-color: var(--pj-pink); box-shadow: 0 8px 20px rgba(236,21,97,0.1); }
.country-grid-card .flag { font-size: 2.4rem; }
.country-grid-card .name { font-weight: 800; color: var(--pj-navy); font-size: 1.05rem; margin-top: 0.6rem; }
.country-grid-card .count { font-size: 0.84rem; color: var(--pj-muted); }
.country-grid-card .arrow { color: var(--pj-pink); font-size: 0.8rem; margin-top: 0.6rem; font-weight: 700; }

/* ---------- Agency card ---------- */
.agency-card {
    background: #fff; border: 1px solid var(--pj-border); border-radius: 14px; padding: 1.4rem; height: 100%;
}
.agency-card .logo-circle {
    width: 56px; height: 56px; border-radius: 50%; background: #EFF6FF; color: var(--pj-blue);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
}
.agency-card .name { font-weight: 800; color: var(--pj-navy); font-size: 1.0rem; margin-top: 0.7rem; }
.agency-card .verified-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; background: #DCFCE7; color: #166534;
    font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem; margin-top: 0.3rem;
}
.agency-card .meta { font-size: 0.82rem; color: var(--pj-muted); margin-top: 0.6rem; }
.agency-card .meta i { width: 16px; color: #9AA5B8; }

/* ---------- Detail page ---------- */
.detail-card { background: #fff; border: 1px solid var(--pj-border); border-radius: 14px; padding: 1.6rem; }
.detail-info-item { text-align: center; padding: 0.9rem; border-radius: 10px; background: #F8FAFC; }
.detail-info-item i { color: var(--pj-blue); font-size: 1.1rem; margin-bottom: 0.4rem; display: block; }
.detail-info-item .label { font-size: 0.72rem; color: var(--pj-muted); }
.detail-info-item .value { font-weight: 700; color: var(--pj-navy); font-size: 0.88rem; }

.sidebar-cta {
    background: var(--pj-navy); color: #fff; border-radius: 14px; padding: 1.5rem; text-align: center;
}
.sidebar-cta h6 { font-weight: 800; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.84rem; color: rgba(255,255,255,0.75); }

/* ---------- Visa check ---------- */
.visa-check-card {
    background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(15,27,46,0.15);
    padding: 2rem; margin-top: -3.5rem; position: relative; z-index: 5;
}
.visa-result-box { border: 1.5px solid var(--pj-border); border-radius: 12px; padding: 1.2rem; margin-top: 1.5rem; }
.visa-result-box.found { border-color: #16A34A; background: #F0FDF4; }
.visa-result-box.not-found { border-color: #DC2626; background: #FEF2F2; }

/* ---------- About / Contact ---------- */
.value-card { background: #fff; border: 1px solid var(--pj-border); border-radius: 14px; padding: 1.4rem; height: 100%; text-align: center; }
.value-card .icon-circle {
    width: 54px; height: 54px; border-radius: 50%; background: #EFF6FF; color: var(--pj-blue);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 0.8rem;
}
.value-card h6 { font-weight: 800; color: var(--pj-navy); }
.value-card p { font-size: 0.84rem; color: var(--pj-muted); margin: 0; }

.contact-info-item { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-info-item .icon-circle {
    width: 44px; height: 44px; border-radius: 50%; background: #EFF6FF; color: var(--pj-blue);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 800; color: var(--pj-navy); font-size: 0.9rem; margin-bottom: 0.1rem; }
.contact-info-item p { font-size: 0.84rem; color: var(--pj-muted); margin: 0; }

/* ---------- Visa timeline (used on visa-check.php) ---------- */
.visa-timeline { list-style: none; padding: 0; margin: 0; position: relative; text-align: left; }
.visa-timeline li { position: relative; padding: 0 0 1.2rem 2rem; display: flex; justify-content: space-between; align-items: flex-start; }
.visa-timeline li:last-child { padding-bottom: 0; }
.visa-timeline li::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: -4px; width: 2px; background: var(--pj-border); }
.visa-timeline li:last-child::before { display: none; }
.visa-timeline .dot { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; }
.visa-timeline .dot.completed { background: #16A34A; }
.visa-timeline .dot.in_progress { background: #fff; border: 3px solid var(--pj-blue); }
.visa-timeline .dot.pending { background: #fff; border: 2px solid var(--pj-border); }
.visa-timeline .step-name { font-weight: 700; color: var(--pj-navy); font-size: 0.86rem; }
.visa-timeline li.pending .step-name { color: #9AA5B8; font-weight: 600; }
.visa-timeline .step-date { font-size: 0.76rem; color: var(--pj-muted); white-space: nowrap; }

@media (max-width: 767px) {
    .job-list-card { flex-direction: column; }
    .job-list-card .apply-col { text-align: left; width: 100%; }
}

.job-list-card .bookmark-btn {
    background: none; border: none; color: #F3C2D3; font-size: 1.1rem; z-index: 2; padding: 0.3rem;
}
.job-list-card .bookmark-btn i.fa-solid { color: var(--pj-pink); }

/* ---------- Mobile Bottom Navigation (public pages, app-style) ---------- */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    background: #fff; border-top: 1px solid #F1D9E2;
    display: flex; justify-content: space-around; align-items: center;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(15,27,46,0.08);
}
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    text-decoration: none; color: #9AA5B8; font-size: 0.68rem; font-weight: 600; flex: 1; padding: 0.3rem 0;
}
.mobile-bottom-nav a i { font-size: 1.15rem; }
.mobile-bottom-nav a.active { color: #EC1561; }

@media (max-width: 991px) {
    body { padding-bottom: 70px; }
}
