/* ============================================================
   Before You Solutions — Careers / Job Posting Styles
   Matching beforeyousolutions.com aesthetic:
   Light background, Lato/Nunito Sans, navy + blue + orange
   ============================================================ */

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* DESIGN TOKENS — matching BYS website palette */
:root {
  --bg: #ffffff;
  --bg-light: #f7f8fc;
  --bg-teal: #2d3940;
  --bg-teal-dark: #1e2830;
  --blue: #2ea3f2;
  --blue-dark: #1a87d4;
  --orange: #FF9900;
  --orange-dark: #e68a00;
  --navy: #2d3940;
  --text: #2c2c2c;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --text-light: #f5f5f5;
  --border: #e4e8ef;
  --border-orange: rgba(255, 153, 0, 0.35);
  --green: #16a34a;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito Sans', 'Lato', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-teal);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.nav-container {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-btn {
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.3);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.4);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  padding: 14px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-bar a {
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb-bar a:hover {
  color: var(--blue);
}

.breadcrumb-bar .sep {
  color: var(--text-muted);
  opacity: 0.4;
}

.breadcrumb-bar .current {
  color: var(--orange);
  font-weight: 700;
}

/* ===== JOB HERO ===== */
.job-hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    linear-gradient(135deg, var(--bg-teal-dark) 0%, var(--bg-teal) 60%, #1a3244 100%);
  overflow: hidden;
}

.job-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.job-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.job-hero-overlay {
  position: absolute;
  inset: 0;
}

.job-hero-content {
  position: relative;
  z-index: 2;
}

.job-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

.badge-dept {
  background: rgba(255, 153, 0, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.badge-type {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-location {
  background: rgba(46, 163, 242, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(46, 163, 242, 0.3);
}

.job-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.job-hero-summary {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.job-hero-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.strip-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.strip-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== JOB BODY ===== */
.job-body {
  padding: 56px 0 80px;
  background: var(--bg);
}

.job-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: start;
}

/* ===== MAIN CONTENT ===== */
.job-content {
  min-width: 0;
}

.content-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.content-block > p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Duties List */
.duties-list {
  list-style: none;
  padding: 0;
}

.duties-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-bottom: 1px solid rgba(228, 232, 239, 0.6);
}

.duties-list li:last-child {
  border-bottom: none;
}

.duties-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.duties-list li strong {
  color: var(--text-dark);
  font-weight: 800;
}

/* Education highlight */
.edu-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: rgba(255, 153, 0, 0.05);
  border: 2px solid rgba(255, 153, 0, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text);
}

.edu-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.25);
  margin-top: 2px;
}

.edu-icon svg {
  width: 26px;
  height: 26px;
}

.edu-highlight strong {
  color: var(--orange);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

/* Requirements list */
.req-list {
  list-style: none;
  padding: 0;
}

.req-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.req-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 1rem;
}

.req-list li strong {
  color: var(--text-dark);
  font-weight: 700;
}

.req-list.preferred li::before {
  content: '○';
  color: var(--text-muted);
  font-weight: 600;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.benefit-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.benefit-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* EEO */
.eeo-block p {
  font-size: 0.84rem !important;
  color: var(--text-muted) !important;
  padding: 24px 28px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.7;
}

.eeo-block strong {
  color: var(--text-dark) !important;
}

/* ===== SIDEBAR ===== */
.job-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sd-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(228, 232, 239, 0.5);
}

.sd-row:last-child {
  border-bottom: none;
}

.sd-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sd-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.sd-value.highlight {
  color: var(--orange);
  font-weight: 800;
}

.sd-value a {
  color: var(--blue);
  font-weight: 700;
}

.sd-value a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* Apply card */
.apply-card {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.04) 0%, rgba(255, 153, 0, 0.01) 100%);
  border-color: rgba(255, 153, 0, 0.3);
  border-width: 2px;
}

.apply-card h3 {
  color: var(--orange);
  border-bottom-color: rgba(255, 153, 0, 0.15);
}

.apply-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.apply-email {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 153, 0, 0.3);
}

.btn.primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 153, 0, 0.42);
  color: #fff;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-teal-dark);
  border-top: 3px solid var(--orange);
  padding: 36px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  margin-top: 4px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}

/* ===== CAREERS LANDING PAGE ===== */
.careers-eyebrow {
  display: inline-block;
  color: var(--orange);
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.careers-body {
  padding: 64px 0 80px;
  background: var(--bg);
}

.careers-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.careers-section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.careers-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Job listing card */
.job-listing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.job-listing-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 40px rgba(255, 153, 0, 0.1);
  transform: translateY(-4px);
}

.job-listing-left {
  flex: 1;
}

.listing-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.job-listing-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.job-listing-left p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.job-listing-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.listing-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.view-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.25);
}

.job-listing-card:hover .view-btn {
  background: var(--orange-dark);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.4);
}

/* Why work section */
.why-work-section {
  padding: 80px 0 90px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--blue);
}

.why-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.22);
  margin-bottom: 18px;
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .job-layout {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .apply-card {
    grid-column: 1 / -1;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .job-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.6rem);
  }

  .job-hero-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .strip-divider {
    width: 100%;
    height: 1px;
  }

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

  .job-sidebar {
    grid-template-columns: 1fr;
  }

  .job-listing-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .job-listing-right {
    align-items: flex-start;
    width: 100%;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

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

  .job-hero-badges {
    gap: 6px;
  }

  .edu-highlight {
    flex-direction: column;
    padding: 22px 20px;
  }
}

