/* ============================================================
   FitnessJobs.com - Clean Professional Design
   ============================================================ */

:root {
  --primary: #0D5C46;
  --primary-light: #14785a;
  --primary-dark: #084331;
  --primary-50: #e8f5f0;
  --accent: #FF6B35;
  --accent-light: #ff8a5e;
  --accent-50: #fff0eb;
  --dark: #1a1a1a;
  --text: #2d3748;
  --text-light: #718096;
  --light: #f9fafb;
  --light-alt: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-light: #f0f1f3;
  --success: #10b981;
  --max-width: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: var(--dark);
}

.logo:hover { color: var(--dark); }

.logo-icon {
  font-size: 1.3rem;
}

.logo-green { color: var(--primary); }
.logo-accent { color: var(--accent); }
.logo-dot { color: var(--accent); }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-50);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #e85420; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ===== HERO SPLIT ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--white);
  overflow: hidden;
}

.hero-left {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 64px 48px;
  display: flex;
  align-items: center;
}

.hero-left-inner { max-width: 580px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-left h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1.1;
}

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

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.hero-stat-badge .badge-num {
  font-weight: 800;
  color: var(--accent-light);
}

.hero-search-form {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}

.hero-search-form input,
.hero-search-form select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

.hero-search-form input:focus,
.hero-search-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Hero Right - Certifications */
.hero-right {
  background: linear-gradient(160deg, var(--accent-50) 0%, var(--primary-50) 100%);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cert-floating-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-cert-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.cert-ace { background: #e74c3c; }
.cert-nasm { background: #3498db; }
.cert-acsm { background: #2ecc71; }

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-abbr {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
}

.cert-full {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }
.section-light { background: var(--light); }
.section-gray { background: var(--light-alt); }

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== SPECIALIZATIONS SCROLL ===== */
.specs-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.specs-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.specs-scroll-wrapper::-webkit-scrollbar-track { background: var(--border-light); }
.specs-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.specs-scroll {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.spec-pill:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pill-icon { font-size: 1.1rem; }

.pill-count {
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ===== JOBS LIST ===== */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: var(--transition);
  color: var(--text);
}

.job-list-item:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: var(--text);
}

.company-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-title-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  display: block;
  margin-bottom: 2px;
}

.job-list-item:hover .job-title-link { color: var(--primary); }

.job-company-name {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-light);
}

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

.job-salary {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.job-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.type-full-time { background: var(--primary-50); color: var(--primary); }
.type-part-time { background: var(--accent-50); color: var(--accent); }
.type-contract { background: #f3f4f6; color: #6b7280; }
.type-remote { background: #e8f5e9; color: #2e7d32; }

/* ===== EMPLOYERS CLOUD ===== */
.employers-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.employer-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
  transition: var(--transition);
}

.employer-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--dark);
}

.employer-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ===== RESOURCES GRID ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text);
}

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

.resource-visual {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.vis-green { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.vis-orange { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); }

.vis-category {
  color: var(--white);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.resource-body {
  padding: 20px;
}

.resource-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.resource-body h3 a { color: var(--dark); }
.resource-body h3 a:hover { color: var(--primary); }

.resource-excerpt {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== CTA FULL ===== */
.cta-full {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-full::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,107,53,0.12) 100%);
}

.cta-full h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
}

.cta-full p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}

/* ===== STATE GRID (for browse pages) ===== */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.state-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  transition: var(--transition);
}

.state-card:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.state-card .state-code {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.state-card .state-count {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== CATEGORY GRID (for browse pages) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card .cat-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.category-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 4px; }
.category-card .cat-count { font-size: 0.82rem; color: var(--text-light); }

/* ===== JOB CARDS GRID (for jobs page) ===== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.job-card .job-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.job-card .job-title a { color: var(--dark); }
.job-card .job-title a:hover { color: var(--primary); }
.job-card .job-company { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.job-card .job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--text-light); margin-bottom: 12px; }
.job-card .job-desc { color: var(--text-light); font-size: 0.88rem; line-height: 1.5; margin-bottom: 14px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .job-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border-light); }
.job-card .job-salary { font-weight: 700; color: var(--primary); font-size: 0.88rem; }
.job-card .job-posted { font-size: 0.78rem; color: var(--text-light); }

/* ===== BADGES & TAGS ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-accent { background: var(--accent-50); color: var(--accent); }
.badge-remote { background: #e8f5e9; color: #2e7d32; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--light-alt);
  color: var(--text);
  border-radius: 4px;
  font-size: 0.78rem;
  margin: 2px;
}

.tag-cert { background: var(--accent-50); color: var(--accent); font-weight: 600; }

/* ===== FILTERS SIDEBAR ===== */
.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.filters-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 80px;
}

.filters-sidebar h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-weight: 700; font-size: 0.82rem; color: var(--dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group input, .filter-group select { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; font-family: inherit; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); }

.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin-bottom: 6px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.filter-checkbox input { width: auto; margin: 0; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.results-count { font-size: 1rem; font-weight: 700; }
.results-count span { color: var(--accent); }

/* ===== JOB DETAIL ===== */
.job-detail { padding: 30px 0; }

.job-detail-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}

.job-detail-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.job-detail-header .job-company-link { font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 14px; display: inline-block; }

.job-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0; color: var(--text-light); }
.job-detail-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }

.job-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.job-detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }

.job-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.job-content h2 { font-size: 1.3rem; color: var(--primary); margin-top: 22px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); }
.job-content h2:first-child { margin-top: 0; }
.job-content p { line-height: 1.7; color: #444; }
.job-content ul li { list-style: disc; margin-bottom: 8px; color: #444; line-height: 1.6; margin-left: 16px; }

.cert-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

.job-sidebar { position: sticky; top: 80px; }
.job-sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.job-sidebar-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.job-sidebar-card .info-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.job-sidebar-card .info-row:last-child { border-bottom: none; }
.job-sidebar-card .info-label { color: var(--text-light); font-weight: 600; }
.job-sidebar-card .info-value { font-weight: 700; text-align: right; }

/* ===== SIMILAR JOBS ===== */
.similar-jobs { margin-top: 36px; }
.similar-jobs h2 { font-size: 1.5rem; margin-bottom: 18px; color: var(--primary); }

/* ===== COMPANY CARDS ===== */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.company-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.company-card .company-name { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.company-card .company-name a { color: var(--primary); }
.company-card .company-industry { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; }
.company-card .company-desc { font-size: 0.88rem; color: #555; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.company-card .company-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border-light); }
.company-card .company-jobs { font-weight: 700; color: var(--accent); font-size: 0.88rem; }
.company-card .company-founded { font-size: 0.78rem; color: var(--text-light); }

/* Company Detail */
.company-detail { padding: 30px 0; }
.company-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); padding: 44px 0; border-radius: var(--radius); margin-bottom: 26px; }
.company-header h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 6px; }
.company-header .company-industry { font-size: 1.05rem; opacity: 0.9; margin-bottom: 14px; }
.company-header .company-meta { display: flex; gap: 22px; font-size: 0.92rem; opacity: 0.95; }

.company-body { display: grid; grid-template-columns: 1fr 280px; gap: 26px; align-items: start; }
.company-main h2 { color: var(--primary); margin-top: 22px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); }
.company-main h2:first-child { margin-top: 0; }
.company-main p { line-height: 1.7; color: #444; margin-bottom: 12px; }
.company-main ul li { list-style: disc; margin-bottom: 8px; color: #444; margin-left: 16px; }

.company-aside { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 80px; }
.company-aside h3 { color: var(--primary); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.company-aside .info-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.88rem; border-bottom: 1px solid var(--border-light); }
.company-aside .info-row:last-child { border-bottom: none; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.blog-card .blog-img-placeholder { height: 140px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; }
.blog-card .blog-img-placeholder .blog-cat-label { color: var(--white); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

.blog-card .blog-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card .blog-category { font-size: 0.72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .blog-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); font-size: 0.78rem; color: var(--text-light); display: flex; justify-content: space-between; }

/* Blog Post */
.blog-post { padding: 30px 0; }
.blog-post-header { text-align: center; margin-bottom: 26px; }
.blog-post-header .blog-category { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.blog-post-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.blog-post-header .blog-meta { color: var(--text-light); font-size: 0.92rem; }
.blog-post-body { max-width: 760px; margin: 0 auto; }
.blog-post-body p { font-size: 1.02rem; line-height: 1.8; color: #333; margin-bottom: 18px; }
.blog-post-body h2 { color: var(--primary); margin-top: 28px; margin-bottom: 12px; }

/* ===== CERTIFICATIONS GRID ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.cert-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cert-card .cert-code { font-size: 1.4rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.cert-card .cert-name { font-size: 0.76rem; color: var(--text-light); line-height: 1.4; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--white); padding: 36px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-item .stat-number { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-item .stat-label { font-size: 0.9rem; color: var(--text-light); margin-top: 6px; font-weight: 600; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); padding: 44px 0; }
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 6px; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; }

/* ===== FORMS ===== */
.form-page { padding: 40px 0; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--dark); font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: 0.88rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 50px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.no-results h3 { color: var(--text-light); margin-bottom: 8px; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 70px 0; }
.error-page .error-code { font-size: 5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 1.8rem; margin-bottom: 14px; }
.error-page p { color: var(--text-light); margin-bottom: 22px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: var(--white); padding: 48px 0 20px; margin-top: 50px; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 28px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: #ccc; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { color: #ccc; font-size: 0.88rem; line-height: 1.7; }

.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.footer-logo .logo-green { color: #14785a; }
.footer-logo .logo-accent { color: var(--accent); }

.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid #333; color: #999; font-size: 0.82rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 48px 28px; }
  .hero-left h1 { font-size: 2.4rem; }
  .resources-grid { grid-template-columns: 1fr; }
  .jobs-grid, .companies-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .job-detail-body, .company-body { grid-template-columns: 1fr; }
  .job-sidebar, .company-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    border-top: 1px solid var(--border);
  }
  .main-nav.mobile-open a { padding: 12px; border-radius: var(--radius-sm); }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-actions { margin-left: auto; }
  .hero-left { padding: 36px 20px; }
  .hero-left h1 { font-size: 2rem; }
  .hero-search-form { flex-direction: column; }
  .hero-search-form .btn { width: 100%; }
  .jobs-grid, .companies-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .cta-full h2 { font-size: 1.7rem; }
  .job-list-item { flex-direction: column; align-items: flex-start; }
  .job-right { flex-direction: row; align-items: center; align-self: stretch; justify-content: space-between; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .logo { font-size: 1.2rem; }
  .btn { padding: 10px 16px; font-size: 0.88rem; }
  .hero-left h1 { font-size: 1.7rem; }
  .stat-item .stat-number { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
