/* ==========================================================================
   TalentBridge — main.css
   Loaded after style.css. Components + motion.
   ========================================================================== */

/* ---------- Subtle grain texture on dark sections ----------
   Flat, perfectly smooth dark panels read as generic/corporate. A very
   faint noise layer (imperceptible as "texture", felt as depth) is a
   cheap, static, GPU-light way to make the dark ink sections feel more
   tactile and less like a solid color fill — a look that ages better
   than flat gradients or 2020-era glassmorphism. */
.hero, .section, .section-tight, .section-dark, .job-single-header {
  position: relative;
  overflow: hidden;
}

/* Background video container */
.section-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}
.hero::before, .section-dark::before, .job-single-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero > .container,
.section-dark > .container,
.job-single-header > .container {
  position: relative;
  z-index: 1;
}

/* Decorative globe/network watermark — subtle, behind all hero content,
   reinforcing the "overseas placement" identity without needing a photo. */
.hero-globe {
  position: absolute;
  top: 50%;
  right: -140px;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  color: rgba(246,244,239,0.09);
  z-index: 0;
  pointer-events: none;
  animation: hero-globe-spin 140s linear infinite;
}
.hero-globe svg { width: 100%; height: 100%; display: block; }
@keyframes hero-globe-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
@media (max-width: 980px) {
  .hero-globe { width: 420px; height: 420px; right: -160px; }
}

/* ---------- Page hero featured image (ken-burns zoom + overlay) ----------
   Only applies when a page/job has a featured image set — see
   template-parts/page-hero.php. Falls back to the plain navy header
   otherwise, so this never forces a page to "need" a photo. */
.job-single-header.has-image { color: var(--paper); }
.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.05);
  animation: hero-image-kenburns 18s ease-in-out infinite alternate;
}
.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,14,106,0.55) 0%, rgba(32,14,106,0.88) 100%);
}
@keyframes hero-image-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ---------- Blog post featured image ---------- */
.post-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(20,24,31,0.45);
}
.post-featured-image img { width: 100%; height: auto; display: block; }

/* ---------- How It Works steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.step-item { position: relative; padding-top: 8px; }
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: var(--step1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step-item h3 { font-size: var(--step0); margin-bottom: 6px; }
/* Connecting line between steps on wide screens — reinforces "process" */
.steps-row .step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(100% - 6px);
  width: calc(28px + 6px);
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(27,30,36,0.25) 0 6px, transparent 6px 12px);
}

/* ---------- Trust badges strip ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
}
.trust-badge-icon {
  width: 22px; height: 22px;
  color: var(--brass-ink);
  flex-shrink: 0;
}
.trust-badge-icon svg { width: 100%; height: 100%; }

/* ---------- Optional full-width dark stats section ----------
   Overrides the self-contained-card look from .counter-item so numbers sit
   directly on the dark section background instead of a separate card. */
.counter-grid-dark { gap: 32px; }
.counter-item-dark {
  background: transparent;
  padding: 0;
  text-align: center;
}
.counter-item-dark .num {
  color: var(--brass-light);
  font-size: var(--step4);
}
.counter-item-dark .label { color: var(--muted-on-ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-shine-x: -120%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step0);
  font-family: var(--font-body);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
/* Diagonal shine sweep on hover — one clean pass, not a looping gimmick */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 48%, transparent 66%);
  transform: translateX(var(--btn-shine-x));
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { --btn-shine-x: 120%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(0) scale(0.98) !important; }

.btn-primary {
  background: var(--brass);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 24px -14px rgba(214,55,31,0.7);
}
.btn-primary:hover {
  background: var(--brass-dark);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 30px -14px rgba(214,55,31,0.85);
}

.btn-outline {
  border-color: currentColor;
  color: var(--paper);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(246,244,239,0.1);
  border-color: var(--brass-light);
  color: var(--brass-light);
  transform: translateY(-2px);
}

/* For light backgrounds (header, light sections) — .btn-outline above is
   white-on-transparent and is meant for the dark hero only; using it on the
   paper-colored header made the button nearly invisible (2.2:1 contrast). */
