:root {
  --primary-900: #002e5a;
  --primary-700: #0c4f80;
  --primary-500: #0c80d7;
  --accent-500: #368d22;
  --accent-500-rgb: 54, 141, 34;
  --accent-400: #31d2f7;
  --neutral-900: #112135;
  --neutral-800: #1c2e43;
  --neutral-700: #3d4a5c;
  --neutral-200: #e2ebf4;
  --neutral-100: #f4f7fb;
  --neutral-050: #f8fbff;
  --card-shadow: 0 18px 50px rgba(13, 51, 89, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container-max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--neutral-900);
  background: var(--neutral-050);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary-700);
}

.container {
  width: min(var(--container-max), 92vw);
  margin: 0 auto;
}

header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(12, 79, 128, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 30px rgba(6, 41, 78, 0.08);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  will-change: box-shadow;
  contain: layout style;
}

header.scrolled {
  padding: 0;
  box-shadow: 0 2px 10px rgba(6, 41, 78, 0.1);
}

header.scrolled .brand {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

header.scrolled .top-bar {
  padding: 6px 12px;
  justify-content: flex-end;
  min-height: 40px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  gap: 24px;
  transition: padding 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              min-height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              justify-content 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: padding, min-height;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: opacity, width, height;
}

.brand-logo {
  height: 70px;
  vertical-align: middle;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: #fff;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: var(--neutral-700);
}

nav li {
  position: relative;
}

nav a:hover::after,
nav a:focus-visible::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-400);
}

.cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-primary {
  background: var(--primary-700);
  color: #fff;
  box-shadow: 0 14px 30px rgba(12, 79, 128, 0.22);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(12, 79, 128, 0.32);
}

.cta-secondary {
  background: rgba(12, 79, 128, 0.06);
  color: var(--primary-700);
  border: 1px solid rgba(12, 79, 128, 0.18);
}

.hero {
  background: radial-gradient(circle at 20% 20%, rgba(49, 210, 247, 0.2) 0%, rgba(12, 79, 128, 0) 55%),
    radial-gradient(circle at 80% 10%, rgba(12, 128, 215, 0.35) 0%, rgba(12, 128, 215, 0) 50%),
    linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 45%, #0779b5 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 30px 60px rgba(4, 33, 61, 0.25);
}

.announcement {
  background: linear-gradient(135deg, rgba(49, 210, 247, 0.2), rgba(12, 79, 128, 0.18));
  border-bottom: 1px solid rgba(12, 79, 128, 0.12);
  padding: 20px 0;
  color: var(--neutral-900);
  box-shadow: 0 12px 36px rgba(6, 41, 78, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(12, 79, 128, 0.12), rgba(var(--accent-500-rgb), 0.28));
  color: var(--primary-700);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.announcement-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.announcement-button {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-700);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.announcement-button:hover,
.announcement-button:focus-visible {
  background: var(--primary-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 79, 128, 0.3);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="600" height="600" viewBox="0 0 600 600" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 500 Q300 420 600 530 V600 H0 Z" fill="%23085f94" opacity="0.25"/%3E%3Cpath d="M0 440 Q300 520 600 430 V600 H0 Z" fill="%23034c7a" opacity="0.25"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
  opacity: 0.4;
}

.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -90px;
  transform: translateX(-50%);
  width: min(1200px, 90vw);
  height: 180px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 88px 0 120px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(var(--accent-500-rgb), 0.45));
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 540px;
}


.hero aside {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero aside h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  color: #fff;
}

.hero aside p {
  margin: 12px 0;
  font-size: 0.98rem;
}

.section {
  padding: 81px 0 63px;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

main .section:nth-of-type(odd) {
  background: linear-gradient(160deg, rgba(12, 79, 128, 0.05) 0%, rgba(49, 210, 247, 0.08) 45%, rgba(255, 255, 255, 0) 100%);
}

main .section:nth-of-type(odd)::after {
  content: '';
  position: absolute;
  inset: 40px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 90%);
  pointer-events: none;
  border-radius: 48px 48px 0 0;
  opacity: 0.4;
  z-index: -1;
}

