/* SEO Essentials — interactive learning UI */

.learn-page {
  background: var(--bg);
}

/* —— Overview —— */
.learn-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(15, 111, 255, 0.1), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.learn-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.learn-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: 0.65rem;
}

.learn-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.learn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.learn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.learn-chip--free {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.25);
  color: var(--free);
}

.learn-hero-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.learn-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .learn-hero-grid {
    grid-template-columns: 1.4fr 0.75fr;
  }
}

.learn-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}

.learn-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.learn-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.learn-stat span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.learn-notice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 111, 255, 0.06);
  border: 1px solid rgba(15, 111, 255, 0.15);
  font-size: 0.9rem;
  color: var(--muted);
}

.learn-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.learn-section {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.learn-section + .learn-section {
  border-top: 1px solid var(--border);
}

.learn-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-bottom: 0.75rem;
}

.learn-section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.learn-two-col {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .learn-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.learn-list {
  display: grid;
  gap: 0.65rem;
}

.learn-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.98rem;
}

.learn-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--teal);
}

.learn-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.learn-skill {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Curriculum accordion */
.curr-list {
  display: grid;
  gap: 0.75rem;
}

.curr-mod {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.curr-mod summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.15rem;
  font-weight: 700;
}

.curr-mod summary::-webkit-details-marker {
  display: none;
}

.curr-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.curr-mod-title {
  margin: 0;
  font-size: 1rem;
}

.curr-mod-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.curr-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.curr-mod[open] .curr-chevron {
  transform: rotate(180deg);
}

.curr-lessons {
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.5rem 0.75rem;
}

.curr-lesson,
.curr-quiz {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s ease;
}

.curr-lesson:hover,
.curr-quiz:hover {
  background: var(--surface);
}

.curr-lesson .n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}

.curr-lesson .meta,
.curr-quiz .meta {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.curr-quiz {
  border-top: 1px dashed var(--border);
  margin-top: 0.25rem;
  color: var(--blue);
}

.curr-quiz .quiz-ico {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue);
}

.learn-cert-block {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, var(--surface) 100%);
}

@media (min-width: 700px) {
  .learn-cert-block {
    grid-template-columns: repeat(4, 1fr);
  }
}

.learn-cert-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.learn-cert-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.overview-progress {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.progress-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-top: 0.45rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 99px;
  transition: width 0.35s var(--ease);
}

/* —— Lesson player (premium LMS layout) —— */
.player-page .site-footer {
  margin-top: 0;
}

.player-shell {
  min-height: calc(100vh - var(--header-h));
  background: #eef3f9;
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
}

@media (min-width: 1100px) {
  .player-layout {
    grid-template-columns: 280px minmax(0, 1fr) 260px;
    min-height: calc(100vh - var(--header-h));
  }
}

.player-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.15rem 0.9rem 2rem;
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: none;
  box-shadow: 4px 0 24px rgba(7, 27, 53, 0.03);
}

.player-sidebar.is-open {
  display: block;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  max-height: none;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1100px) {
  .player-sidebar {
    display: block;
  }
  .player-sidebar.is-open {
    position: sticky;
    inset: auto;
    box-shadow: 4px 0 24px rgba(7, 27, 53, 0.03);
  }
  #close-curriculum {
    display: none;
  }
}

.sidebar-course-title {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem 0.65rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sidebar-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0.55rem;
  letter-spacing: 0.01em;
}

.player-sidebar .progress-bar {
  margin: 0.5rem 0.55rem 1rem;
  height: 6px;
}

.sidebar-nav details {
  border-radius: 10px;
  margin-top: 0.25rem;
  background: transparent;
}

.sidebar-nav details[open] {
  background: var(--surface);
  padding-bottom: 0.35rem;
}

.sidebar-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 10px;
}

.sidebar-nav summary:hover {
  background: rgba(15, 111, 255, 0.06);
}

.sidebar-nav summary::-webkit-details-marker {
  display: none;
}

.sidebar-nav summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.sidebar-nav details[open] > summary::before {
  transform: rotate(90deg);
  border-left-color: var(--blue);
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem 0.5rem 0.7rem;
  margin: 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  line-height: 1.35;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  background: #fff;
  color: var(--text);
}

.sidebar-link.is-current {
  background: #fff;
  color: var(--blue);
  border-left-color: var(--blue);
  box-shadow: 0 1px 3px rgba(7, 27, 53, 0.06);
}

.sidebar-link.is-done .check {
  color: var(--success);
}

.sidebar-link .check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.3;
}

.sidebar-link.is-done .check,
.sidebar-link.is-current .check {
  opacity: 1;
}

.sidebar-link.quiz-link {
  color: var(--blue);
  font-weight: 700;
  margin-top: 0.15rem;
}

.player-main {
  background: #fff;
  padding: 1.35rem clamp(1.1rem, 3.5vw, 2.75rem) 3rem;
  min-width: 0;
  box-shadow: 0 0 0 1px rgba(7, 27, 53, 0.04);
}

