.benchmark-chart-section {
  padding: 48px 16px;
  background: #fbf4df;
}

.benchmark-chart-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 28px;
  background:
    radial-gradient(circle at top left, rgba(201, 168, 58, 0.10), transparent 28%),
    linear-gradient(180deg, #fff9e9 0%, #fbf4df 100%);
  border: 1px solid rgba(146, 31, 33, 0.08);
  box-shadow: 0 18px 48px rgba(72, 42, 14, 0.08);
  color: #132d46;
}

.benchmark-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.benchmark-chart-header h2 {
  margin: 0;
  max-width: 720px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #921f21;
}

.benchmark-rule {
  width: min(640px, 100%);
  height: 1.5px;
  margin: 26px 0 18px;
  background: #c9a83a;
}

.benchmark-chart-header p {
  margin: 0;
  max-width: 660px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.28;
  color: #24384c;
}

.benchmark-cohort {
  flex: 0 0 auto;
  min-width: 142px;
  padding: 18px 18px 16px;
  border: 1.5px solid #c9a83a;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.benchmark-cohort strong {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 0.9;
  color: #921f21;
}

.benchmark-cohort span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #24384c;
}

.benchmark-panels {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: stretch;
}

.benchmark-panel {
  position: relative;
  min-height: 500px;
  padding: 0 32px 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.panel-divider {
  width: 1px;
  margin: 6px 6px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 168, 58, 0.45) 8%,
    rgba(201, 168, 58, 0.55) 92%,
    transparent 100%
  );
}

.panel-label {
  width: max-content;
  min-width: 260px;
  margin: -20px auto 22px;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a92325 0%, #85191b 100%);
  color: #fff8ec;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.13em;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(146, 31, 33, 0.18);
}

.chart-callout {
  text-align: center;
  margin: 12px 0 28px;
}

.chart-callout strong {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 0.9;
  color: #c9a83a;
  letter-spacing: -0.03em;
}

.chart-callout span {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1;
  color: #24384c;
  font-weight: 700;
}

.chart-callout i {
  display: block;
  width: 0;
  height: 0;
  margin: 10px auto 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #c9a83a;
}

.bar-chart {
  position: relative;
  height: 340px;
  padding-left: 72px;
}

.bar-chart.no-y-label {
  padding-left: 24px;
}

.y-axis-label {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #24384c;
}

.grid-lines {
  position: absolute;
  inset: 0 0 54px 72px;
  pointer-events: none;
}

.no-y-label .grid-lines {
  left: 24px;
}

.grid-lines span {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(36, 56, 76, 0.15);
}

.y-ticks {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 54px;
  width: 56px;
}

.y-ticks span {
  position: absolute;
  right: 8px;
  transform: translateY(50%);
  font-size: 16px;
  color: #24384c;
}

.bars {
  position: absolute;
  left: 72px;
  right: 0;
  bottom: 0;
  height: calc(100% - 54px);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 36px;
  border-bottom: 2px solid #24384c;
}

.no-y-label .bars {
  left: 24px;
}

