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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 0 10px;
}

.page-title {
  font-size: 25px;
  text-align: center;
  color: #533DEA;
  font-weight: bold;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .page-title {
    font-size: 20px;
  }
}

.container {
  max-width: 100%;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

h1, h2, h3, h4, label {
  text-align: center;
  margin-bottom: 20px;
  color: #533DEA;
  display: block;
  font-weight: bold;
}

.description {
  background-color: #eaf4ff;
  color: #333;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.subject-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.subject-container span {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  flex: 1 1 calc(50% - 10px);
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.subject-container span:hover {
  background-color: #e4eaff;
}

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

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

select, button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #533DEA;
  box-shadow: 0 0 0 3px rgba(83, 61, 234, 0.1);
}

button {
  background-color: #533DEA;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #3f2ecb;
}

#feedback-message {
  color: red;
  text-align: center;
  display: none;
  font-weight: bold;
}

.previous-exams {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.exam-item {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.exam-item a {
  text-decoration: none;
  color: #533DEA;
  font-weight: 500;
}

.exam-item:hover {
  background-color: #e2e6ea;
}

section[aria-label^="Frequently Asked Questions"] {
  background: #f1f5f9;
  padding: 25px;
  border-radius: 12px;
  margin: 40px auto 20px;
  max-width: 100%;
}

details {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border-left: 4px solid #533DEA;
}

summary {
  font-weight: 600;
  cursor: pointer;
  color: #533DEA;
  margin-bottom: 10px;
}

summary:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  color: #777;
  font-size: 14px;
}

h1 {
  font-size: 20px;
}

ul.tools-list li {
  margin-bottom: 8px;
}