@media (min-width: 1100px) {
  .player-main {
    max-width: 760px;
    width: 100%;
    margin: 1.25rem auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.75rem 2.25rem 2.5rem;
  }
}

.player-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-drawer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-drawer:hover {
  border-color: rgba(15, 111, 255, 0.35);
  color: var(--blue);
}

@media (min-width: 1100px) {
  .btn-drawer {
    display: none;
  }
}

.player-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.player-breadcrumb a {
  color: var(--muted);
}

.player-breadcrumb a:hover {
  color: var(--blue);
}

.lesson-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(15, 111, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}

.player-main h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lesson-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 54ch;
}

.lesson-objectives {
  background: linear-gradient(180deg, #f7faff 0%, #f3f7fc 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.85rem;
}

.lesson-objectives h2 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.lesson-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.lesson-body h2 {
  font-size: 1.2rem;
  margin-top: 1.85rem;
  margin-bottom: 0.7rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.lesson-body p {
  margin-bottom: 1em;
}

.lesson-body ul,
.lesson-body ol {
  margin: 0 0 1em 1.15rem;
  list-style: disc;
}

.lesson-body ol {
  list-style: decimal;
}

.lesson-body li {
  margin-bottom: 0.4em;
}

.learn-callout {
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.1rem 1.15rem;
  margin: 1.35rem 0;
  border: 1px solid transparent;
  border-left: 4px solid var(--blue);
  background: rgba(15, 111, 255, 0.05);
  box-shadow: 0 1px 2px rgba(7, 27, 53, 0.03);
}

.learn-callout h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}

.learn-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.learn-tip {
  border-left-color: var(--teal);
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(20, 184, 166, 0.08);
}

.learn-tip h3 {
  color: var(--success);
}

.learn-example {
  border-left-color: var(--blue);
  border-color: rgba(15, 111, 255, 0.18);
  background: rgba(15, 111, 255, 0.06);
}

.learn-example h3 {
  color: var(--blue);
}

.learn-mistake {
  border-left-color: #c2410c;
  border-color: rgba(194, 65, 12, 0.18);
  background: rgba(194, 65, 12, 0.06);
}

.learn-mistake h3 {
  color: #c2410c;
}

.learn-takeaway-block {
  border-left-color: var(--navy);
  border-color: rgba(7, 27, 53, 0.12);
  background: rgba(7, 27, 53, 0.04);
}

.kc-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  margin: 1.65rem 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.kc-box h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.kc-options {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.kc-options label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.kc-options label:hover {
  border-color: rgba(15, 111, 255, 0.45);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 111, 255, 0.08);
}

.kc-options input {
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

.kc-feedback {
  display: none;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.kc-feedback.is-show {
  display: block;
}

.kc-feedback.is-ok {
  color: var(--success);
}

.kc-feedback.is-bad {
  color: #c2410c;
}

.lesson-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.25rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff 40%);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.lesson-nav-bar .btn {
  min-height: 44px;
}

.lesson-nav-bar .btn[disabled],
.lesson-nav-bar .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.player-aside {
  padding: 1.35rem 1rem 2rem 0.75rem;
  display: none;
}

@media (min-width: 1100px) {
  .player-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    max-height: calc(100vh - var(--header-h) - 1.5rem);
    overflow-y: auto;
  }
}

.aside-mobile {
  display: block;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1100px) {
  .aside-mobile {
    display: none;
  }
}

.aside-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgba(7, 27, 53, 0.04);
}

.aside-card h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.aside-card ul {
  list-style: none;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.aside-card li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.55em;
}

.aside-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.55;
}

.aside-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  font-weight: 600;
}

.aside-card .text-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(7, 27, 53, 0.35);
  z-index: 35;
}

.drawer-backdrop.is-show {
  display: block;
}

@media (min-width: 1100px) {
  .drawer-backdrop {
    display: none !important;
  }
}

/* Quiz / exam shared */
.quiz-page,
.exam-page {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background: var(--surface);
  min-height: calc(100vh - var(--header-h));
}

.quiz-shell,
.exam-shell {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.exam-shell.exam-shell--live {
  max-width: 1100px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.exam-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .exam-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.exam-main {
  min-width: 0;
}

.exam-q-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.exam-q-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.exam-q-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.exam-rail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  position: sticky;
  top: calc(var(--header-h, 72px) + 1rem);
}

.exam-rail-timer {
  text-align: center;
  background: linear-gradient(135deg, #22333b, #608b7f);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 0.85rem;
  margin-bottom: 1rem;
}

.exam-rail-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.exam-rail-time {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.exam-rail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.exam-rail-stat {
  text-align: center;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.65rem 0.35rem;
}

.exam-rail-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.1;
}

.exam-rail-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.exam-rail-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.exam-rail-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}

.exam-rail-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue, #608b7f), #c6a179);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.exam-rail-nav-head {
  margin-bottom: 0.55rem;
}