.bar-wrap {
  position: relative;
  width: min(31%, 155px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.bar {
  width: 100%;
  min-height: 14px;
  border-radius: 7px 7px 0 0;
}

.cbse-bar {
  background: linear-gradient(180deg, #a8b3bb 0%, #7c8c99 100%);
}

.ssdc-bar {
  background: linear-gradient(180deg, #a92325 0%, #85191b 100%);
}

.bar-value {
  position: absolute;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 800;
  line-height: 1;
}

.bar-value.cbse {
  color: #405469;
  font-size: clamp(26px, 3vw, 40px);
}

.bar-value.ssdc {
  color: #921f21;
  font-size: clamp(34px, 3.5vw, 50px);
}

.bar-wrap:nth-child(1) .bar-value.cbse {
  bottom: calc(14.05% + 12px);
}

.no-y-label .bar-wrap:nth-child(1) .bar-value.cbse {
  bottom: calc(3.2% + 12px);
}

.bar-wrap:nth-child(2) .bar-value.ssdc {
  bottom: calc(83.96% + 12px);
}

.no-y-label .bar-wrap:nth-child(2) .bar-value.ssdc {
  bottom: calc(38.85% + 12px);
}

.bar-label {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #24384c;
  font-size: 22px;
  font-weight: 700;
}

.ssdc-label {
  color: #921f21;
}

.benchmark-source {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1.5px solid #c9a83a;
  text-align: center;
  color: rgba(36, 56, 76, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.benchmark-source span {
  margin-left: 22px;
}

/* ── Hero column context ──────────────────────────────────────────────────── */
/* When the card lives inside .hero-visual, scale it down to fit the column   */

.hero-visual .benchmark-chart-card {
  padding: 24px 20px 18px;
  box-shadow: 0 8px 24px rgba(72, 42, 14, 0.10);
}

.hero-visual .benchmark-chart-header {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-visual .benchmark-chart-header h2 {
  font-size: clamp(20px, 2.2vw, 30px);
}

.hero-visual .benchmark-rule {
  margin: 12px 0 8px;
}

.hero-visual .benchmark-chart-header p {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.35;
}

.hero-visual .benchmark-cohort {
  align-self: flex-start;
  min-width: 100px;
  padding: 10px 14px 10px;
}

.hero-visual .benchmark-cohort strong {
  font-size: clamp(32px, 3.5vw, 48px);
}

.hero-visual .benchmark-cohort span {
  font-size: 11px;
  margin-top: 6px;
}

.hero-visual .benchmark-panels {
  grid-template-columns: 1fr 1px 1fr;
}

.hero-visual .benchmark-panel {
  min-height: 300px;
  padding: 0 10px 16px;
}

.hero-visual .panel-label {
  font-size: 13px;
  min-width: 100px;
  padding: 7px 14px;
  margin: -14px auto 14px;
}

.hero-visual .chart-callout {
  margin: 6px 0 14px;
}

.hero-visual .chart-callout strong {
  font-size: clamp(36px, 3.8vw, 52px);
}

.hero-visual .chart-callout span {
  font-size: 13px;
  margin-top: 4px;
}

.hero-visual .bar-chart {
  height: 200px;
  padding-left: 48px;
}

.hero-visual .bar-chart.no-y-label {
  padding-left: 14px;
}

.hero-visual .grid-lines {
  inset: 0 0 40px 48px;
}

.hero-visual .no-y-label .grid-lines {
  left: 14px;
}

.hero-visual .y-ticks {
  bottom: 40px;
  width: 42px;
}

.hero-visual .y-ticks span {
  font-size: 10px;
  right: 4px;
}

.hero-visual .y-axis-label {
  font-size: 10px;
  left: -12px;
}

.hero-visual .bars {
  left: 48px;
  height: calc(100% - 40px);
  gap: 16px;
}

.hero-visual .no-y-label .bars {
  left: 14px;
}

.hero-visual .bar-label {
  font-size: 13px;
  top: calc(100% + 10px);
}

.hero-visual .bar-value.cbse {
  font-size: clamp(16px, 1.8vw, 22px);
}

.hero-visual .bar-value.ssdc {
  font-size: clamp(20px, 2.2vw, 28px);
}

.hero-visual .bar-wrap:nth-child(1) .bar-value.cbse {
  bottom: calc(14.05% + 6px);
}

.hero-visual .no-y-label .bar-wrap:nth-child(1) .bar-value.cbse {
  bottom: calc(3.2% + 6px);
}

.hero-visual .bar-wrap:nth-child(2) .bar-value.ssdc {
  bottom: calc(83.96% + 6px);
}

.hero-visual .no-y-label .bar-wrap:nth-child(2) .bar-value.ssdc {
  bottom: calc(38.85% + 6px);
}

.hero-visual .benchmark-source {
  margin-top: 18px;
  padding-top: 10px;
  font-size: 10px;
  line-height: 1.4;
}

.hero-visual .benchmark-source span {
  display: block;
  margin-left: 0;
  margin-top: 2px;
}

/* ── Standalone section (when used outside hero) ──────────────────────────── */
@media (max-width: 900px) {
  .benchmark-chart-card {
    padding: 32px 20px 24px;
  }

  .benchmark-chart-header {
    flex-direction: column;
  }

  .benchmark-cohort {
    align-self: flex-start;
  }

  .benchmark-panels {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .panel-divider {
    display: none;
  }

  .benchmark-panel {
    min-height: 460px;
    padding: 0 18px 30px;
  }

  .panel-label {
    min-width: 220px;
    font-size: 18px;
  }

  .bar-chart {
    height: 300px;
    padding-left: 60px;
  }

  .bar-chart.no-y-label {
    padding-left: 60px;
  }

  .no-y-label .grid-lines,
  .grid-lines {
    left: 60px;
  }

  .no-y-label .bars,
  .bars {
    left: 60px;
  }

  .no-y-label::before {
    content: "% OF STUDENTS";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #24384c;
  }

  .benchmark-source span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ── Hero chart — vertical stacked design ────────────────────────────────── */
.hero-chart {
  display: block;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 18px 44px rgba(72, 42, 14, 0.10);
  padding: 0;
  color: var(--navy, #132d46);
}

.hero-chart-img {
  display: block;
  width: calc(100% + 16px);
  height: auto;
  margin-left: -8px;
  max-height: 760px;
  max-width: none;
  object-fit: contain;
}

.hc-head {
  margin-bottom: 27px;
}

.hc-head h2 {
  font-family: 'Newsreader', Georgia, serif;
  width: 100%;
  max-width: none;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--maroon, #921f21);
  margin: 0;
  letter-spacing: -0.025em;
}

.hc-head::after {
  content: '';
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 16px 0 13px;
  background: rgba(201, 168, 58, 0.78);
}

.hc-head p {
  width: 100%;
  max-width: none;
  font-size: 13px;
  line-height: 1.38;
  color: rgba(19, 45, 70, 0.72);
  margin: 0;
}

.hc-panel {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  padding: 27px 16px 18px;
  border: 1px solid rgba(201, 168, 58, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 60% 52%, rgba(255, 255, 255, 0.96), transparent 54%),
    linear-gradient(180deg, rgba(255, 252, 242, 0.82), rgba(255, 249, 233, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 22px rgba(72, 42, 14, 0.035);
}

.hc-pill {
  display: block;
  width: max-content;
  min-width: 150px;
  background: linear-gradient(180deg, #a92325 0%, #85191b 100%);
  color: #fff8ec;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
  border-radius: 999px;
  margin: -43px auto 15px;
  box-shadow: 0 7px 16px rgba(146, 31, 33, 0.16);
}

.hc-row {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.hc-chart {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  --hc-plot-height: 186px;
}

.hc-yticks {
  width: 26px;
  height: var(--hc-plot-height);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0;
}

.hc-yticks span {
  font-family: 'Space Mono', monospace;
  font-size: 7.5px;
  color: rgba(19, 45, 70, 0.50);
  line-height: 1;
}

.hc-bars-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hc-bars {
  position: relative;
  height: var(--hc-plot-height);
  flex: 0 0 var(--hc-plot-height);
  display: flex;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1.5px solid rgba(19, 45, 70, 0.22);
  padding: 0 12px;
}

.hc-gl {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(19, 45, 70, 0.09);
  pointer-events: none;
}

.hc-bw {
  position: relative;
  flex: 1;
  align-self: stretch;
}

.hc-bar {
  position: absolute;
  bottom: 1px;
  left: 5px;
  right: 5px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
}

.hc-bar.s {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #b82225 0%, #8f1b1d 58%, #85191b 100%);
  box-shadow: 0 0 18px rgba(146, 31, 33, 0.10);
}

.hc-bar.c {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #9aa3ad 0%, #7a8692 100%);
}

.hc-bval {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.hc-bval.s {
  color: var(--maroon, #921f21);
}

.hc-bval.c {
  color: rgba(19, 45, 70, 0.88);
}

.hc-xlbls {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  padding: 0 12px;
}

.hc-xl {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
}

.hc-xl.s {
  color: var(--maroon, #921f21);
  font-weight: 700;
}

.hc-xl.c {
  color: rgba(19, 45, 70, 0.76);
}

.hc-mult {
  position: relative;
  width: 108px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px 0 20px;
  border-left: 1px solid rgba(201, 168, 58, 0.74);
}

.hc-mult::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold, #c9a83a);
  transform: translateY(-50%) rotate(45deg);
}

.hc-mx {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 50px;
  font-weight: 700;
  color: var(--gold, #c9a83a);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hc-times {
  display: inline-block;
  font-size: 0.62em;
  line-height: 1;
  margin-left: 0.02em;
  vertical-align: 0.08em;
}

.hc-ml {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 45, 70, 0.82);
  margin-top: 4px;
  text-align: center;
  line-height: 1.35;
}

.hc-sep {
  height: 1px;
  background: rgba(201, 168, 58, 0.30);
  margin: 27px 0 30px;
}

.hc-source {
  font-size: 9.5px;
  color: rgba(19, 45, 70, 0.66);
  font-style: italic;
  margin-top: 16px;
  line-height: 1.45;
  border-top: 1.5px solid rgba(201, 168, 58, 0.60);
  padding-top: 10px;
  text-align: center;
}

@media (max-width: 520px) {
  .benchmark-chart-section {
    padding: 28px 10px;
  }

  .benchmark-chart-header h2 {
    font-size: 38px;
  }

  .benchmark-chart-header p {
    font-size: 17px;
  }

  .benchmark-panel {
    min-height: 420px;
  }

  .chart-callout strong {
    font-size: 50px;
  }

  .chart-callout span {
    font-size: 16px;
  }

  .bar-chart,
  .bar-chart.no-y-label {
    height: 270px;
    padding-left: 50px;
  }

  .grid-lines,
  .no-y-label .grid-lines {
    left: 50px;
  }

  .bars,
  .no-y-label .bars {
    left: 50px;
    gap: 22px;
  }

  .y-ticks span {
    font-size: 13px;
  }

  .y-axis-label,
  .no-y-label::before {
    font-size: 11px;
  }

  .bar-label {
    font-size: 15px;
  }

  .bar-value.cbse {
    font-size: 25px;
  }

  .bar-value.ssdc {
    font-size: 32px;
  }
}
