/**
 * Single blog post — mockup layout
 */
.blog-single-page {
  --bs-navy: #061d4b;
  --bs-navy-dark: #0b1630;
  --bs-blue: #0056b3;
  --bs-blue-soft: #e8f4fc;
  --bs-blue-mid: #28a9e1;
  --bs-orange: #f39c12;
  --bs-green: #27ae60;
  --bs-bg: #f4f7fb;
  --bs-border: #e2e8f0;
  --bs-text: #334155;
  --bs-muted: #64748b;
}

.bs-page {
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  color: var(--bs-text);
  background: var(--bs-bg);
  padding-bottom: 0;
}

.bs-page h1,
.bs-page h2,
.bs-page h3,
.bs-page h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--bs-navy);
}

.bs-container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Breadcrumb */
.bs-breadcrumb {
  padding: 20px 0 8px;
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.5;
}

.bs-breadcrumb a {
  color: var(--bs-muted);
  text-decoration: none;
}

.bs-breadcrumb a:hover {
  color: var(--bs-blue);
}

.bs-breadcrumb span.sep {
  margin: 0 6px;
  opacity: 0.45;
}

/* Layout */
.bs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 8px 0 48px;
}

/* Post header */
.bs-post-header {
  margin-bottom: 24px;
}

.bs-cat-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bs-blue-soft);
  color: var(--bs-blue);
  text-decoration: none;
  margin-bottom: 14px;
}

.bs-cat-pill.bi-cat-kra { background: #fff3e6; color: #c05621; }
.bs-cat-pill.bi-cat-tax { background: var(--bs-blue-soft); color: var(--bs-blue); }
.bs-cat-pill.bi-cat-paye { background: #f3ebf7; color: #8e44ad; }
.bs-cat-pill.bi-cat-growth { background: #eafaf1; color: var(--bs-green); }

.bs-post-title {
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 700;
}

.bs-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bs-author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bs-author-meta img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bs-border);
}

.bs-author-meta .name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--bs-navy);
  font-family: 'Source Sans 3', sans-serif;
}

.bs-author-meta .role {
  display: block;
  font-size: 13px;
  color: var(--bs-muted);
}

.bs-meta-details {
  font-size: 13px;
  color: var(--bs-muted);
  margin-top: 4px;
}

.bs-meta-details span + span::before {
  content: '·';
  margin: 0 8px;
  opacity: 0.5;
}

.bs-share {
  display: flex;
  gap: 8px;
}

.bs-share a,
.bs-share button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bs-border);
  background: var(--bs-white, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-navy);
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  padding: 0;
}

.bs-share a:hover,
.bs-share button:hover {
  border-color: var(--bs-blue);
  color: var(--bs-blue);
  background: var(--bs-blue-soft);
}

/* Featured image */
.bs-featured {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bs-border);
  box-shadow: 0 8px 24px rgba(6, 29, 75, 0.08);
}

.bs-featured img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 440px;
  object-fit: cover;
}

/* TOC */
.bs-toc {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 100%);
  border: 1px solid #c5daf5;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.bs-toc h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-blue);
  margin: 0 0 12px;
  grid-column: 1;
}

.bs-toc ol {
  margin: 0;
  padding-left: 20px;
  grid-column: 1;
}

.bs-toc li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.bs-toc li.bs-toc-h3 {
  list-style-type: circle;
  margin-left: 8px;
}

.bs-toc a {
  color: var(--bs-navy);
  text-decoration: none;
  font-weight: 500;
}

.bs-toc a:hover {
  color: var(--bs-blue);
  text-decoration: underline;
}

.bs-toc-art {
  font-size: 48px;
  line-height: 1;
  opacity: 0.85;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

/* Prose */
.bs-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--bs-text);
}

.bs-prose > *:first-child {
  margin-top: 0;
}

.bs-prose h2 {
  font-size: 26px;
  margin: 36px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}

.bs-prose h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  scroll-margin-top: 100px;
}

.bs-prose p {
  margin-bottom: 1.25em;
}

.bs-prose ul,
.bs-prose ol {
  margin: 0 0 1.25em 1.25em;
}

.bs-prose ul {
  list-style: none;
  padding-left: 0;
}

.bs-prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.bs-prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--bs-blue);
  font-weight: 700;
}

.bs-prose blockquote {
  background: var(--bs-blue-soft);
  border-left: 4px solid var(--bs-blue);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px 18px 52px;
  margin: 28px 0;
  position: relative;
  font-size: 15px;
  color: var(--bs-navy);
}

.bs-prose blockquote::before {
  content: 'i';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bs-blue);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}

.bs-prose blockquote strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--bs-blue);
}

.bs-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--bs-border);
  border-radius: 10px;
}

.bs-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bs-prose table th {
  background: #f1f5f9;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--bs-navy);
  border-bottom: 1px solid var(--bs-border);
}

.bs-prose table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-border);
}

.bs-prose table tr:nth-child(even) td {
  background: #fafbfc;
}

.bs-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Author box */
.bs-author-box {
  margin-top: 48px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(6, 29, 75, 0.05);
}

.bs-author-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-author-box h3 {
  font-size: 20px;
  margin: 0 0 4px;
  font-family: 'Source Sans 3', sans-serif;
}

