/* Nirmala Foundation - Impact Dashboard
   Theme aligned with website: navy blue, white, orange, magenta and green. */
.impact-dashboard {
  --impact-navy: #0b1f70;
  --impact-blue: #2479d3;
  --impact-green: #21804e;
  --impact-orange: #ed761d;
  --impact-magenta: #cf168d;
  --impact-purple: #6325a8;
  --impact-text: #17244a;
  --impact-muted: #647087;
  color: var(--impact-text);
  background: linear-gradient(135deg, #f7f9ff 0%, #f0f3fa 100%);
 padding: 22px 0;
  font-family: inherit;
  overflow: hidden;
}
.impact-dashboard * {
  box-sizing: border-box;
}
.impact-heading {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.impact-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.impact-brand-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #e8f0ff;
  color: var(--impact-navy);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}
.impact-brand h2 {
  margin: 0;
  color: var(--impact-navy);
  font-size: clamp(18px, 2vw, 29px);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.impact-brand p {
  margin: 2px 0 0;
  color: #65718a;
  font-size: 14px;
}
.impact-heading-title {
  min-height: 82px;
  padding: 12px 24px;
  border-radius: 22px;
  background: linear-gradient(100deg, #0b1f70 0%, #172e83 65%, #263b91 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.impact-heading-title h1 {
  color: #fff;
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}
.impact-heading-title span {
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.impact-year {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e5f0;
  border-radius: 15px;
  padding: 12px 15px;
  box-shadow: 0 4px 16px rgba(11, 31, 112, 0.06);
}
.impact-year > i:first-child {
  font-size: 23px;
  color: var(--impact-navy);
}
.impact-year small,
.chart-total small {
  display: block;
  font-size: 11px;
  color: #68738a;
  font-weight: 600;
}
.impact-year strong {
  display: block;
  color: var(--impact-navy);
  font-size: 16px;
}
.impact-year > i:last-child {
  color: var(--impact-navy);
  font-size: 12px;
  margin-left: 8px;
}
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  min-height: 124px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-blue {
  background: #edf5ff;
  border-color: #d9e8fb;
  color: #1762b3;
}
.stat-green {
  background: #edf8f1;
  border-color: #d9eee0;
  color: #17683e;
}
.stat-orange {
  background: #fff4ec;
  border-color: #f7e3d4;
  color: #c65a10;
}
.stat-purple {
  background: #f5efff;
  border-color: #e8dcfa;
  color: #5817a1;
}
.stat-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  font-size: 35px;
  flex-shrink: 0;
}
.stat-card p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
  color: inherit;
}
.stat-card p small {
  font-size: 12px;
  white-space: nowrap;
}
.stat-card h2 {
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color: inherit;
}
.impact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}
.impact-panel {
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 17px;
  padding: 17px;
  box-shadow: 0 5px 20px rgba(11, 31, 112, 0.045);
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--impact-blue);
  font-size: 21px;
  flex-shrink: 0;
}
.panel-title h3 {
  margin: 0;
  color: var(--impact-navy);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
}
.panel-title p {
  margin: 3px 0 0;
  color: #657087;
  font-size: 13px;
}
.panel-title h3 small {
  font-size: 14px;
  font-weight: 500;
}
.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #536078;
  font-size: 12px;
}
.chart-legend span {
  white-space: nowrap;
}
.legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 6px;
}
.direct-dot {
  background: #3b91e8;
}
.community-dot {
  background: #39a56d;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-row {
  display: grid;
  grid-template-columns: 70px minmax(115px, 1fr) minmax(120px, 0.9fr) minmax(
      145px,
      1.15fr
    ) minmax(100px, 0.8fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e5e9f0;
  border-radius: 13px;
  background: #fff;
  min-height: 96px;
}
.project-symbol {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 27px;
}
.project-health {
  background: linear-gradient(145deg, #48a1ed, #1769c2);
}
.project-education {
  background: linear-gradient(145deg, #ff9a43, #e66b13);
}
.project-livelihood {
  background: linear-gradient(145deg, #57b77b, #238b51);
}
.project-women {
  background: linear-gradient(145deg, #f45a93, #d52a69);
}
.project-name h4 {
  font-size: 17px;
  font-weight: 800;
  color: #152344;
  margin: 0 0 3px;
}
.project-name p {
  font-size: 12px;
  line-height: 1.45;
  color: #667187;
  margin: 0;
}
.project-number {
  border-left: 1px solid #e6eaf0;
  padding-left: 13px;
  min-width: 0;
}
.project-number strong {
  display: block;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.1;
}
.direct-number strong {
  color: #1764b6;
}
.community-number strong {
  color: #237648;
}
.project-number small {
  display: block;
  color: #68738a;
  font-size: 11px;
  margin-top: 5px;
  white-space: nowrap;
}
.project-progress {
  border-left: 1px solid #e6eaf0;
  padding-left: 12px;
  text-align: center;
}
.progress-track {
  height: 14px;
  background: #e8edf3;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #49a1ed, #2478d0);
}
.project-progress small {
  font-size: 12px;
  color: #667187;
}
.orange-progress .progress-track span {
  background: linear-gradient(90deg, #ffab50, #ed761d);
}
.green-progress .progress-track span {
  background: linear-gradient(90deg, #69c88c, #269557);
}
.pink-progress .progress-track span {
  background: linear-gradient(90deg, #f477a7, #d92e70);
}
.impact-side-panels {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}
.chart-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.purple-heading {
  background: #f1e8ff;
  color: var(--impact-purple);
}
.chart-area {
  position: relative;
  height: 205px;
  min-height: 170px;
  width: 100%;
}
.monthly-panel .panel-heading {
  align-items: center;
}
.chart-total {
  background: #f0f4ff;
  border: 1px solid #e0e8fb;
  border-radius: 12px;
  padding: 8px 13px;
  text-align: center;
  white-space: nowrap;
}
.chart-total strong {
  color: var(--impact-navy);
  font-size: 17px;
}
.monthly-chart-area {
  height: 170px;
}
.highlights-panel {
  margin-bottom: 2px;
}
.highlight-heading {
  background: #fff3dc;
  color: #e69a12;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.highlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
  min-width: 0;
}
.highlight-blue {
  background: #edf5ff;
  color: #176cc0;
}
.highlight-green {
  background: #eef8f1;
  color: #1c7545;
}
.highlight-orange {
  background: #fff4e9;
  color: #d66b15;
}
.highlight-pink {
  background: #fff0f6;
  color: #c91c68;
}
.highlight-purple {
  background: #f5efff;
  color: #5d22a5;
}
.highlight-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  font-size: 25px;
  flex-shrink: 0;
}
.highlight-card strong {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
  display: block;
}
.highlight-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 3px 0;
}
.highlight-card p {
  font-size: 10px;
  color: #59657c;
  margin: 0;
  line-height: 1.35;
}
@media (max-width: 1200px) {
  .impact-heading {
    grid-template-columns: 1fr 1.7fr;
  }
  .impact-year {
    grid-column: 2;
    justify-self: end;
    margin-top: -8px;
  }
  .impact-heading-title {
    grid-column: 2;
    grid-row: 1;
  }
  .impact-brand {
    grid-row: 1;
  }
  .impact-main-grid {
    grid-template-columns: 1fr;
  }
  .impact-side-panels {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .impact-dashboard {
    padding: 14px 10px;
  }
  .impact-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .impact-brand {
    justify-content: center;
  }
  .impact-heading-title {
    flex-direction: column;
    text-align: center;
    gap: 7px;
    padding: 17px 12px;
  }
  .impact-heading-title h1 {
    white-space: normal;
    font-size: 26px;
  }
  .impact-heading-title span {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 7px 0 0;
  }
  .impact-year {
    align-self: flex-end;
    margin: 0;
  }
  .impact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .stat-card {
    padding: 11px;
    gap: 9px;
    min-height: 100px;
  }
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .stat-card p {
    font-size: 12px;
  }
  .stat-card h2 {
    font-size: 22px;
  }
  .impact-panel {
    padding: 13px;
  }
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-legend {
    padding-left: 4px;
  }
  .project-row {
    grid-template-columns: 52px 1fr 1fr;
    gap: 8px;
    padding: 9px;
  }
  .project-symbol {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .project-name h4 {
    font-size: 14px;
  }
  .project-name p {
    font-size: 10px;
  }
  .project-number {
    padding-left: 8px;
  }
  .project-number strong {
    font-size: 20px;
  }
  .project-number small {
    font-size: 9px;
    white-space: normal;
  }
  .project-progress {
    grid-column: 2 / 4;
    border-left: 0;
    padding: 2px 0 0;
  }
  .project-progress .progress-track {
    height: 9px;
    margin-bottom: 4px;
  }
  .impact-side-panels {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .chart-area {
    height: 220px;
  }
  .monthly-chart-area {
    height: 190px;
  }
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .highlight-card {
    padding: 9px;
    gap: 8px;
  }
  .highlight-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .highlight-card strong {
    font-size: 20px;
  }
  .highlight-card h4 {
    font-size: 12px;
  }
  .highlight-card p {
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .impact-stats {
    grid-template-columns: 1fr;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}
