/* Guided Learning Styles */

/* ============================================================
   HERO SECTION
   ============================================================ */

.learn-hero {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.learn-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.learn-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.learn-hero p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    font-size: 100px;
    opacity: 0.9;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-yellow);
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-yellow);
}

/* ============================================================
   SUBJECT CARDS - MODERN
   ============================================================ */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.subject-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.subject-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.subject-card-bg {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.subject-card-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.subject-card-body {
    padding: 20px;
    position: relative;
}

.subject-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.subject-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.subject-stats i {
    margin-right: 4px;
    color: var(--primary-yellow);
}

.subject-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 32px;
    height: 32px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.subject-card-modern:hover .subject-card-arrow {
    transform: translateX(4px);
}

/* ============================================================
   LEARNING TIPS
   ============================================================ */

.learning-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tip-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tip-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.tip-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   SUBJECT HEADER BANNER
   ============================================================ */

.subject-header-banner {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #D97706 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.subject-header-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.subject-header-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ============================================================
   PROGRESS OVERVIEW CARD
   ============================================================ */

.progress-overview-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.progress-circle-container {
    flex-shrink: 0;
}

.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-yellow) calc(var(--progress) * 1%),
        var(--bg-light) calc(var(--progress) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 76px;
    height: 76px;
    background: var(--white);
    border-radius: 50%;
}

.progress-value {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-details {
    flex: 1;
}

.progress-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.progress-stats-row {
    display: flex;
    gap: 40px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
}

.progress-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-yellow);
}

.progress-stat .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   TOPIC CARDS - MODERN GRID
   ============================================================ */

.topic-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.topic-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-yellow);
}

.topic-card-modern.completed {
    border-color: var(--success);
}

.topic-card-modern.in-progress {
    border-color: var(--primary-yellow);
}

.topic-card-header {
    background: var(--bg-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic-number-badge {
    width: 36px;
    height: 36px;
    background: var(--primary-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.completed-check {
    color: var(--success);
    font-size: 20px;
    margin-left: auto;
}

.static-indicator {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
}

.topic-card-body {
    padding: 20px;
    flex: 1;
}

.topic-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.topic-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.topic-card-meta i {
    margin-right: 4px;
    color: var(--primary-yellow);
}

.weakness-indicator {
    margin-top: 12px;
    padding: 8px 12px;
    background: #FEF3C7;
    border-radius: 8px;
    font-size: 12px;
    color: #B45309;
}

.weakness-indicator i {
    margin-right: 6px;
}

.topic-card-footer {
    padding: 0 20px 16px;
}

.topic-progress-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.topic-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), #F59E0B);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.topic-card-modern.completed .topic-progress-fill {
    background: linear-gradient(90deg, var(--success), #059669);
}

.topic-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-yellow);
}

.topic-card-modern.completed .progress-percent {
    color: var(--success);
}

.topic-card-action {
    background: var(--bg-light);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-yellow);
    transition: background 0.2s ease;
}

.topic-card-modern:hover .topic-card-action {
    background: var(--primary-yellow);
    color: white;
}

.topic-card-modern.completed .topic-card-action {
    color: var(--success);
}

.topic-card-modern.completed:hover .topic-card-action {
    background: var(--success);
    color: white;
}

/* ============================================================
   OLD STYLES (kept for compatibility)
   ============================================================ */

