/* ================================================
   Career Articles — articlepage.css
   Theme: Modern bold · Sora + Lora · Amber brand
   ================================================ */

:root {
  --brand:        #ff8c00;
  --brand-dark:   #d97400;
  --brand-light:  #fff4e0;
  --ink:          #12100e;
  --ink-2:        #3d3428;
  --ink-3:        #8a7b68;
  --surface:      #fdfaf6;
  --white:        #ffffff;
  --border:       #ece5d8;
  --border-2:     #d8cfc2;
  --radius-card:  16px;
  --radius-pill:  100px;
  --radius-sm:    9px;
  --font-ui:      'Sora', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;
  --ease:         cubic-bezier(.4,0,.2,1);
  --shadow-xs:    0 1px 4px rgba(18,16,14,.06);
  --shadow-sm:    0 4px 14px rgba(18,16,14,.09);
  --shadow-md:    0 10px 32px rgba(18,16,14,.13);
  --shadow-lg:    0 24px 64px rgba(18,16,14,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ui);
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP NAVBAR ─────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #ffffff;
  border-bottom: 1px solid #ebe3d7;
  box-shadow: 0 4px 16px rgba(18, 16, 14, 0.08);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 46px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all .18s var(--ease);
}

.nav-links a:hover {
  color: var(--brand-dark);
  border-color: var(--border);
  background: #fff8ed;
}

.nav-links a.active {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

/* ── HEADER ──────────────────────────────────── */
.header {
  position: relative;
  background: var(--brand);
  overflow: hidden;
  padding: 0;
}

.header-bg-circles { position: absolute; inset: 0; pointer-events: none; }
.hc {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hc1 { width: 520px; height: 520px; top: -220px; right: -120px; }
.hc2 { width: 300px; height: 300px; bottom: -100px; left: 10%; background: rgba(0,0,0,.06); }
.hc3 { width: 160px; height: 160px; top: 40px; left: 5%; }

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 24px 34px;
}

.header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.header-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.header-title em { font-style: italic; opacity: .82; }

.header-sub {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(255,255,255,.78);
  margin-bottom: 24px;
  letter-spacing: .01em;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat span { font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.65); text-transform: uppercase; }
.stat-div { width: 1px; height: 32px; background: rgba(255,255,255,.25); }

/* ── CONTAINER ───────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ── FILTER BAR ──────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.search-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  pointer-events: none;
}
#search-input {
  width: 100%;
  padding: 11px 38px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: .92rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,140,0,.13);
}
#search-input::placeholder { color: var(--ink-3); }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: .78rem;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: none;
  transition: color .15s;
}
.search-clear:hover { color: var(--brand); }
.search-clear.visible { display: block; }

.search-btn {
  min-width: 96px;
  flex-shrink: 0;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .86rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.search-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* Category pills */
.cat-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cat-pill {
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.cat-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(255,140,0,.28);
}

/* ── META LINE ───────────────────────────────── */
.meta-line {
  font-size: .82rem;
  color: var(--ink-3);
  margin-bottom: 22px;
  min-height: 20px;
}

/* ── GRID ────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* ── CARD ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  animation: slideUp .38s var(--ease) both;
  animation-delay: calc(var(--i) * 35ms);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,140,0,.22);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Category badge */
.cat-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-light);
  color: var(--brand-dark);
}
.cat-badge.cat-technology  { background: #e3f2fd; color: #1565c0; }
.cat-badge.cat-medical     { background: #fce4ec; color: #c2185b; }
.cat-badge.cat-government  { background: #e8f5e9; color: #2e7d32; }
.cat-badge.cat-aviation    { background: #e1f5fe; color: #0277bd; }
.cat-badge.cat-law         { background: #f3e5f5; color: #7b1fa2; }
.cat-badge.cat-creative    { background: #fff3e0; color: #e65100; }
.cat-badge.cat-management  { background: #e0f2f1; color: #00695c; }
.cat-badge.cat-engineering { background: #fffde7; color: #f57f17; }

.card-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--border-2);
  letter-spacing: .04em;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -.01em;
}

.card-desc {
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}

.card-foot {
  display: flex;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .18s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 5px 16px rgba(255,140,0,.32);
  transform: translateY(-1px);
}
.btn-primary svg { flex-shrink: 0; transition: transform .18s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-ui);
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

/* ── EMPTY STATE ─────────────────────────────── */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-3);
}
.empty-icon { font-size: 3.2rem; margin-bottom: 16px; }
.empty p { font-size: .95rem; line-height: 1.7; margin-bottom: 22px; }
.empty button {
  padding: 10px 24px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.empty button:hover { background: var(--brand-dark); }

/* ── MODAL ───────────────────────────────────── */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(18,16,14,.5);
  backdrop-filter: blur(5px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}
.modal-wrap.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 38px 34px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.96);
  transition: transform .26s var(--ease);
}
.modal-wrap.open .modal { transform: none; }

.modal-x {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .15s;
}
.modal-x:hover { background: var(--border); }

.modal-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal-article {
  font-size: .84rem;
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 24px;
  min-height: 18px;
}

.modal-form { display: flex; flex-direction: column; gap: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  resize: none;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,140,0,.12);
}
.form-input.error { border-color: #e53935; }
.form-ta { height: 86px; }

.modal-submit {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
}
.modal-submit:hover:not(:disabled) {
  background: var(--brand-dark);
  box-shadow: 0 5px 18px rgba(255,140,0,.3);
}
.modal-submit:disabled { opacity: .7; cursor: not-allowed; }
.modal-submit.success { background: #2e7d32 !important; }

/* ── FOOTER ──────────────────────────────────── */
.footer {
  text-align: center;
  padding: 22px;
  font-size: .8rem;
  color: var(--ink-3);
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
  .top-nav       { height: auto; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .nav-logo img  { height: 40px; }
  .header-inner   { padding: 40px 18px 34px; }
  .container      { padding: 24px 14px 60px; }
  .filter-bar     { padding: 16px; }
  .grid           { grid-template-columns: 1fr; gap: 14px; }
  .card           { padding: 20px 18px 16px; }
  .modal          { padding: 28px 20px; }
  .form-row       { grid-template-columns: 1fr; }
  .header-stats   { gap: 14px; }
  .search-row     { flex-direction: column; align-items: stretch; }
  .search-wrap    { max-width: 100%; }
}

@media (min-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-row { width: 100%; }
  .search-wrap { max-width: 520px; }
  .cat-scroll { width: 100%; }
}
