/* ============================================ */
/* VIDEO 13 - PROBABILITY & STATISTICS PART 2  */
/* ============================================ */

/* Counting Techniques - Permutations & Combinations */
.counting-advanced-hero {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.counting-advanced-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.counting-advanced-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #cffafe;
  font-weight: 500;
}

.counting-advanced-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2rem;
}

.advanced-rule-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid #e2e8f0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.advanced-rule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
}

.rule-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.rule-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  color: #0c4a6e;
}

.rule-description {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.rule-formula-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #dbeafe 100%);
  border-left: 4px solid #06b6d4;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.rule-formula-box .formula-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0c4a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem 0;
}

.rule-formula-box .formula-math {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1.1rem;
  color: #0891b2;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.rule-example-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #fcd34d;
}

.example-label {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.75rem 0;
  display: block;
}

.example-text {
  font-size: 0.95rem;
  color: #78350f;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.example-step {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.example-step p {
  font-size: 0.95rem;
  color: #78350f;
  margin: 0.5rem 0;
  font-weight: 500;
}

.example-outcomes,
.example-result {
  font-size: 0.95rem;
  color: #78350f;
  margin: 0.75rem 0 0 0;
  font-weight: 500;
}

/* Central Tendency */
.central-tendency-hero {
  background: linear-gradient(135deg, #a78bfa 0%, #9333ea 100%);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
}

.central-tendency-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.central-tendency-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #e9d5ff;
  font-weight: 500;
}

.tendency-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.tendency-card {
  background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid #e7e5e4;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tendency-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.12);
  border-color: #9333ea;
}

.tendency-number {
  position: absolute;
  top: -18px;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #a78bfa 0%, #9333ea 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.tendency-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem 0;
  color: #3f3935;
}

.tendency-property {
  font-size: 0.95rem;
  color: #78716c;
  margin: 0;
  line-height: 1.6;
}

.tendency-formula-box {
  background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid #c4b5fd;
}

.tendency-formula-box .formula-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5b21b6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem 0;
  display: block;
}

.formula-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formula-item {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  color: #6b21a8;
  margin: 0;
  font-weight: 600;
}

.tendency-example-box {
  background: linear-gradient(135deg, #fef08a 0%, #fef3c7 100%);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid #fde047;
}

.tendency-example-box .example-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #854d0e;
  margin: 0.5rem 0;
  display: block;
}

/* Dispersion */
.dispersion-hero {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
}

.dispersion-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.dispersion-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #fbcfe8;
  font-weight: 500;
}

.dispersion-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.dispersion-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fef5f5 100%);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid #fee2e2;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dispersion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
  border-color: #ec4899;
}

.disp-number {
  position: absolute;
  top: -18px;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}

.disp-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem 0;
  color: #831843;
}

.disp-property {
  font-size: 0.95rem;
  color: #9f1239;
  margin: 0;
  line-height: 1.6;
}

.disp-formula-box {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid #f472b6;
}

.disp-formula-box .formula-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #880e4f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem 0;
  display: block;
}

.disp-formula-box .formula-math {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1rem;
  color: #be185d;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.disp-example-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid #fcd34d;
}

.disp-example-box .example-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
  margin: 0;
  display: block;
}

/* Measures of Shape */
.shape-hero {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.shape-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.shape-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #e0e7ff;
  font-weight: 500;
}

.shape-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.shape-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
}

.shape-number {
  position: absolute;
  top: -18px;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.shape-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem 0;
  color: #1e293b;
}

