.data-viz-container {
  max-width: 1000px;
  margin: 0 auto 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px;
}
.contain {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.data-intro {
  margin-bottom: 2rem;
  text-align: center;
}

.data-intro h2 {
  color: black;
  margin-bottom: 1rem;
}

.data-intro p {
  color: black;
  max-width: 800px;
  margin: 0 auto;
}

.data-tabs {
  display: flex;
  border-bottom: 2px solid #00790a;
  margin-bottom: 2rem;
}

.data-tab {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: black;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.data-tab:hover {
  color: #00790a;
}

.data-tab.active {
  color: #00790a;
  border-bottom-color: #00790a;
}

.chart-wrapper {
  margin-bottom: 3rem;
}

.chart-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: black;
}

.chart-container {
  position: relative;
  height: 400px;
  border: 1px solid #00790a;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1rem;
}

.chart-canvas {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.legend-color.temperature {
  background-color: #970000;
}

.legend-color.co2 {
  background-color: #000ba1;
}

.legend-color.sea-level {
  background-color: #1e9700;
}

.legend-color.arctic-ice {
  background-color: #8000b3;
}

.data-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e9700;
}

.data-sources h3 {
  margin-bottom: 1rem;
  color: black;
}

.sources-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.sources-list li {
  margin-bottom: 0.5rem;
}

.sources-list a {
  color: #00790a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.sources-list a:hover {
  color: #1e9700;
}

.data-methodology {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.data-methodology h3 {
  color: black;
  margin-bottom: 1rem;
}

.data-methodology p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


.data-insights {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.data-insights h3 {
  color: #1e9700;
  margin-bottom: 1rem;
}

.insights-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.insights-list li {
  margin-bottom: 0.5rem;
}

.interactive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.control-select {
  padding: 0.5rem;
  border: 1px solid #1e9700;
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.control-select:focus {
  outline: none;
  border-color: #1e9700;
}

.download-options {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #00790a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #1e9700;
  transform: translateY(-2px);
}

.data-education {
  padding: 3rem 5%;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 0 5% 3rem;
}

.data-education h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.data-education > .container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: black;
}

.education-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.education-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.61);
  text-align: center;
  transition: transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
}

.education-card h3 {
  color: #1e9700;
  margin-bottom: 1rem;
}

.education-card p {
  margin-bottom: 1.5rem;
  color: black;
}

.next-steps {
  text-align: center;
  padding: 3rem 5%;
  margin-bottom: 3rem;
}

.next-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  .data-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }

  .data-tab {
    padding: 0.75rem 1rem;
  }

  .chart-container {
    height: 300px;
    padding: 1rem;
  }

  .interactive-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .education-resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .data-viz-container {
    padding: 1rem;
  }

  .chart-container {
    height: 250px;
    padding: 0.75rem;
  }

  .chart-title {
    font-size: 1.1rem;
  }

  .legend-item {
    font-size: 0.8rem;
  }

  .download-options {
    justify-content: center;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}
