/* CADavenue Sidebars: styles built on Automatic.css variables (with fallbacks) */

.cad-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-l, 2rem);
  font-size: var(--text-s, 0.95rem);
  color: var(--neutral, #474b52);
}

.cad-sidebar .sidebar-widget {
  margin: 0;
  padding: 0;
}

/* Widget titles: small capitals, like the site's pre-headings */
.cad-sidebar .sidebar-widget .title {
  margin: 0 0 var(--space-s, 1rem);
  padding-bottom: var(--space-xs, 0.5rem);
  border-bottom: 2px solid var(--secondary, #e8b940);
  font-size: var(--text-s, 0.95rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--base, #1b1d21);
}

/* Link lists */
.cad-sidebar ul.xoxo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cad-sidebar ul.xoxo li {
  margin: 0;
  border-bottom: 1px solid var(--neutral-ultra-light, #e3e5e9);
}

.cad-sidebar ul.xoxo li:last-child {
  border-bottom: 0;
}

.cad-sidebar ul.xoxo a {
  display: block;
  padding: 0.55em 0;
  color: var(--base, #1b1d21);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}

.cad-sidebar ul.xoxo a:hover {
  color: var(--accent, #b5501c);
  padding-left: 0.3em;
}

/* Text widgets */
.cad-sidebar .textwidget p {
  margin: 0 0 var(--space-s, 1rem);
}

.cad-sidebar .textwidget p:last-child {
  margin-bottom: 0;
}

.cad-sidebar .textwidget a {
  color: var(--accent, #b5501c);
  font-weight: 700;
  text-decoration: none;
}

.cad-sidebar .textwidget a:hover {
  text-decoration: underline;
}

/* Testimonials in the default sidebar */
.cad-sidebar .sidebar-testimonial {
  padding-left: var(--space-s, 1rem);
  border-left: 3px solid var(--secondary, #e8b940);
  color: var(--base, #1b1d21);
}

.cad-sidebar .sidebar-testimonial em {
  font-style: normal;
}

.cad-sidebar .sidebar-testimonial strong {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
  color: var(--neutral, #474b52);
}

/* "Explore the ... Tour" cross-links */
.cad-sidebar .tour-crosslink a {
  display: inline-block;
  padding: 0.6em 1.1em;
  border: 2px solid var(--base, #1b1d21);
  border-radius: 999px;
  color: var(--base, #1b1d21);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.cad-sidebar .tour-crosslink a:hover {
  background-color: var(--base, #1b1d21);
  color: var(--white, #fff);
}

/* Course ad and free-trial boxes: soft gold card */
.cad-sidebar .video-course-ad,
.cad-sidebar--secondary .widget_text,
.cad-sidebar .mechq-trial,
.cad-sidebar .pns-trial {
  padding: var(--space-m, 1.5rem);
  background-color: var(--secondary-ultra-light, #fdf3dc);
  border-radius: var(--radius-m, 8px);
}
