/* Font 'Lato' is loaded via <link> in the document head (see includes/header.php) */

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

:root {
  /* ── Sama.Ai brand palette ── */
  --cyan-dark: #004358;   /* dark cyan — primary */
  --cyan-mid: #00566f;    /* lighter cyan for tiles/hover */
  --copper: #b98373;      /* light brown & copper — accent */
  --copper-dark: #a06c5c; /* copper hover */
  --white: #ffffff;

  /* derived tints */
  --teal-dark: #004358;   /* alias kept for existing rules */
  --navy: #004358;
  --navy-light: #00566f;
  --body-text: #1d2b30;
  --light-blue-bg: #eef4f6;  /* light cyan tint */
  --pale-blue-bg: #e3edf0;   /* pale cyan tint */
  --copper-tint: #f6ece8;    /* light copper tint */
  --footer-bg: #00313f;      /* very dark cyan */
  --gray-text: #4a4a4a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--body-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 110px;
}

.site-logo img {
  height: 104px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover img { transform: scale(1.05); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--body-text);
}

.site-nav a.active,
.site-nav a:hover { color: var(--cyan-dark); }

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--body-text);
  border-radius: 2px;
}

/* ─── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cyan-dark) 0%, #00506a 55%, var(--cyan-mid) 100%);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  color: #fff;
  padding-bottom: 60px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 540px;
}

/* ─── SERVICE TILES ─────────────────────────── */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 40px;
}

.service-tile {
  background: var(--navy-light);
  padding: 0;
  color: #fff;
  transition: background 0.2s;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.service-tile:last-child { border-right: none; }

.service-tile:hover { background: var(--copper); }

/* Text area — padding lives here so a tile image can sit flush at the top */
.service-tile-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-tile-img {
  position: relative;
  overflow: hidden;
}

.service-tile-img img {
  display: block;
  width: 100%;
  height: auto;      /* show the full image (no top/bottom crop) */
}

.service-tile h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.service-tile .tile-sub {
  font-size: 13px;
  opacity: 0.75;
  font-weight: 400;
}

/* ─── SECTION COMMON ────────────────────────── */
.section {
  padding: 80px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-text);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── STAFFING SECTION ──────────────────────── */
.staffing-section { background: #fff; }

.cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* 2-column cards use wider images — give them more height so more is visible */
.cards-2col .card-img img { height: 360px; }

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.read-more {
  font-size: 14px;
  color: var(--copper-dark);
  font-weight: 600;
  text-decoration: underline;
  display: inline-block;
}

.read-more:hover { color: var(--cyan-dark); }

/* ─── CONSULTING SECTION ────────────────────── */
.consulting-section { background: #fff; }

.cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-light {
  background: var(--light-blue-bg);
  border-radius: 6px;
  overflow: hidden;
  padding: 28px;
}

.card-light img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.card-light h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-light .card-subtitle {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 10px;
  font-style: italic;
}

.card-light p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ─── SKILL SECTION ─────────────────────────── */
.skill-section { background: #fff; }

.cards-3col-skill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.skill-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.skill-card-body {
  padding: 24px;
}

.skill-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card-body p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ─── VIDEO SECTION ─────────────────────────── */
.video-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: #0a1e32;
}

.video-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.5) 100%);
  z-index: 1;
}

.video-section-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 80px;
  max-width: 600px;
}

.video-section-content h2 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 8px;
}

.video-section-content h3 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.video-section-content p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ─── CONTACT SECTION ───────────────────────── */
.contact-section {
  background: #fff;
  padding: 80px;
}

.contact-section .section-header { text-align: left; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--body-text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-dark);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.btn-submit {
  background: var(--cyan-dark);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--copper); }

