/* CLW Fleet Africa — Editorial Blog Detail Layout, Sticky TOC, Styled Tables & Numbered Pagination */
.ci-guide {
  background: #f7f6ef;
  color: #173b2c;
  padding-bottom: 56px;
}

/* Top Split Editorial Hero (aligned to .wrap, full uncropped truck photo!) */
.ci-hero-band {
  background: linear-gradient(135deg, #0d3326 0%, #143a2b 62%, #0c261d 100%);
  color: #f4f7f2;
  border-bottom: 3px solid #e6aa00;
  padding: 20px 0 38px;
}

.ci-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #a9c4b7;
  margin-bottom: 22px;
}

.ci-crumb a {
  color: #dcebe3;
  text-decoration: none;
}

.ci-crumb a:hover {
  color: #f0b829;
  text-decoration: underline;
}

.ci-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: center;
}

.ci-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0b829;
  margin: 0 0 12px;
}

.ci-kicker::before {
  content: "";
  width: 18px;
  height: 2.5px;
  background: #e6aa00;
  flex: none;
}

.ci-aside .ci-kicker {
  color: #8f5600;
}

.ci-hero-copy h1 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
}

.ci-deck {
  font-size: 16px;
  line-height: 1.65;
  margin: 14px 0 0;
  color: #d1e2d9;
  max-width: 60ch;
}

.ci-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: #b4cec1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #285141;
}

.ci-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: #ffffff17;
  color: #f6d169;
  font-weight: 700;
  font-size: 11.5px;
}

.ci-hero-photo {
  margin: 0;
  background: #0a241b;
  border: 1px solid #2e5948;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ci-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Main 2-Column Reading Layout (Aligned cleanly to .wrap) */
.ci-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  margin-top: 38px;
  align-items: start;
}

.ci-body {
  background: #fff;
  border: 1px solid #d9dfd3;
  border-radius: 6px;
  padding: clamp(24px, 3vw, 42px) clamp(20px, 3.4vw, 46px);
  min-width: 0;
  font-size: 16px;
  line-height: 1.82;
  color: #2b4236;
  box-shadow: 0 8px 26px rgba(16, 43, 34, 0.04);
}

.ci-body h2 {
  font-size: clamp(1.32rem, 1.9vw, 1.62rem);
  letter-spacing: -0.02em;
  line-height: 1.26;
  color: #102b22;
  margin: 38px 0 14px;
  padding-top: 24px;
  border-top: 1px solid #e3e8de;
  scroll-margin-top: 100px;
}

.ci-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ci-body h3 {
  font-size: 1.14rem;
  line-height: 1.36;
  color: #153829;
  margin: 24px 0 9px;
  font-weight: 700;
}

.ci-body p {
  margin: 0 0 16px;
  color: #364d41;
}

.ci-body strong {
  color: #102b22;
}

.ci-body a {
  color: #0f3d2e;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c98600;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.ci-body a:hover {
  color: #8f5600;
}

.ci-body ul,
.ci-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #364d41;
}

.ci-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.ci-body li::marker {
  color: #c98600;
  font-weight: 700;
}

/* Responsive Styled Tables */
.ci-tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 26px;
  border-radius: 6px;
  border: 1px solid #d3dacd;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 43, 34, 0.06);
}

.ci-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  min-width: 540px;
  margin: 0;
  background: #fff;
}

.ci-body thead {
  background: #102b22;
  color: #fff;
}

.ci-body thead tr {
  border-bottom: 3px solid #e6aa00;
}

.ci-body th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6f7f2;
  white-space: nowrap;
}

.ci-body td {
  padding: 11px 14px;
  border-bottom: 1px solid #e4e9df;
  color: #2f4539;
  vertical-align: top;
}

.ci-body tbody tr:nth-child(even) {
  background: #f5f7f1;
}

.ci-body tbody tr:hover {
  background: #eaf0e4;
}

.ci-body tbody tr:last-child td {
  border-bottom: 0;
}

.ci-body tbody td:first-child {
  font-weight: 700;
  color: #102b22;
}

/* Callout & Warning Boxes */
.ci-callout {
  margin: 22px 0;
  padding: 16px 18px;
  background: #edf1e6;
  border: 1px solid #d2dac8;
  border-left: 4px solid #102b22;
  border-radius: 4px;
}

.ci-callout--warn {
  background: #fbf6e8;
  border-color: #e8d7a8;
  border-left-color: #d49200;
}

.ci-callout p:last-child,
.ci-callout ul:last-child {
  margin-bottom: 0;
}

