.value-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  flex-wrap: wrap;
}
.text-section, .image-section {
  flex: 1;
  min-width: 280px;
}
.text-section {
  font-size: 18px;
  line-height: 1.6;
  color: #003366;
}
.text-section .value-number {
  font-weight: bold;
  color: #003366;
}
.image-section {
  text-align: center;
}
.image-section img {
  width: 80%;
  height: auto;
  display: block;
  margin-bottom: 0px;
  object-fit: contain;
}

.value-stats-wrapper {
  background: #003366;
  color: white;
  padding: 60px 20px;
}

.value-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 0 100px;
}
.value-stats-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.value-stat {
  font-size: 60px;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
}
.value-stat:hover {
  transform: scale(1.1);
}
.value-label {
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

.value-container .image-section {
    margin-bottom: -85px;
}

.wp-block-columns.value-cont-cloumns {
    margin: 0 auto;
}

.tabs-container {
  width: 100%;
  background: white;
}
.tabs-container .tabs {
  display: flex;
  width: 100%;
  margin: 0;
     margin-bottom: 3em;
}
.tabs-container .tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  background-color: #d3d3d3;
  color: #002F5F;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.tabs-container .tab.active {
  background-color: #007BBD;
  color: white;
  
}
.tabs-container .tab:focus {
  outline: none;
}
.tab-content {
  display: none;
  padding: 10px 0px;
  
}
.tab-content.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
  margin-top: 0;
}

.value-chart-container, .value-charts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 5em 0;
}
.value-canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: visible;
  flex: 0 1 400px;
  display: block;
  margin: 0;
  padding: 0;
}

#undergradChart, #gradChart {
  width: 100%;
  min-height: 300px;
  max-width: 300px;
}
.chart-container {
  min-height: 400px;
}

.value-charts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #f7f7f7;
  padding: 3em 0;
}
.value-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-chart-total {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.bar-container {
  height: 250px;
  width: 60px;
  background-color: #007BBD;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #003366;
  height: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  text-align: center;
  padding: 5px;
  transition: height 2s ease-out;
}
.value-bar-text {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

.legend {
  margin-top: -30px;
  margin-bottom: 3rem;
  text-align: center;
}
.legend span {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  background-color: #003366;
  vertical-align: middle;
}

.value-stats-wrapper .value-label,
.value-stats-wrapper .value-chart-total,
.value-stats-wrapper .legend {
  color: white;
}
.value-charts-section .value-label,
.value-charts-section .value-chart-total,
.value-charts-section .legend {
  color: #003366;
}

@media (max-width: 768px) {
  .value-container {
    flex-direction: column;
    text-align: left;
  }
  .text-section {
    font-size: 16px;
  }
  .value-stat {
    font-size: 36px;
  }
  .value-stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .image-section img {
    width: 80%;
  }
  .tabs {
    flex-direction: column;
  }
  .value-chart-container, .value-charts {
    flex-direction: column;
    align-items: center;
    display:block;
  }
  canvas#undergradChart, canvas#gradChart{
	max-height:400px;
  }
  #legendGrad, #legendUndergrad {
    width: 100%;
    max-width: 300px;
  }
  #legendUndergrad .legend-item,
  #legendGrad .legend-item {
    width: 90% !important;
    margin: 0 auto;
    max-width:275;
  }

}

