@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --light: #f8fafc;
  --light-2: #e2e8f0;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ====== NAVIGATION ====== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(236,72,153,0.15));
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

/* ====== MAIN CONTENT ====== */
main {
  padding-top: 70px;
}

/* ====== HERO ====== */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.35) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 90% 80%, rgba(236,72,153,0.2) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 10% 90%, rgba(6,182,212,0.15) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--dark-3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
  color: #fff;
}

/* ====== STATS ====== */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====== FEATURES ====== */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(99,102,241,0.2);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ====== PAGE HEADER ====== */
.page-header {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ====== BLOG ====== */
.blog-section {
  padding: 2rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.blog-card-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.blog-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--dark-2));
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ====== ARTICLE ====== */
.article-hero {
  height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.9) 100%);
}

.article-emoji {
  font-size: 5rem;
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  opacity: 0.3;
  z-index: 0;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.article-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.article-hero-content .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.info-card-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

/* Star rating styling - only for actual star characters */
.info-card-value:has(★) {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Salary grade styling */
.salary-grade {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-section h2::before {
  content: '';
  width: 4px;
  height: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

.article-section p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-section ul, .article-section ol {
  padding-left: 1.5rem;
  color: var(--text);
}

.article-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.pros, .cons {
  background: var(--dark-2);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.pros {
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cons {
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros h3, .cons h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pros h3 { color: var(--success); }
.cons h3 { color: #ef4444; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}

.pros li, .cons li {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pros li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.cons li::before { content: '✗'; color: #ef4444; font-weight: 700; flex-shrink: 0; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.tag {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

/* ====== CONTACT ====== */
.contact-section {
  padding: 2rem 2rem 6rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  color: var(--text);
}

.social-link:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.06);
}

.social-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.social-link-info {
  flex: 1;
}

.social-link-name {
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

.social-link-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-link-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover .social-link-arrow {
  color: #fff;
  transform: translateX(4px);
}

.contact-form-area {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-logo { font-size: 1.1rem; }
  .nav-links a { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 2rem; }
  .article-hero { height: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .seniority-grid { grid-template-columns: 1fr; }
  .salary-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* ====== PROGRESS BAR ====== */
#progress-bar {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1001;
  width: 0%;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ====== TABLE OF CONTENTS ====== */
.toc {
  background: var(--dark-2);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}

/* heading — used as <strong> in articles */
.toc strong,
.toc-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

/* pill/chip TOC — matches .toc-links style, used in all article sidebars */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}
.toc ul li {
  flex: 0 0 auto;
}
.toc ul li a {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
}
.toc ul li a:hover {
  color: #fff;
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.1);
}

/* pill/tag TOC variant (legacy) */
.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.toc-links a {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
}
.toc-links a:hover {
  color: #fff;
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.1);
}

/* ====== SENIORITY CARDS ====== */
.seniority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.seniority-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}
.seniority-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.seniority-card.junior::before  { background: linear-gradient(90deg,#10b981,#34d399); }
.seniority-card.mid::before     { background: linear-gradient(90deg,#6366f1,#818cf8); }
.seniority-card.senior::before  { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.seniority-card.entry::before   { background: linear-gradient(90deg,#10b981,#34d399); }
.seniority-card.experienced::before { background: linear-gradient(90deg,#6366f1,#818cf8); }
.seniority-card.supervisor::before  { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.seniority-card h3 {
  font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem;
}
.seniority-card .years {
  font-size: 0.77rem; color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 500;
}
.seniority-card ul { list-style: none; padding: 0; }
.seniority-card li {
  font-size: 0.84rem; color: var(--text); margin-bottom: 0.35rem;
  padding-left: 1rem; position: relative;
}
.seniority-card li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}

/* ====== SEGMENT / ENVIRONMENT CARDS ====== */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.segment-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.3rem;
}
.segment-card h3 {
  font-size: 0.93rem; font-weight: 700; color: #fff;
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.segment-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ====== SKILL PILLS ====== */
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.skill-pill {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.81rem;
  font-weight: 500;
}

/* ====== SALARY CARDS ====== */
.salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.salary-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
}
.salary-card .level {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 0.6rem; display: block;
}
.salary-card .stars {
  font-size: 1.1rem; letter-spacing: 1px;
  margin-bottom: 0.4rem; display: block;
}
.salary-card .score {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}

/* ====== FUN FACTS ====== */
.funfact-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.funfact {
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.funfact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.funfact p { margin: 0; font-size: 0.89rem; color: var(--text); line-height: 1.7; }
.funfact strong { color: #fff; }

/* ====== MYTHS ====== */
.myth-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.myth {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.myth-q { font-size: 0.92rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.myth-a { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.myth-a .ok  { color: #34d399; font-weight: 700; }
.myth-a .nok { color: #f87171; font-weight: 700; }

/* ====== CHECKLISTS ====== */
.checklist { list-style: none; padding: 0; margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; }
.checklist li { display: flex; gap: 0.7rem; font-size: 0.89rem; color: var(--text); line-height: 1.5; }

/* ====== FAQ ====== */
.faq { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
details {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden;
  transition: var(--transition);
}
details[open] { border-color: rgba(99,102,241,0.35); }
summary {
  padding: 1rem 1.2rem; cursor: pointer;
  font-weight: 600; color: #fff; font-size: 0.93rem;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
details[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 1.2rem 1rem; font-size: 0.87rem; color: var(--text-muted);
  line-height: 1.75; border-top: 1px solid rgba(255,255,255,0.06);
}
.faq-body ul { margin-top: 0.5rem; padding-left: 1.2rem; }
.faq-body li { margin-bottom: 0.3rem; }
.faq-body strong { color: var(--text); }

/* ====== CALLOUT / SUCCESS / DANGER BOXES ====== */
.callout {
  background: rgba(6,182,212,0.07);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 12px; padding: 1rem 1.2rem;
  font-size: 0.9rem; color: var(--text); line-height: 1.7; margin: 1rem 0;
}
.callout strong { color: #67e8f9; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }

.success-box {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.danger-box {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.success-box h3 { color: #34d399; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.6rem; }
.danger-box h3  { color: #f87171; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.6rem; }
.success-box ul, .danger-box ul { list-style: none; padding: 0; }
.success-box li, .danger-box li {
  font-size: 0.85rem; color: var(--text);
  margin-bottom: 0.35rem; display: flex; gap: 0.5rem;
}
.success-box li::before { content: '✓'; color: #34d399; font-weight: 700; flex-shrink:0; }
.danger-box li::before  { content: '✗'; color: #f87171; font-weight: 700; flex-shrink:0; }

/* ====== STEP LIST ====== */
.step-list {
  list-style: none; padding: 0; margin-top: 0.8rem;
  counter-reset: steps; display: flex; flex-direction: column; gap: 0.8rem;
}
.step-list li {
  counter-increment: steps; display: flex;
  gap: 1rem; font-size: 0.89rem; color: var(--text); line-height: 1.6;
}
.step-list li::before {
  content: counter(steps);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 800; font-size: 0.77rem;
  min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem;
}
.step-list strong { color: #fff; }

/* ====== DAY IN LIFE ====== */
.day-story {
  background: var(--dark-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.4rem 1.5rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
  margin-top: 1rem;
}
.day-story strong { color: #fff; font-style: normal; }

/* ---- Day in the life: centered timeline ---- */
.day-story.day-timeline {
  font-style: normal;
  text-align: center;
  padding: 1.6rem 1.4rem;
}
.day-timeline .day-lead {
  color: var(--text-muted);
  margin: 0 auto 0.6rem;
  max-width: 640px;
}
.day-timeline .day-slot {
  padding: 1rem 0;
}
.day-timeline .day-slot + .day-slot {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.day-timeline .day-time {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.day-timeline .day-event {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text);
  line-height: 1.7;
}

/* ====== VOICE FROM THE FIELD ====== */
.voice-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.voice-quote {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.3rem 1.5rem 1.2rem;
  position: relative;
}
.voice-quote::before {
  content: '\201C';
  position: absolute; top: 0.35rem; left: 0.9rem;
  font-size: 2.8rem; line-height: 1;
  color: rgba(99,102,241,0.4);
  font-family: Georgia, 'Times New Roman', serif;
}
.voice-quote p {
  font-size: 0.92rem; color: var(--text); line-height: 1.75;
  font-style: italic; margin: 0 0 0.7rem; padding-left: 1.9rem;
}
.voice-quote em { color: #fff; }
.voice-quote .attr {
  padding-left: 1.9rem; font-style: normal; margin: 0;
  font-size: 0.82rem; color: var(--text-muted);
}
.voice-quote .attr strong { color: #fff; font-weight: 700; }

/* ====== COST & TIME TO START ====== */
.cost-panel {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  margin-top: 1.3rem;
}
.cost-panel h3 { font-size: 0.92rem; font-weight: 700; color: #34d399; margin-bottom: 0.3rem; }
.cost-panel .cost-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5; }
.cost-rows { display: flex; flex-direction: column; }
.cost-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; font-size: 0.88rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cost-row .item { color: var(--text); }
.cost-row .item small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.15rem; line-height: 1.45; }
.cost-row .val { color: #fff; font-weight: 700; white-space: nowrap; }
.cost-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: 0.9rem; padding-top: 0.85rem;
  border-top: 1px dashed rgba(255,255,255,0.18);
}
.cost-total .item { font-weight: 700; color: #fff; font-size: 0.9rem; }
.cost-total .val { font-weight: 800; color: #34d399; font-size: 0.98rem; white-space: nowrap; }

/* ====== COMPARISON TABLE ====== */
.compare-wrap { margin-top: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 0.85rem; }
.compare-table th, .compare-table td {
  text-align: left; padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top;
}
.compare-table thead th {
  font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.compare-table tbody tr.is-this { background: rgba(99,102,241,0.08); }
.compare-table tbody tr.is-this td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.compare-table .role-name { font-weight: 700; color: #fff; text-decoration: none; }
.compare-table a.role-name { color: #a5b4fc; }
.compare-table a.role-name:hover { text-decoration: underline; }
.compare-table .diff { color: var(--text-muted); }
.compare-table .badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 50px; white-space: nowrap;
}
.compare-table .badge.easy { background: rgba(16,185,129,0.15); color: #34d399; }
.compare-table .badge.med  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.compare-table .badge.hard { background: rgba(239,68,68,0.15); color: #f87171; }

/* ====== SHARE SECTION ====== */
.share-section {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.share-section h3 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 1rem;
}
.share-buttons {
  display: flex; gap: 0.8rem;
  justify-content: center; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  font-size: 0.87rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.share-btn.facebook { background: rgba(24,119,242,0.12); color: #60a5fa; border: 1px solid rgba(24,119,242,0.25); }
.share-btn.twitter  { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.share-btn.copy     { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.share-btn:hover    { transform: translateY(-2px); opacity: 0.9; }

/* ====== RELATED ARTICLES ====== */
.related-section {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-section h3 {
  font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.2rem;
  text-decoration: none; display: block;
  transition: var(--transition);
}
.related-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.related-card .emoji { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }
.related-card .r-title { font-size: 0.93rem; font-weight: 700; color: #fff; display: block; margin-bottom: 0.3rem; }

/* ===== BLOG FILTER BAR ===== */
.filter-bar {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}

.filter-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-search-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.filter-search-wrap input:focus {
  border-color: rgba(99,102,241,0.5);
}

.filter-search-wrap input::placeholder {
  color: var(--text-muted);
}

.filter-count-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.clear-filters-btn {
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.clear-filters-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.clear-filters-btn:hover {
  background: rgba(99,102,241,0.2);
}

.filter-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}
.filter-groups .filter-divider {
  grid-column: 1 / -1;
  margin: 0.1rem 0 0.1rem;
}

.filter-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 80px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.5;
}

.filter-pill:hover {
  border-color: rgba(99,102,241,0.4);
  color: var(--text);
  background: rgba(99,102,241,0.08);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Collapsible filter panel */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.filter-toggle-btn:hover,
.filter-toggle-btn[aria-expanded="true"] {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.45);
}
.filter-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.filter-toggle-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.32rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  box-sizing: border-box;
}
.filter-badge[hidden] { display: none; }

.filter-panel { display: none; }
.filter-panel.open { display: block; }

/* Spec chips on blog cards */
.blog-card-specs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.55rem 0 0.7rem;
}

.spec-chip {
  font-size: 0.71rem;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
}

.spec-chip.spec-green  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.spec-chip.spec-yellow { background: rgba(245,158,11,0.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.spec-chip.spec-red    { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.spec-chip.spec-blue   { background: rgba(99,102,241,0.12);  color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }

/* No results */
.no-results {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.no-results .no-results-emoji { font-size: 3rem; }

.no-results h3 { color: var(--text); margin: 0; }
.no-results p  { margin: 0; }

.no-results .no-results-reset {
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .filter-groups {
    grid-template-columns: 1fr;
  }
  .filter-group {
    flex-direction: column;
    gap: 0.4rem;
  }
  .filter-group-label {
    min-width: unset;
    padding-top: 0;
  }
  .filter-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-count-wrap {
    justify-content: space-between;
  }
}
.related-card .r-desc  { font-size: 0.79rem; color: var(--text-muted); line-height: 1.5; }
