/* ==========================================================================
   RETeval Academy — Shared Design System
   Reused across all prototype pages (index.html, dashboard.html, ...)
   ========================================================================== */

:root {
  /* Colors */
  --navy: #0a1e42;
  --navy-dark: #081733;
  --teal: #2ec4b6;
  --teal-dark: #189288;
  --teal-darker: #0d5c66;
  --hero-gradient-start: #0f4c5c;
  --hero-gradient-end: #0a2a52;
  --gray-bg: #f2f1ef;
  --gray-input: #ececec;
  --gray-border: #e0dfdd;
  --text-body: #333333;
  --text-muted: #6b6b6b;
  --white: #ffffff;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* Radius / shadow */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.08);

  /* Type */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  margin: 0;
  background: var(--white);
}

a {
  text-decoration: none;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */

.topbar {
  background: var(--navy);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  gap: 28px;
}

.topbar-link {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.topbar-link:hover {
  opacity: 1;
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn-pill:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-pill:active {
  transform: translateY(1px);
}

.btn-pill-sm {
  padding: 8px 20px;
  font-size: 12px;
}

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 20px 32px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0;
  color: var(--navy);
}

.brand-logo .brand-ret {
  font-weight: 700;
}

.brand-logo .brand-eval {
  font-style: italic;
  font-weight: 400;
}

.brand-logo .brand-academy {
  color: var(--teal-darker);
  font-weight: 300;
}

/* ==========================================================================
   Hero banner
   ========================================================================== */

.hero-banner {
  background: linear-gradient(115deg, var(--hero-gradient-start) 15%, var(--hero-gradient-end) 85%);
  padding: 20px 32px;
  min-height: 140px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0;
}

.hero-title .hero-title-light {
  display: block;
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  margin-bottom: 2px;
}

.hero-title .hero-title-bold {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.hero-subtext {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  margin-top: 8px;
  max-width: 420px;
}

.hero-subtext strong {
  font-weight: 700;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-circle {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Authenticated app nav (dashboard, courses, pathology navigator, resources)
   ========================================================================== */

.app-nav {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 14px 32px;
}

.app-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.app-nav .brand-logo {
  font-size: 22px;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
}

.app-nav-link:hover,
.app-nav-link:focus {
  color: var(--teal-dark);
}

.app-nav-link.active {
  color: var(--teal-darker);
}

.app-nav-dropdown-menu {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
  min-width: 220px;
}

.app-nav-dropdown-menu .dropdown-item {
  font-size: 13px;
  color: var(--text-body);
  padding: 8px 18px;
}

.app-nav-dropdown-menu .dropdown-item:hover,
.app-nav-dropdown-menu .dropdown-item:focus {
  background: var(--gray-bg);
  color: var(--teal-dark);
}

/* ==========================================================================
   Page heading (non-hero section titles)
   ========================================================================== */

.page-heading-section {
  padding: 40px 32px 0;
}

.page-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 4px;
}

.page-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* ==========================================================================
   View toggle (list / tile)
   ========================================================================== */

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex: 0 0 auto;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--text-muted);
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--gray-border);
}

.view-toggle-btn:hover {
  color: var(--teal-dark);
}

.view-toggle-btn.active {
  background: var(--teal);
  color: var(--navy);
}

/* ==========================================================================
   Learning path cards
   ========================================================================== */

.learning-path-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 32px 56px;
}

.learning-path-card {
  display: flex;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--white);
}

/* Tile view: grid of vertical cards instead of the default horizontal list rows */
.learning-path-list.view-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.learning-path-list.view-tiles .learning-path-card {
  flex-direction: column;
}

.learning-path-list.view-tiles .learning-path-thumb {
  flex: 0 0 auto;
  width: 100%;
  height: 160px;
}

.learning-path-list.view-tiles .learning-path-eyebrow {
  position: static;
  display: block;
  margin-bottom: 8px;
}

.learning-path-list.view-tiles .learning-path-title {
  padding-right: 0;
  font-size: 16px;
}

.learning-path-list.view-tiles .learning-path-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.learning-path-list.view-tiles .learning-path-note {
  display: none;
}

.learning-path-list.view-tiles .learning-path-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.learning-path-list.view-tiles .learning-path-footer-row {
  margin-top: auto;
}

.learning-path-thumb {
  flex: 0 0 260px;
  background: var(--gray-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  transition: opacity 0.15s ease;
}

.learning-path-thumb:hover {
  opacity: 0.8;
}

.learning-path-body {
  flex: 1;
  padding: 24px 28px;
  position: relative;
}

.learning-path-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--teal-dark);
  text-transform: uppercase;
  position: absolute;
  top: 24px;
  right: 28px;
}

.learning-path-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
  padding-right: 140px;
}

.learning-path-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 10px;
}

.learning-path-note {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.learning-path-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  max-width: 260px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--gray-input);
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-pill);
}

