/* Case Study Styles for Lesson 3 Materials */

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .case-section {
    page-break-inside: avoid;
  }
  
  h2 {
    page-break-after: avoid;
  }
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
}

/* Case Study Header */
.case-study-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.case-number {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.case-study-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: white;
}

.case-study-header .lead {
  font-size: 1.3rem;
  opacity: 0.95;
  margin: 0;
  color: white;
}

/* Case Sections */
.case-section {
  margin-bottom: 3rem;
}

.case-section h2 {
  font-family: 'Montserrat', sans-serif;
  color: #2c5282;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #4299e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-section h2 i {
  color: #4299e1;
  font-size: 1.5rem;
}

.case-section h3 {
  font-family: 'Montserrat', sans-serif;
  color: #2d3748;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.case-section h4 {
  font-family: 'Montserrat', sans-serif;
  color: #4a5568;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Content Boxes */
.content-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #4299e1;
}

.content-box p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-box ul,
.content-box ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-box li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-box li strong {
  color: #2c5282;
}

/* Alert Box (for problems/discoveries) */
.alert-box {
  background: #fff5f5;
  border-left-color: #fc8181;
}

.alert-box h3 {
  color: #c53030;
}

/* Impact Box */
.impact-box {
  background: #fef5e7;
  border-left-color: #f39c12;
}

.impact-box h3 {
  color: #d68910;
}

/* Solution Box */
.solution-box {
  background: #e6fffa;
  border-left-color: #38b2ac;
}

.solution-box h3 {
  color: #2c7a7b;
}

/* Lessons Box */
.lessons-box {
  background: #ebf4ff;
  border-left-color: #4299e1;
}

.lessons-box h3 {
  color: #2c5282;
}

/* Discussion Box */
.discussion-box {
  background: #f7fafc;
  border-left-color: #805ad5;
}

.discussion-box h3 {
  color: #553c9a;
}

/* Resources Box */
.resources-box {
  background: #fffaf0;
  border-left-color: #ed8936;
}

.resources-box h3 {
  color: #c05621;
}

/* Finding Items */
.finding-item {
  background: rgba(252, 129, 129, 0.1);
  border: 2px solid #fc8181;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.finding-item h4 {
  color: #c53030;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.finding-item i {
  color: #fc8181;
  font-size: 1.3rem;
}

.finding-item ul {
  margin-bottom: 0.5rem;
}

.impact-note {
  background: #c53030;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Bias Source Sections */
.bias-source {
  background: rgba(66, 153, 225, 0.05);
  border-left: 4px solid #4299e1;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.bias-source h4 {
  color: #2c5282;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bias-source i {
  color: #4299e1;
  font-size: 1.3rem;
}

.key-point {
  background: #ffd700;
  color: #1a202c;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  border-left: 4px solid #d69e2e;
}

/* Impact Stories */
.impact-story {
  background: rgba(243, 156, 18, 0.08);
  border-left: 4px solid #f39c12;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.impact-story h4 {
  color: #d68910;
  margin-top: 0;
}

/* Solution Items */
.solution-item {
  background: rgba(56, 178, 172, 0.08);
  border-left: 4px solid #38b2ac;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.solution-item h4 {
  color: #2c7a7b;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-item i {
  color: #38b2ac;
  font-size: 1.3rem;
}

/* Lesson Items */
.lesson-item {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.lesson-item:hover {
  border-color: #4299e1;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
  transform: translateY(-2px);
}

.lesson-item h4 {
  color: #2c5282;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-item i {
  color: #48bb78;
  font-size: 1.2rem;
}

.lesson-item p {
  margin: 0;
}

/* Discussion Questions */
.discussion-question {
  background: rgba(128, 90, 213, 0.05);
  border-left: 4px solid #805ad5;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.discussion-question h4 {
  color: #553c9a;
  margin-top: 0;
}

.discussion-question p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.discussion-hint {
  background: rgba(128, 90, 213, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.75rem;
}

.class-discussion-prompts {
  list-style: none;
  padding: 0;
}

.class-discussion-prompts li {
  background: white;
  border-left: 4px solid #805ad5;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.class-discussion-prompts li::before {
  content: "▸";
  color: #805ad5;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Print Footer */
.print-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 4rem;
}

.print-footer .btn {
  background: white;
  color: #667eea;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  font-size: 1.1rem;
}

.print-footer .btn:hover {
  background: #f7fafc;
  color: #553c9a;
}

.print-footer p {
  color: white;
  margin: 0;
  opacity: 0.9;
}

/* Links */
a {
  color: #4299e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c5282;
  text-decoration: underline;
}

a:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .case-study-header {
    padding: 2rem 1.5rem;
  }
  
  .case-study-header h1 {
    font-size: 1.8rem;
  }
  
  .case-study-header .lead {
    font-size: 1.1rem;
  }
  
  .content-box {
    padding: 1.5rem;
  }
  
  .case-section h2 {
    font-size: 1.5rem;
  }
  
  .case-section h3 {
    font-size: 1.2rem;
  }
  
  .case-section h4 {
    font-size: 1.1rem;
  }
  
  .content-box ul,
  .content-box ol {
    margin-left: 1.5rem;
  }
}

/* Accessibility */
.case-section h2:focus,
.case-section h3:focus,
.case-section h4:focus {
  outline: 3px solid #4299e1;
  outline-offset: 3px;
}

button:focus {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}

/* Print Optimization */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .case-study-header {
    background: #667eea !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .content-box,
  .finding-item,
  .bias-source,
  .impact-story,
  .solution-item,
  .lesson-item,
  .discussion-question {
    border: 1px solid #ddd;
    background: white !important;
  }
  
  a {
    color: #2c5282;
  }
}