.bs-author-box .creds {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-blue);
  margin-bottom: 10px;
}

.bs-author-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bs-muted);
  margin: 0 0 16px;
}

.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: var(--bs-blue);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bs-btn:hover {
  background: #004494;
  color: #fff;
}

/* Related */
.bs-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bs-border);
}

.bs-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.bs-related-head h2 {
  font-size: 24px;
  margin: 0;
}

.bs-related-head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-blue);
  text-decoration: none;
}

.bs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bs-related-card {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bs-related-card:hover {
  box-shadow: 0 10px 28px rgba(6, 29, 75, 0.1);
  transform: translateY(-2px);
}

.bs-related-card .thumb {
  height: 140px;
  overflow: hidden;
}

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

.bs-related-card .body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bs-related-card .tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bs-blue);
  margin-bottom: 6px;
}

.bs-related-card .date {
  font-size: 12px;
  color: var(--bs-muted);
  margin-bottom: 8px;
}

.bs-related-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--bs-navy);
}

.bs-related-card .excerpt {
  font-size: 13px;
  color: var(--bs-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}

.bs-related-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bs-muted);
}

.bs-related-foot img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Sidebar */
.bs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.bs-widget {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(6, 29, 75, 0.04);
}

.bs-widget h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--bs-navy);
}

.bs-search-form {
  display: flex;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  overflow: hidden;
}

.bs-search-form input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}

.bs-search-form button {
  background: var(--bs-blue);
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
}

.bs-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bs-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bs-border);
  padding: 10px 0;
}

.bs-cat-list li:last-child {
  border-bottom: none;
}

.bs-cat-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--bs-navy);
  font-size: 14px;
  font-weight: 500;
}

.bs-cat-list a:hover {
  color: var(--bs-blue);
}

.bs-cat-count {
  font-size: 12px;
  color: var(--bs-muted);
  background: var(--bs-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

.bs-latest-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bs-border);
  text-decoration: none;
  color: inherit;
}

.bs-latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bs-latest-item:first-child {
  padding-top: 0;
}

.bs-latest-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-latest-item h5 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--bs-navy);
}

.bs-latest-item span {
  font-size: 11px;
  color: var(--bs-muted);
}

.bs-calc-panel[hidden] {
  display: none !important;
}

.bs-calc-panel {
  margin-bottom: 4px;
}

.bs-calc .bs-field {
  margin-bottom: 12px;
}

.bs-calc label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bs-muted);
  margin-bottom: 5px;
}

.bs-calc select,
.bs-calc input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background-color: #fff;
  color: var(--bs-navy);
  box-sizing: border-box;
}

.bs-calc select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334155' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.bs-calc-results {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bs-border);
  font-size: 13px;
}

.bs-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--bs-muted);
}

.bs-calc-row strong {
  color: var(--bs-navy);
}

.bs-net-pay {
  margin-top: 10px;
  padding: 12px;
  background: #eafaf1;
  border-radius: 8px;
  text-align: center;
}

.bs-net-pay small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bs-muted);
  font-weight: 600;
}

.bs-net-pay strong {
  font-size: 22px;
  color: var(--bs-green);
  font-family: 'Inter', sans-serif;
}

.bs-ai-item {
  border-bottom: 1px solid var(--bs-border);
}

.bs-ai-item:last-child {
  border-bottom: none;
}

.bs-ai-item a {
  display: block;
  padding: 11px 0;
  font-size: 13px;
  color: var(--bs-blue);
  text-decoration: none;
  font-weight: 500;
}

.bs-ai-item a:hover {
  text-decoration: underline;
}

.bs-cta-widget {
  background: linear-gradient(160deg, var(--bs-navy-dark) 0%, var(--bs-navy) 100%);
  color: #fff;
  text-align: center;
  border: none;
}

.bs-cta-widget .icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.bs-cta-widget h4 {
  color: #fff;
  margin-bottom: 8px;
}

.bs-cta-widget p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px;
  line-height: 1.5;
}

.bs-cta-widget .bs-btn {
  width: 100%;
  justify-content: center;
  background: var(--bs-blue-mid);
}

/* Newsletter bar */
.bs-newsletter-bar {
  background: linear-gradient(135deg, var(--bs-navy-dark) 0%, var(--bs-navy) 100%);
  padding: 40px 0;
  margin-top: 0;
}

.bs-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bs-newsletter-inner h3 {
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 22px;
  margin: 0 0 4px;
}

.bs-newsletter-inner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
}

.bs-newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bs-newsletter-form input {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  min-width: 260px;
  font-size: 14px;
}

.bs-newsletter-form .bs-btn {
  background: var(--bs-blue-mid);
}

@media (max-width: 1024px) {
  .bs-layout {
    grid-template-columns: 1fr;
  }
  .bs-sidebar {
    position: static;
  }
  .bs-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bs-toc {
    grid-template-columns: 1fr;
  }
  .bs-toc-art {
    display: none;
  }
  .bs-author-box {
    flex-direction: column;
    text-align: center;
  }
  .bs-related-grid {
    grid-template-columns: 1fr;
  }
  .bs-post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