.guided-learn-screen {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.guided-header {
    text-align: center;
    margin-bottom: 32px;
}

.guided-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guided-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Topic List */
.guided-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.guided-nav h2 {
    font-size: 24px;
    margin: 0;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guided-topic-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guided-topic-card:hover {
    border-color: var(--primary-yellow);
    background: var(--bg-light);
}

.guided-topic-card.completed {
    border-color: var(--success);
    background: #F0FDF4;
}

.topic-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.topic-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.topic-meta .weakness {
    color: var(--warning);
}

.progress-bar-container {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-yellow);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.topic-arrow {
    color: var(--text-secondary);
}

/* ============================================================
   OBJECTIVE LEARNING PAGE
   ============================================================ */

.objective-learning-screen {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb .clickable {
    cursor: pointer;
    color: var(--primary-blue);
}

.breadcrumb .clickable:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-tertiary);
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mini-progress {
    width: 100px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.objective-title-box {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #F59E0B 100%);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.objective-title-box h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.objective-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .learning-grid {
        grid-template-columns: 1fr;
    }
}

.explanation-column,
.question-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.explanation-card,
.question-card,
.ask-question-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-body {
    padding: 16px;
}

.explanation-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.example-box {
    margin-top: 16px;
    padding: 16px;
    background: #EFF6FF;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-blue);
}

.example-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.example-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.jamb-tip-box {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, var(--success) 0%, #10B981 100%);
    border-radius: var(--radius-sm);
    color: white;
}

.jamb-tip-box h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.jamb-tip-box p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.diagram-placeholder {
    margin-top: 16px;
    padding: 24px;
    background: #F3F4F6;
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-secondary);
}

.diagram-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Ask Question */
.ask-input-group {
    display: flex;
    gap: 8px;
}

.ask-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.ask-input-group button {
    padding: 12px 16px;
}

#qa-response-area {
    margin-top: 16px;
}

.qa-loading {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
}

.qa-exchange {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qa-question {
    padding: 12px 16px;
    background: var(--bg-light);
    font-size: 14px;
    display: flex;
    gap: 8px;
}

.qa-answer {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 8px;
}

.cached-badge {
    font-size: 10px;
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-tertiary);
}

/* Question Area */
.question-badge {
    font-size: 12px;
    background: var(--primary-yellow);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.objective-question {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.passage-box {
    padding: 16px;
    background: #FFFBEB;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--warning);
}

.passage-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 8px;
}

.passage-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.question-image {
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
}

.question-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #E5E7EB;
}

.option-item.selected {
    border-color: var(--primary-blue);
    background: #EFF6FF;
}

.option-item.correct {
    border-color: var(--success);
    background: #DCFCE7;
}

.option-item.incorrect {
    border-color: var(--error);
    background: #FEE2E2;
}