.learning-path-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.learning-path-items {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Course detail page
   ========================================================================== */

.course-detail-section {
  padding: 32px 32px 56px;
}

.course-back-link {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  transition: color 0.15s ease;
}

.course-back-link:hover {
  color: var(--teal-dark);
}

.course-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.course-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-video-placeholder {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
}

.course-video-placeholder i {
  font-size: 48px;
  opacity: 0.85;
}

.course-about-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.course-about-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

.course-progress-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.course-progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.course-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.course-progress-row .progress-track {
  margin-bottom: 0;
  flex: 1;
}

.course-progress-pct {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.course-outline-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.course-outline-group {
  margin-bottom: 20px;
}

.course-outline-group-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.course-outline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-body);
  padding: 6px 0;
  transition: color 0.15s ease;
}

a.course-outline-item:hover {
  color: var(--teal-darker);
}

.course-outline-item i {
  font-size: 15px;
  flex: 0 0 auto;
}

.course-outline-item.is-complete i {
  color: var(--teal);
}

.course-outline-item.is-locked {
  color: var(--text-muted);
  cursor: default;
}

.course-outline-item.is-locked i {
  color: #c7c7c7;
}

/* ==========================================================================
   Learning path detail page
   ========================================================================== */

.path-start-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.path-course-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 14px;
  background: var(--gray-bg);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.path-course-row:hover {
  background: var(--white);
  border-color: var(--teal);
}

.path-course-row i.path-course-icon {
  font-size: 20px;
  color: var(--teal-dark);
  flex: 0 0 auto;
}

.path-optional-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  flex: 0 0 auto;
}

.path-certificate-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.path-certificate-card i {
  font-size: 26px;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 8px;
}

.path-certificate-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.path-certificate-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.path-hero-image {
  background: var(--gray-bg);
  background-size: cover;
  background-position: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ==========================================================================
   Course player page
   ========================================================================== */

.player-notice-bar {
  background: var(--gray-bg);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-notice-bar a {
  color: var(--teal-darker);
  font-weight: 600;
}

.player-notice-bar a:hover {
  text-decoration: underline;
}

.player-layout {
  display: flex;
  min-height: 60vh;
}

.player-sidebar {
  flex: 0 0 280px;
  background: var(--gray-bg);
  border-right: 1px solid var(--gray-border);
  padding: 24px 0;
}

.player-toc-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 24px 4px;
}

.player-toc-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 24px 16px;
}

.player-toc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.player-toc-item:hover {
  background: rgba(46, 196, 182, 0.1);
  color: var(--teal-darker);
}

.player-toc-item.active {
  background: var(--white);
  border-left-color: var(--teal);
  color: var(--teal-darker);
}

.player-content {
  flex: 1;
  padding: 32px 40px;
}

.player-content-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
}

.player-content-list {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 20px;
  padding-left: 20px;
}

.player-content-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 16px;
}

.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  border-top: 1px solid var(--gray-border);
  background: var(--white);
}

.player-footer-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.player-footer-progress .progress-track {
  margin-bottom: 0;
  max-width: 320px;
}

.player-footer-pct {
  font-size: 12px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

/* ==========================================================================
   My Account page
   ========================================================================== */

.account-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 32px 64px;
}

.account-sidebar {
  flex: 0 0 260px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--white);
}

.account-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-border);
  background: var(--gray-bg);
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.account-user-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.account-user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
  word-break: break-all;
}

.account-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  border-left: 3px solid transparent;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: 1px solid var(--gray-border);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.account-nav-item:last-child {
  border-bottom: none;
}

.account-nav-item:hover {
  background: rgba(46, 196, 182, 0.1);
  color: var(--teal-darker);
}

.account-nav-item.active {
  background: var(--gray-bg);
  border-left-color: var(--teal);
  color: var(--teal-darker);
}

.account-content {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  background: var(--white);
  padding: var(--space-xl);
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
}

.account-panel-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.account-panel-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.account-save-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-darker);
  margin-left: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.account-save-note.visible {
  opacity: 1;
}

.account-form-actions {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.account-security-divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 28px 0;
}

.account-certificate-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ==========================================================================
   Pathology Navigator grid
   ========================================================================== */

.pathology-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.pathology-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.25);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 18px 12px;
  min-height: 90px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.pathology-card:hover {
  background: rgba(46, 196, 182, 0.22);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.pathology-notice {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Dark banner (Pathology Navigator / Resource Library page titles)
   ========================================================================== */

.section-banner {
  background: linear-gradient(115deg, var(--hero-gradient-start) 15%, var(--hero-gradient-end) 85%);
  padding: 36px 32px;
  text-align: center;
}

.section-banner-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Pathology Navigator content
   ========================================================================== */

.pathology-section {
  padding: 40px 32px 56px;
}

.pathology-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.pathology-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal-darker);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pathology-list {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 24px;
  padding-left: 20px;
}

.pathology-strong-line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 12px;
}