.contact-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}
.contact-alert-ok  { background: #e7f4ee; color: #1c6b46; border: 1px solid #b7e0cb; }
.contact-alert-err { background: #fbeaea; color: #a12a2a; border: 1px solid #f0c3c3; }

/* ─── FOOTER ────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 80px 32px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.2); }

.footer-tagline {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer-connect h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.6;
}

.footer-connect a,
.footer-connect p {
  font-size: 14px;
  opacity: 0.8;
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.footer-copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.5;
}

/* ─── INNER PAGE HERO ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--cyan-dark) 0%, #00506a 55%, var(--cyan-mid) 100%);
  padding: 80px 80px 80px;
  color: #fff;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 700px;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.7;
}

.page-hero-light {
  background: var(--pale-blue-bg);
  padding: 80px 80px;
}

.page-hero-light h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 700px;
  color: var(--body-text);
}

.page-hero-light p {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 680px;
  line-height: 1.8;
}

/* ─── INNER PAGE CONTENT ────────────────────── */
.page-content {
  padding: 60px 80px;
  background: #fff;
}

.page-content h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 40px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  margin: 16px 0 16px 24px;
}

.page-content ul li {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
}

.content-grid img {
  width: 100%;
  border-radius: 6px;
  height: 320px;
  object-fit: cover;
}

/* ─── OUTREACH PAGE ─────────────────────────── */
.outreach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.outreach-card {
  background: var(--light-blue-bg);
  border-radius: 6px;
  padding: 32px;
}

.outreach-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.outreach-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.8;
}

.quote-block {
  background: var(--navy);
  color: #fff;
  padding: 40px 60px;
  text-align: center;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

/* ─── ABOUT PAGE ────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  background: var(--light-blue-bg);
  border-radius: 6px;
  padding: 32px;
}

.team-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.8;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .section, .contact-section, .page-content, .page-hero, .page-hero-light { padding-left: 40px; padding-right: 40px; }
  .hero { padding-left: 40px; padding-right: 40px; }
  .video-section-content { padding-left: 40px; padding-right: 40px; }
  .site-footer { padding-left: 40px; padding-right: 40px; }
  .site-header { padding: 0 24px; }
  .cards-3col, .cards-3col-skill { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { height: 88px; }
  .site-logo img { height: 68px; }
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: 88px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid #eee; z-index: 999; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .site-nav.open ul { flex-direction: column; gap: 16px; }
  .hamburger { display: flex; }
  .hero { padding: 50px 20px 0; min-height: 400px; }
  .hero h1 { font-size: 28px; }
  .hero h2 { font-size: 22px; }
  .service-tiles { grid-template-columns: 1fr 1fr; }
  .section, .contact-section, .page-content, .page-hero, .page-hero-light { padding: 48px 20px; }
  .video-section-content { padding: 40px 20px; }
  .site-footer { padding: 40px 20px; }
  .cards-2col, .cards-3col, .cards-3col-skill, .contact-grid, .content-grid, .outreach-grid, .team-grid { grid-template-columns: 1fr; }
  .page-hero h1, .page-hero-light h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* ─── SCROLL-REVEAL ANIMATIONS ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
  }
  .reveal.in-view { opacity: 1; transform: none; }

  .reveal-delay-1 { transition-delay: 0.10s; }
  .reveal-delay-2 { transition-delay: 0.20s; }
  .reveal-delay-3 { transition-delay: 0.30s; }
  .reveal-delay-4 { transition-delay: 0.40s; }

  /* Hero intro animation on load */
  .hero-content > * { opacity: 0; animation: heroFade 0.8s ease forwards; }
  .hero-eyebrow { animation-delay: 0.1s; }
  .hero h1 { animation-delay: 0.25s; }
  .hero-content > p { animation-delay: 0.4s; }
  .service-tile { opacity: 0; animation: tileUp 0.6s ease forwards; }
  .service-tiles a:nth-child(1) { animation-delay: 0.45s; }
  .service-tiles a:nth-child(2) { animation-delay: 0.55s; }
  .service-tiles a:nth-child(3) { animation-delay: 0.65s; }
  .service-tiles a:nth-child(4) { animation-delay: 0.75s; }
}

@keyframes heroFade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes tileUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Card hover lift */
.card, .card-light, .skill-card, .outreach-card, .team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .skill-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,67,88,0.14); }
.card-light:hover, .outreach-card:hover, .team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,67,88,0.12); }
.card-img img, .skill-card img, .card-light img { transition: transform 0.5s ease; }
.card:hover .card-img img, .skill-card:hover img, .card-light:hover img { transform: scale(1.05); }

/* ─── EXPERT AVATARS (About) ────────────────── */
.team-card { display: flex; flex-direction: column; }
.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;   /* bias toward the top so faces aren't cropped */
  margin-bottom: 16px;
  border: 3px solid var(--copper);
  box-shadow: 0 4px 14px rgba(0,67,88,0.18);
  flex: 0 0 auto;
}

