/* ─────────────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────────────── */
.reading-progress-container {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 101;
}
.reading-progress-bar {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ─────────────────────────────────────────
   SINGLE LAYOUT WRAPPER
───────────────────────────────────────── */
.single-layout {
  margin-top: 24px;
}

/* ─────────────────────────────────────────
   POST ENTRY TYPOGRAPHY
───────────────────────────────────────── */
.single-post-body {
  font-size: 17px;
  line-height: 1.8;
  color: #2e3e4f;
}
.single-post-body p {
  margin-bottom: 24px;
}
.single-post-body h2, 
.single-post-body h3, 
.single-post-body h4 {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 16px;
  scroll-margin-top: 80px; /* offset for sticky nav */
}
.single-post-body h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 8px;
}
.single-post-body h3 {
  font-size: clamp(18px, 3vw, 22px);
}
.single-post-body a {
  color: var(--green-dim);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.single-post-body a:hover {
  color: var(--navy);
}
.single-post-body strong {
  color: var(--navy);
}

/* Lists */
.single-post-body ul, 
.single-post-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.single-post-body li {
  margin-bottom: 10px;
}
.single-post-body li::marker {
  color: var(--green);
  font-weight: 800;
}

/* Blockquotes */
.single-post-body blockquote {
  border-left: 4px solid var(--green);
  background: var(--light-bg);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--navy-mid);
  margin: 32px 0;
}
.single-post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code & Pre */
.single-post-body pre {
  background: var(--navy);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
  font-family: monospace;
}
.single-post-body code {
  font-family: monospace;
  background: var(--light-bg);
  color: #d11a2a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.single-post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 13px;
}

/* Image Captions */
.wp-caption {
  max-width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 24px;
}
.wp-caption-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* ─────────────────────────────────────────
   TABLE OF CONTENTS (TOC)
───────────────────────────────────────── */
.eip-toc {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.eip-toc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eip-toc-toggle {
  font-size: 12px;
  color: var(--green-dim);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 700;
}
.eip-toc-list {
  list-style: none;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.eip-toc-list li {
  margin-bottom: 8px !important;
  font-size: 14px;
}
.eip-toc-list li:last-child {
  margin-bottom: 0 !important;
}
.eip-toc-list li.toc-item-h3 {
  padding-left: 18px;
}
.eip-toc-list a {
  text-decoration: none !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  transition: color 0.15s;
}
.eip-toc-list a:hover {
  color: var(--green-dim) !important;
}

/* ─────────────────────────────────────────
   SALARY COMPARISON TABLES
───────────────────────────────────────── */
.salary-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(11,37,69,0.05);
}
.salary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.salary-table th {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
}
.salary-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.salary-table tr:last-child td {
  border-bottom: none;
}
.salary-table tr:nth-child(even) {
  background-color: var(--light-bg);
}
.salary-table tr:hover {
  background-color: rgba(0,196,140,0.05);
}
.salary-table td:last-child {
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}
.salary-table td.salary-val-highlight {
  color: var(--green-dim);
}

/* ─────────────────────────────────────────
   RELATED CARDS SECTION
───────────────────────────────────────── */
.related-posts {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* ─────────────────────────────────────────
   SALARY DISTRIBUTION CHART
───────────────────────────────────────── */
.salary-chart-box {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 4px 12px rgba(11,37,69,0.03);
}
.salary-chart-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px !important;
  text-align: center;
}
.chart-bar-container {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  height: 180px;
  padding: 20px 10px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
}
.chart-column {
  flex: 1;
  background: var(--navy-mid);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: background 0.2s, transform 0.2s;
  min-height: 25px;
  cursor: pointer;
}
.chart-column:hover {
  background: var(--green);
  transform: scaleY(1.02);
}
.chart-column::before {
  content: attr(data-value);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.chart-labels span {
  flex: 1;
}

/* ─────────────────────────────────────────
   INTERACTIVE FAQ ACCORDION
───────────────────────────────────────── */
.eip-faq-container {
  margin: 40px 0;
}
.eip-faq-item {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}
.eip-faq-item:hover {
  border-color: var(--green);
}
.eip-faq-question {
  background: var(--light-bg);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.eip-faq-question::after {
  content: '▼';
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}
.eip-faq-item.active .eip-faq-question::after {
  transform: rotate(180deg);
  color: var(--green-dim);
}
.eip-faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  border-top: 1px solid var(--border);
}
.eip-faq-item.active .eip-faq-answer {
  display: block;
}

/* ─────────────────────────────────────────
   USER REVIEW RATING WIDGET
───────────────────────────────────────── */
.salary-rating-widget {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(11,37,69,0.02);
}
.stars-outer {
  display: inline-block;
  position: relative;
  font-family: FontAwesome, sans-serif;
  color: #d1d5db; /* Grey stars fallback */
  font-size: 16px;
  letter-spacing: 2px;
}
.stars-outer::before {
  content: "★★★★★";
}
.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--amber); /* Gold stars */
}
.stars-inner::before {
  content: "★★★★★";
}
.rating-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-mid);
}
.rating-text span {
  font-weight: 800;
  color: var(--navy);
}

