/* ============================================
   CVSourcers Careers — Corporate Blue/White
   ============================================ */

:root {
  --blue-900: #0a1f44;
  --blue-700: #1a3a6b;
  --blue-600: #1e4d8c;
  --blue-500: #2563b0;
  --blue-400: #3b82d4;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --accent:   #e8a020;
  --accent-light: #fef3c7;
  --white:    #ffffff;
  --grey-50:  #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-600: #475569;
  --grey-800: #1e293b;
  --text:     #1e293b;
  --text-light: #64748b;
  --radius:   6px;
  --radius-lg: 12px;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(10,31,68,.1);
  --shadow-lg: 0 8px 32px rgba(10,31,68,.14);
  --max-w:    1160px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ─────────────────────────────── */
.site-header {
  background: var(--blue-900);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--blue-900);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -.2px;
}

.logo-sub {
  font-size: 11px;
  color: var(--blue-100);
  font-weight: 400;
  letter-spacing: .3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: var(--blue-100);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all .2s;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--blue-900) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}

.nav-cta:hover { background: #d4911a !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
}

/* ── HERO ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59,130,212,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,160,32,.15);
  border: 1px solid rgba(232,160,32,.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--accent); }

.hero-desc {
  color: var(--blue-100);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat span {
  font-size: 12px;
  color: var(--blue-100);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Hero Email Capture */
.hero-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.hero-form-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.hero-form-box p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 12px; }

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color .2s;
  background: var(--grey-50);
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover { background: var(--blue-700); color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--blue-900);
}

.btn-accent:hover { background: #d4911a; }

.form-note {
  font-size: 11px;
  color: var(--grey-400);
  text-align: center;
  margin-top: 10px;
}

/* ── TRUST BAR ───────────────────────────── */
.trust-bar {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding: 14px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--grey-600);
  font-weight: 500;
}

.trust-item svg { color: var(--accent); }

/* ── SECTION HEADERS ─────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--grey-50); }

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

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
  letter-spacing: -.3px;
}

.section-title span { color: var(--blue-500); }

.section-sub {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 10px;
  max-width: 560px;
}

/* ── CARDS ───────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img-placeholder {
  font-size: 48px;
  opacity: .4;
}

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

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--blue-500); }

.card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { gap: 8px; }

/* Featured Post */
.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
}

.post-featured .card-img {
  height: 100%;
  min-height: 280px;
  border-radius: 0;
}

.post-featured .card-body { padding: 36px; justify-content: center; }
.post-featured .card-title { font-size: 22px; }

/* ── CATEGORIES ──────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.cat-card:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-900);
  display: block;
  margin-bottom: 4px;
}

.cat-count {
  font-size: 12px;
  color: var(--text-light);
}

/* ── NEWSLETTER BANNER ───────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 56px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-inner p { color: var(--blue-100); font-size: 15px; }

.newsletter-form { display: flex; gap: 10px; }

.newsletter-form input {
  padding: 12px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  width: 280px;
  font-family: var(--font-sans);
}

.newsletter-form input:focus { outline: 2px solid var(--accent); }

/* ── SINGLE POST ─────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0;
}

.post-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  padding: 56px 0 48px;
}

.post-hero-inner { max-width: 760px; }

.post-category-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--blue-900);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue-100);
  font-size: 14px;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--grey-800);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-900);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-100);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-700);
  margin: 28px 0 10px;
}

.post-content p { margin-bottom: 18px; }

.post-content ul, .post-content ol {
  margin: 0 0 18px 24px;
}

.post-content li { margin-bottom: 6px; }

.post-content strong { color: var(--blue-900); font-weight: 700; }

.post-content a {
  color: var(--blue-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-100);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}

.sidebar-post:last-child { border-bottom: none; }

.sidebar-post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.4;
}

.sidebar-post-title a { color: inherit; }
.sidebar-post-title a:hover { color: var(--blue-500); }

.sidebar-post-date { font-size: 11px; color: var(--text-light); margin-top: 3px; }

.affiliate-box {
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.affiliate-box .aff-title { font-weight: 700; font-size: 15px; color: var(--blue-900); margin-bottom: 6px; }
.affiliate-box .aff-desc { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.affiliate-box .btn { font-size: 13px; padding: 9px 18px; }

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding: 12px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-inner a { color: var(--blue-500); }
.breadcrumb-sep { color: var(--grey-400); }

/* ── PAGE HERO ───────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 48px 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p { color: var(--blue-100); font-size: 16px; }

/* ── PAGINATION ──────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--grey-200);
  color: var(--text);
  transition: all .2s;
}

.pagination a:hover { border-color: var(--blue-500); color: var(--blue-500); }
.pagination .active { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }

/* ── CONTACT ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  margin-bottom: 14px;
  transition: border-color .2s;
  background: var(--grey-50);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.contact-form textarea { height: 130px; resize: vertical; }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-info-item h4 { font-size: 14px; font-weight: 700; color: var(--blue-900); margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--text-light); }

/* ── ABOUT ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-box {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-900);
}

.stat-box span { font-size: 12px; color: var(--text-light); }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--blue-100);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

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

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: var(--blue-100);
  font-size: 14px;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { color: var(--blue-100); font-size: 13px; }
.footer-bottom a { color: var(--blue-100); }
.footer-bottom a:hover { color: var(--white); }

/* ── ALERTS ──────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .card-img { height: 220px; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-box { max-width: 480px; }
  .post-layout { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--blue-900); flex-direction: column; padding: 16px; gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
