/* styles.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: #f9f9f9;
  color: #333;
}
header {
  padding: 1rem;
  background: #00539C;
  color: white;
  text-align: center;
}
main {
  padding: 1rem;
}
section {
  margin: 2rem auto;
  max-width: 960px;
  text-align: center;
}
section h2 {
  margin-bottom: 1rem;
}

/* Comparison Gallery Styles */
.comparison-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.task-row {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.task-header {
  background: #00539C;
  color: white;
  padding: 0.75rem;
  font-weight: bold;
}

.video-comparison {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.video-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.video-card .caption {
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
}

.kq-caption {
  color: #00539C;
}

.nmpc-caption {
  color: #CC3333;
}

/* Standalone Video Styles */
.standalone-video {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.standalone-video-card {
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.standalone-video-card video {
  width: 100%;
  display: block;
}

.standalone-caption {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  background: #00539C;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-comparison {
    flex-direction: column;
    align-items: center;
  }
  
  .video-card {
    max-width: 100%;
  }

  .task-header {
    background: #00539C;
    color: white;
    padding: 1rem;
    font-weight: bold;
  }
  
  .task-header div:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }
  
  .task-description {
    font-weight: normal;
    font-size: 0.9rem;
    opacity: 0.9;
  }
  
  .standalone-video-card {
    max-width: 100%;
  }
}