.exam-rail-nav-head > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.exam-rail-nav-head p {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.exam-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 2px;
}

.exam-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}

.exam-nav-btn.is-active {
  outline: 2px solid var(--blue, #608b7f);
  outline-offset: 1px;
}

.exam-nav-btn.is-answered {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.exam-nav-btn.is-flagged {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.exam-nav-btn.is-pending {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.exam-nav-btn.is-todo {
  background: #f8fafc;
}

.exam-finish-btn {
  width: 100%;
  justify-content: center;
}

.exam-rail-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.btn.is-flagged-btn {
  border-color: #fdba74;
  color: #c2410c;
  background: #fff7ed;
}

.exam-finish-btn.is-disabled,
.exam-finish-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.exam-fail-lock {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(15, 111, 255, 0.06);
  border: 1px solid rgba(15, 111, 255, 0.18);
}

.exam-fail-lock strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.exam-fail-lock p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.exam-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue, #608b7f);
  background: rgba(15, 111, 255, 0.08);
  border: 1px solid rgba(15, 111, 255, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.75rem;
}

.exam-type-tip {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.exam-scenario {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface, #f3f7fc);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.exam-snippet {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #0b1220;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quiz-opts--multi label input[type="checkbox"] {
  margin-top: 0.2rem;
}

.quiz-counter {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue, #608b7f);
  margin: 0.75rem 0 1rem;
}

.quiz-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quiz-stepper .is-hidden,
.quiz-stepper [hidden],
.exam-shell [hidden],
.quiz-shell [hidden] {
  display: none !important;
}

.exam-live-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.exam-live-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.exam-security-note {
  background: rgba(194, 65, 12, 0.07);
  border: 1px solid rgba(194, 65, 12, 0.22);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.exam-security-note strong {
  display: block;
  color: #c2410c;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.exam-security-note p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.exam-security-banner {
  background: rgba(15, 111, 255, 0.08);
  border: 1px solid rgba(15, 111, 255, 0.2);
  color: var(--navy);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.exam-security-banner.is-danger {
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.28);
  color: #9a3412;
}

.exam-auto-note {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(194, 65, 12, 0.08);
  border: 1px solid rgba(194, 65, 12, 0.2);
  color: #9a3412;
  font-weight: 700;
  font-size: 0.95rem;
}

.exam-form {
  margin: 0;
}

.exam-q-card {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

.exam-q-card--review {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.exam-q-text {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  color: var(--navy);
  font-weight: 800;
}

.exam-review-heading {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.75rem;
}

.exam-shell fieldset.quiz-q,
.quiz-shell fieldset.quiz-q {
  border: 0;
  margin: 0;
  padding: 0.25rem 0 0;
  min-width: 0;
  background: transparent;
}

.quiz-opts label.is-selected {
  border-color: var(--blue, #608b7f);
  background: rgba(15, 111, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(15, 111, 255, 0.15);
}

.quiz-opts label:hover {
  border-color: rgba(15, 111, 255, 0.35);
}

.exam-review-opt {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.exam-review-opt.is-correct {
  border-color: var(--success);
  background: rgba(15, 118, 110, 0.08);
}

.exam-review-opt.is-wrong {
  border-color: #c2410c;
  background: rgba(194, 65, 12, 0.06);
}

.cert-share {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-linkedin {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #fff !important;
}

.quiz-q {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.quiz-q[hidden] {
  display: none !important;
}

.quiz-q:last-of-type {
  border-bottom: none;
}

.quiz-q.is-active {
  border-bottom: none;
}

.quiz-q h3 {
  font-size: 1.02rem;
  margin-bottom: 0.75rem;
}

.quiz-opts {
  display: grid;
  gap: 0.45rem;
}

.quiz-opts label {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.quiz-opts label.is-correct {
  border-color: var(--success);
  background: rgba(15, 118, 110, 0.08);
}

.quiz-opts label.is-wrong {
  border-color: #c2410c;
  background: rgba(194, 65, 12, 0.06);
}

.quiz-explain {
  display: none;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.quiz-explain.is-show {
  display: block;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quiz-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.quiz-result.is-show {
  display: block;
}

.quiz-result.pass {
  background: rgba(15, 118, 110, 0.1);
  color: var(--success);
}

.quiz-result.fail {
  background: rgba(194, 65, 12, 0.08);
  color: #c2410c;
}

.exam-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 600px) {
  .exam-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.exam-stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
}

.exam-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
}

.exam-stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.cert-form {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cert-form.is-show {
  display: block;
}

.cert-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.cert-form input {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.exam-timer {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
}

.verify-card {
  max-width: 560px;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.verify-card.valid {
  border-color: rgba(15, 118, 110, 0.35);
}

.verify-card.invalid {
  border-color: rgba(194, 65, 12, 0.35);
}