/* ─── REDESIGNED FOOTER ─────────────────────── */
.site-footer { background: var(--footer-bg); color: #fff; padding: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 80px 40px;
}

.footer-brand img { height: 96px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; opacity: 0.75; line-height: 1.7; max-width: 320px; margin-bottom: 20px; }

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--copper);
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a, .footer-col p {
  font-size: 14px;
  opacity: 0.82;
  color: #fff;
  transition: opacity 0.2s, color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-col ul a:hover { opacity: 1; color: var(--copper); padding-left: 4px; }
.footer-col .footer-contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; opacity: 0.82; font-size: 14px; }
.footer-col .footer-contact-line i { color: var(--copper); margin-top: 3px; }

.footer-social { display: flex; gap: 14px; margin-bottom: 0; margin-top: 4px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%; color: #fff; font-size: 15px;
  transition: background 0.25s, transform 0.25s;
}
.footer-social a:hover { background: var(--copper); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 13px; opacity: 0.6; }
.footer-bottom .footer-legal a { font-size: 13px; opacity: 0.6; color: #fff; margin-left: 18px; transition: opacity 0.2s; }
.footer-bottom .footer-legal a:hover { opacity: 1; }

@media (max-width: 1024px) {
  .footer-grid, .footer-bottom { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
  .footer-grid { padding: 48px 20px 32px; }
  .footer-bottom { padding: 20px; flex-direction: column; text-align: center; }
  .footer-bottom .footer-legal a { margin: 0 9px; }
}

/* ============================================================
   CAREERS JOB BOARD & JOB DETAIL  (M4 — additive, brand tokens)
   New components only; no existing rules are modified.
   ============================================================ */
.job-board-wrap { max-width: 1080px; margin: 0 auto; }

.job-search { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.job-search input[type="search"] {
  flex: 1; min-width: 240px; padding: 13px 18px;
  border: 1px solid #cfd8dc; border-radius: 8px;
  font-family: 'Lato', sans-serif; font-size: 15px; background: #fff; outline: none;
}
.job-search input[type="search"]:focus { border-color: var(--cyan-dark); }
.job-search-btn {
  background: var(--cyan-dark); color: #fff; border: none; border-radius: 8px;
  padding: 0 26px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s;
}
.job-search-btn:hover { background: var(--copper); }

.job-hot-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--body-text); margin-bottom: 24px; cursor: pointer;
}
.job-hot-toggle input { width: 17px; height: 17px; accent-color: var(--copper); }

.job-board { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

.job-filters {
  background: #fff; border-radius: 10px; padding: 22px;
  box-shadow: 0 2px 14px rgba(0,67,88,.07); position: sticky; top: 100px;
}
.job-filters h4 {
  font-size: 15px; font-weight: 700; color: var(--cyan-dark);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eef2f4;
}
.job-filter-group { margin-bottom: 16px; }
.job-filter-group label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gray-text); margin-bottom: 6px;
}
.job-filter-group select {
  width: 100%; padding: 10px 12px; border: 1px solid #d5dee2; border-radius: 6px;
  font-family: 'Lato', sans-serif; font-size: 14px; background: #fff; color: var(--body-text); cursor: pointer;
}
.job-filter-reset { font-size: 13px; color: var(--copper-dark); font-weight: 600; text-decoration: underline; }

.job-results-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.job-count { font-size: 14px; color: var(--gray-text); }
.job-sort { font-size: 13px; color: var(--gray-text); display: flex; align-items: center; gap: 8px; }
.job-sort select {
  padding: 7px 10px; border: 1px solid #d5dee2; border-radius: 6px;
  font-family: 'Lato', sans-serif; font-size: 13px; cursor: pointer;
}

.job-item {
  display: block; background: #fff; border-radius: 10px; padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,67,88,.06); margin-bottom: 14px;
  border-left: 3px solid transparent; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.job-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,67,88,.13); border-left-color: var(--copper); }
