:root {
    --brand: #1e6dbb;
    --brand-dark: #16528d;
    --ink: #1a2233;
    --muted: #667085;
    --border: #e4e7ec;
    --bg: #f7f9fc;
    --white: #ffffff;
    --radius: 10px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand:hover { text-decoration: none; }
.topbar-brand img { height: 32px; width: 32px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--ink); }
.brand-name.accent, .brand-name .accent { color: var(--brand); }

.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-bar .wrap { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; }
.breadcrumb-bar a { color: var(--muted); margin-right: 8px; }
.breadcrumb-bar a:hover { color: var(--brand); }
.breadcrumb-bar .crumb-sep { color: var(--border); margin-right: 8px; }
.breadcrumb-bar .crumb-current { color: var(--ink); font-weight: 600; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1180px; }

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 28px; margin: 0 0 6px; }
.hero p { color: var(--muted); margin: 0; max-width: 560px; }

.careers-layout { display: flex; align-items: flex-start; gap: 28px; margin: 28px 0 60px; }

.filters-sidebar {
    flex: 0 0 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.filters-sidebar h3 { margin: 0 0 16px; font-size: 15px; }
.filters-sidebar .form-group { margin-bottom: 16px; }
.filters-sidebar .form-group:last-of-type { margin-bottom: 18px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; margin: 0; }
.search-row .btn { padding: 10px 16px; flex-shrink: 0; }
.btn-clear { width: 100%; text-align: center; padding: 9px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.job-list-main { flex: 1; min-width: 0; }
.job-toolbar {
    display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap;
    gap: 16px; margin-bottom: 16px;
}
.job-toolbar .search-row { flex: 1 1 auto; min-width: 0; max-width: 700px; }
.job-toolbar .sort-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.job-toolbar .sort-row label { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.job-toolbar .sort-row select { margin: 0; width: auto; min-width: 190px; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.job-card h3 { margin: 0 0 4px; font-size: 17px; }
.job-card .meta { color: var(--muted); font-size: 13.5px; }
.job-card-action { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.apply-deadline-sm { margin: 0; color: #92650b; font-size: 12.5px; font-weight: 600; }
.posted-date-sm { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.job-card .tag {
    display: inline-block; background: #eef4fb; color: var(--brand-dark);
    padding: 2px 10px; border-radius: 999px; font-size: 12.5px; margin-right: 6px;
}
.btn {
    display: inline-block; background: var(--brand); color: #fff !important;
    padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
    border: none; cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: var(--brand-dark); }
.btn-outline {
    background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand);
}

.job-detail { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 24px 0; }
.job-detail h1 { margin-top: 0; }
.job-detail .meta-row { margin: 10px 0 24px; color: var(--muted); }
.job-detail .meta-row .tag { margin-right: 8px; }
.apply-deadline { margin: 0 0 20px; color: #92650b; font-weight: 600; font-size: 14px; }
.posted-date { margin: -14px 0 6px; color: var(--muted); font-size: 13.5px; }
.job-detail .section-title { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 28px 0 10px; }
.job-detail .content { white-space: pre-wrap; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password],
input[type=file], input[type=number], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: var(--white); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } .job-card { flex-direction: column; align-items: flex-start; } }

.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.alert-success { background: #e7f7ee; color: #146c43; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecec; color: #b02a2a; border: 1px solid #f3b8b8; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--white); }
.footer-columns {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 14px; padding: 22px 20px;
}
.footer-legal-entity { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.footer-powered-by { color: var(--muted); font-size: 12.5px; text-align: center; flex: 1; min-width: 160px; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal-links a { color: var(--muted); font-size: 12.5px; margin-left: 18px; }
.footer-legal-links a:first-child { margin-left: 0; }
.footer-legal-links a:hover { color: var(--brand); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #e8f1fb; color: #14568c; }
.badge-amber { background: #fdf2d8; color: #92650b; }
.badge-purple { background: #efe6fb; color: #6a2fc7; }
.badge-teal { background: #dff5f1; color: #0e7d68; }
.badge-green { background: #e3f7e6; color: #167c2f; }
.badge-red { background: #fdecec; color: #b02a2a; }

/* --- Mobile responsiveness --- */
@media (max-width: 800px) {
    .careers-layout { flex-direction: column; }
    .filters-sidebar { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 640px) {
    .topbar-inner { flex-wrap: wrap; row-gap: 8px; }
    .topbar-brand .brand-name { font-size: 16px; }
    .breadcrumb-bar .wrap { font-size: 12px; }
    .hero h1 { font-size: 22px; }
    .job-detail { padding: 20px; }
    .card { padding: 20px; }
    .job-toolbar { flex-direction: column; align-items: stretch; }
    .job-toolbar .search-row { flex: none; width: 100%; }
    .job-toolbar .sort-row { justify-content: space-between; }
    .job-toolbar .sort-row select { flex: 1; }
    .footer-columns { flex-direction: column; text-align: center; }
    .footer-legal-entity { text-align: center; }
    .footer-legal-links { justify-content: center; }
}

