/* ===== Process Mining Hub — Styles ===== */

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

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f3a;
  --navy-700: #132244;
  --navy-600: #1a365d;
  --navy-500: #1e4a7a;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-100: #dbeafe;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #1a2332;
  --green-100: #dcfce7;
  --green-700: #166534;
  --yellow-100: #fef9c3;
  --yellow-700: #854d0e;
  --red-100: #fee2e2;
  --red-700: #991b1b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue-500);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
  flex: 1;
}

/* ===== Header / Hero ===== */

.site-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  color: #fff;
  padding: 60px 24px 48px;
  text-align: center;
}

.site-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.site-header p {
  font-size: 15px;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto 16px;
}

.tagline {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-300);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 12px;
}

/* ===== Stats Bar ===== */

.stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 24px 0 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-500);
  display: block;
  line-height: 1.2;
}

.stat .label {
  font-size: 11px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ===== Section Titles ===== */

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-500);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .count {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-400);
}

/* ===== Module Grid ===== */

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.module-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  border-color: var(--blue-300);
}

.module-card .num {
  width: 32px;
  height: 32px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.module-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.module-card p {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 12px;
  flex: 1;
}

.module-card .topics {
  list-style: none;
  margin-bottom: 12px;
}

.module-card .topics li {
  font-size: 12px;
  color: var(--slate-500);
  padding: 3px 0;
  border-bottom: 1px solid var(--slate-100);
}

.module-card .topics li::before {
  content: '\25B8';
  color: var(--blue-500);
  font-weight: 700;
  margin-right: 4px;
}

.module-card .module-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-500);
  align-self: flex-start;
  margin-top: auto;
}

.module-card .module-link:hover {
  text-decoration: underline;
}

.module-card .time {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 8px;
}

/* ===== Certifications Grid ===== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.cert-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cert-card .icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.cert-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.cert-card .provider {
  font-size: 11px;
  color: var(--slate-400);
  margin-bottom: 6px;
}

.cert-card .verify-link {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}

.status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status.done {
  background: var(--green-100);
  color: var(--green-700);
}

.status.in-progress {
  background: var(--yellow-100);
  color: var(--yellow-700);
}

/* ===== About Section ===== */

.project-details {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 40px;
}

.project-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.project-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--slate-700);
}

.project-details p {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 10px;
  line-height: 1.7;
}

.project-details ul {
  list-style: none;
  padding: 0;
}

.project-details ul li {
  font-size: 13px;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
}

.project-details ul li::before {
  content: '\2192';
  color: var(--blue-500);
  font-weight: 700;
  margin-right: 6px;
}

/* ===== Module Page Layout ===== */

.module-header {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: #fff;
  padding: 40px 24px 32px;
  text-align: center;
}

.module-header .module-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-300);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 10px;
}

.module-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.module-header p {
  font-size: 14px;
  color: var(--slate-400);
  max-width: 560px;
  margin: 0 auto;
}

.module-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px;
  flex: 1;
}

.module-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-500);
}

.module-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
  margin: 20px 0 8px;
}

.module-content p {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 12px;
  line-height: 1.7;
}

.module-content ul, .module-content ol {
  margin-bottom: 14px;
  padding-left: 22px;
}

.module-content ul li, .module-content ol li {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 4px;
  line-height: 1.6;
}

.module-content ul li strong, .module-content ol li strong {
  color: var(--slate-800);
}

/* ===== Learning Objectives ===== */

.objectives {
  background: var(--blue-100);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border-left: 4px solid var(--blue-500);
}

.objectives h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
  margin-top: 0;
}

.objectives ul {
  margin-bottom: 0;
}

.objectives ul li {
  font-size: 13px;
  margin-bottom: 4px;
}

/* ===== Exercise / Reflection ===== */

.exercise {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 24px 0;
  border-left: 4px solid var(--green-700);
}

.exercise h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 8px;
  margin-top: 0;
}

.exercise p {
  font-size: 13px;
  margin-bottom: 8px;
}

/* ===== References ===== */

.references {
  margin: 28px 0;
}

.references h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.references ol {
  padding-left: 20px;
}

.references ol li {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 6px;
  line-height: 1.5;
}

.references ol li a {
  word-break: break-all;
}

/* ===== Case Study Cards ===== */

.case-study {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
}

.case-study h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 0;
  margin-bottom: 8px;
}

.case-study p {
  font-size: 13px;
  margin-bottom: 8px;
}

.case-study .highlight {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.case-study .ref-link {
  font-size: 12px;
}

.case-study ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.case-study ul li {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 3px;
}

/* ===== Progress Checkbox ===== */

.progress-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--slate-700);
  cursor: pointer;
  user-select: none;
}

.progress-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-500);
  cursor: pointer;
  flex-shrink: 0;
}

.progress-check input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--slate-400);
}

.progress-check label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* ===== Module Navigation ===== */

.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
  gap: 12px;
}

.module-nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.module-nav a:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
  text-decoration: none;
}

.module-nav .nav-home {
  color: var(--blue-500);
}

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

.site-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 12px;
  color: var(--slate-400);
  border-top: 1px solid var(--slate-200);
  margin-top: auto;
}

.site-footer a {
  color: var(--slate-500);
}

/* ===== Print Styles ===== */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header, .module-header {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
    padding: 20px 0;
  }

  .site-header p, .module-header p {
    color: #333 !important;
  }

  .tagline, .module-badge {
    border-color: #999 !important;
    color: #555 !important;
    background: #f5f5f5 !important;
  }

  .stat .num {
    color: #000;
  }

  .module-card, .cert-card, .project-details, .case-study, .exercise, .objectives {
    border: 1px solid #ccc;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .module-card:hover, .cert-card:hover {
    transform: none;
    box-shadow: none;
  }

  .module-nav {
    display: none;
  }

  .progress-check {
    border: 1px solid #ccc;
  }

  .section-title {
    border-bottom-color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }

  .container, .module-content {
    max-width: 100%;
    padding: 20px 0;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 40px 16px 32px;
  }

  .site-header h1 {
    font-size: 24px;
  }

  .module-header h1 {
    font-size: 22px;
  }

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

  .stats {
    gap: 16px;
  }

  .stat .num {
    font-size: 22px;
  }

  .module-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .container, .module-content {
    padding: 20px 14px;
  }
}