.btn-outline-dark {
  border-color: rgba(27,30,36,0.25);
  color: var(--text);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -16px rgba(20,24,31,0.8);
}
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(27,30,36,0.16);
}
.btn-ghost:hover {
  border-color: var(--brass);
  background: rgba(214,55,31,0.08);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: var(--step-1); }
.btn-lg { padding: 17px 34px; font-size: var(--step1); }
.btn-block { display: flex; width: 100%; }
.btn:hover svg { transform: translateX(3px); }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn::before { display: none; }
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(246,244,239,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,30,36,0.08);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,24,31,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title { font-family: var(--font-display); font-size: var(--step1); margin: 0; }
.site-title a { display: flex; align-items: center; gap: 8px; }
.site-title .mark { color: var(--brass-ink); }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img,
.custom-logo { max-height: 44px; width: auto; height: auto; object-fit: contain; display: block; }

.primary-nav ul { display: flex; gap: 34px; align-items: center; }
.primary-nav a {
  font-size: var(--step-1);
  font-weight: 500;
  position: relative;
  padding-block: 4px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brass-ink);
  transition: width 0.3s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }

.mobile-nav-actions { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Ultra-Modern Dark Mode Hero ---------- */
.hero {
  background: #0B1120;
  color: var(--paper);
  padding-block: 96px 140px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}
.hero-radial-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(43, 110, 163, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(92, 154, 40, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: orb-float 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 380px; height: 380px;
  top: -60px; left: -80px;
  background: radial-gradient(circle, rgba(43, 110, 163, 0.6), transparent 70%);
}
.hero-orb-2 {
  width: 420px; height: 420px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(92, 154, 40, 0.4), transparent 70%);
  animation-delay: -6s;
}
@keyframes orb-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}