.job-item h3 { font-size: 19px; font-weight: 700; color: var(--cyan-dark); margin-bottom: 6px; }
.job-item .job-meta { font-size: 13px; color: var(--gray-text); margin-bottom: 12px; }
.job-item .job-meta code { color: var(--copper-dark); font-weight: 700; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tags span {
  font-size: 12px; background: var(--light-blue-bg); color: var(--cyan-dark);
  padding: 4px 12px; border-radius: 20px; font-weight: 600;
}
.job-hot-badge {
  position: absolute; top: 18px; right: 20px;
  background: var(--copper); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: 20px;
}

.job-empty { text-align: center; padding: 60px 20px; color: var(--gray-text); background: #fff; border-radius: 10px; }
.job-empty i { font-size: 40px; color: #cfd8dc; margin-bottom: 14px; display: block; }

.job-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.job-pagination a {
  min-width: 40px; text-align: center; padding: 9px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--cyan-dark); background: #fff;
  border: 1px solid #e0e7ea; transition: background .2s, color .2s;
}
.job-pagination a:hover { background: var(--light-blue-bg); }
.job-pagination a.active { background: var(--cyan-dark); color: #fff; border-color: var(--cyan-dark); }
.job-pagination a.disabled { opacity: .4; pointer-events: none; }

/* ── Job detail page ── */
.job-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.job-detail-badges span {
  font-size: 13px; background: rgba(255,255,255,.15); color: #fff;
  padding: 5px 14px; border-radius: 20px; font-weight: 600;
}
.job-detail-badges span.hot { background: var(--copper); }

.job-apply-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 20px 24px; background: var(--light-blue-bg); border-radius: 10px; margin-bottom: 32px;
}
.btn-apply {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cyan-dark); color: #fff; padding: 13px 30px; border-radius: 8px;
  font-weight: 700; font-size: 15px; transition: background .2s, transform .2s;
}
.btn-apply:hover { background: var(--copper); transform: translateY(-2px); color: #fff; }
.job-share { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-text); }
.job-share a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%; color: var(--cyan-dark); transition: background .2s, color .2s;
}
.job-share a:hover { background: var(--copper); color: #fff; }

.job-detail-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  padding: 24px; background: #fff; border: 1px solid #eef2f4; border-radius: 10px; margin-bottom: 32px;
}
.job-detail-meta .fact { display: flex; flex-direction: column; gap: 3px; }
.job-detail-meta .fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-text); }
.job-detail-meta .fact-value { font-size: 15px; font-weight: 700; color: var(--cyan-dark); }

.skill-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 8px; }
.skill-chips span {
  font-size: 13px; background: var(--cyan-dark); color: #fff; padding: 6px 15px; border-radius: 20px; font-weight: 600;
}
.skill-chips.alt span { background: var(--copper); }

.job-apply-bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 40px 0 10px; }

.related-jobs { margin-top: 48px; border-top: 1px solid #eef2f4; padding-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card {
  display: block; background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0,67,88,.06); position: relative; transition: transform .25s, box-shadow .25s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,67,88,.12); }
.related-card h3 { font-size: 16px; font-weight: 700; color: var(--cyan-dark); margin-bottom: 6px; }

@media (max-width: 860px) {
  .job-board { grid-template-columns: 1fr; }
  .job-filters { position: static; order: 2; }
  .job-results { order: 1; }
}

/* ── APPLICATION FORM (M5 — additive) ── */
.apply-section { margin-top: 44px; border-top: 1px solid #eef2f4; padding-top: 32px; }
.apply-section > h2 { margin-bottom: 20px; }
.apply-alert {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 8px;
  font-size: 15px; margin-bottom: 8px;
}
.apply-alert.success { background: #e6f4ec; color: #1d7a4d; border: 1px solid #b9e0c9; }
.apply-alert.error   { background: #fdecea; color: #b0322a; border: 1px solid #f5c6c2; }
.apply-form { margin-top: 8px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.apply-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.apply-form label { font-size: 13px; font-weight: 600; color: var(--body-text); }
.apply-form label .hint { font-weight: 400; color: var(--gray-text); }
.apply-form input, .apply-form textarea {
  padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 6px;
  font-family: 'Lato', sans-serif; font-size: 14px; color: var(--body-text); outline: none; background: #fff;
}
.apply-form input:focus, .apply-form textarea:focus { border-color: var(--cyan-dark); }
.apply-form input[type="file"] { padding: 9px 12px; background: #fafbfc; }
.apply-form button { margin-top: 18px; border: none; cursor: pointer; }
@media (max-width: 640px) { .apply-grid { grid-template-columns: 1fr; } }
