/* ============================================
   Student Course Access Styles
   ============================================ */

.section-title-area-spacing {
    margin-bottom: 30px;
}

.dashboard-gap-md {
    margin-bottom: 30px;
}

.action-btn-compact {
    padding: 6px 12px;
}

/* Quiz Header Section */
.quiz-header-section {
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme-2) 100%);
    padding: 40px;
    border-radius: 18px;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.quiz-header-title {
    color: white;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.quiz-header-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

.quiz-header-decoration-1,
.quiz-header-decoration-2 {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.quiz-header-decoration-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.quiz-header-decoration-2 {
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
}

/* Quiz Info Cards */
.quiz-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--theme-2);
    position: relative;
}

.quiz-info-card.theme-border {
    border-top: 4px solid var(--theme);
}

.quiz-info-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 167, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.quiz-info-icon-wrapper.theme-bg {
    background: rgba(0, 79, 68, 0.1);
}

.quiz-info-icon {
    color: var(--theme-2);
    font-size: 28px;
}

.quiz-info-icon.theme-color {
    color: var(--theme);
}

.quiz-info-label {
    color: #6C706F;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-info-value {
    color: var(--theme);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.quiz-info-card.timer-card {
    padding: 31px;
}

/* Quiz Timer */
#quiz-timer {
    font-size: 32px;
    font-weight: 800;
    color: #856404;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

/* Previous Attempt Alert */
.previous-attempt-alert {
    background: linear-gradient(135deg, rgba(0, 79, 68, 0.1) 0%, rgba(255, 167, 41, 0.1) 100%);
    border: 2px solid var(--theme);
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.previous-attempt-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.previous-attempt-info {
    flex: 1;
}

.previous-attempt-title {
    color: var(--header);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.previous-attempt-title-icon {
    color: var(--theme);
}

.previous-attempt-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.previous-attempt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.previous-attempt-badge {
    display: flex;
    justify-content: flex-end;
}

.previous-attempt-score-label {
    color: #6C706F;
    display: block;
    margin-bottom: 5px;
}

.previous-attempt-score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme);
}

.badge-passed {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.badge-failed {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.view-results-btn {
    white-space: nowrap;
}

.results-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.retake-quiz-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.retake-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 68, 0.3);
}

.retake-quiz-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Question Card */
.question-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.question-number-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--theme);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 79, 68, 0.3);
}

.question-header {
    margin-bottom: 25px;
    padding-right: 60px;
}

.question-title {
    color: var(--header);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.question-type-badge.theme-2 {
    background: var(--theme-2);
    color: var(--header);
}

.question-type-badge.theme {
    background: var(--theme);
    color: white;
}

/* Quiz Options */
.quiz-option-item {
    margin-bottom: 12px;
}

.quiz-radio-input {
    display: none;
}

.quiz-option-label {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.quiz-option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-option-radio-dot {
    width: 12px;
    height: 12px;
    background: var(--theme);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option-text {
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

.quiz-option-check {
    color: #6C706F;
    font-size: 12px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option-item input[type="radio"]:checked+.quiz-option-label {
    background: rgba(0, 79, 68, 0.05);
    border-color: var(--theme);
}

.quiz-option-item input[type="radio"]:checked+.quiz-option-label .quiz-option-radio {
    border-color: var(--theme);
}

.quiz-option-item input[type="radio"]:checked+.quiz-option-label .quiz-option-radio-dot {
    opacity: 1;
}

.quiz-option-item input[type="radio"]:checked+.quiz-option-label .quiz-option-check {
    opacity: 1;
    color: var(--theme);
}

.quiz-option-label:hover {
    background: var(--bg);
    border-color: var(--theme);
    transform: translateX(5px);
}

.quiz-option-label:hover .quiz-option-radio {
    border-color: var(--theme);
}

/* Quiz Submit Section */
.quiz-submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.quiz-submit-btn {
    font-size: 18px;
    padding: 18px 50px;
}

.quiz-submit-info {
    color: #6C706F;
    margin-top: 15px;
    font-size: 14px;
}

/* Quiz Timer Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.quiz-timer-icon {
    animation: pulse 2s infinite;
}

/* Floating Quiz Timer */
.floating-quiz-timer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme-2) 100%);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 8px 25px rgba(0, 79, 68, 0.4);
    min-width: 120px;
    transition: all 0.3s ease;
}

.floating-quiz-timer:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 79, 68, 0.5);
}

.floating-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
}

.floating-timer-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.floating-timer-text {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    min-width: 70px;
    text-align: center;
}

