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

body { 
    font-family: 'Segoe UI', -apple-system, sans-serif;
    background: #EFF2F7;
    height: 100vh;
    color: #1E1E2F;
    overflow: hidden;
}

.lesson-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

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

.back-button {
    width: 45px;
    height: 45px;
    background: #eb1717c5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.back-button:hover {
    transform: translateX(-3px);
}

.back-button svg {
    width: 24px;
    height: 24px;
    stroke: rgb(255, 255, 255);
    color: white;
}

.lesson-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1E1E2F;
}

.lesson-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slide-counter {
    font-size: 14px;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
    color: #1E1E2F;
}

.progress-bar-container {
    width: 200px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.progress-bar-fill {
    height: 100%;
    background: #eb1717c5;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Main Content Area */
.content-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow: hidden;
    min-height: 0;
}

.slide {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: slideIn 0.5s ease;
    height: 100%;
}

.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.slide-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    color: #333;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

.slide-content::-webkit-scrollbar {
    width: 8px;
}

.slide-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.slide-content::-webkit-scrollbar-thumb {
    background: #eb1717c5;
    border-radius: 10px;
}

.slide-content::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: #4b4b4b;
    margin-bottom: 20px;
    text-align: center;
}

.slide-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.slide-icon {
    text-align: center;
    font-size: 50px;
    margin-bottom: 15px;
}

/* Info Boxes */
.info-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #fecaca;
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #4b4b4b;
    margin-bottom: 10px;
}

.info-box-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Quiz Section */
.quiz-container {
    border-radius: 0px;
    padding: 20px 100px;
    margin: 15px 0;
    border: 3px solid #5c5c5c;
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
}

.quiz-question {
    font-size: 25px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: grid;
    gap: 10px;
}

.quiz-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: #eb1717c5;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.quiz-option.selected {
    border-color: #ff0e0ec5;
    background: #fee2e2;
}

.quiz-option.correct {
    border-color: #28a745;
    background: #e8f5e9;
}

.quiz-option.incorrect {
    border-color: #ff0000c5;
    background: #f3a7a7;
}


.option-letter {
    width: 32px;
    height: 32px;
    background: #f39191c5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.option-letter.selected {
    background: #3e413f;
}

.quiz-option.correct .option-letter {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.quiz-option.incorrect .option-letter {
    background: linear-gradient(135deg, #ff0000, #ff5757);
}

.option-text {
    font-size: 15px;
    color: var(--secondary);
    font-weight: 500;
}

.quiz-feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    text-align: center;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.quiz-feedback.incorrect {
    background: linear-gradient(135deg, #f3a7a7, #f8919b);
    color: #000000;
    border: 2px solid #dc3545;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.quiz-btn {
    padding: 10px 25px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn-submit {
    color: white;
}

.quiz-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.quiz-btn-reset {
    background: #6c757d;
    color: white;
}

.quiz-btn-reset:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

/* Fill in the Blank Styles - UPDATED WITH MODERN MINIMAL DESIGN */
.instruction-box {
    background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-left: 3px solid rgba(235, 23, 23, 0.25);
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instruction-box:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-left-color: rgba(235, 23, 23, 0.4);
    transform: translateX(2px);
}

.instruction-icon {
    font-size: 1.25rem;
    color: #868e96;
    opacity: 0.9;
}

.instruction-text {
    color: #495057;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.sentence-container {
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

.sentence {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.drop-zone {
    min-width: 120px;
    height: 45px;
    border: 2px solid #eb1717c5;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    background: #fee2e2;
    border-color: #eb1717c5;
    transform: scale(1.05);
}

.drop-zone.filled {
    color: #333 !important;
    background: #fee2e2;
}

.drop-zone.correct-answer {
    background-color: #e8f5e9 !important;
    border-color: #28a745 !important;
    color: #333 !important;
}

.drop-zone.incorrect-answer {
    background-color: #ffebee !important;
    border-color: #dc3545 !important;
    color: #333 !important;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 8px 0;
}

/* UPDATED DRAGGABLE WORD - Clean, minimal with subtle sophistication */
.draggable-word {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.015em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

/* Subtle red accent dot */
.draggable-word::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 4px;
    height: 4px;
    background: rgba(235, 23, 23, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.draggable-word:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #adb5bd;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
}

.draggable-word:hover::after {
    opacity: 1;
}

.draggable-word:active {
    cursor: grabbing;
    transform: scale(0.97) translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.draggable-word.correct {
    background: linear-gradient(135deg, #008d21 0%, #01e057 100%);
    color: white;
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.draggable-word.correct::after {
    display: none;
}

.draggable-word.incorrect {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.draggable-word.incorrect::after {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-submit, .btn-reset, .quiz-btn-submit, .quiz-btn-reset {
    background: #f57b7b;
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    min-width: 130px;
}

.btn-submit:hover, .btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #b9b6b6 0%, #8d8b8b 100%);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-reset:hover {
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
}

/* Key Takeaways */
.takeaway-grid {
    display: grid;
    gap: 12px;
    margin: 15px 0;
}

.takeaway-card {
    background: #fee2e2;
    border-left: 4px solid #eb1717c5;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #fecaca;
}

.takeaway-card h3 {
    color: #4b4b4b;
    font-size: 16px;
    margin-bottom: 6px;
}

.takeaway-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Navigation Footer */
.navigation-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    flex-shrink: 0;
}

.nav-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.nav-btn-prev {
    background: #ffffff;
    border: 2px solid #eb1717c5;
    color: #eb1717c5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.nav-btn-prev:hover {
    background: #fee2e2;
    border-color: #dc2626;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.nav-btn-next {
    background: #eb1717c5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.nav-btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.nav-btn:disabled:hover {
    transform: none;
}

/* Completion Screen */
.completion-content {
    text-align: center;
    padding: 30px 40px;
}

.completion-icon {
    font-size: 70px;
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.completion-title {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
}

.completion-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.score-display {
    font-size: 40px;
    font-weight: 800;
}

.score-fraction {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.completion-btn {
    padding: 14px 40px;
    margin: 20px;
    background: #eb1717c5;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.completion-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .slide-content {
    padding: 40px 30px;
    }

    .slide-title {
    font-size: 32px;
    }

    .slide-text {
    font-size: 18px;
    }

    .lesson-header {
    flex-direction: column;
    gap: 20px;
    }

    .progress-section {
    width: 100%;
    }

    .progress-bar-container {
    flex: 1;
    }
}

/* Score Message Styling for Results Page */
.score-message {
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.score-message p {
    margin: 10px 0;
}

/* Result Actions Styling */
#retryBtn,
#certificateBtn {
    margin: 10px;
}

/* Test Score Card for Main Course Page */
.test-score-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
    text-align: center;
    display: none;
    animation: slideIn 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.test-score-card.show {
    display: block;
}

.test-score-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.test-score-icon {
    font-size: 40px;
}

.test-score-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.test-score-value {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.test-score-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-weight: 500;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 15px;
}

.certificate-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Status Badge Updates */
.status-badge.passed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

/* Make sure completion buttons are styled properly */
.completion-content .completion-btn {
    display: inline-block;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .test-score-card {
        padding: 20px;
    }
    
    .test-score-value {
        font-size: 36px;
    }
    
    .test-score-title {
        font-size: 20px;
    }
    
    .test-score-header {
        flex-direction: column;
        gap: 10px;
    }
}