.option-key {
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.option-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.answer-feedback {
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
}

.answer-feedback.hidden {
    display: none;
}

.answer-feedback.correct {
    background: #DCFCE7;
    border: 1px solid var(--success);
    color: #166534;
}

.answer-feedback.incorrect {
    background: #FEE2E2;
    border: 1px solid var(--error);
    color: #991B1B;
}

.answer-feedback strong {
    display: block;
    margin-bottom: 8px;
}

.answer-feedback i {
    margin-right: 8px;
}

.no-question {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-question i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 16px;
}

/* Navigation */
.objective-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   COMPLETION SCREENS
   ============================================================ */

.subtopic-complete-screen,
.topic-complete-screen {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.complete-animation {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 24px;
    animation: bounce 0.5s ease;
}

.complete-animation.big {
    font-size: 100px;
    color: var(--primary-yellow);
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.completed-name,
.completed-topic-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 32px;
}

.next-preview {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.next-preview h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.next-subtopic-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.weakness-summary {
    background: #FEF3C7;
    border: 1px solid var(--warning);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.weakness-summary h3 {
    color: #92400E;
    margin-bottom: 8px;
}

.perfect-score {
    background: #DCFCE7;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    color: #166534;
}

.perfect-score i {
    font-size: 32px;
    color: var(--success);
}

.complete-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

/* ============================================================
   TOPIC OVERVIEW
   ============================================================ */

.topic-overview-screen {
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.overview-header h2 {
    margin: 0;
}

.subtopics-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subtopic-overview-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.subtopic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.subtopic-header h3 {
    font-size: 16px;
    margin: 0;
}

.completed-badge {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
}

.objectives-list {
    padding: 8px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.objective-item:hover {
    background: var(--bg-light);
}

.objective-item.completed .status-icon {
    color: var(--success);
}

.objective-item.in_progress .status-icon {
    color: var(--primary-blue);
}

.objective-item.not_started .status-icon {
    color: var(--text-tertiary);
}

.status-icon {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.objective-item .objective-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.weakness-icon {
    color: var(--warning);
    font-size: 14px;
}

/* ============================================================
   PRACTICE QUIZ SECTION (Topic Complete) - Enhanced Design
   ============================================================ */

.practice-quiz-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.practice-quiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
}

.quiz-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.quiz-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a8754 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.quiz-icon-wrapper i {
    font-size: 28px;
    color: white;
}

.quiz-section-info h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0 0 6px 0;
}

.quiz-section-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
}

.quiz-section-info strong {
    color: var(--primary-green);
}

.quiz-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.quiz-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.quiz-card.quick {
    border-color: #17a2b8;
}

.quiz-card.quick:hover {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e3fafc 0%, #fff 100%);
}

.quiz-card.quick .quiz-card-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.quiz-card.standard {
    border-color: var(--primary-yellow);
}

.quiz-card.standard:hover {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.quiz-card.standard .quiz-card-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.quiz-card.full {
    border-color: var(--primary-green);
}

.quiz-card.full:hover {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
}

.quiz-card.full .quiz-card-icon {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a8754 100%);
}

.quiz-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #e0a800 100%);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.quiz-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quiz-card-icon i {
    font-size: 22px;
    color: white;
}

.quiz-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-card-count {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.quiz-card-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-card-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.quiz-card-time {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quiz-card-time i {
    font-size: 11px;
}

/* Custom Quiz Section */
.custom-quiz-section {
    margin-top: 8px;
}

.custom-quiz-divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.custom-quiz-divider::before,
.custom-quiz-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.custom-quiz-divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.custom-quiz-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.custom-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-input-group label {
    color: var(--text-secondary);
    font-size: 14px;
}

.custom-input-group input[type="number"] {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease;
}

.custom-input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-custom-start {
    padding: 10px 24px;
    font-weight: 600;
}

.btn-custom-start i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quiz-card {
        flex-direction: row;
        padding: 16px 20px;
        gap: 16px;
    }
    
    .quiz-card-content {
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }
    
    .quiz-card-count {
        font-size: 28px;
    }
    
    .quiz-card-badge {
        top: 50%;
        left: auto;
        right: -10px;
        transform: translateY(-50%) rotate(0deg);
    }
    
    .quiz-section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .custom-quiz-controls {
        flex-direction: column;
    }
}

/* ============================================================
   TOPIC QUIZ SCREEN
   ============================================================ */

.topic-quiz-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.quiz-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.quiz-title {
    text-align: center;
}

.quiz-title h2 {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
}

.quiz-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.quiz-progress-info {
    font-weight: 600;
    color: var(--primary-green);
}

.quiz-progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quiz-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.quiz-question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.question-year {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.question-number {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.question-image {
    margin-bottom: 24px;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: var(--primary-yellow);
    background: white;
}

.quiz-option .option-key {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.quiz-option .option-text {
    flex: 1;
    line-height: 1.5;
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.1);
}

.quiz-option.correct .option-key {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.quiz-option.incorrect {
    border-color: var(--error);
    background: rgba(231, 76, 60, 0.1);
}

.quiz-option.incorrect .option-key {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.quiz-feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    animation: slideIn 0.3s ease;
}

.feedback-correct {
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.feedback-incorrect {
    color: var(--error);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.feedback-explanation {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.quiz-dots {
    display: flex;
    gap: 8px;
}

.quiz-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-dot.current {
    background: var(--primary-yellow);
    transform: scale(1.2);
}

.quiz-dot.answered {
    background: var(--primary-green);
}

/* ============================================================
   QUIZ RESULT SCREEN
   ============================================================ */

.quiz-result-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.result-header {
    margin-bottom: 24px;
}

.result-header h1 {
    font-size: 28px;
    margin: 16px 0 8px;
}

.result-header h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.result-header .subject-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-score {
    margin: 32px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 6px solid;
}

.score-circle.gold {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.score-circle.silver {
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.1);
}

.score-circle.bronze {
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.1);
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.stat-item.correct i { color: var(--success); }
.stat-item.incorrect i { color: var(--error); }
.stat-item.unanswered i { color: var(--text-secondary); }
.stat-item.time i { color: var(--primary-green); }

.stat-item .stat-value {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.result-message {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.result-message i {
    margin-right: 8px;
    color: var(--primary-yellow);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* ============================================================
   QUIZ REVIEW SCREEN
   ============================================================ */

.quiz-review-screen {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.review-header h2 {
    flex: 1;
    font-size: 20px;
}

.review-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 4px solid var(--border-color);
}

.review-question-card.correct {
    border-left-color: var(--success);
}

.review-question-card.incorrect {
    border-left-color: var(--error);
}

.review-question-card.skipped {
    border-left-color: var(--text-secondary);
}

.review-question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.question-num {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.status-badge.correct {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.status-badge.incorrect {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
}

.status-badge.skipped {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.review-question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.review-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.review-option .opt-key {
    font-weight: 600;
    width: 24px;
}

.review-option .opt-text {
    flex: 1;
}

.review-option.correct-answer {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success);
}

.review-option.correct-answer i {
    color: var(--success);
}

.review-option.wrong-answer {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
}

.review-option.wrong-answer i {
    color: var(--error);
}

.review-explanation {
    background: #f8f9fa;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   GAMIFICATION POINTS STYLES
   ============================================================ */

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    animation: pointsPopIn 0.3s ease-out;
}

@keyframes pointsPopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.points-earned-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0;
    animation: pointsSlideIn 0.5s ease-out;
}

.points-earned-banner i {
    color: #fff;
    font-size: 24px;
}

@keyframes pointsSlideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.points-earned-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-radius: var(--radius-lg);
    border: 2px solid #ffd700;
}

.big-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulseGlow 2s infinite;
}

.big-points-badge i {
    font-size: 28px;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7);
    }
}

.total-points-display {
    margin-top: 12px;
    font-size: 16px;
    color: var(--text-secondary);
}

.total-points-display strong {
    color: var(--primary-yellow-dark);
    font-size: 20px;
}

/* Level Badge */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.level-badge.beginner {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.level-badge.learner {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.level-badge.student {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.level-badge.scholar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.level-badge.expert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.level-badge.master {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.level-badge.genius {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.level-badge.legend {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .quiz-nav {
        flex-wrap: wrap;
    }
    
    .quiz-title {
        order: -1;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .quiz-question-card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quiz-option-card {
        padding: 16px 24px;
    }
    
    .quiz-option-card .quiz-count {
        font-size: 24px;
    }
    
    .big-points-badge {
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* ============================================================
   STATIC LEARNING CONTENT PAGES - MODERN DESIGN
   ============================================================ */

.static-learn-screen {
    padding: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Topic Intro Card - Beautiful Entry Point */
.topic-intro-card {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.topic-intro-card .intro-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-yellow), #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.topic-intro-card .intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.topic-intro-card .intro-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.jamb-info-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 32px;
}

.jamb-info-box i {
    color: #B45309;
    font-size: 20px;
    flex-shrink: 0;
}

.jamb-info-box span {
    font-size: 14px;
    color: #92400E;
    line-height: 1.5;
}

.start-btn {
    padding: 16px 48px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* Objective Header - Progress & Breadcrumb */
.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb .clickable {
    color: var(--primary-yellow);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb .clickable:hover {
    color: #D97706;
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb i {
    color: var(--text-tertiary);
    font-size: 10px;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-bar-mini {
    width: 120px;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), #F59E0B);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Objective Banner - Title Card */
.objective-banner {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #D97706 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.objective-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.objective-banner .objective-label {
    background: rgba(255,255,255,0.25);
    color: white;
    position: relative;
    z-index: 2;
}

.objective-banner h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.objective-banner p.objective-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin: 8px 0 0;
    position: relative;
    z-index: 2;
}

/* Learning Content Grid */
.learning-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .learning-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Cards - Modern Style */
.content-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.content-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.content-card .card-header {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card .card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card .card-header h3 i {
    color: var(--primary-yellow);
    font-size: 18px;
}

.content-card .card-header .badge {
    background: linear-gradient(135deg, var(--primary-yellow), #F59E0B);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-card .card-body {
    padding: 24px;
}

/* Explanation Text Styling */
.explanation-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.explanation-text p {
    margin: 0 0 16px 0;
}

.explanation-text p:last-child {
    margin-bottom: 0;
}

.explanation-text strong {
    color: var(--primary-yellow-dark);
}

.explanation-text ul, .explanation-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.explanation-text li {
    margin-bottom: 8px;
}

/* Worked Example Card */
.content-card.worked-example .card-header {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.content-card.worked-example .card-header h3 i {
    color: var(--success);
}

.problem-box {
    background: #F8FAFC;
    border-left: 4px solid var(--primary-yellow);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.problem-box strong {
    color: var(--primary-yellow-dark);
}

.solution-box {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    line-height: 1.7;
}

.solution-box strong {
    color: #166534;
    display: block;
    margin-bottom: 8px;
}

.solution-box p {
    margin: 0;
    color: #166534;
}

/* Question Card */
.content-card.question-card .card-header {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

.content-card.question-card .card-header h3 i {
    color: #6366F1;
}

.static-question .question-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #FEF3C7;
    border-color: var(--primary-yellow);
    transform: translateX(4px);
}

.option-item .option-key {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-item:hover .option-key {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: white;
}

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

.option-item i {
    font-size: 18px;
    margin-left: auto;
}

.option-item.correct {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-color: var(--success);
}

.option-item.correct .option-key {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.option-item.correct i {
    color: var(--success);
}

.option-item.incorrect {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: #EF4444;
}

.option-item.incorrect .option-key {
    background: #EF4444;
    border-color: #EF4444;
    color: white;
}

.option-item.incorrect i {
    color: #EF4444;
}

/* Feedback Box */
.feedback-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.feedback-box.hidden {
    display: none;
}

.feedback-box.correct {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 1px solid #6EE7B7;
}

.feedback-box.incorrect {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid #FECACA;
}

.feedback-box .feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feedback-box.correct .feedback-header {
    color: #166534;
}

.feedback-box.incorrect .feedback-header {
    color: #991B1B;
}

.feedback-box .feedback-header i {
    font-size: 20px;
}

.feedback-box .feedback-header strong {
    font-size: 16px;
}

.feedback-box p {
    margin: 0;
    color: var(--text-primary);
}

/* Ask Card */
.content-card.ask-card {
    margin-top: 16px;
}

.content-card.ask-card .card-header {
    background: linear-gradient(135deg, #FDF4FF, #FAE8FF);
}

.content-card.ask-card .card-header h3 i {
    color: #A855F7;
}

.ask-input-wrapper {
    display: flex;
    gap: 12px;
}

.ask-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.ask-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.ask-input-wrapper button {
    padding: 14px 20px;
    border-radius: 12px;
}

#static-ask-response {
    margin-top: 16px;
}

/* Learning Navigation */
.learning-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.learning-navigation .btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learning-navigation .btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), #D97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.learning-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.learning-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Visual Cards */
.visual-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.icon-grid-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.icon-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.icon-item:hover {
    transform: translateY(-4px);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-yellow), #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.icon-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.icon-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.formula-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.formula-item {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.formula-item .formula {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-yellow-dark);
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 8px;
}

.formula-item .formula-use {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Subtopic Complete Card */
.subtopic-complete-card {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.subtopic-complete-card .complete-icon {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.subtopic-complete-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.subtopic-complete-card .completed-name {
    font-size: 20px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 32px;
}

.subtopic-complete-card .next-preview {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.subtopic-complete-card .next-preview h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtopic-complete-card .next-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive for Content Pages */
@media (max-width: 768px) {
    .static-learn-screen {
        padding: 16px;
    }
    
    .objective-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .objective-banner h2 {
        font-size: 18px;
    }
    
    .learning-content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card .card-body {
        padding: 16px;
    }
    
    .topic-intro-card {
        padding: 40px 24px;
    }
    
    .topic-intro-card .intro-title {
        font-size: 24px;
    }
    
    .learning-navigation {
        flex-direction: column;
    }
    
    .learning-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}


/* ============================================================
   ENHANCED OBJECTIVE LEARNING STYLES
   ============================================================ */

.objective-learning-screen.enhanced {
    padding: 0 16px 24px;
    max-width: 820px;
    margin: 0 auto;
}

.objective-learning-screen.enhanced .objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.objective-learning-screen.enhanced .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.objective-learning-screen.enhanced .breadcrumb .clickable {
    cursor: pointer;
    color: var(--primary-blue, #3b82f6);
    transition: color 0.2s;
}

.objective-learning-screen.enhanced .breadcrumb .clickable:hover {
    color: var(--primary-blue-dark, #1d4ed8);
    text-decoration: underline;
}

.objective-learning-screen.enhanced .breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
}

.objective-learning-screen.enhanced .breadcrumb i {
    font-size: 10px;
    color: #cbd5e1;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.progress-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.mini-progress {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue, #3b82f6), var(--primary-blue-dark, #1d4ed8));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Objective Title Box */
.objective-title-box {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #dbeafe;
}

.objective-title-left .objective-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue, #3b82f6);
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.objective-title-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

/* Learning Content Flow */
.learning-content-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.content-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Section Header Bar */
.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header-bar:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 16px;
    color: var(--primary-blue, #3b82f6);
}

.section-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-toggle {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s;
}

/* Section Content */
.section-content {
    padding: 16px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 5000px;
    opacity: 1;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    overflow: hidden;
}

/* Re-explain Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-blue, #3b82f6);
    background: #dbeafe;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-icon:hover {
    background: #bfdbfe;
    color: var(--primary-blue-dark, #1d4ed8);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Rich Explanation Body */
.rich-explanation-body {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.rich-explanation-body h1,
.rich-explanation-body h2,
.rich-explanation-body h3,
.rich-explanation-body h4 {
    color: #1e293b;
    margin: 16px 0 8px;
}

.rich-explanation-body h3 {
    font-size: 16px;
}

.rich-explanation-body p {
    margin: 0 0 12px;
}

.rich-explanation-body ul,
.rich-explanation-body ol {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.rich-explanation-body li {
    margin-bottom: 4px;
}

.rich-explanation-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Fira Code', monospace;
}

.rich-explanation-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
}

.rich-explanation-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.rich-explanation-body strong {
    color: #1e293b;
}

/* Diagram Container */
.diagram-container {
    margin: 16px 0;
    text-align: center;
}

.diagram-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
}

.diagram-wrapper svg {
    max-width: 100%;
    height: auto;
}

.diagram-caption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

.diagram-caption i {
    margin-right: 4px;
    color: #94a3b8;
}

/* Key Points Box */
.key-points-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid var(--primary-blue, #3b82f6);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.key-points-box h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-points-box h4 i {
    color: #3b82f6;
}

.key-points-box ul {
    margin: 0;
    padding-left: 18px;
}

.key-points-box li {
    font-size: 14px;
    line-height: 1.6;
    color: #1e3a5f;
    margin-bottom: 4px;
}

/* Worked Example Box */
.worked-example-box {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-left: 4px solid #eab308;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.worked-example-box h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #854d0e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.worked-example-box h4 i {
    color: #ca8a04;
}

.example-problem,
.example-solution {
    font-size: 14px;
    line-height: 1.7;
    color: #422006;
    margin-bottom: 10px;
}

.example-solution {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Common Mistakes Box */
.common-mistakes-box {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-left: 4px solid #ef4444;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.common-mistakes-box h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-mistakes-box h4 i {
    color: #ef4444;
}

.common-mistakes-box ul {
    margin: 0;
    padding-left: 18px;
}

.common-mistakes-box li {
    font-size: 14px;
    line-height: 1.6;
    color: #7f1d1d;
    margin-bottom: 4px;
}

/* JAMB Tip Box */
.jamb-tip-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left: 4px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.jamb-tip-box h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jamb-tip-box h4 i {
    color: #22c55e;
}

.jamb-tip-box p {
    margin: 0;
    font-size: 14px;
    color: #14532d;
    line-height: 1.6;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-left: 4px solid #8b5cf6;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.summary-box h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5b21b6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-box h4 i {
    color: #8b5cf6;
}

.summary-box p {
    margin: 0;
    font-size: 14px;
    color: #3b0764;
    line-height: 1.6;
}

/* Ask Section */
.ask-section {
    border: 1px solid #e2e8f0;
}

.ask-section .section-header-bar {
    display: none;
}

.ask-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.ask-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue, #3b82f6);
    font-size: 16px;
}

.ask-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.ask-input-row input:focus {
    border-color: var(--primary-blue, #3b82f6);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-ask {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* QA Response */
.qa-exchange {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
}

.qa-question {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #334155;
}

.qa-question i {
    color: #64748b;
    margin-top: 2px;
}

.qa-answer {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.7;
}

.qa-answer i {
    color: var(--primary-blue, #3b82f6);
    margin-top: 2px;
}

.cached-badge {
    font-size: 10px;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
}

.qa-loading {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.qa-error {
    padding: 12px 16px;
    color: #ef4444;
    font-size: 14px;
}

/* Question Section */
.question-section .section-header-bar {
    cursor: default;
}

.question-section .section-header-bar:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.question-badge {
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Objective Navigation */
.objective-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.objective-navigation .btn {
    flex-shrink: 0;
}

.objective-navigation .btn-outline {
    font-size: 13px;
}


/* ============================================================
   SUBTOPIC QUIZ PROMPT
   ============================================================ */

.subtopic-quiz-prompt {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
}

.subtopic-quiz-prompt h3 {
    color: #1e40af;
    margin: 0 0 8px;
    font-size: 18px;
}

.subtopic-quiz-prompt h3 i {
    color: #3b82f6;
    margin-right: 6px;
}

.subtopic-quiz-prompt p {
    color: #475569;
    margin: 0 0 16px;
    font-size: 14px;
}

.skip-quiz {
    text-align: center;
    padding: 12px 0;
}

.skip-quiz .btn {
    font-size: 13px;
    color: #64748b;
}


/* ============================================================
   SUBTOPIC QUIZ SCREEN
   ============================================================ */

.subtopic-quiz-screen {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.quiz-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-title i {
    font-size: 24px;
    color: var(--primary-blue, #3b82f6);
}

.quiz-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.quiz-progress {
    text-align: right;
}

.quiz-progress #quiz-counter {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Quiz Body */
.quiz-question-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.3s ease;
}

.quiz-objective-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.quiz-question-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #1e293b;
    margin: 0 0 20px;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--primary-blue, #3b82f6);
    background: #eff6ff;
    transform: translateX(4px);
}

.quiz-option .option-key {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quiz-option .option-text {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    padding-top: 4px;
}

.quiz-option.correct {
    border-color: #22c55e;
    background: #f0fdf4;
}

.quiz-option.correct .option-key {
    background: #22c55e;
    color: #fff;
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.quiz-option.incorrect .option-key {
    background: #ef4444;
    color: #fff;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-option.disabled.correct,
.quiz-option.disabled.incorrect {
    opacity: 1;
}

/* Quiz Feedback */
.quiz-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    animation: fadeInUp 0.3s ease;
}

.quiz-feedback.hidden {
    display: none;
}

.quiz-feedback.correct {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.quiz-feedback.correct .feedback-icon {
    color: #22c55e;
    font-size: 20px;
}

.quiz-feedback.incorrect {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.quiz-feedback.incorrect .feedback-icon {
    color: #ef4444;
    font-size: 20px;
}

.feedback-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.feedback-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

/* Quiz Footer */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}


/* ============================================================
   QUIZ RESULTS
   ============================================================ */

.quiz-results {
    text-align: center;
    padding: 24px 16px;
    animation: fadeInUp 0.4s ease;
}

.result-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.result-icon.excellent { color: #f59e0b; }
.result-icon.good { color: #22c55e; }
.result-icon.fair { color: #f97316; }
.result-icon.poor { color: #ef4444; }

.quiz-results h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.result-score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 30px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.result-score.excellent { background: #fffbeb; }
.result-score.good { background: #f0fdf4; }
.result-score.fair { background: #fff7ed; }
.result-score.poor { background: #fef2f2; }

.score-number {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
}

.score-divider {
    font-size: 32px;
    color: #94a3b8;
    margin: 0 2px;
}

.score-total {
    font-size: 24px;
    font-weight: 600;
    color: #94a3b8;
}

.score-percentage {
    font-size: 16px;
    color: #64748b;
    margin: 4px 0 8px;
}

.result-subtopic {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px;
}

/* Question Review Dots */
.quiz-question-review {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.review-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    position: relative;
}

.review-item.correct {
    background: #dcfce7;
    color: #166534;
}

.review-item.incorrect {
    background: #fecaca;
    color: #991b1b;
}

.review-item .review-num {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #94a3b8;
}

.review-item i {
    font-size: 14px;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

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


/* ============================================================
   MOBILE RESPONSIVE - Enhanced Learning
   ============================================================ */

@media (max-width: 768px) {
    .objective-learning-screen.enhanced {
        padding: 0 8px 16px;
    }
    
    .objective-learning-screen.enhanced .objective-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .objective-title-left h2 {
        font-size: 16px;
    }
    
    .section-header-bar {
        padding: 10px 12px;
    }
    
    .section-content {
        padding: 12px;
    }
    
    .btn-icon {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .ask-input-row {
        padding: 10px 12px;
    }
    
    .ask-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .objective-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .objective-navigation .btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Quiz mobile */
    .subtopic-quiz-screen {
        padding: 8px;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-question-card {
        padding: 16px;
    }
    
    .quiz-question-text {
        font-size: 15px;
    }
    
    .quiz-option {
        padding: 12px;
    }
    
    .quiz-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .score-number {
        font-size: 36px;
    }
    
    .score-total {
        font-size: 20px;
    }
}

/* ============================================================
   SEQUENTIAL LEARN → PRACTICE FLOW
   ============================================================ */

/* Step Indicator */
.learn-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 24px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    min-width: 80px;
}

.step-item.completed {
    cursor: pointer;
}

.step-item span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.step-item.active span {
    color: var(--primary-yellow-dark);
}

.step-item.completed span {
    color: #10B981;
}

.step-item.inactive span {
    color: var(--text-secondary);
    opacity: 0.4;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-circle.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-color: #F59E0B;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.step-circle.completed {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-item.inactive .step-circle {
    opacity: 0.35;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 8px;
    margin-bottom: 20px; /* align with circle center offset */
    border-radius: 2px;
    min-width: 48px;
    max-width: 120px;
    transition: background 0.3s ease;
}

.step-connector.active {
    background: linear-gradient(90deg, #10B981, #F59E0B);
}

.step-connector.inactive {
    opacity: 0.25;
}

/* Objective Label (replaces "Objective: " prefix in title) */
.objective-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.08));
    color: #B45309;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Full-Width Explanation Container */
.explanation-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.explanation-full .content-card {
    width: 100%;
}

/* Full-Width Practice Container */
.practice-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.practice-full .content-card,
.practice-full .content-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* Question Card (full-width variant) */
.question-card-full {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.question-section-full {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

/* Practice Page Banner */
.objective-banner.practice-banner,
.objective-title-box.practice-banner {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
}

.objective-banner.practice-banner h2,
.objective-title-box.practice-banner h2 {
    color: #1E40AF;
}

.objective-banner.practice-banner .objective-label {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(29,78,216,0.08));
    color: #1D4ED8;
}

.objective-title-box.practice-banner .objective-badge {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(29,78,216,0.08));
    color: #1D4ED8;
    border: 1px solid rgba(59,130,246,0.2);
}

/* Practice CTA Button */
.btn-practice-cta {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
    border-color: #3B82F6 !important;
    min-width: 140px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    transition: all 0.2s ease !important;
}

.btn-practice-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
}

/* Step Navigation (overrides for step pages) */
.step-navigation {
    justify-content: space-between;
}

.learning-navigation.step-navigation,
.objective-navigation.step-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
}

/* Practice Badge */
.practice-badge {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(29,78,216,0.1)) !important;
    color: #1D4ED8 !important;
    border: 1px solid rgba(59,130,246,0.25) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .learn-step-indicator {
        padding: 12px 16px;
    }

    .step-item {
        min-width: 60px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-connector {
        min-width: 28px;
    }

    .practice-full .content-card,
    .practice-full .content-section,
    .question-card-full,
    .question-section-full {
        max-width: 100%;
    }
}