@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --blue: #1A5276;
  --blue-dark: #0D2B3E;
  --blue-mid: #2471A3;
  --blue-light: #D6EAF8;
  --orange: #E8500A;
  --orange-light: #FDE8DC;
  --orange-dark: #9E3507;
  --green: #1E8449;
  --green-light: #D5F5E3;
  --gray-light: #F4F6F7;
  --gray-mid: #BDC3C7;
  --text-dark: #1C2833;
  --text-mid: #566573;
  --text-light: #ABB2B9;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(26,82,118,0.10);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: #F0F4F8;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── SIDEBAR ── */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}

.brand-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  line-height: 1.4;
}

nav { padding: 12px 0; flex: 1; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3);
  padding: 12px 20px 6px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-link.active {
  color: var(--white);
  border-left-color: var(--orange);
  background: rgba(232,80,10,0.12);
  font-weight: 600;
}

.nav-link .nav-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
}

.nav-link.active .nav-num {
  background: var(--orange);
  color: white;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

/* ── MAIN ── */
.main {
  width: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 40px 48px;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(26,82,118,0.95) 0%, rgba(13,43,62,0.88) 100%),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1200&q=80&fit=crop');
  background-size: cover;
  background-position: center;
}

.hero-pattern-geo {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.3) 0px,
    rgba(255,255,255,0.3) 1px,
    transparent 1px,
    transparent 40px
  ),
  repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.3) 0px,
    rgba(255,255,255,0.3) 1px,
    transparent 1px,
    transparent 40px
  );
}

.hero-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--orange);
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-family: 'Oswald', sans-serif;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}

/* ── CONTENT ── */
.content {
  width: 100%;
  padding: 40px 48px;
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
}

/* ── ALERT BOXES ── */
.alert {
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border-left: 4px solid;
}

.alert-orange { background: var(--orange-light); border-color: var(--orange); }
.alert-orange .alert-title { color: var(--orange-dark); }
.alert-orange p { color: #7A2900; font-size: 14px; line-height: 1.7; }

.alert-blue { background: var(--blue-light); border-color: var(--blue); }
.alert-blue .alert-title { color: var(--blue-dark); }
.alert-blue p { color: #0C3050; font-size: 14px; line-height: 1.7; }

.alert-green { background: var(--green-light); border-color: var(--green); }
.alert-green .alert-title { color: #0E4023; }
.alert-green p { color: #0E4023; font-size: 14px; line-height: 1.7; }

.alert-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--blue);
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
  opacity: 0.4;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
  text-align: center;
}

.stat-card .num {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── TASK CARDS ── */
.task-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.task-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.task-num.t1 { background: var(--blue); }
.task-num.t2 { background: var(--orange); }
.task-num.t3 { background: var(--green); }

.task-header-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.task-header-text .task-ra {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 2px;
}

.task-body { padding: 16px 20px 20px; border-top: 1px solid var(--gray-light); }

.task-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── STEP LIST ── */
.step-list { list-style: none; }
.step-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  align-items: flex-start;
}

.step-list li .step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'Oswald', sans-serif;
}

/* ── ROLES ── */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.role-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid;
}

.role-card.r1 { border-color: var(--blue); }
.role-card.r2 { border-color: var(--orange); }
.role-card.r3 { border-color: var(--green); }
.role-card.r4 { border-color: #8E44AD; }

.role-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.role-card p { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

/* ── RESOURCE CARDS ── */
.resource-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.resource-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.resource-icon.vid { background: var(--orange-light); }
.resource-icon.doc { background: var(--blue-light); }
.resource-icon.tool { background: var(--green-light); }

.resource-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.resource-card p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 8px; }

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.resource-link:hover { color: var(--orange-dark); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }

table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

thead th {
  background: var(--blue);
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-mid);
  line-height: 1.5;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: var(--gray-light); }
tbody td:first-child { font-weight: 600; color: var(--text-dark); }

.wq-tag {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.3px;
}

/* ── RUBRIC ── */
.rubric-wrap { margin-bottom: 28px; }

.rubric-title {
  background: var(--blue);
  color: white;
  padding: 12px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.rubric-table { border-radius: 0 0 var(--radius) var(--radius); }

.rubric-table thead th:nth-child(2) { background: #1E8449; }
.rubric-table thead th:nth-child(3) { background: #27AE60; }
.rubric-table thead th:nth-child(4) { background: #E67E22; }
.rubric-table thead th:nth-child(5) { background: #C0392B; }

/* ── DIST TABLE ── */
.dist-pct { font-weight: 700; color: var(--orange); font-family: 'Oswald', sans-serif; font-size: 15px; }

/* ── FOOTER ── */
.page-footer {
  width: 100%;
  max-width: 980px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 48px;
  background: white;
  border-top: 1px solid var(--gray-light);
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { width: 60px; min-width: 60px; }
  .sidebar-brand, .nav-label, .brand-title, .brand-sub, .sidebar-footer, .nav-link span { display: none; }
  .nav-link { justify-content: center; padding: 14px; }
  .nav-link .nav-num { margin: 0; }
  .main {
    margin-left: 0;
    width: auto;
    max-width: none;
    flex: 1;
  }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 28px; }
  .content { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    z-index: 200;
    display: block;
    overflow: visible;
    box-shadow: 0 8px 22px rgba(13,43,62,0.18);
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 8px;
    font-size: 18px;
  }

  .brand-title {
    display: block;
    font-size: 13px;
  }

  .brand-sub,
  .sidebar-footer,
  .nav-label {
    display: none;
  }

  nav {
    display: flex;
    gap: 6px;
    padding: 8px 10px 10px;
    overflow-x: auto;
    flex: none;
  }

  .nav-link {
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 10px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
  }

  .nav-link.active {
    border-left: 0;
    border-bottom-color: var(--orange);
  }

  .nav-link span {
    display: inline;
  }

  .nav-link span:last-child {
    display: none;
  }

  .nav-link .nav-num {
    margin: 0;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .main {
    margin-left: 0;
    width: 100%;
    max-width: none;
    flex: 1;
  }

  .hero {
    min-height: 230px;
    padding: 28px 18px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-badges,
  .stats-grid,
  .dist-grid {
    grid-template-columns: 1fr;
  }

  .badge {
    width: 100%;
  }

  .content {
    padding: 20px 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .alert,
  .task-body,
  .process-step-body,
  .resource-card,
  .role-card,
  .stat-card {
    padding: 16px;
  }

  .task-header,
  .process-step-header {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .resource-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .resource-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .table-wrap {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 6px;
  }

  table {
    min-width: 680px;
  }

  .page-footer {
    display: grid;
    gap: 10px;
    padding: 18px 14px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 23px;
  }

  .hero-tag {
    letter-spacing: 0.7px;
  }

  .step-list li {
    align-items: flex-start;
  }
}

.nav-back {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #FDE8DC !important;
}

@media (max-width: 820px) {
  .nav-back { margin-top: 4px; }
}
