.rl-course-wrapper, .rl-lesson-wrapper, .rl-quiz-wrapper { width: 100%; margin: 0 auto; padding: 20px; box-sizing: border-box; }
.rl-course-header { text-align: center; margin-bottom: 30px; }
.rl-course-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.rl-course-meta { display: flex; justify-content: center; gap: 20px; margin-top: 15px; font-size: 18px; }
.rl-price { font-weight: bold; color: #0073aa; }
.rl-free { color: #28a745; }
.rl-enroll-box { text-align: center; margin: 30px 0; }
.rl-lessons-list { margin-top: 30px; }
.rl-lesson-item { padding: 12px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; }
.rl-lesson-item.rl-complete { background: #f0fff4; }
.rl-lesson-item.rl-locked { opacity: 0.6; }
.rl-lesson-item a { text-decoration: none; color: #0073aa; font-weight: 500; }
.rl-lesson-item a:hover { text-decoration: underline; }
.rl-lesson-content { margin-bottom: 30px; }
.rl-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 20px; }
.rl-video-container iframe, .rl-video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.rl-lesson-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 2px solid #eee; }
.rl-nav-left a, .rl-nav-right a { text-decoration: none; color: #0073aa; }
.rl-btn { display: inline-block; padding: 10px 24px; border-radius: 4px; border: none; cursor: pointer; font-size: 15px; font-weight: 500; transition: all 0.2s; }
.rl-btn-primary { background: #0073aa; color: #fff; }
.rl-btn-primary:hover { background: #005a87; }
.rl-btn-secondary { background: #f0f0f0; color: #333; border: 1px solid #ccc; }
.rl-btn-secondary:hover { background: #e0e0e0; }
.rl-mark-complete.rl-completed { background: #28a745; }

/* Quiz */
.rl-quiz-wrapper { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rl-quiz-mode-badge { display: inline-block; background: #e3f2fd; color: #1565c0; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.rl-quiz-timer { font-size: 20px; font-weight: bold; color: #d32f2f; margin-bottom: 15px; }
.rl-quiz-attempts { color: #666; margin-bottom: 20px; }
.rl-question { margin-bottom: 30px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fafafa; }
.rl-question-text { font-size: 17px; font-weight: 500; margin-bottom: 15px; line-height: 1.5; }
.rl-points { color: #888; font-size: 14px; font-weight: normal; }
.rl-question-image { margin: 15px 0; text-align: center; }
.rl-question-image img { border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.rl-question-answers label { display: block; padding: 10px 14px; margin-bottom: 8px; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: all 0.15s; }
.rl-question-answers label:hover { background: #f5f5f5; border-color: #bbb; }
.rl-question-answers input[type="radio"] { margin-right: 8px; }
.rl-text-answer { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; }
.rl-essay-answer { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; }
.rl-matching-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.rl-match-left { font-weight: 500; min-width: 120px; }

/* Quiz feedback */
.rl-answer-correct { background: #d4edda !important; border-color: #28a745 !important; }
.rl-answer-wrong { background: #f8d7da !important; border-color: #dc3545 !important; }
.rl-feedback-box { padding: 12px 16px; border-radius: 4px; margin-top: 12px; }
.rl-feedback-correct { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.rl-feedback-incorrect { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.rl-feedback-warn { color: #856404; background: #fff3cd; padding: 8px 12px; border-radius: 4px; display: inline-block; }
.rl-question-actions { margin-top: 12px; }
.rl-check-answer { padding: 6px 16px; font-size: 14px; }

/* Quiz results */
.rl-quiz-result { text-align: center; padding: 40px; border-radius: 8px; margin-top: 20px; }
.rl-quiz-pass { background: #d4edda; color: #155724; }
.rl-quiz-fail { background: #f8d7da; color: #721c24; }

/* Dashboard */
.rl-dashboard { max-width: 900px; margin: 0 auto; }
.rl-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.rl-course-card { border: 1px solid #ddd; border-radius: 8px; padding: 20px; background: #fff; }
.rl-course-card h3 { margin: 0 0 10px; }
.rl-progress-bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin: 10px 0; }
.rl-progress-fill { height: 100%; background: #0073aa; transition: width 0.3s; }
.rl-progress-text { font-size: 13px; color: #666; }

/* Lesson Interactions */
.rl-interactions-wrapper { margin: 30px 0; }
.rl-int-title { font-size: 18px; margin-bottom: 8px; color: #333; }
.rl-int-subtitle { color: #666; font-size: 14px; margin-bottom: 15px; }

/* Flashcard */
.rl-int-flashcard { margin: 20px 0; perspective: 1000px; }
.rl-flip-card { width: 100%; max-width: 500px; height: 200px; margin: 0 auto; cursor: pointer; }
.rl-flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.5s; transform-style: preserve-3d; }
.rl-flip-card.rl-flipped .rl-flip-inner { transform: rotateY(180deg); }
.rl-flip-front, .rl-flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rl-flip-front { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.rl-flip-back { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; transform: rotateY(180deg); }
.rl-flip-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-bottom: 8px; }
.rl-flip-content { font-size: 22px; font-weight: 600; text-align: center; }
.rl-flip-hint { font-size: 12px; opacity: 0.7; margin-top: 10px; }

/* Sorting */
.rl-int-sorting { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; margin: 20px 0; }
.rl-sort-list { display: flex; flex-direction: column; gap: 8px; margin: 15px 0; }
.rl-sort-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; cursor: grab; user-select: none; }
.rl-sort-item:active { cursor: grabbing; }
.rl-sort-handle { color: #adb5bd; font-size: 18px; }
.rl-sort-text { font-weight: 500; }
.rl-dragging { opacity: 0.5; }

/* Scenario */
.rl-int-scenario { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; margin: 20px 0; }
.rl-scenario-text { font-size: 16px; line-height: 1.6; margin-bottom: 15px; padding: 15px; background: #f8f9fa; border-radius: 6px; }
.rl-scenario-choices { display: flex; flex-direction: column; gap: 10px; }
.rl-scenario-btn { padding: 12px 20px; text-align: left; background: #fff; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 15px; transition: all 0.15s; }
.rl-scenario-btn:hover { background: #f0f0f0; border-color: #bbb; }
.rl-scenario-btn:disabled { cursor: default; }
.rl-scenario-correct { background: #d4edda !important; border-color: #28a745 !important; color: #155724; }
.rl-scenario-wrong { background: #f8d7da !important; border-color: #dc3545 !important; color: #721c24; }

/* Fill in blank */
.rl-int-fillinline { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; margin: 20px 0; }
.rl-fill-sentence { font-size: 17px; line-height: 2; margin: 15px 0; }
.rl-inline-blank { display: inline-block; width: 140px; padding: 4px 8px; margin: 0 4px; border: 2px solid #0073aa; border-radius: 4px; font-size: 15px; text-align: center; }
.rl-blank-correct { border-color: #28a745 !important; background: #d4edda; }
.rl-blank-wrong { border-color: #dc3545 !important; background: #f8d7da; }

/* Matching */
.rl-int-matching { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; margin: 20px 0; }
.rl-match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 15px 0; }
.rl-match-left-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; margin-bottom: 8px; background: #f8f9fa; border-radius: 6px; }
.rl-match-dropzone { min-width: 120px; min-height: 40px; padding: 8px; border: 2px dashed #adb5bd; border-radius: 6px; text-align: center; color: #adb5bd; font-size: 13px; margin-left: 10px; }
.rl-match-dropzone.rl-drag-over { background: #e3f2fd; border-color: #2196f3; }
.rl-match-dropzone.rl-drop-filled { border-style: solid; border-color: #28a745; color: #333; }
.rl-match-dropzone.rl-match-correct { background: #d4edda; border-color: #28a745; }
.rl-match-dropzone.rl-match-wrong { background: #f8d7da; border-color: #dc3545; }
.rl-match-draggable { padding: 10px 16px; background: #fff; border: 1px solid #0073aa; border-radius: 6px; cursor: grab; margin-bottom: 8px; text-align: center; color: #0073aa; font-weight: 500; }
.rl-match-draggable:active { cursor: grabbing; }

@media (max-width: 600px) {
    .rl-match-grid { grid-template-columns: 1fr; }
    .rl-flip-card { height: 160px; }
    .rl-flip-content { font-size: 18px; }
}

/* Slide Viewer */
.rl-slide-viewer { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 30px; margin: 20px 0; }
.rl-slide-counter { text-align: center; color: #888; font-size: 14px; margin-bottom: 20px; }
.rl-slides-container { min-height: 300px; width: 100%; }
.rl-slide { display: none; width: 100%; }
.rl-slide-title { font-size: 22px; margin-bottom: 20px; color: #333; }
.rl-slide-content { font-size: 16px; line-height: 1.7; }
.rl-slide-content img { max-width: 100%; height: auto; }
.rl-slide-image { text-align: center; margin: 20px 0; }
.rl-slide-image img { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rl-slide-caption { color: #666; font-size: 14px; margin-top: 10px; text-align: center; }
.rl-slide-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; gap: 15px; }
.rl-slide-progress { flex: 1; height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.rl-slide-progress-bar { height: 100%; background: #0073aa; transition: width 0.3s; }

@media (max-width: 600px) {
    .rl-slide-viewer { padding: 15px; }
    .rl-slide-nav { flex-wrap: wrap; }
    .rl-slide-progress { order: -1; width: 100%; flex: none; }
}

/* Image zoom / lightbox */
.rl-zoomable { cursor: zoom-in; transition: transform 0.3s; }
.rl-zoomable:hover { transform: scale(1.02); }
.rl-lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.rl-lightbox-overlay img { max-width: 95%; max-height: 95%; object-fit: contain; }
.rl-expand-btn { margin-top: 10px; padding: 6px 14px; font-size: 13px; background: #f0f0f0; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; }
.rl-expand-btn:hover { background: #e0e0e0; }

/* Inline quiz in slide */
.rl-quiz-inline { padding: 15px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fafafa; }
.rl-quiz-inline .rl-question { padding: 12px; margin-bottom: 15px; }
.rl-quiz-inline .rl-question-text { font-size: 15px; }
.rl-quiz-inline .rl-btn-primary { padding: 8px 18px; font-size: 14px; }