.pathology-strong-line strong {
  color: var(--navy);
}

.pathology-figure {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.pathology-figure-placeholder {
  background: var(--gray-bg);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 60px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.pathology-figure-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Resource library
   ========================================================================== */

.resource-section {
  padding: 40px 32px 56px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.resource-card-thumb {
  background: var(--gray-bg);
  background-size: cover;
  background-position: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.resource-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.resource-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.resource-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 18px;
  flex: 1;
}

/* ==========================================================================
   Auth cards (Sign in / Register)
   ========================================================================== */

.auth-section {
  padding: 56px 32px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  height: 100%;
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-body);
  margin: 0 0 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 6px;
}

.form-control-flat {
  width: 100%;
  background: var(--gray-input);
  border: 1px solid var(--gray-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-body);
  margin-bottom: 18px;
  transition: border-color 0.15s ease;
}

.form-control-flat:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.forgot-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--teal-dark);
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: var(--teal-darker);
  text-decoration: underline;
}

.auth-card-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 20px 0 0;
}

.auth-alt-link {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.auth-alt-link .forgot-link {
  margin-top: 0;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--gray-bg);
  border-top: 4px solid var(--navy);
  padding-top: 48px;
}

.footer-main {
  padding-bottom: 32px;
}

.footer-logo-mark {
  display: inline-flex;
  gap: 2px;
  margin-right: 8px;
}

.footer-logo-diamond {
  width: 12px;
  height: 12px;
  background: var(--teal);
  transform: rotate(45deg);
  display: inline-block;
}

.footer-logo-diamond.alt {
  background: var(--navy);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  vertical-align: middle;
  letter-spacing: 2px;
}

.footer-logo-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-left: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.footer-social-icon:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding: 18px 0;
  text-align: center;
}

.back-to-top {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: var(--white);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.back-to-top:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.footer-powered {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-powered strong {
  color: var(--navy);
}

.footer-powered-link {
  transition: color 0.15s ease;
}

.footer-powered-link:hover strong {
  color: var(--teal-dark);
}

/* ==========================================================================
   Registration page
   ========================================================================== */

.register-intro {
  font-size: 15px;
  color: var(--text-body);
  max-width: 900px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.required-mark {
  color: #d94747;
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -2px 0 6px;
}

.form-select-flat {
  appearance: auto;
  color: var(--text-body);
}

.form-select-flat:invalid,
.form-select-flat option[disabled] {
  color: var(--text-muted);
}

.checkbox-group {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.checkbox-group legend {
  padding: 0;
  float: none;
  width: auto;
}

.form-check {
  margin-bottom: 6px;
}

.form-check-input {
  border-color: #c7c7c7;
}

.form-check-input:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

.form-check-label {
  font-size: 14px;
  color: var(--text-body);
}

.consent-check {
  margin: 18px 0;
}

.consent-check .form-check-label {
  font-size: 13px;
  color: var(--text-muted);
}

.privacy-link {
  color: var(--teal-dark);
}

.privacy-link:hover {
  color: var(--teal-darker);
  text-decoration: underline;
}

/* ==========================================================================
   Forgot password (standalone card page)
   ========================================================================== */

.forgot-password-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.forgot-password-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

.forgot-password-card {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl) 56px;
}

.brand-logo-centered {
  text-align: center;
  margin-bottom: 48px;
}

.btn-pill-block {
  display: flex;
  width: 100%;
}

.footer-bottom-standalone {
  border-top: none;
  padding-bottom: 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
  .hero-banner {
    text-align: center;
    padding: 20px 24px;
  }

  .hero-subtext {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    margin-top: 16px;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    justify-content: center;
    gap: 18px;
    padding: 0 16px;
  }

  .site-header {
    padding: 16px 20px;
    text-align: center;
  }

  .hero-title .hero-title-light,
  .hero-title .hero-title-bold {
    font-size: 16px;
  }

  .auth-section {
    padding: 40px 20px;
  }

  .auth-card {
    margin-bottom: 24px;
  }

  .app-nav .container {
    justify-content: center;
    text-align: center;
  }

  .app-nav-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .learning-path-card {
    flex-direction: column;
  }

  .learning-path-thumb {
    flex: 0 0 auto;
    height: 160px;
  }

  .learning-path-eyebrow {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .learning-path-title {
    padding-right: 0;
  }

  .course-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .learning-path-list.view-tiles {
    grid-template-columns: 1fr;
  }

  .page-heading-row {
    flex-direction: column;
  }
}

@media (max-width: 991.98px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-path-list.view-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .pathology-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-layout {
    flex-direction: column;
  }

  .player-sidebar {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--gray-border);
  }

  .account-layout {
    flex-direction: column;
  }

  .account-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .pathology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .player-footer-progress .progress-track {
    max-width: none;
  }

  .account-layout {
    padding: 24px 20px 40px;
  }

  .account-content {
    padding: 24px 20px;
  }
}