.shape-desc-item {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.shape-subtypes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subtype-item {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.subtype-item:hover {
  background: linear-gradient(135deg, #ddd6fe 0%, #cffafe 100%);
  transform: translateX(5px);
}

.subtype-label {
  font-size: 1rem;
  font-weight: 700;
  color: #3730a3;
  margin: 0 0 0.5rem 0;
  display: block;
}

.subtype-detail {
  font-size: 0.95rem;
  color: #4c1d95;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

.subtype-example {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

/* Quiz Questions */
.quiz-hero {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.quiz-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.quiz-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #fef3c7;
  font-weight: 500;
}

.quiz-questions-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.quiz-question-card {
  background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid #fcd34d;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.quiz-question-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.quiz-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.quiz-question-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  color: #78350f;
}

.quiz-problem-box {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #f59e0b;
}

.problem-statement {
  font-size: 0.95rem;
  color: #92400e;
  margin: 0.5rem 0;
  font-weight: 500;
  line-height: 1.6;
}

.problem-ask {
  font-size: 1rem;
  color: #78350f;
  margin: 1rem 0 0 0;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem;
  border-radius: 6px;
}

.quiz-solution-box {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #3b82f6;
}

.solution-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
  display: block;
}

.solution-text {
  font-size: 0.95rem;
  color: #1e3a8a;
  margin: 0 0 1rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.quiz-solution-box .formula-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #bfdbfe;
}

.quiz-solution-box .formula-content {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  color: #1e40af;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
  line-height: 1.6;
}

/* Responsive Design - Video 13 */
@media (max-width: 768px) {
  .counting-advanced-hero,
  .central-tendency-hero,
  .dispersion-hero,
  .shape-hero,
  .quiz-hero {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .counting-advanced-title,
  .central-tendency-title,
  .dispersion-title,
  .shape-title,
  .quiz-title {
    font-size: 1.5rem;
  }

  .counting-advanced-desc,
  .central-tendency-desc,
  .dispersion-desc,
  .shape-desc,
  .quiz-desc {
    font-size: 0.95rem;
  }

  .counting-advanced-rules,
  .tendency-cards-container,
  .dispersion-cards-container,
  .shape-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .advanced-rule-card,
  .tendency-card,
  .dispersion-card,
  .shape-card {
    padding: 1.5rem;
  }

  .rule-number,
  .tendency-number,
  .disp-number,
  .shape-number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .rule-title,
  .tendency-name,
  .disp-name,
  .shape-name {
    font-size: 1.15rem;
  }

  .rule-formula-box,
  .disp-formula-box,
  .tendency-formula-box {
    padding: 1rem;
  }

  .rule-example-box {
    padding: 1.25rem;
  }

  .quiz-question-card {
    padding: 1.5rem;
  }

  .quiz-problem-box,
  .quiz-solution-box {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .counting-advanced-hero,
  .central-tendency-hero,
  .dispersion-hero,
  .shape-hero,
  .quiz-hero {
    padding: 1.5rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .counting-advanced-title,
  .central-tendency-title,
  .dispersion-title,
  .shape-title,
  .quiz-title {
    font-size: 1.3rem;
  }

  .counting-advanced-desc,
  .central-tendency-desc,
  .dispersion-desc,
  .shape-desc,
  .quiz-desc {
    font-size: 0.9rem;
  }

  .counting-advanced-rules,
  .tendency-cards-container,
  .dispersion-cards-container,
  .shape-cards-container,
  .quiz-questions-container {
    gap: 1.25rem;
  }

  .advanced-rule-card,
  .tendency-card,
  .dispersion-card,
  .shape-card,
  .quiz-question-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .rule-number,
  .tendency-number,
  .disp-number,
  .shape-number,
  .quiz-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    left: 1.25rem;
    top: -12px;
  }

  .rule-title,
  .tendency-name,
  .disp-name,
  .shape-name,
  .quiz-question-text {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .rule-description,
  .tendency-property,
  .disp-property,
  .shape-desc-item {
    font-size: 0.9rem;
  }

  .example-label,
  .subtype-label {
    font-size: 0.9rem;
  }

  .example-text,
  .subtype-detail,
  .problem-statement,
  .solution-text {
    font-size: 0.9rem;
  }

  .rule-formula-box,
  .disp-formula-box,
  .tendency-formula-box,
  .rule-example-box,
  .disp-example-box,
  .tendency-example-box {
    padding: 1rem;
    margin-top: 0.75rem;
  }

  .subtype-item {
    padding: 1rem;
  }

  .quiz-question-card {
    margin-top: 0.5rem;
  }

  .quiz-problem-box,
  .quiz-solution-box {
    padding: 1rem;
  }
}
