/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
========================================================================== */
:root {
    --primary: #1e2448;
    --secondary: #0f766e;
    --accent: #d97706;
    --bg-light: #f8fafc;
    --radius-sm: 4px;
    --radius-md: 8px;
    --space-md: 1.5rem;
}

/* Secondary Button Styling */
.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: var(--primary);
}

/* ==========================================================================
   PART 1: GENERAL & GLOBAL STYLES
========================================================================== */
.course-player-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border: 1px solid #eaeaea; 
    width: 92%; 
    max-width: 1000px;
    margin: 3rem auto;
}

/* Page Transitions */
.course-page {
    display: none;
    padding: 2rem 4rem; 
    animation: fadeIn 0.4s ease-in-out;
}
.course-page.active {
    display: block;
}

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

/* Header & Typography */
.course-header {
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.section-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.course-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 2.2rem;
}

/* Content Elements */
.course-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.course-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Footer Navigation */
.course-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}
.course-footer p {
    margin: 0;
    font-weight: bold;
    color: #2c3e50; /* Hard fallback for var(--primary) so text is always visible */
}

/* Buttons */
.btn-main {
    background-color: #1e2448; /* Primary dark brand color */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.btn-main:hover {
    opacity: 0.9;
}

/* ==========================================================================
   PART 2: REUSABLE UI COMPONENTS
========================================================================== */

/* Universal Callout Boxes */
.callout-box {
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    font-size: 1.05rem;
}

.permissions-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #e2e8f0; 
    border: 1px solid #cbd5e1;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}
.permissions-box .box-icon {
    flex-shrink: 0;
    color: #334155;
}

.reflection-box {
    display: flex;
    align-items: center; 
    gap: 1.5rem;
    background-color: #f0fbf9; 
    border: 1px solid #a3e4d7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.reflection-box .box-icon {
    flex-shrink: 0;
    color: #1e2448; 
}

.instruction-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.instruction-icon {
    background-color: #1e2448;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.instruction-text p {
    margin: 0;
    font-size: 0.95rem;
}

/* Interactive Accordion */
.accordion-btn {
    background-color: var(--bg-light);
    color: var(--primary);
    cursor: pointer;
    padding: 1.2rem;
    width: 100%;
    border: 1px solid #eaeaea;
    text-align: left;
    outline: none;
    font-size: 1.05rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-btn:hover, .accordion-btn.active {
    background-color: #f1f1f1; 
}
.accordion-btn::after {
    content: '\002B'; /* Plus icon */
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}
.accordion-btn.active::after {
    content: "\2212"; /* Minus icon */
}
.accordion-panel {
    padding: 0 1.2rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-left: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -5px; 
}
.accordion-panel p {
    padding: 1rem 0;
    margin: 0;
}

/* Course Tabs (Slideshow Component) */
.course-tabs-wrapper {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.tabs-title {
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: var(--primary);
}
.tabs-header {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    overflow-x: auto;
}
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--primary);
    background: #f1f1f1;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}
.tabs-body {
    background: white;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 6px 6px;
}
.tab-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.tab-text { flex: 3; }
.tab-image { flex: 2; }
.tab-text h5 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Lists */
.objective-list {
    margin-left: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.objective-list li {
    margin-bottom: 0.5rem;
}

/* Objective Cards Hover Effect */
.objective-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px; 
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Objective Cards Hover Effect */
.objective-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.objective-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

/* Course Images Hover Effect */
.course-image, 
.split-image-container img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-image:hover, 
.split-image-container img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   PART 3: PAGE-SPECIFIC STYLES
========================================================================== */

/* Page 1: Lo-Fi Layout Specifics */
.lofi-split-section {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}
.split-text { flex: 3; }
.split-image-container { flex: 2; }

.image-placeholder {
    background-color: #d8d8d8;
    color: #333;
    font-size: 0.85rem;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
}
.split-image-container .caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* Page 1: Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}
.objective-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px; 
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 0.5rem;
}
.card-head h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}
.gear-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

