@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/centurygothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/centurygothic_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf')
    format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f7fb;
  --ink: #0f1d40;
  --brand: #27145a;
  --accent: #f0c440;
  --accent-2: #7a6ff0;
  --muted: #5c6175;
  --panel: #ffffff;
  --border: #e3e8f3;
  --shadow: 0 12px 40px rgba(13, 23, 61, 0.12);
  --success: #1c9c4a;
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 4l9 6.5V20a1 1 0 0 1-1 1h-4v-6H8v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --icon-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 6.5 10a6 6 0 1 0 11 0z'/%3E%3C/svg%3E");
  --icon-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
  --icon-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2H9z'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
  --icon-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h12v14H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z'/%3E%3Cpath d='M16 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M8 10h4'/%3E%3Cpath d='M8 14h6'/%3E%3C/svg%3E");
  --icon-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.09a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.09a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.09a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
  --icon-science: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3h4'/%3E%3Cpath d='M9 3v2l-6 10.5a2 2 0 0 0 1.74 3h14.52A2 2 0 0 0 21 15.5L15 5V3'/%3E%3Cpath d='M7.5 9h9'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Century Gothic', 'Montserrat', 'Helvetica Neue', sans-serif;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(122, 111, 240, 0.08),
      transparent 32%
    ),
    radial-gradient(circle at 80% 0%, rgba(240, 196, 64, 0.12), transparent 36%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 210;
  background-color: transparent;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-icon {
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}
.mobile-menu-open .menu-icon {
  background: transparent;
}
.mobile-menu-open .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-open .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.links a,
.links button {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.links a:hover,
.links button:hover {
  color: var(--brand);
  background: rgba(122, 111, 240, 0.12);
}

.dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 180px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  /* Keep under header (header z-index: 200) so logo/close remain visible. */
  z-index: 180;
  padding: calc(76px + env(safe-area-inset-top, 0px)) 20px 24px;
  overflow-y: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu nav a,
.mobile-menu .mobile-focus-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-focus {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-focus a {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}
.mobile-menu nav a:hover {
  color: var(--brand);
}
.mobile-menu nav a::after {
  content: '→';
  font-weight: 700;
  color: var(--brand);
}
.mobile-focus-title::after {
  content: '';
}
.mobile-menu-open .mobile-menu {
  display: block;
}
body.mobile-menu-open {
  overflow: hidden;
}

.links a::before,
.links button::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 18px 18px;
}

.links a[data-icon='home']::before {
  mask-image: var(--icon-home);
  -webkit-mask-image: var(--icon-home);
}
.links a[data-icon='info']::before {
  mask-image: var(--icon-info);
  -webkit-mask-image: var(--icon-info);
}
.links a[data-icon='drop']::before {
  mask-image: var(--icon-drop);
  -webkit-mask-image: var(--icon-drop);
}
.links button[data-icon='science']::before {
  mask-image: var(--icon-science);
  -webkit-mask-image: var(--icon-science);
}
.links a[data-icon='briefcase']::before {
  mask-image: var(--icon-briefcase);
  -webkit-mask-image: var(--icon-briefcase);
}
.links a[data-icon='news']::before {
  mask-image: var(--icon-news);
  -webkit-mask-image: var(--icon-news);
}
.links a[data-icon='gear']::before {
  mask-image: var(--icon-gear);
  -webkit-mask-image: var(--icon-gear);
}

.dropdown-menu a::before {
  display: none !important;
}

@media (min-width: 426px) {
  .links a::before,
  .links button::before {
    display: none;
  }
}

main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  background: linear-gradient(
    135deg,
    rgba(122, 111, 240, 0.1),
    rgba(240, 196, 64, 0.1)
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: center;
}

.hero-text,
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* .eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 999px;
} */

h1 {
  font-size: 30px;
  margin-bottom: 4px;
  color: var(--ink);
}

.hero p,
p.lede {
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.card-img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.card h3 {
  margin-bottom: 4px;
  font-size: 18px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  color: var(--ink);
  font-size: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(122, 111, 240, 0.12);
  color: var(--brand);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.pill strong {
  color: var(--ink);
}

.pill.success {
  background: rgba(28, 156, 74, 0.12);
  color: var(--success);
  border: 1px solid rgba(28, 156, 74, 0.4);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), #0f1d40);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.button.ghost {
  border-color: var(--border);
  color: var(--brand);
  background: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  line-height: 1.7;
  color: var(--ink);
}

.content h2,
.content h3,
.content h4 {
  color: var(--ink);
  margin-top: 18px;
}

.content p {
  margin: 12px 0;
  color: var(--muted);
}

.job-header,
.apply-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.apply,
.apply-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #0f1d40);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  width: fit-content;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 13px;
}

.admin-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

body.nav-compact .nav {
  padding: 10px 14px;
}

body.nav-compact .brand-logo {
  height: 38px;
}

body.nav-compact .links a,
body.nav-compact .links button {
  padding: 7px 8px;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 16px;
    overflow: visible;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .links {
    display: none;
  }
  .links a,
  .links button {
    font-size: 13px;
    padding: 7px 8px;
    white-space: nowrap;
  }
  main {
    padding: 44px 16px 64px;
    gap: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .hero-panel {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .brand-logo {
    height: 40px;
  }
  h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .links {
    display: none;
  }
  main {
    padding: 32px 14px 52px;
  }
  .card {
    padding: 16px;
  }
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .button {
    width: 100%;
    justify-content: center;
  }
  .content {
    padding: 20px;
  }
}
