/* Learn Section Styles */
#QA {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.question-container {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 550px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.answer-options {
  margin-bottom: 15px;
}

.option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.option-letter {
  font-weight: bold;
  margin-right: 10px;
  font-size: 16px;
  min-width: 20px;
}

.option-text {
  font-size: 16px;
  color: #555;
}

.show-answer-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}

.show-answer-btn:hover {
  background-color: #0056b3;
}

.show-answer-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.reset-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reset-btn:hover {
  background-color: #5a6268;
}

.correct-answer {
  border-color: #28a745;
  background-color: #d4edda;
}

.correct-answer .option-letter {
  color: #28a745;
}

.incorrect-answer {
  border-color: #dc3545;
  background-color: #f8d7da;
}

.incorrect-answer .option-letter {
  color: #dc3545;
}

.answer-explanation {
  margin-top: 15px;
  padding: 15px;
  background-color: #d1ecf1;
  border-radius: 5px;
  color: #0c5460;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 480px) {
  .question-container {
    padding: 10px;
  }

  .question-text {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .option {
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .option-text {
    font-size: 12px;
  }

  .option-letter {
    font-size: 14px;
    min-width: 18px;
  }

  .show-answer-btn,
  .reset-btn {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
  }

  .answer-explanation {
    padding: 10px;
    font-size: 12px;
  }
}
