/* Blog & Insights archive */
.bi-page {
  --bi-navy: #061d4b;
  --bi-navy-dark: #0b1630;
  --bi-blue: #28a9e1;
  --bi-blue-dark: #1a8ec0;
  --bi-orange: #f2994a;
  --bi-bg: #f4f7fb;
  --bi-border: #e2e8f0;
  --bi-text: #334155;
  --bi-muted: #64748b;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  color: var(--bi-text);
  background: var(--bi-bg);
}

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

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

/* Hero */
.bi-hero {
  background: linear-gradient(135deg, #0b2540 0%, var(--bi-navy-dark) 50%, #001529 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.bi-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 420px;
  height: 280px;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect x='20' y='30' width='80' height='50' rx='4' fill='none' stroke='%2328A9E1' stroke-width='2'/%3E%3Crect x='110' y='20' width='50' height='70' rx='4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='155' cy='95' r='12' fill='none' stroke='%23f2994a' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.bi-breadcrumb {
  font-size: 13px;
  color: #94a8c9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.bi-breadcrumb a {
  color: #94a8c9;
  text-decoration: none;
}

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

.bi-breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

.bi-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.bi-hero-desc {
  color: #b8c9e8;
  font-size: 15px;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.bi-search-form {
  display: flex;
  max-width: 520px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.bi-search-form input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.bi-search-form button {
  border: none;
  background: var(--bi-blue);
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bi-search-form button:hover {
  background: var(--bi-blue-dark);
}

.bi-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.bi-topics-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a8c9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bi-topic-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f4;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.bi-topic-pill:hover,
.bi-topic-pill.is-active {
  background: rgba(40, 169, 225, 0.2);
  border-color: var(--bi-blue);
  color: #fff;
}

/* Layout */
.bi-main-section {
  padding: 40px 0 48px;
}

.bi-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Featured */
.bi-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--bi-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bi-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bi-navy-dark);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 16px 48px rgba(6, 29, 75, 0.18);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bi-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(6, 29, 75, 0.28);
}

.bi-featured-copy {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bi-cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  width: fit-content;
}

.bi-cat-kra { background: rgba(40, 169, 225, 0.25); color: #7dd3fc; }
.bi-cat-blue { background: rgba(40, 169, 225, 0.2); color: #7dd3fc; }
.bi-cat-tax { background: rgba(242, 153, 74, 0.2); color: #fdba74; }
.bi-cat-paye { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.bi-cat-accounting { background: rgba(99, 102, 241, 0.25); color: #a5b4fc; }
.bi-cat-growth { background: rgba(244, 63, 94, 0.2); color: #fda4af; }

.bi-featured-copy h2 {
  color: #fff;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  margin-bottom: 14px;
}

.bi-featured-meta {
  font-size: 13px;
  color: #94a8c9;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.bi-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bi-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  width: fit-content;
  text-decoration: none;
}

.bi-featured-btn:hover {
  background: var(--bi-blue-dark);
}

.bi-featured-media {
  min-height: 260px;
  background: #0b2540;
  overflow: hidden;
  position: relative;
}

.bi-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* Grid header */
.bi-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.bi-grid-header h3 {
  font-size: 22px;
  margin: 0;
}

.bi-grid-count {
  font-size: 13px;
  color: var(--bi-muted);
}

/* Article cards */
.bi-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bi-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bi-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.bi-card-thumb {
  display: block;
  height: 160px;
  overflow: hidden;
  background: #e2e8f0;
}

.bi-card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.bi-card-body {
  padding: 16px 18px 18px;
}

.bi-card-meta {
  font-size: 11.5px;
  color: var(--bi-muted);
  margin: 8px 0 10px;
}

.bi-card-body h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
}

.bi-card-body h4 a {
  color: var(--bi-navy);
  text-decoration: none;
}

.bi-card-body h4 a:hover {
  color: var(--bi-blue);
}

.bi-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bi-border);
}

.bi-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bi-text);
}

.bi-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.bi-bookmark {
  border: none;
  background: var(--bi-bg);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--bi-muted);
  font-size: 14px;
}

.bi-bookmark:hover {
  color: var(--bi-blue);
  background: rgba(40, 169, 225, 0.1);
}

/* Pagination */
.bi-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.bi-pagination a,
.bi-pagination span,
.bi-pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--bi-text);
  border: 1px solid var(--bi-border);
  background: #fff;
  padding: 0 10px;
}

.bi-pagination .current,
.bi-pagination span.page-numbers.current {
  background: var(--bi-blue);
  border-color: var(--bi-blue);
  color: #fff;
}

.bi-pagination a:hover {
  border-color: var(--bi-blue);
  color: var(--bi-blue);
}

/* Sidebar */
.bi-sidebar-widget {
  background: #fff;
  border: 1px solid var(--bi-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.bi-sidebar-widget h4 {
  font-size: 15px;
  margin: 0 0 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
}

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

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

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

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

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

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

.bi-view-all-cats {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bi-blue);
  text-decoration: none;
}

.bi-newsletter-widget {
  background: linear-gradient(160deg, var(--bi-navy-dark) 0%, var(--bi-navy) 100%);
  border: none;
  color: #cbd9f4;
}

.bi-newsletter-widget h4 {
  color: #fff;
}

.bi-newsletter-widget p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.bi-newsletter-widget input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
  font-family: inherit;
}

.bi-newsletter-widget input::placeholder {
  color: #64748b;
}

.bi-newsletter-btn {
  width: 100%;
  border: none;
  background: var(--bi-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bi-newsletter-btn:hover {
  background: var(--bi-blue-dark);
}

.bi-help-widget {
  background: linear-gradient(135deg, rgba(40, 169, 225, 0.12) 0%, rgba(40, 169, 225, 0.04) 100%);
  border-color: rgba(40, 169, 225, 0.25);
  text-align: center;
}

.bi-help-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.bi-help-widget h4 {
  margin-bottom: 8px;
}

.bi-help-widget p {
  font-size: 13px;
  color: var(--bi-muted);
  margin-bottom: 14px;
}

.bi-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: var(--bi-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
}

.bi-help-btn:hover {
  background: var(--bi-blue-dark);
}

/* Pre-footer CTA */
.bi-pre-cta {
  background: linear-gradient(90deg, rgba(40, 169, 225, 0.15) 0%, rgba(40, 169, 225, 0.05) 100%);
  border-top: 1px solid var(--bi-border);
  border-bottom: 1px solid var(--bi-border);
  padding: 28px 0;
}

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

.bi-pre-cta-inner h3 {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bi-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed var(--bi-border);
}

@media (max-width: 1024px) {
  .bi-layout {
    grid-template-columns: 1fr;
  }
  .bi-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bi-featured-card {
    grid-template-columns: 1fr;
  }
  .bi-featured-media {
    min-height: 200px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .bi-posts-grid {
    grid-template-columns: 1fr;
  }
  .bi-pre-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