.ci-callout-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #102b22;
  margin: 0 0 6px;
}

/* End-of-Article Quote Brief CTA Box */
.ci-brief-box {
  margin: 30px 0 8px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #0d3326 0%, #153c2d 100%);
  color: #eef5f1;
  border-radius: 6px;
  border-top: 3px solid #e6aa00;
}

.ci-brief-box h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 20px;
}

.ci-brief-box p,
.ci-brief-box li {
  color: #d5e4dc;
  font-size: 14.5px;
}

.ci-brief-box strong {
  color: #f6c84c;
}

.ci-brief-box a.ci-brief-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  background: #e6aa00;
  color: #10241b;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
}

.ci-brief-box a.ci-brief-btn:hover {
  background: #f5c12e;
  color: #10241b;
}

/* FAQ Cards */
.ci-faq {
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}

.ci-faq-item {
  padding: 14px 16px;
  background: #f9faf6;
  border: 1px solid #dce2d6;
  border-radius: 5px;
}

.ci-faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #102b22;
}

.ci-faq-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #41584c;
}

/* Sticky Right Sidebar: Auto TOC + Brand-Cohesive Quote Card + Quick Links */
.ci-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-toc-card {
  background: #fff;
  border: 1px solid #d7ddd1;
  border-radius: 6px;
  padding: 18px 18px 16px;
}

.ci-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f5600;
  margin: 0 0 10px;
}

.ci-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.ci-toc-list a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid #dfe5d9;
  font-size: 13px;
  line-height: 1.4;
  color: #465c50;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ci-toc-list a:hover {
  color: #102b22;
  border-left-color: #c98600;
  background: #f5f7f1;
}

.ci-toc-list a.is-active {
  color: #102b22;
  font-weight: 700;
  border-left-color: #102b22;
  background: #edf2e6;
}

.ci-cta-card {
  padding: 20px;
  background: #102b22;
  color: #eef5f1;
  border-radius: 6px;
  border-top: 3px solid #e6aa00;
}

.ci-cta-card .ci-kicker {
  color: #f0b829;
  margin-bottom: 8px;
}

.ci-cta-card h2 {
  font-size: 19px;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
}

.ci-cta-card p:not(.ci-kicker) {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: #cddfd6;
}

.ci-cta-gold-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  background: #e6aa00;
  color: #10241b;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ci-cta-gold-btn:hover {
  background: #f5c12e;
  color: #10241b;
}

.ci-cta-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #244b3c;
  display: grid;
  gap: 6px;
}

.ci-cta-links a {
  font-size: 12.5px;
  color: #d7e7df;
  text-decoration: none;
}

.ci-cta-links a:hover {
  color: #f0b829;
  text-decoration: underline;
}

/* Related Buying Guides Strip Below Article */
.ci-related {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid #d5dcd0;
}

.ci-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ci-related-head h2 {
  font-size: 24px;
  color: #102b22;
  margin: 0;
}

.ci-related-head a {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f3d2e;
  border-bottom: 2px solid #c98600;
  text-decoration: none;
}

.ci-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ci-rel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d7ddd1;
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ci-rel-card:hover {
  border-color: #102b22;
  box-shadow: 0 10px 22px rgba(16, 43, 34, 0.08);
}

.ci-rel-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ci-rel-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ci-rel-body h3 {
  font-size: 15.5px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #102b22;
}

.ci-rel-body h3 a {
  color: inherit;
  text-decoration: none;
}

.ci-rel-body h3 a:hover {
  color: #8f5600;
}

.ci-rel-body p {
  font-size: 13px;
  line-height: 1.55;
  color: #4f6358;
  margin: 0 0 10px;
}

.ci-rel-read {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f3d2e;
  text-decoration: none;
}

/* Quote Form Container */
.ci-quote > h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 22px;
  color: #102b22;
}

.ci-quote .inquiry > h2 {
  display: none;
}

@media (max-width: 980px) {
  .ci-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ci-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 26px;
  }
  .ci-aside {
    position: static;
  }
  .ci-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ci-hero-band {
    padding: 16px 0 28px;
  }
  .ci-body {
    padding: 20px 16px;
    font-size: 15px;
    line-height: 1.78;
  }
  .ci-body h2 {
    font-size: 20px;
    margin-top: 28px;
    padding-top: 18px;
  }
  .ci-body table {
    font-size: 13px;
    min-width: 460px;
  }
  .ci-body th,
  .ci-body td {
    padding: 9px 11px;
  }
}
