:root {
  --navy: #102b50;
  --teal: #087f78;
  --gold: #d4a43c;
  --ink: #172b46;
  --muted: #5c6e85;
  --border: #dce5ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nirmala UI", "Segoe UI", sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 10% 10%, #d6f4ee 0, transparent 38%),
    radial-gradient(circle at 90% 90%, #e4e8ff 0, transparent 40%),
    #f4f7fc;
}

header {
  padding: 24px;
  color: white;
  background: linear-gradient(115deg, var(--navy), #155c76);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 24px #102b5018;
}

header strong {
  font-size: 20px;
  letter-spacing: 1px;
}

main {
  width: calc(100% - 32px);
  max-width: 560px;
  margin: 42px auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 55px #102b5010;
}

h1 {
  margin-top: 0;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.4;
  color: var(--navy);
}

h2 {
  color: var(--navy);
  line-height: 1.5;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
}

input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  padding: 13px 15px;
  margin-top: 7px;
  border: 1px solid #b8c8d9;
  border-radius: 10px;
  background: #f8fafd;
  color: var(--ink);
  font: inherit;
}

input:focus-visible {
  outline: 3px solid #087f7833;
  border-color: var(--teal);
}

button {
  padding: 13px 24px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(115deg, #087f78, #096a83);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px #087f7826;
}

button:hover {
  filter: brightness(1.08);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

a {
  color: #075c91;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--teal);
}

.error {
  padding: 12px 15px;
  border-left: 4px solid #b42318;
  border-radius: 8px;
  background: #fff1ef;
  color: #9b2119;
}

@media (max-width: 600px) {
  header {
    padding: 20px 16px;
  }

  main {
    margin: 24px auto;
    padding: 24px 20px;
  }
}
.dashboard {
  max-width: 1050px;
}

.welcome-banner {
  padding: 26px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, #102b50, #087f78);
  color: white;
}

.welcome-banner h1 {
  color: white;
  margin-bottom: 10px;
}

.welcome-banner p {
  margin-bottom: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dashboard-stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafd;
}

.dashboard-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  color: var(--teal);
}

.course-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--gold);
  border-radius: 16px;
}

.course-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: #e2f4ef;
  color: #08685c;
  font-size: 14px;
  font-weight: 700;
}

.learning-progress {
  display: block;
  width: 100%;
  height: 18px;
  margin: 10px 0 20px;
  accent-color: var(--teal);
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.action-link {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.action-link:hover {
  background: #065e59;
  color: white;
}

.action-link.secondary {
  background: #eaf0f8;
  color: var(--navy);
}

.dashboard-note {
  color: var(--muted);
  font-size: 14px;
}

.logout-form {
  margin-top: 20px;
}
/* Lesson and exam pages */
main.learning-page {
  max-width: 950px;
}

.learning-page article,
.learning-page fieldset {
  min-width: 0;
  margin: 22px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px #102b5008;
}

.learning-page article {
  border-top: 4px solid var(--teal);
}

.learning-page legend {
  max-width: 100%;
  padding: 0 8px;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.learning-page fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafd;
  cursor: pointer;
  font-weight: 400;
}

.learning-page fieldset label:hover {
  background: #eaf7f3;
  border-color: var(--teal);
}

.learning-page fieldset label:has(input:checked) {
  background: #e0f4ed;
  border-color: var(--teal);
}

.learning-page input[type="radio"] {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin: 5px 0 0;
  accent-color: var(--teal);
}

.learning-page progress {
  display: block;
  width: 100%;
  height: 22px;
  margin: 15px 0 25px;
  accent-color: var(--teal);
}

.learning-page .done {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: #dff5e9;
  color: #075e49;
  font-weight: 700;
}

@media (max-width: 600px) {
  .learning-page article,
  .learning-page fieldset {
    padding: 18px 14px;
  }
}
.campus-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1050px;
  margin: auto;
}

.campus-logo {
  display: block;
  width: 76px;
  height: 104px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  flex-shrink: 0;
}

.campus-brand-name {
  display: block;
  color: white;
  font-size: clamp(17px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: 1px;
}

.campus-brand-subtitle {
  display: block;
  margin-top: 4px;
  color: #e1edf7;
  font-size: 14px;
}
.verification-result {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.verification-result.found {
  background: #edf9f3;
  border-left: 5px solid #087568;
}

.verification-result.not-found {
  background: #fff3ef;
  border-left: 5px solid #b42318;
}

.verification-result dt {
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
}

.verification-result dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
select,
textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  margin-top: 7px;
  border: 1px solid #b8c8d9;
  border-radius: 10px;
  background: #f8fafd;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #087f7833;
  border-color: var(--teal);
}

.course-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
}

.course-table th,
.course-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.course-table th {
  background: #eaf0f8;
  white-space: nowrap;
}

.course-table tr:nth-child(even) {
  background: #f8fafd;
}
.category-options {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.category-options legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 700;
}

.category-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  background: #f3f7fb;
  font-weight: 400;
  cursor: pointer;
}

.category-options input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.series-list-card {
  margin-top: 18px;
}
.reading-text {
  margin-top: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
}

.answer-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed #9baec5;
  border-radius: 10px;
  background: #fff9e9;
}

.answer-preview summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}