/* Glowing Pill Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(43, 110, 163, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 0 20px rgba(43, 110, 163, 0.25);
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5C9A28;
  box-shadow: 0 0 10px #5C9A28, 0 0 20px #5C9A28;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-badge-text {
  color: #93C5FD;
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
}

/* Text Gradient & Staggered Reveal */
.hero h1 {
  font-size: var(--step4);
  color: #FFFFFF;
  line-height: 1.15;
}
.hero h1,
.hero h1 .word {
  color: #FFFFFF;
}
.hero-heading-gradient,
.hero-heading-gradient .word {
  background: linear-gradient(135deg, #FFFFFF 60%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-rise 0.7s var(--ease) forwards;
}
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  color: rgba(246, 244, 239, 0.82);
  font-size: var(--step1);
  max-width: 48ch;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* Ultra Buttons */
.btn-glow {
  background: linear-gradient(135deg, #2B6EA3 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 0 25px rgba(43, 110, 163, 0.5), 0 10px 30px -10px rgba(29, 78, 216, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-glow:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), 0 15px 35px -10px rgba(37, 99, 235, 0.8);
  transform: translateY(-3px);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Glassmorphic Stat Card */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(43, 110, 163, 0.15) inset;
  border-radius: var(--radius-md);
  padding: 32px;
}
.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.glass-card-title {
  font-size: var(--step-1);
  font-weight: 600;
  color: #93C5FD;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.glass-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(92, 154, 40, 0.25);
  color: #86EFAC;
  border: 1px solid rgba(134, 239, 172, 0.3);
}
.hero-stat-card .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat-card .stat-row:last-child { border-bottom: none; }
.hero-stat-card .stat-num {
  font-family: var(--font-display);
  font-size: var(--step3);
  color: #86EFAC;
  text-shadow: 0 0 15px rgba(134, 239, 172, 0.3);
}
.hero-stat-card .stat-label { color: rgba(246, 244, 239, 0.75); font-size: var(--step-1); }

/* ---------- Premium Modern Announcement Ticker ---------- */
.ticker-section {
  background: linear-gradient(90deg, #070C18 0%, #162447 50%, #070C18 100%);
  padding-block: 16px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.ticker-section::before,
.ticker-section::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker-section::before {
  left: 0;
  background: linear-gradient(90deg, #070C18 0%, transparent 100%);
}
.ticker-section::after {
  right: 0;
  background: linear-gradient(270deg, #070C18 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}
.ticker-section:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  cursor: default;
}
.ticker-bullet {
  color: #5C9A28;
  font-size: 11px;
  text-shadow: 0 0 10px #5C9A28, 0 0 20px #5C9A28;
  animation: bullet-glow 2.5s ease-in-out infinite alternate;
}
@keyframes bullet-glow {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.25); }
}

.ticker-text {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.ticker-item:hover .ticker-text {
  color: #86EFAC;
  text-shadow: 0 0 12px rgba(134, 239, 172, 0.5);
}

/* ---------- Scroll reveal (one entrance per section, not per-card) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section scaffolding & Default Background Gradients ---------- */
.section { padding-block: 96px; }
.section-tight { padding-block: 56px; }

/* Default section styling */
.services-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}
.how-it-works-section {
  background: linear-gradient(180deg, #0B1120 0%, #162447 100%) !important;
  color: #FFFFFF;
}
.how-it-works-section .section-head h2,
.how-it-works-section .step-item h3 {
  color: #FFFFFF;
}
.how-it-works-section .muted {
  color: rgba(246, 244, 239, 0.75);
}
.open-roles-section {
  background: #F8FAFC;
}
.trust-badges-section {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 100%);
}
.testimonials-section {
  background: linear-gradient(135deg, #162447 0%, #2B6EA3 100%) !important;
  color: #FFFFFF;
}
.team-section {
  background: #FFFFFF;
}
.faq-section {
  background: #F8FAFC;
}
.cta-section {
  background: linear-gradient(135deg, #0B1120 0%, #162447 100%);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: var(--step3); max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 48ch; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .muted { color: var(--muted-on-ink); }

/* ---------- Counters ----------
   Self-contained "stat card" styling (own background + safe-everywhere
   colors) rather than inheriting from a dark parent, because this markup
   is also used by the [tb_stats] shortcode, which can be dropped onto any
   page — it needs to look right regardless of the surrounding section. */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.counter-item {
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.counter-item .num {
  font-family: var(--font-display);
  font-size: var(--step3);
  color: var(--brass-ink);
}
.counter-item .label { color: var(--muted); font-size: var(--step-1); margin-top: 6px; }

/* The homepage hero card is intentionally dark, so its own stat numbers
   (a different markup, .stat-num) keep using the brighter --brass, which
   is the correct high-contrast choice against --ink. */

/* ---------- Job search / filter bar ---------- */
.job-search-bar {
  background: var(--white);
  border: 1px solid rgba(27,30,36,0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  box-shadow: 0 20px 50px -30px rgba(20,24,31,0.35);
}
.job-search-bar input[type="text"],
.job-search-bar select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(27,30,36,0.15);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.job-search-bar .btn { justify-content: center; }

/* ---------- Job listing rows ---------- */
.job-list { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.job-row {
  display: grid;
  grid-template-columns: 5px 1fr auto auto auto;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid rgba(27,30,36,0.08);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.job-row:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 40px -28px rgba(20,24,31,0.5);
  border-color: rgba(214,55,31,0.4);
}
.job-row .accent-bar { align-self: stretch; border-radius: 3px; background: var(--forest); }
.job-row[data-category="tech"] .accent-bar { background: var(--brass); }
.job-row[data-category="operations"] .accent-bar { background: var(--forest); }
.job-row[data-category="finance"] .accent-bar { background: var(--accent-violet); }
.job-row[data-category="healthcare"] .accent-bar { background: var(--accent-blue); }
.job-row-main h3 { font-size: var(--step1); margin-bottom: 4px; }
.job-row-main .job-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: var(--step-1); }
.job-row-main .job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-tag {
  font-size: var(--step-1);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--text);
  white-space: nowrap;
}
.job-salary { font-weight: 600; white-space: nowrap; }
.job-row-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(27,30,36,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.job-row:hover .job-row-arrow {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--paper);
  transform: translateX(4px);
}
.job-row-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }

.no-results { padding: 60px 0; text-align: center; color: var(--muted); }
.job-list.is-loading { opacity: 0.4; pointer-events: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27,30,36,0.12);
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Single job page ---------- */
.job-single-header { background: var(--ink); color: var(--paper); padding-block: 64px; }
.job-single-header .job-meta { color: var(--muted-on-ink); }
.job-single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; padding-block: 64px; }
.job-single-content h2 { font-size: var(--step2); margin-top: 2em; }
.job-single-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.job-single-content li { margin-bottom: 0.4em; }
.job-sidebar {
  align-self: start;
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid rgba(27,30,36,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
}
.job-sidebar dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin-bottom: 24px; }
.job-sidebar dt { color: var(--muted); font-size: var(--step-1); }
.job-sidebar dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Application form ---------- */
.apply-form { display: flex; flex-direction: column; gap: 16px; }
.apply-form label { font-weight: 600; font-size: var(--step-1); display: block; margin-bottom: 6px; }
.apply-form input,
.apply-form textarea,
.apply-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(27,30,36,0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.apply-form input:focus,
.apply-form textarea:focus,
.apply-form select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(214,55,31,0.18);
}
.apply-form .file-drop {
  position: relative;
  border: 1px dashed rgba(27,30,36,0.25);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.apply-form .file-drop.is-dragover { border-color: var(--brass); background: rgba(214,55,31,0.06); }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--step-1); display: none; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: rgba(47,93,80,0.12); color: var(--forest); }
.form-msg.error { background: rgba(179,67,43,0.12); color: var(--danger); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(20,24,31,0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Recruiter / team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: left; }
.team-card .photo { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; aspect-ratio: 4/5; background: var(--paper-soft); }
.team-card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(65%) contrast(1.02);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.team-card:hover .photo img { transform: scale(1.05); filter: grayscale(0%); }
.team-card .photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--paper-soft), var(--ink-line));
  color: rgba(246,244,239,0.4);
}
.team-card .photo-placeholder svg { width: 34%; height: 34%; }
.team-card h3 { font-size: var(--step0); margin-bottom: 2px; }
.team-card .role { color: var(--muted); font-size: var(--step-1); }

/* ---------- Testimonials (marquee-free, staged carousel) ---------- */
.testimonial-panel {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
/* Decorative quote-mark watermark — adds visual interest without a photo,
   and reinforces that this is a direct quote. */
.testimonial-panel::before {
  content: "\201C";
  position: absolute;
  top: -0.28em;
  right: 0.25em;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: rgba(246,244,239,0.08);
  pointer-events: none;
  z-index: 0;
}
.testimonial-panel blockquote,
.testimonial-panel cite {
  position: relative;
  z-index: 1;
}
.testimonial-panel blockquote {
  font-family: var(--font-display);
  font-size: var(--step2);
  margin: 0 0 24px;
  max-width: 60ch;
}
.testimonial-panel cite { font-style: normal; color: rgba(246,244,239,0.75); font-size: var(--step-1); }
.testimonial-dots { display: flex; gap: 8px; margin-top: 28px; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(246,244,239,0.35); border: none; padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.testimonial-dots button.is-active { background: var(--paper); width: 22px; border-radius: 4px; }

/* ---------- Employer / contact form section ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- Blog Single & Archive Custom Styling ---------- */
.blog-single-hero {
  background: linear-gradient(135deg, #200E6A 0%, #15084B 100%);
  color: var(--white);
  padding-block: 64px 88px;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-date-badge {
  background: rgba(242, 223, 58, 0.15);
  color: var(--accent-gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.blog-cat-badge {
  color: var(--brass-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.blog-hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.blog-hero-author .author-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}
.blog-hero-author .author-icon svg { width: 16px; height: 16px; }

.blog-single-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.blog-single-main .post-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(32, 14, 106, 0.08);
}
.blog-single-main .post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-single-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}
.blog-single-body p {
  margin-bottom: 1.6em;
  max-width: 100%;
}
.blog-single-body h2,
.blog-single-body h3 {
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.blog-single-body blockquote {
  border-left: 4px solid var(--forest);
  padding: 18px 24px;
  margin: 2em 0;
  background: var(--paper);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.author-card {
  margin-top: 48px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 14, 106, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(32, 14, 106, 0.08) 0%, rgba(0, 135, 81, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}
.author-avatar svg { width: 24px; height: 24px; }
.author-card h4 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); }

.post-nav-links {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.post-nav-links a {
  color: var(--brass);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.post-nav-links a:hover {
  color: var(--forest);
}

.blog-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-sidebar-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 14, 106, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}
.blog-sidebar-card h3.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper-soft);
}
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.related-post-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.related-post-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.cta-sidebar-card {
  background: linear-gradient(135deg, rgba(32, 14, 106, 0.03) 0%, rgba(0, 135, 81, 0.05) 100%);
  border-color: rgba(0, 135, 81, 0.2);
}
.cta-sidebar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.blog-posts-grid article {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.blog-posts-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(32, 14, 106, 0.12);
  border-color: var(--forest) !important;
}

@media (max-width: 960px) {
  .blog-single-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why Choose Us Redesign ---------- */
.why-choose-us-container {
  max-width: 980px;
  margin-inline: auto;
  padding: 44px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(32, 14, 106, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 135, 81, 0.15);
}
.why-us-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2em;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 2.5em;
}
.why-us-card {
  background: var(--paper);
  padding: 28px 24px;
  border-radius: 12px;
  border-top: 4px solid var(--forest);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(32, 14, 106, 0.1);
}
.why-us-card.card-gold { border-top-color: var(--accent-gold); }
.why-us-card.card-red { border-top-color: var(--accent-red); }

.why-us-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.why-us-card .card-icon svg { width: 22px; height: 22px; }

.why-us-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.why-us-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.why-us-banner {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #200E6A 0%, #15084B 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 223, 58, 0.3);
  box-shadow: 0 12px 30px rgba(32, 14, 106, 0.3);
}
.why-us-banner-sub {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass-light);
}
.why-us-banner-title {
  margin: 12px 0 0;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  color: var(--accent-gold);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ---------- Cards (services) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(32,14,106,0.1);
  box-shadow: 0 8px 24px rgba(32,14,106,0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(32,14,106,0.12); border-color: var(--forest); }
.service-card .icon {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(32,14,106,0.08) 0%, rgba(0,135,81,0.12) 100%);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card:hover .icon { transform: scale(1.1) rotate(-4deg); background: var(--forest); color: var(--white); }
.service-card h3 { font-size: var(--step1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); padding-block: 72px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-grid h4 { color: var(--paper); font-size: var(--step0); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-on-ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--brass-light); color: var(--brass-light); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: var(--step-1);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sticky mobile apply CTA ---------- */
.sticky-apply {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 600;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.sticky-apply.is-visible { transform: translateY(0); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step-1); color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a:hover { color: var(--brass-ink); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- FAQ accordion (native <details>/<summary>) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 78ch; }
.faq-item {
  border: 1px solid rgba(27,30,36,0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4em;
  color: var(--brass-ink);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 68ch; }
.faq-item[open] summary { border-bottom: 1px solid rgba(27,30,36,0.08); }

/* ---------- Generic CTA block (shortcode) ---------- */
.tb-cta-block {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tb-cta-block h3 { margin: 0; font-size: var(--step2); }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row .step-item::after { display: none; }
  .job-single-layout { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #200E6A 0%, #15084B 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 28px 32px;
    box-shadow: 0 20px 40px rgba(15, 8, 75, 0.5);
    border-top: 2px solid var(--accent-gold);
    border-bottom: 3px solid var(--forest);
    z-index: 999;
  }
  .primary-nav.is-open {
    display: block;
    animation: slideDownNav 0.3s var(--ease);
  }
  .primary-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .primary-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .primary-nav li:last-child {
    border-bottom: none;
  }
  .primary-nav a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
    width: 100%;
  }
  .primary-nav a:hover,
  .primary-nav .current-menu-item a {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
  }
  .mobile-nav-actions .btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 135, 81, 0.4);
    border: none;
  }
  .mobile-nav-actions .btn-primary:hover {
    background: var(--forest-light);
  }
  .btn-full { width: 100%; text-align: center; justify-content: center; }
  .btn-outline-light {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(242, 223, 58, 0.05);
    font-weight: 600;
  }
  .btn-outline-light:hover {
    background: var(--accent-gold);
    color: #200E6A;
  }
  .menu-toggle { display: block; }
  .header-cta .btn-outline-dark { display: none; }

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
  .hero { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); padding-block: 60px 90px; }
  .job-search-bar { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 4px 1fr; grid-template-areas: "bar main"; row-gap: 12px; }
  .job-row .job-tag, .job-row .job-salary, .job-row-arrow { display: none; }
  .sticky-apply { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