/* Warning state when time is running low (less than 5 minutes) */
.floating-quiz-timer.warning {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    animation: shake 0.5s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Danger state when time is very low (less than 1 minute) */
.floating-quiz-timer.danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff4757 100%);
    animation: shake 0.3s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-quiz-timer {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        min-width: 100px;
    }

    .floating-timer-icon {
        font-size: 18px;
    }

    .floating-timer-text {
        font-size: 20px;
        min-width: 60px;
    }
}

/* Floating Navigation Buttons */
.floating-navigation-buttons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.floating-nav-btn {
    background: var(--theme);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 79, 68, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.floating-nav-btn:hover {
    background: var(--theme-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 79, 68, 0.4);
}

.floating-nav-btn:active {
    transform: translateY(-1px);
}

.floating-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--theme);
}

/* Responsive adjustments for floating navigation */
@media (max-width: 768px) {
    .floating-navigation-buttons {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 16px;
        gap: 10px;
    }

    .floating-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .floating-quiz-timer {
        bottom: 20px;
        right: 20px;
    }
}

/* Lesson Content */
.lesson-description-content {
    line-height: 1.8;
    color: var(--text);
}

.lesson-actions {
    margin-top: 30px;
}

/* Assignment Content */
.assignment-description {
    line-height: 1.8;
    color: var(--text);
}

.assignment-instructions {
    background: var(--bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--theme);
}

