.rs-case-study-dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0 !important;
  max-width: 100%;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease 0s;
}

/* Header / badge */
.rs-case-study-dashboard-card .csdc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.rs-case-study-dashboard-card .csdc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--color-heading);
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
}
.rs-case-study-dashboard-card .csdc-header-title {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

/* Heading / description */
.rs-case-study-dashboard-card .csdc-heading {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-description {
  margin: 0 0 28px;
  color: var(--color-text);
  line-height: 1.6;
}

/* Two-column row */
.rs-case-study-dashboard-card .csdc-columns {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}

/* What I Built column */
.rs-case-study-dashboard-card .csdc-built-col {
  flex: 42 1 0%;
  min-width: 280px;
}
.rs-case-study-dashboard-card .csdc-built-label {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-built-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rs-case-study-dashboard-card .csdc-built-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.rs-case-study-dashboard-card .csdc-built-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 44px;
  flex-shrink: 0;
  color: var(--color-primary);
  line-height: 1;
  margin-top: 2px;
}
.rs-case-study-dashboard-card .csdc-built-icon i {
  font-size: 26px;
  color: var(--color-primary);
}
.rs-case-study-dashboard-card .csdc-built-icon svg {
  width: 26px;
  height: 26px;
}
.rs-case-study-dashboard-card .csdc-built-icon svg path {
  fill: var(--color-primary);
}
.rs-case-study-dashboard-card .csdc-built-title {
  margin: 0 0 5px;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-built-text {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.55;
}

/* Dashboard panel */
.rs-case-study-dashboard-card .csdc-dash-col {
  flex: 58 1 0%;
  min-width: 320px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.rs-case-study-dashboard-card .csdc-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rs-case-study-dashboard-card .csdc-dash-title {
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-period {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 5px 12px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.rs-case-study-dashboard-card .csdc-period::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  margin-top: -3px;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  border-color: inherit;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Stat cards row */
.rs-case-study-dashboard-card .csdc-ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.rs-case-study-dashboard-card .csdc-ds-item {
  flex: 1 1 0;
  min-width: 90px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-case-study-dashboard-card .csdc-ds-label {
  color: var(--color-text);
  font-size: 11px;
  line-height: 1.3;
}
.rs-case-study-dashboard-card .csdc-ds-value {
  color: var(--color-heading) !important;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}

/* Bottom split: chart + sources */
.rs-case-study-dashboard-card .csdc-dash-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.rs-case-study-dashboard-card .csdc-chart {
  flex: 60 1 0%;
  min-width: 220px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
}
.rs-case-study-dashboard-card .csdc-chart-title {
  display: block;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-chart-body {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.rs-case-study-dashboard-card .csdc-chart-ylabels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  color: var(--color-text);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.rs-case-study-dashboard-card .csdc-chart-plot {
  position: relative;
  flex: 1 1 auto;
  height: 170px;
  min-width: 0;
}
.rs-case-study-dashboard-card .csdc-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rs-case-study-dashboard-card .csdc-chart-grid {
  stroke: var(--color-divider);
  stroke-width: 1;
}
.rs-case-study-dashboard-card .csdc-chart-area {
  fill: rgba(37, 99, 235, 0.12);
  stroke: none;
}
.rs-case-study-dashboard-card .csdc-chart-line {
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
}
.rs-case-study-dashboard-card .csdc-chart-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: var(--color-primary);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-sizing: content-box;
}
.rs-case-study-dashboard-card .csdc-chart-xlabels {
  display: flex;
  justify-content: space-between;
  color: var(--color-text);
  font-size: 10px;
  line-height: 1;
  margin-top: 8px;
  padding-left: 42px;
}

/* Top sources */
.rs-case-study-dashboard-card .csdc-sources {
  flex: 40 1 0%;
  min-width: 170px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
}
.rs-case-study-dashboard-card .csdc-sources-title {
  display: block;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rs-case-study-dashboard-card .csdc-sources-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rs-case-study-dashboard-card .csdc-source-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
}
.rs-case-study-dashboard-card .csdc-source-label {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.3;
}
.rs-case-study-dashboard-card .csdc-source-percent {
  margin-left: auto;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 700;
}

/* Key result */
.rs-case-study-dashboard-card .csdc-result {
  background-color: var(--color-background-alt);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 28px;
}
.rs-case-study-dashboard-card .csdc-result-label {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}
.rs-case-study-dashboard-card .csdc-result-text {
  color: var(--color-heading);
  line-height: 1.6;
}
.rs-case-study-dashboard-card .csdc-result-text p {
  margin: 0;
  color: inherit;
}
.rs-case-study-dashboard-card .csdc-result-text strong,
.rs-case-study-dashboard-card .csdc-result-text b {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .rs-case-study-dashboard-card .csdc-columns {
    flex-direction: column;
  }
  .rs-case-study-dashboard-card .csdc-built-col,
  .rs-case-study-dashboard-card .csdc-dash-col {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .rs-case-study-dashboard-card {
    padding: 20px;
  }
  .rs-case-study-dashboard-card .csdc-dash-bottom {
    flex-direction: column;
  }
  .rs-case-study-dashboard-card .csdc-chart,
  .rs-case-study-dashboard-card .csdc-sources {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .rs-case-study-dashboard-card .csdc-ds-item {
    flex: 1 1 40%;
  }
  .rs-case-study-dashboard-card .csdc-result {
    padding: 16px 18px;
  }
}
