:root {
  --bg: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #0f766e;
  --danger: #b91c1c;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

main {
  padding: 2.25rem 0 3rem;
}

.hero {
  padding: 1.2rem 0 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.86));
  color: #fff;
  border-radius: 32px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}

.hero-card h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-card p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 0;
  color: var(--muted);
}

.filters,
.form-stack,
.login-box,
.apply-box {
  display: grid;
  gap: 0.9rem;
}

.filters,
.login-box,
.apply-box,
.success-box,
.panel,
.job-card,
.admin-table-wrap {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filters,
.login-box,
.apply-box,
.success-box,
.panel {
  padding: 1.25rem;
}

.filters {
  grid-template-columns: 1.5fr 1fr 0.9fr auto;
  align-items: end;
  margin: 1.25rem 0 1.75rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
select,
textarea {
  background: #fff;
  color: var(--text);
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button,
.button,
.button-link,
.admin-topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

button:hover,
.button:hover,
.button-link:hover,
.admin-topbar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

button:active,
.button:active,
.button-link:active,
.admin-topbar a:active {
  transform: translateY(0);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--surface-2);
}

.job-grid {
  display: grid;
  gap: 1rem;
}

.job-card {
  padding: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.28);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.65rem 0 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.badge-muted {
  background: #eef2f7;
  color: #475569;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.content-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.content-card h1,
.content-card h2,
.content-card h3 {
  letter-spacing: -0.03em;
}

.content-card h1 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 1.05;
}

.content-card h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.content-card p {
  color: #334155;
}

.apply-box {
  position: sticky;
  top: 100px;
}

.apply-box h2,
.login-box h1,
.success-box h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.admin-table-wrap {
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-actions a {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--text);
}

.admin-actions a:hover {
  background: var(--surface-2);
}

.narrow {
  max-width: 480px;
  margin: 0 auto;
}

.success-box p,
.error,
.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 600;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.site-footer .container {
  padding: 1.15rem 0;
  color: var(--muted);
  font-weight: 600;
}

.page-stack {
  display: grid;
  gap: 1.2rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .apply-box {
    position: static;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .content-card,
  .job-card,
  .login-box,
  .apply-box,
  .success-box,
  .filters {
    border-radius: 20px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

.hero-cta {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

}
