* { box-sizing: border-box; }
:root {
    --primary: #1d4ed8;
    --primary-dark: #1638a8;
    --accent: #16a34a;
    --text: #1a1a2e;
    --muted: #64748b;
    --border: #e5e7eb;
    --bg-soft: #f7f8fb;
}
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0; color: var(--text); background: var(--bg-soft); line-height: 1.6; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
.logo { font-weight: 800; font-size: 21px; color: var(--primary); text-decoration: none; letter-spacing: -0.3px; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.main-nav a { margin-left: 4px; padding: 8px 12px; text-decoration: none; color: #333; border-radius: 6px; font-size: 14px; font-weight: 500; }
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); }

main.container { padding: 30px 20px 60px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }

/* Hero */
.hero { text-align: center; padding: 56px 20px; background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%); border-radius: 16px; color: #fff; margin-bottom: 10px; }
.hero h1 { font-size: 32px; margin: 0 0 8px; }
.hero p.subtitle { color: #dbeafe; margin: 0 0 20px; font-size: 16px; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.search-form input, .search-form select { padding: 13px 14px; border: none; border-radius: 8px; min-width: 200px; font-size: 14px; }
.hero .btn-primary { background: #fff; color: var(--primary); font-weight: 700; }
.hero .btn-primary:hover { background: #eef2ff; }

/* Trust strip */
.trust-strip { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 18px 0; font-size: 13px; color: var(--muted); }
.trust-strip span { display: flex; align-items: center; gap: 6px; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 12px 22px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 15px; font-weight: 600; transition: background 0.15s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 10px 18px; border-radius: 8px; text-decoration: none; display: inline-block; font-size: 14px; font-weight: 600; }

/* Job cards */
.job-list { display: grid; gap: 14px; margin-top: 20px; }
.job-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s; }
.job-card:hover { box-shadow: 0 4px 16px rgba(29,78,216,0.1); transform: translateY(-2px); }
.job-card h3 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.job-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: #eef2ff; color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 12px; margin: 4px 6px 0 0; font-weight: 600; }
.badge { background: var(--accent); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 10px; margin-left: 6px; font-weight: 600; }

/* Category / country pill grid */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill { background: #fff; border: 1px solid var(--border); padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill .count { background: var(--bg-soft); color: var(--muted); padding: 2px 8px; border-radius: 999px; font-size: 12px; }

section { margin: 40px 0; }
section > h2 { font-size: 22px; margin-bottom: 4px; }
section > p.section-sub { color: var(--muted); margin-top: 0; font-size: 14px; }

/* Forms */
.form-card { max-width: 480px; margin: 0 auto; background: #fff; padding: 28px; border-radius: 12px; border: 1px solid var(--border); }
.form-card label, form label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.form-card input, .form-card select, .form-card textarea,
form input[type=text], form input[type=email], form input[type=password],
form input[type=number], form input[type=url], form input[type=date],
form select, form textarea {
    width: 100%; padding: 11px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,0.12); }
.password-field { display: flex; gap: 8px; }
.toggle-password { background: #eee; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 12px; cursor: pointer; }
.role-toggle { display: flex; gap: 20px; margin-bottom: 10px; }
.inline-fields { display: flex; gap: 10px; flex-wrap: wrap; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.warning-box { background: #fef9c3; border-left: 4px solid #eab308; padding: 12px 16px; margin: 20px 0; font-size: 14px; border-radius: 0 8px 8px 0; }

.job-facts { list-style: none; padding: 0; }
.job-facts li { padding: 5px 0; font-size: 14px; }
.simple-list { list-style: none; padding: 0; }
.simple-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

/* Newsletter box */
.newsletter-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.newsletter-box form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.newsletter-box input[type=email] { max-width: 280px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; font-size: 13px; color: var(--muted); background: #fff; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

.report-box { margin-top: 24px; font-size: 14px; color: var(--muted); }
.report-box summary { cursor: pointer; color: #b91c1c; }

.ad-slot { margin: 20px 0; text-align: center; }

/* Circular flag gallery */
.flag-circle-wrap { display: flex; justify-content: center; padding: 60px 20px; }
.flag-circle { position: relative; width: 320px; height: 320px; }
.flag-circle-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90px; height: 90px; border-radius: 50%; background: var(--bg-soft);
    border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--muted); font-weight: 600; text-align: center;
}
.flag-item {
    position: absolute; top: 50%; left: 50%;
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; overflow: hidden; border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    background: #fff; text-decoration: none;
    transition: width 0.25s, height 0.25s, margin 0.25s, z-index 0s, box-shadow 0.25s;
    z-index: 1;
}
.flag-item img { width: 100%; height: 100%; object-fit: cover; }
.flag-item .flag-fallback { font-weight: 700; color: var(--primary); font-size: 13px; }
.flag-item .flag-label {
    position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap;
    opacity: 0; transition: opacity 0.2s;
}
.flag-item:hover {
    width: 90px; height: 90px; margin: -45px 0 0 -45px; z-index: 10;
    box-shadow: 0 8px 24px rgba(29,78,216,0.3);
}
.flag-item:hover .flag-label { opacity: 1; }

@media (max-width: 640px) {
    .flag-circle { width: 260px; height: 260px; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 24px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .main-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
