/* Wall-E Article Specific Styles */
.wall-e-hero {
  background: linear-gradient(135deg, #004c6d 0%, #0078b0 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.wall-e-hero .hero-text h1 {
  color: white;
}

.wall-e-hero .article-category {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.wall-e-hero .article-tags .tag {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.wall-e-hero .image-caption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.scrolldown-indicator {
  text-align: center;
  margin-top: 30px;
  animation: bounce 2s infinite;
  color: white;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* AI Impact Meter */
.ai-impact-meter {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.meter-header {
  text-align: center;
  margin-bottom: 20px;
}

.meter-header h3 {
  color: #004c6d;
  margin-bottom: 5px;
}

.meter-header p {
  color: #666;
  font-size: 0.95rem;
}

.meter-scale {
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
}

.meter-progress {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 10px;
  position: relative;
}

.meter-progress::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #004c6d;
  border-radius: 50%;
  border: 3px solid white;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.comparison-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.comparison-header {
  padding: 15px;
  color: white;
}

.comparison-header.wall-e {
  background-color: #ff6b6b;
}

.comparison-header.our-world {
  background-color: #4ecdc4;
}

.comparison-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.comparison-body {
  padding: 20px;
  background-color: white;
}

.comparison-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-body li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.comparison-body li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: #0078b0;
}

/* Statistics Box */
.statistics-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #004c6d;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Expert Quote */
.expert-quote {
  background-color: #f8f9fa;
  border-left: 4px solid #0078b0;
  padding: 25px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}

.quote-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
}

.quote-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.quote-author strong {
  display: block;
  color: #004c6d;
}

.quote-author span {
  font-size: 0.9rem;
  color: #666;
}

/* Timeline */
.timeline-container {
  margin: 40px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #0078b0;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-date {
  padding: 8px 15px;
  background-color: #0078b0;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
  margin-top: 0;
  color: #004c6d;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid #0078b0;
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

/* Interactive Chart */
.interactive-chart {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin: 40px 0;
}

.interactive-chart h3 {
  text-align: center;
  color: #004c6d;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 8px;
}

.legend-color.plastic {
  background-color: #ff6b6b;
}

.legend-color.electronic {
  background-color: #4ecdc4;
}

.legend-color.other {
  background-color: #feca57;
}

/* Callout Boxes */
.callout-box {
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.callout-box.warning {
  background-color: #fff3bf;
  border-left: 4px solid #f59f00;
}

.callout-box.success {
  background-color: #d3f9d8;
  border-left: 4px solid #40c057;
}

.callout-box h3 {
  margin-top: 0;
  color: #343a40;
}

.callout-box h3 i {
  margin-right: 10px;
}

/* Health Impact Grid */
.health-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.impact-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-icon {
  width: 50px;
  height: 50px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: #0078b0;
  font-size: 1.2rem;
}

.impact-card h3 {
  color: #004c6d;
  margin-top: 0;
}

.impact-card p {
  font-size: 0.95rem;
  color: #495057;
}

/* Before-After Slider */
.before-after-slider {
  margin: 50px 0;
}

.slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.before, .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.after {
  width: 50%;
  overflow: hidden;
}

.slider-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.label {
  position: absolute;
  bottom: 20px;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
}

.before .label {
  left: 20px;
}

.after .label {
  right: 20px;
}

.slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  z-index: 2;
  cursor: ew-resize;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 400px;
  background: white;
  cursor: ew-resize;
}

/* Solutions Steps */
.solutions-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.step-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: #0078b0;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-card h3 {
  color: #004c6d;
  margin-top: 10px;
}

.step-card ul {
  padding-left: 20px;
}

.step-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Action Items */
.action-items {
  margin: 50px 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.action-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-5px);
}

.action-card i {
  font-size: 2rem;
  color: #0078b0;
  margin-bottom: 15px;
}

.action-card h4 {
  color: #004c6d;
  margin-top: 0;
}

.action-card p {
  font-size: 0.9rem;
  color: #495057;
}

/* Key Points */
.key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.point-card {
  text-align: center;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.point-card i {
  font-size: 2rem;
  color: #0078b0;
  margin-bottom: 15px;
}

.point-card h3 {
  color: #004c6d;
  margin-top: 0;
}

.point-card p {
  font-size: 0.95rem;
  color: #495057;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 21px !important;
  }
}

@media (max-width: 768px) {
  .wall-e-hero {
    padding: 40px 0;
  }
  
  .health-impact-grid,
  .solutions-steps,
  .action-grid,
  .key-points {
    grid-template-columns: 1fr;
  }
  
  .before-after-slider .slider-container img {
    height: 300px;
  }
  
  .slider::-webkit-slider-thumb {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .statistics-box {
    grid-template-columns: 1fr;
  }
  
  .before-after-slider .slider-container img {
    height: 250px;
  }
  
  .slider::-webkit-slider-thumb {
    height: 250px;
  }
}

/* Add this to your wall-e.css */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px; /* Fixed height */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.before {
  width: 100%;
}

.after {
  width: 50%;
  overflow: hidden;
}

.label {
  position: absolute;
  bottom: 20px;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
}

.before .label {
  left: 20px;
}

.after .label {
  right: 20px;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
}