.section-header {
  margin-bottom: 48px;
  position: relative;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--primary-900);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-accent {
  width: 38px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-400), var(--primary-500));
}

.section-header p {
  margin: 0;
  color: var(--neutral-700);
  max-width: 640px;
}

.tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(12, 79, 128, 0.28);
  font-weight: 500;
  color: var(--primary-700);
  transition: all 0.2s ease;
}

.tag-chip:hover,
.tag-chip--active {
  background: var(--primary-700);
  color: #fff;
  border-color: transparent;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  border: 1px solid rgba(12, 79, 128, 0.08);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(135deg, var(--accent-400), var(--primary-500));
}

.info-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-900);
}

.info-card p {
  margin: 0;
  color: var(--neutral-700);
}

.media-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.video-shell {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--neutral-800);
}

.media-copy h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary-900);
}

.jobs-section {
  background: #fff;
  position: relative;
}

.search-filter-container {
  margin-bottom: 32px;
}

.job-search {
  position: relative;
  max-width: 600px;
  margin-bottom: 20px;
}

.job-search input {
  width: 100%;
  padding: 14px 50px 14px 48px;
  border: 2px solid rgba(12, 79, 128, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--neutral-900);
  background: #fff;
  transition: all 0.2s ease;
}

.job-search input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 4px 20px rgba(12, 128, 215, 0.15);
}

.job-search input::placeholder {
  color: var(--neutral-700);
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-700);
  pointer-events: none;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 79, 128, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-700);
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: rgba(12, 79, 128, 0.18);
  color: var(--primary-900);
}

.job-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(12, 79, 128, 0.06);
  border: 1px solid rgba(12, 79, 128, 0.12);
  box-shadow: 0 10px 24px rgba(6, 41, 78, 0.08);
}

.job-filter-label {
  font-weight: 700;
  color: var(--primary-700);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(12, 79, 128, 0.15);
  color: var(--neutral-800);
  background: #fff;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  color: var(--primary-700);
  box-shadow: 0 4px 14px rgba(12, 79, 128, 0.16);
}

.filter-pill--active {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: #fff;
  border-color: var(--primary-700);
  box-shadow: 0 8px 20px rgba(12, 79, 128, 0.22);
}

.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.job-list--related {
  margin-top: 18px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(12, 79, 128, 0.1);
  box-shadow: 0 12px 30px rgba(12, 51, 89, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card--compact {
  text-decoration: none;
  color: inherit;
}

.job-card--compact:hover,
.job-card--compact:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 51, 89, 0.14);
}

.job-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-org {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--primary-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.job-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-900);
}

.job-card-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--neutral-700);
}

.job-card-meta span + span::before {
  content: '•';
  margin: 0 6px;
  color: rgba(17, 33, 53, 0.4);
}

.job-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-500);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-card-link::after {
  content: '→';
  font-size: 1rem;
}

.empty-state {
  background: rgba(12, 79, 128, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--neutral-700);
}

.job-detail-section {
  background: #fff;
  padding-top: 24px;
}

.job-detail-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.back-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--primary-700);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--primary-500);
}

.job-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 56px 48px;
  box-shadow: 0 30px 60px rgba(13, 51, 89, 0.14);
  border: 1px solid rgba(12, 79, 128, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-detail-header {
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(12, 79, 128, 0.04), rgba(49, 210, 247, 0.06));
  border-radius: var(--radius-md);
  position: relative;
}

.job-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-700) 0%, var(--accent-400) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.job-detail-header .job-org {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--primary-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.job-detail-header h1 {
  margin: 0 0 20px;
  font-size: 2.2rem;
  color: var(--primary-900);
  line-height: 1.2;
}

.job-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.95rem;
  color: var(--neutral-800);
}

.job-detail-meta strong {
  color: var(--primary-700);
  font-weight: 600;
  margin-right: 6px;
}

.job-detail-body {
  color: var(--neutral-800);
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 20px;
  padding-right: 20px;
}

