/* ============================================================   LAYOUT============================================================ */

.cb-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* ============================================================   COMPACT ASIDE============================================================ */

.cb-aside {
  width: 24%;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-right: 10px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

/* Ultra-thin minimal scrollbar */

.cb-aside::-webkit-scrollbar {
  width: 4px;
}

.cb-aside::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.cb-aside::-webkit-scrollbar-thumb {
  background: rgba(40,167,69,0.45);
  border-radius: 20px;
}

.cb-aside::-webkit-scrollbar-thumb:hover {
  background: rgba(40,167,69,0.75);
}

/* ============================================================   PREMIUM ACCENT LINE (green vertical bar)============================================================ */

.cb-accent-line {
  position: absolute;
  right: -14px;
  top: 0;
  height: 100%;
  width: 3px;
  background: #28a745;
  border-radius: 4px;
}

/* ============================================================   ASIDE CARDS — Apple-style============================================================ */

.cb-aside-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all .22s ease;
}

.cb-aside-card.compact {
  padding: 1rem 1.1rem;
}

.cb-aside-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* ============================================================   TITLES============================================================ */

.cb-aside-card h4 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

/* ============================================================   LISTS============================================================ */

.cb-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-aside-list li {
  margin-bottom: .45rem;
  font-size: .9rem;
  color: #444;
}

/* ============================================================   MOBILE BEHAVIOR — aside BEFORE main============================================================ */

@media (max-width: 992px) {
  .cb-layout {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .cb-aside {
    width: 100%;
    position: static;
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
    order: -1;
  }
}

@media (max-width: 992px) {
  .cb-accent-line {
    display: none;
  }
}

/* Remove bullets globally */

.cb-aside-card.v5-internal-links ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem .55rem;
}

/* Reset li */

.cb-aside-card.v5-internal-links li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pill style */

.cb-aside-card.v5-internal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .38rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  background: #ffffff;
  color: #145c32;
  border: 1px solid #e2e8ec;
  white-space: nowrap;
  flex-shrink: 1;
  max-width: 150px;
  text-decoration: none;
  transition: all .2s ease;
}

/* Hover */

.cb-aside-card.v5-internal-links a:hover {
  background: rgba(40,167,69,.05);
  border-color: #cfe8d2;
}

/* Card styling */

.cb-aside-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem 1.6rem 1.3rem;
  border: 1px solid #eef1f3;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.cb-aside-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
  border-color: #dce6df;
}

/* Header */

.cb-aside-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
}

/* List reset */

.cb-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* List items */

.cb-aside-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.2rem;
  font-size: .88rem;
  color: #2d3a39;
  line-height: 1.45;
  border-bottom: 1px solid #f2f3f5;
}

.cb-aside-list li:last-child {
  border-bottom: none;
}

/* Green micro-accent bullet */

.cb-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a745;
  opacity: .6;
}

/* On hover */

.cb-aside-list li:hover {
  color: #145c32;
}

/* ================================   LIST================================ */

.v5-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ================================   ITEM================================ */

.v5-item {
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e7ecef;
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Left accent bar */

.v5-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: #28a745;
  opacity: .22;
  transition: all .25s ease;
}

.v5-item:hover {
  transform: translateY(-3px);
  border-color: #cfe8d2;
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.v5-item:hover::before {
  opacity: .9;
}

/* ================================   TEXT================================ */

.v5-item h5 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.v5-item h5 a {
  text-decoration: none;
  color: #222;
}

.v5-item p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #48545b;
}

/* UNIVERSAL pill layout for both sections */

.v5-pill-container, .cb-aside-card.v5-internal-links ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem .55rem;
}

/* Apply pill style to all aside links */

.v5-pill-container a, .cb-aside-card.v5-internal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .38rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  background: #ffffff;
  color: #145c32;
  border: 1px solid #e2e8ec;
  white-space: nowrap;
  flex-shrink: 1;
  max-width: 150px;
  text-decoration: none;
  transition: all .2s ease;
}

/* Hover effect */

.v5-pill-container a:hover, .cb-aside-card.v5-internal-links a:hover {
  background: rgba(40,167,69,.05);
  border-color: #cfe8d2;
}

/* Active spy highlight */

.v5-pill-container a.active, .v5-pill-container a.spy-active {
  background: #e8f6ed;
  border-color: #28a745 !important;
  color: #28a745 !important;
}