/* Page 4: Segments & Quiz */
.segment-code-wrapper {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
}
.segment-display-bar {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.25rem;
}
.segment-btn {
    background: #e2e8f0; 
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #334155; 
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.segment-btn:hover { background: #cbd5e1; }
.segment-btn.active {
    background: var(--primary); 
    color: white;
    border-color: var(--primary);
}
.segment-dash {
    font-size: 1.2rem;
    font-weight: bold;
    color: #64748b;
    margin: 0 0.75rem;
}
.segment-info-panel {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    padding: 1.25rem;
    border-radius: 0 6px 6px 0;
    text-align: left;
}
.segment-info-panel h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.05rem;
}
.quiz-card-sim {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Page 5: Interactive Software Window */
.software-window {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    font-family: inherit;
}
.window-header {
    background: #1e2448;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 500;
}
.window-body {
    padding: 1.25rem;
    background: #f8fafc;
}
.coa-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.coa-search-mock {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #94a3b8;
    width: 250px;
}
.coa-btn-primary {
    background-color: #0f766e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: default; 
}
.coa-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}
.coa-sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.coa-sim-table th {
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
.coa-sim-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.coa-row-heading { background-color: #f8fafc; }
.coa-row-subheading { background-color: #ffffff; }
.coa-row-account { background-color: #ffffff; }

.badge-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-type.heading { background: #e0f2fe; color: #0369a1; }
.badge-type.subheading { background: #fef3c7; color: #b45309; }
.badge-type.account { background: #dcfce7; color: #15803d; }

.dots {
    color: #94a3b8;
    letter-spacing: 2px;
    cursor: default; 
}

/* Interactive Hotspots & Modals */
@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}
.hotspot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #15803d; 
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    animation: pulseBadge 2s infinite;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.hotspot-badge:hover {
    transform: scale(1.15);
}
.hotspot-badge.clicked {
    background-color: #94a3b8 !important;
    animation: none !important;
    box-shadow: none !important;
}

.coa-info-box {
    margin-top: 1rem;
    background: #ffffff;
    border-left: 4px solid #15803d;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #1e293b;
    animation: fadeIn 0.3s ease-in-out;
}

/* Pop-up Modal Overlay */
.coa-modal-overlay {
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.coa-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid #cbd5e1;
    position: relative;
    animation: fadeIn 0.25s ease-in-out;
}
.coa-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}
.coa-modal-close:hover {
    color: #0f172a;
}

/* ==========================================================================
   Page 4: RESPONSIVE DESIGN (MEDIA QUERIES)
========================================================================== */
@media (max-width: 768px) {
    .course-page {
        padding: 2rem 1.5rem; 
    }
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    .tab-split {
        flex-direction: column;
    }
    .course-cards-grid { grid-template-columns: 1fr; }
    .next-step-item { flex-direction: column; gap: 0.75rem; }
    .dnd-row { flex-direction: column; gap: 0.5rem; }
    .drop-zone { min-height: 70px; }
}

/* ==========================================================================
   FUND STRUCTURE ORGANIZATIONAL CHART
========================================================================== */
.fund-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem auto;
    padding: 2rem; 
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: var(--radius-md);
    width: max-content; /* Keeps the entire container tight around the chart */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 1. Adds the interactive hover lift to match your other images */
.fund-chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.fund-node {
    background-color: #6da059; 
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fund-node strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.fund-node small {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
}

.fund-root {
    position: relative;
    margin-bottom: 20px;
}

.fund-root::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #94a3b8;
    transform: translateX(-50%);
}

/* 2. Changed to inline-flex so the container hugs the boxes tightly */
.fund-branches {
    display: inline-flex; 
    gap: 2rem;
    position: relative;
    padding-top: 20px;
}

/* The left/right 90px will now stop perfectly in the center of your 180px boxes */
.fund-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 90px; 
    right: 90px; 
    height: 2px;
    background-color: #94a3b8;
}

.fund-branch {
    position: relative;
}

.fund-branch::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #94a3b8;
    transform: translateX(-50%);
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .fund-chart-container {
        width: 100%; /* Allows it to shrink on small screens */
        padding: 1.5rem;
    }
    .fund-branches {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 0;
        display: flex;
    }
    .fund-branches::before, 
    .fund-branch::before, 
    .fund-root::after {
        display: none; 
    }
}

/* ==========================================================================
   PAGE 4: MULTIPLE CHOICE QUIZ
========================================================================== */
.mc-quiz-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.mc-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #334155;
    transition: all 0.2s ease;
}
.mc-option-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: var(--secondary);
    transform: translateX(4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Default layout for Desktop: Side-by-side */
.quiz-option-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-answer-box {
    flex: 1; /* Takes up the necessary space on the left */
}

.quiz-rejoinder {
    flex: 1; /* Sits comfortably beside the answer box on wide screens */
}

/* Stack on Mobile screens */
@media (max-width: 768px) {
    .quiz-option-container {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* ==========================================================================
   PAGE 5: Account Type Visual Cards for Course Tabs
========================================================================== */
.account-visual-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.account-code-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-visual-card strong {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    display: block;
}

.account-visual-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-visual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Accent top border variations to tie into your brand colors */
.asset-visual { border-top: 4px solid var(--primary); }
.liability-visual { border-top: 4px solid var(--accent); }
.netasset-visual { border-top: 4px solid var(--secondary); }
.revenue-visual { border-top: 4px solid #10b981; }
.expense-visual { border-top: 4px solid #ef4444; }

/* ==========================================================================
   PAGE 8: CHEAT SHEET
========================================================================== */
.cheat-sheet-preview img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cheat-sheet-preview img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   PAGE 8: DRAG AND DROP ACTIVITY
========================================================================== */
.dnd-activity-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.dnd-activity-container .btn-main {
    display: block;
    margin: 2rem auto 0 auto;
}
.dnd-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    margin-bottom: 2rem;
    min-height: 80px;
    align-items: center;
    justify-content: center;
}
.drag-term {
    background: var(--secondary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: grab;
    text-align: center;
    max-width: 250px;
}
.drag-term:active { cursor: grabbing; }
.drag-term.selected {
    outline: 3px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.drag-term:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.drag-term.dragging {
    opacity: 0.4;
}
.dnd-match-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.dnd-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}
.dnd-definition {
    flex: 3;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.drop-zone {
    flex: 2;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: background 0.2s, border-color 0.2s;
}
.drop-zone.drag-over {
    background: #e2e8f0;
    border-color: var(--primary);
}
.drop-zone.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}
.rejoinder-box {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* ==========================================================================
   PAGE 13: NEXT STEPS & COURSE CARDS
========================================================================== */
.next-steps-container {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.next-step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.next-step-item:nth-child(1) { border-left: 4px solid var(--primary); }
.next-step-item:nth-child(2) { border-left: 4px solid var(--accent); }
.next-step-item:nth-child(3) { border-left: 4px solid var(--secondary); }
.next-step-item:nth-child(4) { border-left: 4px solid #64748b; }
.step-icon {
    flex-shrink: 0;
    color: var(--primary);
    width: 36px;
    height: 36px;
}
.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.15rem;
}
.step-content p, .step-content ul, .step-content ol {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}
.step-content a {
    color: var(--secondary);
    font-weight: bold;
    text-decoration: underline;
}
.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.recommend-card {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.recommend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary);
}
.recommend-card h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.3;
}
.recommend-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}
.recommend-meta span {
    display: block;
    margin-bottom: 0.25rem;
}
.recommend-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}