.job-detail-body h1,
.job-detail-body h2,
.job-detail-body h3 {
  color: #00b0f0;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.job-detail-body h1:first-child,
.job-detail-body h2:first-child,
.job-detail-body h3:first-child {
  margin-top: 0;
}

.job-detail-body h1 {
  font-size: 1.5em;
}

.job-detail-body h2 {
  font-size: 1.25em;
}

.job-detail-body h3 {
  font-size: 1em;
}

.job-detail-body p {
  margin: 0 0 1em;
}

.job-detail-body p:last-child {
  margin-bottom: 0;
}

/* Preserve text alignment from editor */
.job-detail-body .ql-align-center {
  text-align: center;
}

.job-detail-body .ql-align-right {
  text-align: right;
}

.job-detail-body .ql-align-justify {
  text-align: justify;
}

.job-detail-body ul,
.job-detail-body ol {
  margin: 0 0 1em 0;
  padding-left: 2.5em;
}

/* Nested lists should have proper indentation */
.job-detail-body li ul,
.job-detail-body li ol {
  margin: 0.5em 0;
  padding-left: 2.5em;
}

.job-detail-body li {
  margin-left: 0;
  padding-left: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* Quill indent classes for nested list items - use margin to move both bullet and text */
.job-detail-body li.ql-indent-1 { margin-left: 3em; padding-left: 0; }
.job-detail-body li.ql-indent-2 { margin-left: 6em; padding-left: 0; }
.job-detail-body li.ql-indent-3 { margin-left: 9em; padding-left: 0; }
.job-detail-body li.ql-indent-4 { margin-left: 12em; padding-left: 0; }
.job-detail-body li.ql-indent-5 { margin-left: 15em; padding-left: 0; }
.job-detail-body li.ql-indent-6 { margin-left: 18em; padding-left: 0; }
.job-detail-body li.ql-indent-7 { margin-left: 21em; padding-left: 0; }
.job-detail-body li.ql-indent-8 { margin-left: 24em; padding-left: 0; }

.job-detail-body li:last-child {
  margin-bottom: 0;
}

/* Blockquote styling for Word paste */
.job-detail-body blockquote {
  border-left: 4px solid #00b0f0;
  padding-left: 1em;
  margin: 1em 0;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--neutral-700);
}

/* Code block styling for Word paste */
.job-detail-body pre,
.job-detail-body pre.ql-syntax {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Strike-through styling */
.job-detail-body s,
.job-detail-body strike,
.job-detail-body del {
  text-decoration: line-through;
}

/* Quill font size classes */
.job-detail-body .ql-size-small {
  font-size: 0.75em;
}

.job-detail-body .ql-size-large {
  font-size: 1.5em;
}

.job-detail-body .ql-size-huge {
  font-size: 2.5em;
}

/* Quill indent classes */
.job-detail-body .ql-indent-1 {
  padding-left: 3em;
}

.job-detail-body .ql-indent-2 {
  padding-left: 6em;
}

.job-detail-body .ql-indent-3 {
  padding-left: 9em;
}

.job-detail-body .ql-indent-4 {
  padding-left: 12em;
}

.job-detail-body .ql-indent-5 {
  padding-left: 15em;
}

.job-detail-body .ql-indent-6 {
  padding-left: 18em;
}

.job-detail-body .ql-indent-7 {
  padding-left: 21em;
}

.job-detail-body .ql-indent-8 {
  padding-left: 24em;
}

/* Ensure underline and bold/italic work on the frontend */
.job-detail-body strong,
.job-detail-body b {
  font-weight: 600;
}

.job-detail-body em,
.job-detail-body i {
  font-style: italic;
}

.job-detail-body u {
  text-decoration: underline;
}

/* Link styling */
.job-detail-body a {
  color: var(--primary-500);
  text-decoration: underline;
}

.job-detail-body a:hover {
  color: var(--primary-700);
}

.employment-details {
  padding: 24px 64px;
  margin-top: 32px;
  border-top: 1px solid rgba(12, 79, 128, 0.12);
}

.employment-details h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--primary-700);
  font-weight: 600;
}

.employment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.employment-table tr {
  border-bottom: 1px solid rgba(12, 79, 128, 0.08);
}

.employment-table tr:last-child {
  border-bottom: none;
}

.employment-table td {
  padding: 12px 8px;
  vertical-align: top;
}