.assignment-instructions-title {
    color: var(--header);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-instructions-icon {
    color: var(--theme);
}

.assignment-instructions-text {
    color: var(--text);
    line-height: 1.8;
}

.assignment-files {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.assignment-files-title {
    color: var(--header);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-files-icon {
    color: var(--theme);
}

.assignment-file-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assignment-file-link {
    color: var(--theme);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.assignment-file-size {
    color: #6C706F;
    font-size: 13px;
}

/* Assignment Submission Status */
.submission-status-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.submission-status-graded {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    color: #155724;
}

.submission-status-returned {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid var(--theme);
    color: #004085;
}

.submission-status-box {
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.submission-status-title {
    color: var(--header);
    margin-bottom: 15px;
}

.submission-status-text {
    text-transform: capitalize;
}

.submission-grade-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme);
}

.submission-text-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.submission-text-content {
    color: var(--text);
    line-height: 1.8;
}

.submission-files-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Assignment Form */
.assignment-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.assignment-form-label {
    color: var(--header);
    font-weight: 600;
    margin-bottom: 10px;
}

.assignment-form-textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
}

.assignment-form-file-input {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
}

.assignment-form-help {
    color: #6C706F;
    margin-top: 8px;
    display: block;
}

/* Quiz Results */
.results-summary-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
}

.results-summary-card.passed {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.results-summary-card.failed {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.results-summary-card.theme {
    background: var(--bg);
    border-color: var(--theme);
}

.results-summary-card.theme-2 {
    background: var(--bg);
    border-color: var(--theme-2);
}

.results-score-value {
    margin-bottom: 10px;
    font-size: 36px;
}

.results-score-value.passed {
    color: #28a745;
}

.results-score-value.failed {
    color: #dc3545;
}

.results-score-value.theme {
    color: var(--theme);
}

.results-score-value.theme-2 {
    color: var(--theme-2);
}

.results-passing-score {
    color: #6C706F;
}

.results-label {
    margin-bottom: 0;
    color: var(--header);
    font-weight: 600;
}

/* Question Review */
.question-review-title {
    color: var(--header);
}

.question-review-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid;
}

.question-review-item.correct {
    border-left-color: #28a745;
}

.question-review-item.incorrect {
    border-left-color: #dc3545;
}

.question-review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.question-review-number {
    color: var(--header);
    margin: 0;
}

.question-review-badge {
    padding: 8px 16px;
    border-radius: 20px;
}

.question-review-badge.correct {
    background: #28a745;
    color: white;
}

.question-review-badge.incorrect {
    background: #dc3545;
    color: white;
}

.question-review-text {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-option-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.review-option-item.correct-answer {
    background: rgba(40, 167, 69, 0.1);
}

.review-option-item.wrong-answer {
    background: rgba(220, 53, 69, 0.1);
}

.review-option-item.default {
    background: #fff;
}

.review-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-option-text {
    font-weight: 400;
}

.review-option-text.correct {
    color: #28a745;
    font-weight: 600;
}

.review-option-text.wrong {
    color: #dc3545;
}

.review-option-text.default {
    color: var(--text);
}

.review-option-label {
    margin-left: auto;
    font-size: 14px;
}

.review-option-label.correct {
    color: #28a745;
}

.review-option-label.wrong {
    color: #dc3545;
}

/* Assignment Submission Success */
.assignment-submission-success {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.assignment-submission-success-title {
    color: #155724;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-submission-success-icon {
    color: #28a745;
    font-size: 28px;
}

.assignment-submission-success-text {
    color: #155724;
    margin: 0;
}

.submission-details-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.submission-details-title {
    color: var(--header);
    margin-bottom: 20px;
}

.submission-detail-item {
    margin-bottom: 15px;
}

.submission-detail-label {
    color: var(--header);
}

.submission-detail-value {
    color: var(--text);
}

.submission-detail-divider {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.submission-text-box-content {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    color: var(--text);
    line-height: 1.8;
}

.submission-file-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submission-file-link {
    color: var(--theme);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.submission-file-size {
    color: #6C706F;
    font-size: 13px;
}

/* Video Player */
.video-iframe {
    border-radius: 18px;
}

/* ============================================
   Full Screen Course Access Layout
   ============================================ */

.course-access-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 9999;
    overflow: hidden;
}

/* Course Header Bar */
.course-header-bar {
    background: var(--theme);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.course-header-bar .sidebar-toggle-btn {
    background: rgba(0, 0, 0, 0.15);
}

.course-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.sidebar-toggle-btn {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.course-header-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-header-play-icon {
    font-size: 20px;
    color: white;
}

.course-header-title {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.course-header-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.course-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.course-header-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.course-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.course-nav-btn:active {
    transform: scale(0.95);
}

.course-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.course-header-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.course-header-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Container */
.course-access-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sidebar Wrapper */
.course-sidebar-wrapper {
    width: 350px;
    background: var(--bg);
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Main Content Wrapper */
.course-main-content-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
}

.course-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Search */
.sidebar-search {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--theme);
}

.search-icon-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--theme);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    margin-top: 12px;
}

/* Chapter Section */
.chapter-section {
    margin-bottom: 32px;
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 8px 0 12px 0;
    user-select: none;
}

.chapter-header:hover {
    background: rgba(0, 79, 68, 0.05);
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

.chapter-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.chapter-toggle-icon {
    font-size: 12px;
    color: #666;
    transition: color 0.2s ease;
    flex-shrink: 0;
    width: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chapter-header:hover .chapter-toggle-icon {
    color: var(--theme);
}

.chapter-section.collapsed .chapter-toggle-icon.fa-chevron-down {
    transform: rotate(-90deg);
}

.chapter-number {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.chapter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--theme);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-progress {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.chapter-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Curriculum Item */
.curriculum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.curriculum-item:last-child {
    border-bottom: none;
}

.curriculum-item:hover {
    background: #f8f9fa;
}

.curriculum-item.active {
    background: rgba(0, 79, 68, 0.05);
}

.curriculum-item.active .curriculum-item-title {
    color: var(--theme);
    font-weight: 600;
}

.curriculum-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.curriculum-item.locked .curriculum-item-title {
    color: #999;
}

.curriculum-item.locked:hover {
    background: transparent;
}

.status-locked {
    color: #dc3545;
    font-size: 14px;
}

.curriculum-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.curriculum-item-icon i {
    font-size: 16px;
    color: #666;
}

.curriculum-item.active .curriculum-item-icon i {
    color: var(--theme);
}

.curriculum-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.curriculum-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
}

.curriculum-item-duration {
    font-size: 12px;
    color: #999;
}

.curriculum-item-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-completed {
    color: #28a745;
    font-size: 18px;
}

.status-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .course-sidebar-wrapper {
        position: absolute;
        left: 0;
        top: 60px;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .course-sidebar-wrapper.open {
        transform: translateX(0);
    }

    .course-main-content-wrapper {
        width: 100%;
    }
}

/* Hide default header/footer on course access page */
.course-access-fullscreen~* {
    display: none;
}

.section-bg {
    background-image: url('../../img/home-1/hero/hero-bg.jpg');
    background-size: cover;
}

/* ============================================
   Community Q&A Styles
   ============================================ */
.tag-chip {
    transition: all 0.3s ease;
    cursor: default;
}

.tag-chip:hover {
    background: #e1edea !important;
    color: var(--theme) !important;
}

.vote-widget {
    user-select: none;
}

.vote-btn {
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover {
    background: #f8f9fa;
}

.vote-btn.active {
    background: #f1f7f6;
    color: var(--theme);
}

.vote-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.accept-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dashboard-activity-item:hover {
    background: #fcfcfc;
}

.custom-pills .nav-link {
    font-family: 'Montserrat', sans-serif;
}
