/* Reset and Typography */
    :root {
        --sidebar-bg: #112e51; /* Classic government navy blue / dark theme */
        --sidebar-text: #ffffff;
        --sidebar-hover: #204066;
        --sidebar-active: #325d88;
        --content-bg: #ffffff;
        --text-color: #333333;
        --brand-accent: #0071bc; /* Primary buttons */
        --brand-accent-hover: #005a96;
        --border-color: #e0e0e0;
    }

    body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: 'Inter', -apple-system, sans-serif;
        background-color: #ffffff;
        overflow: hidden; 
    }
    
    /* Intro Landing View */
    .intro-view {
        display: none;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        background: #ffffff;
        padding-bottom: 100px;
    }

    .intro-view.active {
        display: block;
        animation: viewFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes viewFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .intro-hero {
        background: #172c3d; /* deep dark navy like the image */
        color: white;
        position: relative;
        min-height: 450px;
        display: flex;
        align-items: center;
        padding-left: 25%;
        padding-right: 50px;
    }

    .hero-pattern-bg {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 20%; /* The pattern on the left side */
        background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.15) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.15)), repeating-linear-gradient(45deg, rgba(0,0,0,0.15) 25%, var(--sidebar-bg) 25%, var(--sidebar-bg) 75%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.15));
        background-position: 0 0, 10px 10px;
        background-size: 20px 20px;
        background-color: #112e51;
        opacity: 0.6;
    }

    .hero-image-overlay {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(17, 46, 81, 0.4); /* Gentle dark blue brand overlay */
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
    }
    
    .intro-hero-title {
        font-size: 3.8rem;
        font-weight: 800;
        margin: 0;
        margin-bottom: 40px;
        line-height: 1.15;
    }

    .hero-actions {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .hero-start-btn {
        background: #ffffff;
        color: #172c3d;
        border: none;
        padding: 14px 34px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        text-transform: uppercase;
    }

    .hero-start-btn:hover {
        background: #f0f0f0;
        transform: translateY(-2px);
    }

    .hero-details-link {
        color: #ffffff;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hero-details-link:visited {
    color: #ffffff;
    }

    .hero-details-link:hover {
        opacity: 0.8;
    }

    .arrow-down {
        font-size: 0.7rem;
    }

    .intro-body-layout {
        max-width: 900px;
        margin: 80px auto;
        padding: 0 30px;
    }

    .intro-description {
        font-size: 1.25rem;
        line-height: 1.8;
        color: #333333;
        margin-bottom: 60px;
    }

    .course-summary-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .course-summary-text {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #777;
    }

    .course-summary-line {
        flex-grow: 1;
        height: 1px;
        background: #eaeaea;
    }

    .toc-table-div {
        display: flex;
        flex-direction: column;
    }

    .toc-row {
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 24px 20px;
        transition: background 0.2s;
        border-radius: 4px;
        margin-bottom: 5px;
    }

    .toc-row:hover {
        background: #f4f6f8;
    }
    
    .toc-icon {
        margin-right: 20px;
        display: flex;
        align-items: center;
        opacity: 0.8;
    }

    .toc-cell {
        flex-grow: 1;
        font-size: 1.15rem;
        font-weight: 600;
        color: #333;
    }

    .toc-action {
        width: 30px;
        display: flex;
        justify-content: flex-end;
    }
    
    .lesson-checkmark {
        width: 24px;
        height: 24px;
        background-color: var(--brand-accent);
        color: white;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .lesson-half {
        display: none;
        align-items: center;
        justify-content: center;
    }
    
    .toc-row.visited-row .lesson-checkmark {
        display: flex;
    }

    .toc-row.in-progress-row .lesson-half {
        display: flex;
    }
    
    .toc-row.visited-row .toc-cell,
    .toc-row.in-progress-row .toc-cell {
        color: #666;
    }

    /* Course Sidebar Layout View */
    .course-view {
        display: none;
        height: 100vh;
        width: 100vw;
        background: var(--content-bg);
    }

    .course-view.active {
        display: flex;
        animation: viewFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Sidebar Navigation */
    .rise-sidebar {
        width: 320px;
        background: var(--sidebar-bg);
        color: var(--sidebar-text);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        border-right: 1px solid rgba(0,0,0,0.1);
        z-index: 10;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: margin-left 0.3s ease;
    }

    .course-view.sidebar-closed .rise-sidebar {
        margin-left: -320px;
    }

    .sidebar-header {
        position: relative;
        padding: 70px 30px 40px;
        background: var(--sidebar-bg); /* #112e51 */
    }

    .sidebar-actions {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 35px;
        pointer-events: none;
    }

    .sidebar-search-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        opacity: 0.8;
        padding: 5px;
        transition: opacity 0.2s;
        pointer-events: auto;
    }

    .sidebar-search-btn:hover {
        opacity: 1;
    }

    .sidebar-back-link {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: rgba(255,255,255,0.6);
        letter-spacing: 1px;
        margin-bottom: 20px;
        display: inline-block;
        text-decoration: none;
        transition: color 0.2s;
        font-weight: 700;
    }
    
    .sidebar-back-link:hover {
        color: rgba(255,255,255,1);
    }

    .sidebar-course-title {
        font-size: 2.1rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.15;
        color: #ffffff;
        margin-bottom: 30px;
    }
    
    /* Progress Bar */
    .progress-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-bar {
        height: 2px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        width: 100%;
        overflow: hidden;
    }
    
    .progress-fill {
        height: 100%;
        background: #ffffff;
        width: 0%;
        transition: width 0.4s ease;
    }
    
    .progress-text {
        font-size: 0.75rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 1px;
    }
    
    .sidebar-search-container {
        display: flex;
        align-items: center;
        background: #ffffff;
        border-radius: 20px;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        overflow: hidden;
        width: 0;
        opacity: 0;
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        z-index: 10;
        border: 1px solid transparent;
        pointer-events: none;
    }
    
    .sidebar-search-container.active {
        width: 100%;
        opacity: 1;
        border-color: #ddd;
        pointer-events: auto;
    }

    .search-input-icon {
        margin-left: 12px;
        flex-shrink: 0;
    }

    .sidebar-search-input {
        width: 100%;
        border: none;
        background: transparent;
        padding: 5px 10px;
        font-size: 0.9rem;
        outline: none;
        color: #333;
    }

    .search-close-btn {
        background: transparent;
        border: none;
        margin-right: 12px;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }
    .search-close-btn:hover {
        transform: scale(1.1);
    }

    .sidebar-nav {
        flex-grow: 1;
        overflow-y: auto;
        background: #f8f9fa; /* very light grey matching image */
        color: #333333;
    }

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

    .nav-item {
        padding: 23px 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: background 0.2s;
        border-bottom: 1px solid #eaeaea;
        font-size: 1rem;
        font-weight: 600;
        color: #555555;
    }

    .nav-item:hover {
        background: #f1f1f1;
        color: #333;
    }

    .nav-item.active {
        background: #eef2f5;
        color: #112e51;
    }

    .nav-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item-label {
        flex-grow: 1;
        line-height: 1.4;
    }
    
    .nav-status-indicator {
        display: flex;
        align-items: center;
        width: 22px;
        height: 22px;
    }
    
    .nav-status-indicator svg {
        display: none;
    }
    
    .nav-item .status-empty {
        display: block;
    }
    
    .nav-item.in-progress .status-empty {
        display: none;
    }
    .nav-item.in-progress .status-half {
        display: block;
    }

    .nav-item.completed .status-empty,
    .nav-item.completed .status-half {
        display: none !important;
    }
    
    .nav-item.completed .status-checked {
        display: block;
    }

    .rise-content-area {
        flex-grow: 1;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
        background: var(--content-bg);
        scroll-behavior: smooth;
        container-type: inline-size;
    }
    
    .full-bleed-html {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    }
    
    .content-wrapper {
        max-width: 900px;
        margin: 0 auto;
        padding: 80px 100px;
        padding-bottom: 150px;
    }

    /* Sections */
    .lesson-section {
        display: none;
        animation: fadeIn 0.4s ease-in;
    }

    .lesson-section.active {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .lesson-number {
        font-size: 0.95rem;
        font-weight: 600;
        color: #888;
        font-style: italic;
        margin-bottom: 15px;
    }

    .lesson-title {
        font-size: 2.8rem;
        font-weight: 800;
        color: var(--text-color);
        margin-top: 0;
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .lesson-title-underline {
        width: 80px;
        height: 4px;
        background-color: var(--brand-accent, #3c6499);
        margin-bottom: 40px;
    }

    .lesson-body {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #4a4a4a;
    }

    .lesson-body h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }
    
    .lesson-body h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .lesson-body img, .lesson-body iframe {
        max-width: 100%;
        border-radius: 4px;
        margin: 40px 0;
        display: block;
    }

    /* Continue Button area */
    .continue-block {
        margin-top: 80px;
        padding-top: 40px;
        border-top: 2px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .continue-label {
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
        color: #777;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .continue-btn {
        background-color: var(--brand-accent);
        color: #fff;
        border: none;
        padding: 18px 40px;
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 15px;
    }

    .continue-btn:hover {
        background-color: var(--brand-accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 113, 188, 0.3);
    }

    .continue-btn span.next-title {
        border-left: 1px solid rgba(255,255,255,0.3);
        padding-left: 15px;
        margin-left: 5px;
        font-weight: 400;
    }

    /* Hamburger UI - Persistent */
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        left: 345px;
        background: transparent;
        color: #888;
        border: none;
        font-size: 2rem;
        z-index: 100;
        cursor: pointer;
        transition: left 0.3s ease, color 0.2s ease;
        padding: 5px 10px;
    }

    .hamburger:hover {
        color: var(--brand-accent);
    }

    .course-view.sidebar-closed .hamburger {
        left: 20px;
    }

    @media (max-width: 900px) {
        .hamburger { 
            left: 20px !important; 
        }
        .rise-sidebar {
            position: fixed;
            left: -320px;
            margin-left: 0 !important;
            transition: left 0.3s ease;
        }
        .rise-sidebar.open {
            left: 0;
        }
        .course-view.sidebar-closed .rise-sidebar {
            margin-left: 0; 
        }
        .content-wrapper, .intro-body {
            padding: 80px 30px; 
            margin-top: -30px;
        }
        .lesson-title {
            font-size: 2rem;
        }
    }
/* Optional wrapper for the pale-blue area (like the screenshot) */
.job-aids-section {
  background: #eaf4fd;
  padding: 24px 0;
}
.job-aids-list {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Clickable card */
.training-doc-card {
  display: flex;
  align-items: center;               /* vertical center for all children */
  gap: 20px;                         /* space between icon and content */
  width: 100%;

  background: #fff;
  border: 1px solid #d6dee7;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;

  text-decoration: none;
  color: #212529;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

/* Hover/focus affordance */
.training-doc-card:hover,
.training-doc-card:focus {
  border-color: #cbd4df;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  outline: none;
}
.training-doc-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 84, 139, 0.18);
}

/* Left thumbnail with PDF badge */
.training-doc__thumb {
  width: 56px;
  height: 72px;
  border-radius: 8px;
  background: #f7dada;               /* soft pink like screenshot */
  position: relative;
  flex: 0 0 auto;
}

/* folded corner accent (optional; remove if not needed) */
.training-doc__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

/* "PDF" badge text */
.training-doc__badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9e1e1e;
}

/* Middle content: stack title + meta */
.training-doc__content {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 6px;
  flex: 1 1 auto;
  min-width: 0;                      /* allow wrapping of long titles */
}

.training-doc__title {
  font-size: 17px;
  font-weight: 500;
  color: #2c2f33;
  line-height: 1.35;
  word-break: break-word;
}
.training-doc__meta {
  font-size: 14px;
  color: #666e75;
}

/* Right actions: push to card’s far right and center vertically */
.training-doc__actions {
  margin-left: auto;                 /* pins to right edge */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sprite icon: align and color */
.training-doc__download {
  width: 24px;
  height: 24px;
  color: #6c6c6c;                    /* for sprites using currentColor */
  /* If your sprite paths don’t inherit color, uncomment the next line: */
  /* fill: #6c6c6c; */
}