.employment-table td.label {
  font-weight: 600;
  color: var(--primary-700);
  width: 40%;
}

.employment-table td.value {
  color: var(--neutral-800);
}

.job-detail-actions {
  margin-top: auto;
}

.application-instructions {
  background: linear-gradient(135deg, rgba(12, 79, 128, 0.08), rgba(54, 141, 34, 0.08));
  border-left: 4px solid var(--primary-700);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.application-instructions h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--primary-700);
}

.application-instructions p {
  margin: 0;
  color: var(--neutral-800);
  line-height: 1.7;
}

.application-instructions strong {
  color: var(--primary-900);
}

.related-jobs {
  margin-top: 18px;
}

.related-jobs h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--primary-900);
}

.cta-panel {
  background: linear-gradient(135deg, rgba(12, 79, 128, 0.1), rgba(12, 128, 215, 0.2));
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(12, 79, 128, 0.1);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  color: var(--primary-900);
}

.cta-panel p {
  margin: 0;
  color: var(--neutral-700);
}

footer {
  padding: 64px 0 0;
  background: linear-gradient(135deg, #002e5a 0%, #003a70 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 36px rgba(12, 38, 66, 0.12);
  color: #f4f7fb;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(49, 210, 247, 0.4) 20%,
    rgba(12, 128, 215, 0.6) 50%,
    rgba(49, 210, 247, 0.4) 80%,
    transparent 100%
  );
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand-text {
  font-weight: 600;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a {
  position: relative;
  transition: color 0.2s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(49, 210, 247, 0.8);
  transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: rgba(49, 210, 247, 0.25);
  border-color: rgba(49, 210, 247, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 210, 247, 0.3);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: rgba(49, 210, 247, 0.9);
  text-decoration-color: rgba(49, 210, 247, 0.5);
}

.footer-separator {
  opacity: 0.4;
}

@media (max-width: 1024px) {
  nav ul {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero .container,
  .media-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero::before {
    bottom: -120px;
    height: 200px;
  }

  .hero {
    text-align: center;
  }

  .hero p {
    margin: 0 auto 24px;
  }

  .cta-group {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 63px 0 54px;
  }

  .hero .container {
    padding: 72px 18px 90px;
    gap: 36px;
  }

  .job-detail-section {
    padding-top: 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero::before {
    bottom: -150px;
    height: 220px;
  }

  .job-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-detail-card {
    padding: 24px 24px 30px;
  }

  /* Increase container width on mobile to provide more space */
  .container {
    width: min(var(--container-max), 100%);
    padding: 0 18px;
  }

  .top-bar {
    padding: 12px 12px !important;
    gap: 8px;
    /* Disable transitions on mobile to prevent layout shifts */
    transition: none !important;
  }

  header.scrolled .top-bar {
    padding: 6px 12px !important;
    /* Keep space-between layout on mobile instead of flex-end */
    justify-content: space-between !important;
  }

  .brand-logo {
    height: 40px;
  }

  .brand {
    font-size: 0.75rem;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Disable transitions on mobile */
    transition: none !important;
  }

  nav ul {
    gap: 12px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .job-detail-header {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  /* Further increase container width for smaller screens */
  .container {
    width: min(var(--container-max), 100%);
    padding: 0 20px;
  }

  .hero .container {
    padding: 60px 20px 72px;
    gap: 28px;
  }

  .brand-logo {
    height: 35px;
  }

  .brand {
    font-size: 0.7rem;
    gap: 6px;
  }

  .brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  nav a {
    font-size: 0.9rem;
  }

  .top-bar {
    gap: 8px;
    padding: 10px 12px !important;
  }

  header.scrolled .top-bar {
    padding: 6px 12px !important;
  }

  .job-detail-section {
    padding-top: 16px;
  }
}

@media (max-width: 340px) {
  .brand-logo {
    height: 30px;
  }

  .brand {
    font-size: 0.65rem;
    gap: 4px;
  }

  .brand span {
    max-width: 100px;
  }

  nav a {
    font-size: 0.85rem;
  }

  .top-bar {
    gap: 6px;
  }
}


