/**
 * WoW Results Page - Career Guidance Results Display
 * Fixed left sidebar + Scrollable right content
 * Matches manage_wow_quiz.css and manage_wow_interests.css styling
 * 
 * @package    local_wow
 * @copyright  2024 Skills Passport SA
 */

/* =====================================================
   SECTION 1: RESET & BASE STYLES
   ===================================================== */

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

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding-bottom: 0 !important;
}

/* Block Jinno Extension Injection */
div[class*="controlbar_dragArea"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

body {
    background: linear-gradient(135deg, #EFF6FF 0%, #E0E7FF 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1F2937;
    line-height: 1.5;
    /* Flexbox Sticky Footer Fix */
    display: flex;
    flex-direction: column;
}

/* GLOBAL MODAL SCROLL LOCK: When any modal is open, disable page scrolling behind it.
   Target BOTH html and body because Moodle may scroll on either element. */
html.wow-modal-open,
body.wow-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* GLOBAL MODAL Z-INDEX: Ensure ALL modal overlays render above the page header */
.area-explore-modal-overlay,
.field-explore-modal-overlay,
.modal-overlay,
.save-success-modal,
.subject-info-modal-overlay,
.subject-removal-modal-overlay,
.wizard-modal-overlay,
.reset-modal-overlay,
.electives-warning-modal-overlay,
.video-modal-overlay {
    z-index: 200000 !important;
}

/* Ensure main content expands to fill space, pushing footer down */
.sp-app-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

/* Prevent Moodle theme overflow from killing position:sticky on sidebar */
.sp-main-wrapper {
    overflow: visible !important;
}


/* =====================================================
   SECTION 2: MAIN LAYOUT
   ===================================================== */

.review-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* LEFT SIDEBAR - FREESTANDING UNIT */
.review-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    color: #1F2937;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin: 16px;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
}

.sidebar-profile {
    text-align: center;
}

.profile-picture-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initials {
    font-size: 28px;
    font-weight: 700;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.school-section {
    background: #F3F4F6;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #E5E7EB;
}

.school-logo-container {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.school-icon {
    font-size: 24px;
}

.school-name {
    font-size: 13px;
    font-weight: 600;
}

.product-section {
    background: #F3F4F6;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #E5E7EB;
}

.product-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
}

.completion-date {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
    font-size: 11px;
    color: #6B7280;
}

.completion-date strong {
    display: block;
    font-size: 13px;
    color: #1F2937;
    margin-top: 2px;
}

/* RIGHT CONTENT */
.review-content {
    flex: 1;
    padding: 16px;
    /* Ensuring parent containers don't block sticky */
    overflow: visible !important;
}

.review-content-inner {
    max-width: 1400px;
    margin: 0;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .review-layout {
        flex-direction: row;
        min-height: auto;
        max-width: 1700px;
        margin: 0 auto;
    }

    .review-sidebar {
        width: 280px;
        flex-shrink: 0;
        padding: 32px 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        /* EXTEND TO VIEWPORT HEIGHT */
        height: calc(100vh - 100px) !important;
        min-height: 600px;

        /* STICKY BEHAVIOR BELOW HEADER */
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start;

        /* SCROLLABLE INTERNAL CONTENT */
        overflow-y: auto;

        /* SPACING & ROUNDED LOOK */
        margin: 20px 0 0 20px;
        border-radius: 1.5rem 1.5rem 0 0 !important;

        /* STYLING - PREMIUM LOOK */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    }

    .profile-picture-container {
        width: 80px;
        /* SHORTER */
        height: 80px;
    }

    .profile-name {
        font-size: 18px;
        /* SLIGHTLY SMALLER */
        margin-bottom: 12px;
    }

    .review-content {
        flex: 1;
        padding: 16px 24px 24px 16px;
        min-height: auto;
    }
}

/* =====================================================
   SECTION 2.2: PROFESSIONAL NAVIGATION BAR (Matching Subjects)
   ===================================================== */
.info-header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: auto;
    padding: 8px 24px 0 24px;
    /* Added side padding for full width */
    background: transparent;
    border-radius: 0;
    margin-bottom: 12px;
}

.navbar-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.navbar-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111827;
    display: flex;
    align-items: center;
}

.navbar-icon {
    font-size: 26px;
    line-height: 1;
    color: #b91c1c !important;
    margin-right: 12px;
}

.navbar-step {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
}

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

.navbar-btn-help {
    padding: 8px 16px;
    height: 38px;
    background: white;
    border: 1px solid #3B82F6;
    border-radius: 6px;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-btn-help:hover {
    background: #EFF6FF;
}

/* =====================================================
   SECTION 3: SECTION HEADERS
   ===================================================== */

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

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.section-icon-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

.section-icon-teal {
    background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
}

.section-icon-amber {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.section-icon-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.section-icon-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
}

.section-subtitle {
    font-size: 12px;
    color: #6B7280;
}

.results-row {
    margin-bottom: 24px;
}

/* =====================================================
   SECTION 4: QUIZ CARDS - EXACT MATCH FROM QUIZ.CSS
   ===================================================== */

.quiz-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 6px;
}

@media (min-width: 768px) {
    .quiz-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 10px;
    }
}

@media (min-width: 1024px) {
    .quiz-cards-grid {
        gap: 20px 12px;
    }
}

.quiz-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.quiz-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.quiz-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.quiz-card-image-placeholder.verbal {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.quiz-card-image-placeholder.numerical {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.quiz-card-image-placeholder.nonverbal {
    background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
}

.quiz-card-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.quiz-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .quiz-card-content {
        padding: 14px;
    }
}

.quiz-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .quiz-card-title {
        font-size: 16px;
    }
}

.quiz-card-description {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 10px;
    flex: 1;
    line-height: 1.4;
}

/* Quiz time indicator */
.quiz-card-time {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quiz Result Blocks - Exact from quiz.css */
.quiz-card-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
}

.quiz-card-result .result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.quiz-card-result .result-text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.quiz-card-result.below-average {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border: 2px solid #EF4444;
}

.quiz-card-result.below-average .result-text {
    color: #991B1B;
}

.quiz-card-result.low-average {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
}

.quiz-card-result.low-average .result-text {
    color: #92400E;
}

.quiz-card-result.average {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border: 2px solid #3B82F6;
}

.quiz-card-result.average .result-text {
    color: #1E40AF;
}

.quiz-card-result.above-average {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 2px solid #10B981;
}

.quiz-card-result.above-average .result-text {
    color: #065F46;
}

.quiz-card-result.superior {
    background: linear-gradient(135deg, #D1FAE5 0%, #6EE7B7 100%);
    border: 2px solid #059669;
}

.quiz-card-result.superior .result-text {
    color: #047857;
}

/* =====================================================
   SECTION 5: PATHWAY/FIELD CARDS - EXACT FROM INTERESTS.CSS
   ===================================================== */

.pathway-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 768px) {
    .pathway-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        align-items: start;
    }
}

.pathway-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    /* Default to auto for mobile */
    min-height: 400px;
    /* Base minimum height */
}

@media (min-width: 768px) {
    .pathway-card {
        height: 480px;
        /* Fixed height for desktop grid uniformity */
    }
}

.pathway-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pathway-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.pathway-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.pathway-card-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22C55E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pathway-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pathway-card-content {
        padding: 14px;
    }
}

.pathway-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pathway-card-title {
        font-size: 16px;
    }
}

.pathway-card-description-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pathway-card-description {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.field-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.field-video-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.field-video-btn-icon {
    font-size: 10px;
}

/* OLD Subject Requirements Section - REMOVED, see new styles at end of file */

/* Field subjects section in card */
.subject-career-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Compact Subject Group Card */
.subject-group-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 12px;
    border-left: 4px solid #0369A1;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subject-group-card:hover {
    background: #F3F4F6;
}

.subject-group-card.maths-required {
    border-left-color: #0369A1;
}

.subject-group-card.maths-lit-ok {
    border-left-color: #059669;
}

/* Tags Container - fixed min-height for alignment */
.subject-scroll-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    min-height: 70px;
    align-content: flex-start;
}

.subject-scroll-container::-webkit-scrollbar {
    display: none;
}

.subject-tag {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.subject-tag.req {
    background: #0369A1;
    color: white;
}

.subject-tag.rec {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

/* Footer with careers preview and button */
.subject-group-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.careers-preview {
    font-size: 12px;
    color: #6B7280;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-group-btn {
    padding: 8px 14px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.subject-group-card.maths-lit-ok .subject-group-btn {
    background: #10B981;
}

.subject-group-btn:hover {
    background: #1F2937;
    transform: translateY(-1px);
}

.btn-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.info-tip {
    margin-top: 16px;
    padding: 12px 14px;
    background: #FEF3C7;
    border-radius: 10px;
    font-size: 12px;
    color: #92400E;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.info-tip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.no-careers-message {
    padding: 20px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    background: #F9FAFB;
    border-radius: 10px;
    margin-top: 12px;
}

/* Card actions - Button at bottom of card, full width, flush */
.pathway-card-actions {
    margin-top: auto;
}

/* Explore button - MATCHES INTERESTS.CSS exactly */
/* Full width, teal, bottom of card, rounded bottom corners only */
.pathway-card-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    background: #0D9488;
    color: white;
}

.pathway-card-btn:hover {
    background: #0F766E;
}

.pathway-card-btn.explore {
    background: #0D9488;
    color: white;
}

.pathway-card-btn.explore:hover {
    background: #0F766E;
}

.pathway-card-btn.disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Legacy btn-explore for backwards compatibility */
.btn-explore {
    width: 100%;
    padding: 14px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    background: #0D9488;
    color: white;
}

.btn-explore:hover {
    background: #0F766E;
}

/* =====================================================
   SECTION 6: SUBJECTS ROW
   ===================================================== */

.subject-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 6px;
}

@media (min-width: 768px) {
    .subject-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 10px;
    }
}

@media (min-width: 1024px) {
    .subject-cards-grid {
        gap: 20px 12px;
    }

    /* Grade 9 Learner: 3 equal columns */
    .subject-cards-grid.grade9-learner-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Grade 9 Teacher: 2 equal columns */
    .subject-cards-grid.grade9-teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Grade 11: 2 equal columns */
    .subject-cards-grid.grade11-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.subject-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #E5E7EB;
}

.subject-card-header {
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-card-header-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

.subject-card-header-teal {
    background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
}

.subject-card-header-amber {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.subject-card-header-icon {
    font-size: 20px;
}

.subject-card-header-title {
    font-size: 14px;
    font-weight: 600;
}

.subject-card-body {
    padding: 14px 16px;
}

/* Conflict Banner */
.conflict-banner {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.conflict-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.conflict-banner-content {
    flex: 1;
}

.conflict-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 2px;
}

.conflict-banner-text {
    font-size: 11px;
    color: #B45309;
    line-height: 1.4;
}

/* Subject Groups */
.subject-group {
    margin-bottom: 14px;
}

.subject-group:last-child {
    margin-bottom: 0;
}

.subject-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subject-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.subject-group-icon.essential {
    background: #FEE2E2;
    color: #DC2626;
}

.subject-group-icon.recommended {
    background: #DBEAFE;
    color: #2563EB;
}

.subject-group-icon.shared {
    background: #D1FAE5;
    color: #059669;
}

.subject-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
}

.subject-group-subtitle {
    font-size: 11px;
    color: #6B7280;
}

/* Subject Pills */
.subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subject-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.subject-pill-required {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.subject-pill-recommended {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.subject-pill-ok {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.subject-pill-conflict {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.subject-pill-icon {
    font-size: 11px;
}

/* School subjects scrollable list */
.school-subjects-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 6px;
}

.school-subjects-list::-webkit-scrollbar {
    width: 5px;
}

.school-subjects-list::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.school-subjects-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.school-subject-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 6px;
}

.school-subject-item:last-child {
    margin-bottom: 0;
}

.school-subject-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.school-subject-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Subject Capture Form */
.subject-capture-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label-required {
    color: #DC2626;
    font-size: 11px;
}

.form-select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-select.locked {
    background-color: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
    pointer-events: none;
}

/* Electives Section */
.electives-section {
    margin-top: 6px;
}

.electives-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.electives-count {
    background: #E0E7FF;
    color: #4F46E5;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
}

.electives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

@media (min-width: 640px) {
    .electives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.elective-slot {
    position: relative;
}

.elective-slot .locked-indicator {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Field Status Cards (Teacher/Grade 11 view) */
.field-status-card {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
}

.field-status-card.has-conflict {
    border-color: #F59E0B;
}

.field-status-card.no-conflict {
    border-color: #22C55E;
}

.field-status-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.field-status-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.field-status-info {
    flex: 1;
    min-width: 0;
}

.field-status-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1px;
}

.field-status-message {
    font-size: 11px;
    color: #6B7280;
}

.field-status-message.conflict {
    color: #DC2626;
}

.field-status-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.field-status-badge.ok {
    background: #D1FAE5;
    color: #059669;
}

.field-status-badge.warning {
    background: #FEF3C7;
    color: #D97706;
}

.field-alternatives {
    padding: 10px 12px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.field-alternatives-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    font-weight: 600;
    margin-bottom: 6px;
}

.alternative-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.alternative-pill {
    padding: 3px 8px;
    background: #DBEAFE;
    color: #1E40AF;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Alert Box */
.alert-box {
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
}

.alert-box.info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #1E40AF;
}

.alert-text {
    font-size: 12px;
    line-height: 1.4;
    color: #3B82F6;
}

/* =====================================================
   SECTION 7: SPONSOR/PARTNER ROW
   ===================================================== */

.sponsor-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .sponsor-row.has-sponsor {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sponsor-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #E5E7EB;
}

.sponsor-card-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-card-header-icon {
    font-size: 18px;
}

.sponsor-card-header-title {
    font-size: 13px;
    font-weight: 600;
}

.sponsor-card-body {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sponsor-logo-container {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.sponsor-icon {
    font-size: 30px;
}

.sponsor-info {
    flex: 1;
}

.sponsor-company {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 3px;
}

.sponsor-manager {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 6px;
}

.sponsor-email {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.sponsor-email:hover {
    background: #DBEAFE;
}

.sponsor-payoff {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
    font-size: 12px;
    color: #6B7280;
    font-style: italic;
}

/* =====================================================
   SECTION 8: FOOTER
   ===================================================== */

.results-footer {
    background: #1F2937;
    color: white;
    padding: 20px 16px;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon {
    font-size: 20px;
}

.footer-name {
    font-size: 15px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 11px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    font-size: 11px;
    opacity: 0.6;
}

/* =====================================================
   SECTION 9: DEMO CONTROLS
   ===================================================== */

.demo-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 320px;
}

.demo-toggle-title {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.demo-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-btn {
    padding: 8px 12px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-btn:hover {
    background: #E5E7EB;
}

.demo-btn.active {
    background: #7C3AED;
    color: white;
    border-color: #7C3AED;
}

/* =====================================================
   SECTION 10: MOBILE OPTIMIZATIONS
   ===================================================== */

@media (max-width: 767px) {
    .results-sidebar {
        padding: 16px 12px;
    }

    .profile-picture-container {
        width: 60px;
        height: 60px;
    }

    .profile-initials {
        font-size: 22px;
    }

    .profile-name {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .school-section,
    .product-section {
        padding: 10px;
        margin-bottom: 12px;
    }

    .results-content {
        padding: 12px 6px;
    }

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

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 11px;
    }

    .results-row {
        margin-bottom: 20px;
    }

    .quiz-card-content,
    .pathway-card-content {
        padding: 10px;
    }

    .quiz-card-title,
    .pathway-card-title {
        font-size: 14px;
    }

    .quiz-card-description,
    .pathway-card-description {
        font-size: 11px;
    }

    .quiz-card-result {
        padding: 10px 12px;
    }

    .quiz-card-result .result-icon {
        font-size: 20px;
    }

    .quiz-card-result .result-text {
        font-size: 12px;
    }

    .subject-card-header {
        padding: 12px 14px;
    }

    .subject-card-body {
        padding: 12px 14px;
    }

    .sponsor-card-body {
        padding: 14px;
        flex-direction: column;
        text-align: center;
    }

    .demo-toggle {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* =====================================================
   NO FIELDS MESSAGE (Empty State)
   ===================================================== */

.no-fields-message {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.no-fields-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-fields-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.no-fields-text {
    color: #6B7280;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-fields-btn {
    display: inline-block;
    text-decoration: none;
}

/* =====================================================
   PATHWAY CARD AREA LABEL
   ===================================================== */

.pathway-card-area {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.pathway-card-area-label {
    opacity: 0.7;
}

/* =====================================================
   PATHWAY CARD IMAGE
   ===================================================== */

.pathway-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   QUIZ CARD NOT COMPLETED STATE
   ===================================================== */

.quiz-card-result.not-completed {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px solid #9CA3AF;
}

.quiz-card-result.not-completed .result-text {
    color: #6B7280;
}

/* =====================================================
   SCORE DISPLAY BADGE
   ===================================================== */

.quiz-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* =====================================================
   SIDEBAR INFO BUTTON
   ===================================================== */

.sidebar-info-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sidebar-info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sidebar-info-btn-icon {
    font-size: 16px;
}

/* =====================================================
   INFO MODAL
   ===================================================== */

.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.info-modal-overlay.active {
    display: flex;
}

.info-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.info-modal-header {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.info-modal-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-modal-title-icon {
    font-size: 22px;
}

.info-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.info-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(135deg, #EFF6FF 0%, #E0E7FF 100%);
}

.info-modal-content {
    padding: 20px;
}

.info-modal-content .sp-container {
    max-width: 100%;
    margin: 0;
}

.info-modal-content .sp-header {
    margin-bottom: 16px;
}

/* Info Modal Mobile */
@media (max-width: 640px) {
    .info-modal-overlay {
        padding: 8px;
    }

    .info-modal-container {
        max-width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }

    .info-modal-header {
        padding: 12px 16px;
    }

    .info-modal-title {
        font-size: 16px;
    }

    .info-modal-title-icon {
        font-size: 18px;
    }

    .info-modal-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .info-modal-content {
        padding: 12px;
    }
}


/* =====================================================
   FIELD EXPLORE MODAL - Drill-down Modal
   Matches manage_wow_interests.css area-explore-modal pattern
   ===================================================== */

.field-explore-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.field-explore-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Modal header */
.field-explore-modal-header {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    color: white;
    padding: 20px 24px;
    flex-shrink: 0;
    position: relative;
}

.field-explore-modal-header-content {
    position: relative;
}

.field-explore-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.field-explore-breadcrumb-link {
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.field-explore-breadcrumb-link:hover {
    opacity: 1;
}

.field-explore-breadcrumb-sep {
    opacity: 0.7;
}

.field-explore-breadcrumb-current {
    opacity: 0.8;
}

.field-explore-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.field-explore-modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.field-explore-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s;
}

.field-explore-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal body */
.field-explore-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #F9FAFB;
}

/* Loading state */
.field-explore-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.field-explore-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #F59E0B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.field-explore-loading p {
    color: #6B7280;
    font-size: 14px;
}

/* Error state */
.field-explore-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.field-explore-error-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.field-explore-error p {
    color: #DC2626;
    font-size: 14px;
    margin-bottom: 16px;
}

.field-explore-retry-btn {
    background: #F59E0B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.field-explore-retry-btn:hover {
    background: #D97706;
}

/* Empty state */
.field-explore-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.field-explore-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.field-explore-empty p {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.field-explore-empty-hint {
    color: #9CA3AF;
    font-size: 13px;
    margin-top: 8px;
}

/* Cards grid */
.field-explore-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Back button */
.field-explore-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: color 0.2s;
}

.field-explore-back-btn:hover {
    color: #374151;
}

/* Job card */
.field-explore-job-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.field-explore-job-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.field-explore-job-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    flex: 1;
}

.field-explore-job-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.field-explore-job-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F59E0B20 0%, #EA580C20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.field-explore-job-info {
    flex: 1;
    min-width: 0;
}

.field-explore-job-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.field-explore-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.field-explore-job-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.field-explore-job-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.15s;
}

.field-explore-job-btn:hover {
    opacity: 0.9;
}

/* Field card (for fields view) */
.field-explore-field-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.field-explore-field-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.field-explore-field-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    flex: 1;
}

.field-explore-field-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.field-explore-field-image-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F120 0%, #4F46E520 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.field-explore-field-info {
    flex: 1;
    min-width: 0;
}

.field-explore-field-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.field-explore-field-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.field-explore-field-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: auto;
}

.field-explore-field-btn:hover {
    opacity: 0.9;
}

/* Pathway badges */
.pathway-badge-small {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.job-badge-entrepreneurial {
    display: inline-flex;
    padding: 3px 8px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* Modal footer */
.field-explore-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: white;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.field-explore-modal-footer-info {
    font-size: 13px;
    color: #6B7280;
}

.field-explore-modal-footer-btn {
    background: #F3F4F6;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.field-explore-modal-footer-btn:hover {
    background: #E5E7EB;
}

/* =====================================================
   JOB DETAIL CARD
   ===================================================== */

.job-detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.job-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-bottom: 1px solid #E5E7EB;
}

.job-detail-image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-detail-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F59E0B20 0%, #EA580C20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.job-detail-header-info {
    flex: 1;
}

.job-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.job-detail-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.job-detail-badge.verified {
    background: #D1FAE5;
    color: #059669;
}

.job-detail-badge.entrepreneurial {
    background: #FEF3C7;
    color: #92400E;
}

.job-detail-section {
    padding: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.job-detail-section:last-child {
    border-bottom: none;
}

.job-detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-detail-description {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

/* Subject requirements */
.job-detail-subjects {
    margin-bottom: 12px;
}

.job-detail-subjects-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.job-detail-subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-subject {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.job-detail-subject.required {
    background: #FEE2E2;
    color: #DC2626;
}

.job-detail-subject.recommended {
    background: #FEF3C7;
    color: #92400E;
}

.job-detail-notes {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin: 12px 0 0 0;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

/* Routes/Pathways */
.job-detail-routes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-detail-route {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #F59E0B;
}

.job-detail-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.job-detail-route-qual {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.job-detail-route-saqa {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 8px 0;
}

.job-detail-route-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 8px;
}

.job-detail-route-details span {
    display: flex;
    gap: 4px;
}

.job-detail-route-institutions {
    font-size: 13px;
    color: #6B7280;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E5E7EB;
}

/* Registration */
.job-detail-registration {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
}

.job-detail-registration-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-detail-registration-icon {
    font-size: 28px;
}

.job-detail-registration-note {
    font-size: 12px;
    color: #6B7280;
    margin: 4px 0 0 0;
}

/* Entrepreneurial */
.job-detail-entrepreneurial {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 12px;
    padding: 16px;
}

.job-detail-entrepreneurial-badge {
    font-size: 28px;
}

.job-detail-entrepreneurial p {
    font-size: 14px;
    color: #92400E;
    margin: 0;
}

/* Modal responsive */
@media (max-width: 640px) {
    .field-explore-modal-overlay {
        padding: 8px;
    }

    .field-explore-modal-container {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }

    .field-explore-modal-header {
        padding: 16px;
    }

    .field-explore-modal-title {
        font-size: 18px;
    }

    .field-explore-modal-body {
        padding: 16px;
    }

    .field-explore-cards-grid {
        grid-template-columns: 1fr;
    }

    .field-explore-modal-footer {
        padding: 12px 16px;
    }

    .job-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .job-detail-image,
    .job-detail-image-placeholder {
        width: 80px;
        height: 80px;
    }

    .job-detail-title {
        font-size: 18px;
    }

    .job-detail-route-details {
        flex-direction: column;
        gap: 8px;
    }
}



/* =====================================================
   FIELD CARD WRAPPER - Contains card + subject combos
   ===================================================== */

.field-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =====================================================
   SPLIT BUTTONS - Explore + Watch Video
   ===================================================== */

.split-buttons {
    display: flex;
    margin-top: auto;
}

.split-btn {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.split-btn.explore {
    background: #F59E0B;
}

.split-btn.explore:hover {
    background: #D97706;
}

.split-btn.video {
    background: #7C3AED;
}

.split-btn.video:hover {
    background: #6D28D9;
}

.split-btn.disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* =====================================================
   SUBJECT REQUIREMENTS SECTION
   ===================================================== */

/* Subject Requirements Header - appears once above grid */

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

.subject-requirements-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.subject-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6B7280;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.req {
    background: #3B82F6;
}

.legend-dot.rec {
    background: #10B981;
}

/* Subject Cards Grid */
.subject-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Subject Combo Card */
.subject-combo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.subject-combo-content {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.subject-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.subject-tag.req {
    background: #DBEAFE;
    color: #1E40AF;
}

.subject-tag.rec {
    background: #D1FAE5;
    color: #065F46;
}

.careers-preview {
    font-size: 11px;
    color: #6B7280;
    margin-top: auto;
}

.subject-combo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #F59E0B;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.subject-combo-btn:hover {
    background: #D97706;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .subject-requirements-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .subject-cards-grid {
        grid-template-columns: 1fr;
    }

    .subject-combo-card {
        min-height: auto;
    }
}

/* =====================================================
   ROUTE ACCESSIBILITY INDICATORS
   ===================================================== */

.job-detail-route.route-not-accessible {
    opacity: 0.6;
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
}

.job-detail-route.route-accessible {
    border: 1px solid #10B981;
    background: #F0FDF4;
}

.route-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.route-access-badge.accessible {
    background: #D1FAE5;
    color: #065F46;
}

.route-access-badge.not-accessible {
    background: #FEE2E2;
    color: #991B1B;
}

.job-detail-route-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* =====================================================
   SECTION: SUBJECT SELECTION FOR FET PHASE
   ===================================================== */

/* Section icon colors */
.section-icon-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.section-icon-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Subject Cards Grid - MUST be 3 columns side by side */
.subject-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
    /* Make all cards same height */
}

/* Only stack on very small screens */
@media (max-width: 599px) {
    .subject-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Subject Card Base - equal height cards */
.subject-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-column: span 1 !important;
}

/* Card 3 (Your Subject Selection) - NO scroll, determines height */
.subject-card:last-child {
    overflow: visible;
}

.subject-card:last-child .subject-card-body {
    overflow: visible !important;
}

.subject-card-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.subject-card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.subject-card-header-icon.career {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.subject-card-header-icon.career::before {
    content: '🎯';
}

.subject-card-header-icon.languages {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.subject-card-header-icon.languages::before {
    content: '🗣️';
}

.subject-card-header-icon.summary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.subject-card-header-icon.summary::before {
    content: '📋';
}

.subject-card-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
}

.subject-card-header-subtitle {
    font-size: 11px;
    color: #6B7280;
}

.subject-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Make scrollable */
    min-height: 0;
    /* Required for flex scroll */
}

/* Custom scrollbar for card body */
.subject-card-body::-webkit-scrollbar {
    width: 6px;
}

.subject-card-body::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.subject-card-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.subject-card-body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.subject-card-intro {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 14px;
}

/* Career Grouping Options */
.career-grouping-option {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.career-grouping-option:hover {
    border-color: #F59E0B;
    background: #FFFBEB;
}

.career-grouping-option.selected {
    border-color: #10B981;
    background: #ECFDF5;
}

.career-grouping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.career-grouping-field {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.career-grouping-badge {
    background: #374151;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.career-grouping-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Field Requirements Table */
.field-requirements-table {
    margin-top: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.field-requirement-row {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
    gap: 6px;
}

.field-requirement-row:last-child {
    border-bottom: none;
}

.field-requirement-row:nth-child(odd) {
    background: #F9FAFB;
}

.field-requirement-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.field-requirement-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Subject chips inside field requirements table - truncate long names */
.field-requirement-subjects .subject-chip {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.no-specific-subjects {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
}

/* Partial Required Section - "Add X to also access" */
.career-grouping-partial-required {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
}

.partial-required-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 4px;
}

.partial-required-item:last-child {
    margin-bottom: 0;
}

.partial-required-text {
    color: #6B7280;
}

.partial-required-text strong {
    color: #7C3AED;
    font-weight: 600;
}

.partial-required-fields {
    color: #059669;
    font-weight: 500;
}

/* Recommended Section in Card 1 */
.career-grouping-recommended {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.recommended-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

.career-grouping-actions {
    margin: 16px -16px -16px -16px;
}

.career-grouping-explore-btn {
    display: flex;
    width: 100%;
    padding: 12px;
    background: #F59E0B;
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.01em;
    align-items: center;
    justify-content: center;
}

.career-grouping-explore-btn:hover {
    background: #D97706;
}

.career-grouping-option.selected .career-grouping-actions {
    margin: 16px -16px -16px -16px;
}

.subject-chip {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.subject-chip.required {
    background: #0369A1;
    color: white;
}

/* Maths requirement chip - slightly different shade to stand out */
.subject-chip.required.maths {
    background: #7C3AED;
    color: white;
}

.subject-chip.recommended {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

/* Clickable recommended subject chips */
.subject-chip.recommended.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-chip.recommended.clickable:hover {
    background: #E0E7FF;
    border-color: #6366F1;
    color: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.subject-chip.recommended.clickable:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Unavailable subjects - not offered at school */
.subject-chip.unavailable {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    border: 1px solid #FECACA !important;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Subject availability key */
.subject-availability-key {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 11px;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
}

.key-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.key-dot.available {
    background: #0369A1;
}

.key-dot.unavailable {
    background: #FEE2E2;
    border: 1px solid #FECACA;
}

.selected-indicator {
    display: none;
    color: #10B981;
    font-weight: 700;
    font-size: 12px;
}

.career-grouping-option.selected .selected-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.career-grouping-option.selected .career-grouping-badge {
    display: none;
}

/* No Groups Message */
.no-groups-message {
    padding: 20px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
}

/* Language Section */
.language-section {
    margin-bottom: 20px;
}

.language-section:last-child {
    margin-bottom: 0;
}

.language-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.language-label-icon {
    font-size: 16px;
}

.language-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.language-select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.language-select.valid {
    border-color: #10B981;
    background-color: #F0FDF4;
}

/* English Requirement Indicator */
.english-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.english-requirement.met {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.english-requirement.not-met {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Maths Toggle */
.maths-toggle-container {
    display: flex;
    gap: 10px;
}

.maths-toggle-btn {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    opacity: 0.6;
}

.maths-toggle-btn:hover {
    border-color: #7C3AED;
    background: #F5F3FF;
}

.maths-toggle-btn.selected {
    border-color: #10B981;
    background: #ECFDF5;
    opacity: 1;
}

.maths-toggle-btn.selected:hover {
    border-color: #059669;
    background: #D1FAE5;
}

.maths-toggle-btn.locked {
    cursor: pointer;
    /* Still clickable for info */
}

.maths-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.maths-toggle-sublabel {
    font-size: 10px;
    color: #6B7280;
    margin-top: 2px;
}

.maths-locked-badge {
    font-size: 10px;
    color: #6B7280;
    margin-top: 6px;
}

.maths-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #EFF6FF;
    border-radius: 8px;
    font-size: 11px;
    color: #1E40AF;
    margin-top: 12px;
}

.maths-tip-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* =====================================================
   Browse All Subjects Section
   ===================================================== */

.subjects-browser {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
}

.subjects-browser-hint {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 12px;
}

.subjects-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for subjects list */
.subjects-list::-webkit-scrollbar {
    width: 6px;
}

.subjects-list::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.subjects-list::-webkit-scrollbar-thumb {
    background: #0D9488;
    border-radius: 3px;
}

.subjects-list::-webkit-scrollbar-thumb:hover {
    background: #0891B2;
}

.subject-item {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.subject-item:hover {
    border-color: #0D9488;
    background: #F0FDFA;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

.subject-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    flex: 1;
}

.subject-item-icon {
    font-size: 18px;
    color: #0D9488;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .subjects-list {
        max-height: 300px;
    }

    .subject-item {
        padding: 10px 14px;
    }

    .subject-item-name {
        font-size: 13px;
    }
}

/* =====================================================
   FIELD EDIT ICON & OVERLAY
   ===================================================== */

/* Edit icon in corner */
.field-edit-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.field-edit-icon:hover {
    background: white;
    transform: scale(1.1);
}

/* Edit overlay on hover */
.field-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
    cursor: pointer;
}

.pathway-card-image:hover .field-edit-overlay {
    opacity: 1;
}

.field-edit-text {
    background: white;
    color: #1F2937;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Subject Summary Section */
.subject-summary-section {
    margin-bottom: 16px;
}

.subject-summary-title {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Field group label beneath Career Aligned heading */
.career-aligned-fields-label {
    font-size: 11px;
    color: #6366F1;
    background: #EEF2FF;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.career-aligned-fields-label .fields-icon {
    font-size: 12px;
}

.career-aligned-fields-label .fields-text {
    font-weight: 500;
}

/* Outstanding Items Section */
.outstanding-title {
    color: #B45309 !important;
}

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

.outstanding-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
    border-radius: 8px;
    font-size: 13px;
}

.outstanding-item .outstanding-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.outstanding-item .outstanding-text {
    flex: 1;
    color: #92400E;
    font-weight: 500;
}

.outstanding-item .outstanding-action {
    font-size: 11px;
    color: #B45309;
    background: rgba(180, 83, 9, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* All complete state */
.outstanding-complete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #D1FAE5;
    border-left: 3px solid #10B981;
    border-radius: 8px;
    font-size: 13px;
    color: #065F46;
    font-weight: 500;
}

.outstanding-complete .complete-icon {
    font-size: 18px;
}

/* Electives status badge */
.electives-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.electives-status.at-max {
    background: #FEE2E2;
    color: #991B1B;
}

.electives-status.can-add {
    background: #D1FAE5;
    color: #065F46;
}

.electives-status.over-max {
    background: #FEE2E2;
    color: #991B1B;
}

/* Electives limit note */
.electives-limit-note {
    font-size: 11px;
    color: #6B7280;
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 6px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.electives-limit-note.warning {
    background: #FEF3C7;
    color: #92400E;
}

.electives-limit-note.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Disabled elective trigger */
.elective-trigger.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #E5E7EB;
}

.elective-trigger.disabled:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

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

.subject-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 13px;
}

.subject-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.subject-summary-item.locked {
    background: #F3F4F6;
    border-left: 3px solid #9CA3AF;
}

.subject-summary-item.career-locked {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
}

/* Locked electives (required by ALL fields) */
.subject-summary-item.elective-locked {
    background: #EDE9FE;
    border-left: 3px solid #7C3AED;
}

.subject-summary-item.elective-locked .subject-lock-icon {
    font-size: 12px;
    opacity: 0.7;
}

.subject-source.locked {
    background: #7C3AED;
    color: white;
}

/* Removable electives (recommended or required by SOME) */
.subject-summary-item.elective-removable {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
}

.subject-summary-item.elective-removable.user-added {
    background: #ECFDF5;
    border-left: 3px solid #10B981;
}

.subject-summary-item.user-selected {
    background: #ECFDF5;
    border-left: 3px solid #10B981;
}

.subject-summary-item.pending {
    background: white;
    border: 2px dashed #D1D5DB;
    border-left: 3px solid #D1D5DB;
}

/* Warning text under subjects */
.subject-warning {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    color: #92400E;
    padding-left: 2px;
}

.subject-warning .warning-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.subject-warning .warning-text {
    line-height: 1.3;
}

/* Info text under subjects (for regular recommended) */
.subject-info-text {
    font-size: 11px;
    color: #6B7280;
    padding-left: 2px;
}

.subject-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.subject-name em {
    color: #9CA3AF;
    font-style: italic;
}

.subject-source {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.subject-source.compulsory {
    background: #E5E7EB;
    color: #6B7280;
}

.subject-source.career {
    background: #FEF3C7;
    color: #92400E;
}

.subject-source.selected {
    background: #D1FAE5;
    color: #059669;
}

/* Remove button for user-selected electives */
.subject-remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.subject-remove-btn:hover {
    background: #FEE2E2;
}

/* Elective Dropdown */
.elective-dropdown {
    position: relative;
}

.elective-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px dashed #7C3AED;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
    color: #7C3AED;
}

.elective-trigger:hover {
    background: #F5F3FF;
    border-style: solid;
}

.elective-trigger.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #D1D5DB;
    color: #9CA3AF;
}

.elective-trigger.disabled:hover {
    background: white;
    border-style: dashed;
}

.elective-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.elective-menu.open {
    display: block;
}

.elective-menu-header {
    padding: 12px 14px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F9FAFB;
    position: sticky;
    top: 0;
}

.elective-option {
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #F3F4F6;
}

.elective-option:last-child {
    border-bottom: none;
}

.elective-option:hover {
    background: #F5F3FF;
}

.elective-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F9FAFB;
}

.elective-option.disabled:hover {
    background: #F9FAFB;
}

.elective-option-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Progress Counter */
.subject-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 10px;
    margin-top: auto;
}

.subject-counter-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.subject-counter-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 80px;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

/* Save Button */
.save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.save-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Info Tip */
.info-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #BFDBFE;
}

.info-tip-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.info-tip-text {
    font-size: 12px;
    color: #1E40AF;
    line-height: 1.5;
}

.info-tip-text strong {
    font-weight: 700;
}

/* Grade 11 Placeholder */
.grade11-placeholder {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px dashed #9CA3AF;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
}

.grade11-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.grade11-placeholder-title {
    font-size: 16px;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 8px;
}

.grade11-placeholder-text {
    font-size: 13px;
    color: #9CA3AF;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .subject-cards-grid {
        gap: 12px;
    }

    .subject-card-header {
        padding: 14px;
    }

    .subject-card-body {
        padding: 14px;
    }

    .maths-toggle-container {
        flex-direction: column;
    }

    .career-grouping-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Success Modal for Save Confirmation */
.save-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.save-success-modal.active {
    opacity: 1;
    visibility: visible;
}

.save-success-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.save-success-modal.active .save-success-modal-content {
    transform: scale(1);
}

.save-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.save-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.save-success-text {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.save-success-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Subject Info Modal */
.subject-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.subject-info-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subject-info-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.subject-info-modal-overlay.active .subject-info-modal-container {
    transform: scale(1);
}

.subject-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: white;
}

.subject-info-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.subject-info-modal-title-icon {
    font-size: 24px;
}

.subject-info-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.subject-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.subject-info-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.subject-info-modal-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

.subject-info-modal-content p {
    margin-bottom: 12px;
}

.subject-info-modal-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.subject-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.subject-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.subject-close-btn {
    padding: 12px 24px;
    background: #F3F4F6;
    color: #374151;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.subject-close-btn:hover {
    background: #E5E7EB;
}

/* Electives Warning Modal */
.electives-warning-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.electives-warning-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.electives-warning-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.electives-warning-modal-overlay.active .electives-warning-modal-container {
    transform: scale(1);
}

.electives-warning-modal-header {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    padding: 30px;
    text-align: center;
}

.electives-warning-modal-icon {
    font-size: 48px;
}

.electives-warning-modal-body {
    padding: 28px;
    text-align: center;
}

.electives-warning-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.electives-warning-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 16px;
}

.electives-warning-modal-text:last-of-type {
    margin-bottom: 24px;
}

.electives-warning-modal-actions {
    display: flex;
    gap: 12px;
}

.electives-warning-btn-cancel {
    flex: 1;
    padding: 14px 20px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.electives-warning-btn-cancel:hover {
    background: #059669;
    transform: translateY(-1px);
}

.electives-warning-btn-proceed {
    flex: 1;
    padding: 14px 20px;
    background: #F3F4F6;
    color: #6B7280;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.electives-warning-btn-proceed:hover {
    background: #E5E7EB;
}

/* Subject Removal Warning Modal */
.subject-removal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.subject-removal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subject-removal-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 440px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.subject-removal-modal-overlay.active .subject-removal-modal-container {
    transform: scale(1);
}

.subject-removal-modal-header {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    padding: 30px;
    text-align: center;
}

.subject-removal-modal-icon {
    font-size: 48px;
}

.subject-removal-modal-body {
    padding: 28px;
    text-align: center;
}

.subject-removal-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.subject-removal-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 16px;
}

.subject-removal-modal-details {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.subject-removal-modal-details .detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #991B1B;
}

.subject-removal-modal-details .detail-row:last-child {
    margin-bottom: 0;
}

.subject-removal-modal-details .detail-row.warning {
    color: #B91C1C;
    font-weight: 500;
}

.subject-removal-modal-details .detail-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px 0;
    padding-left: 24px;
}

.subject-removal-modal-details .detail-field-tag {
    background: #FEE2E2;
    color: #991B1B;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.subject-removal-modal-details .detail-field-tag.required {
    background: #DC2626;
    color: white;
}

.subject-removal-modal-details .detail-icon {
    flex-shrink: 0;
}

.subject-removal-modal-actions {
    display: flex;
    gap: 12px;
}

.subject-removal-btn-cancel {
    flex: 1;
    padding: 14px 20px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.subject-removal-btn-cancel:hover {
    background: #059669;
    transform: translateY(-1px);
}

.subject-removal-btn-proceed {
    flex: 1;
    padding: 14px 20px;
    background: #FEE2E2;
    color: #991B1B;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.subject-removal-btn-proceed:hover {
    background: #FECACA;
}

/* =====================================================
   INSTRUCTION VIDEO MODAL - Same pattern as interests
   ===================================================== */

/* Modal overlay - hidden by default */
#resultsInstructionOverlay.video-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Show when active */
#resultsInstructionOverlay.video-modal-overlay.active {
    display: flex !important;
}

/* Desktop video modal container */
#resultsInstructionOverlay .desktop-video-modal {
    background: #0f0f0f;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    max-width: 95vw;
    max-height: 95vh;
}

#resultsInstructionOverlay .desktop-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#resultsInstructionOverlay .desktop-video-modal-title h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

#resultsInstructionOverlay .desktop-video-modal-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 4px 0 0 0;
}

#resultsInstructionOverlay .desktop-video-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

#resultsInstructionOverlay .desktop-video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Default sizing before aspect ratio detected */
#resultsInstructionOverlay .desktop-video-modal .desktop-video-modal-content {
    width: 70vw;
    max-width: 800px;
}

#resultsInstructionOverlay .desktop-video-modal .desktop-video-container,
#resultsInstructionOverlay .desktop-video-modal .desktop-video-container .video-container {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Portrait video (9:16) - tall and narrow */
#resultsInstructionOverlay .desktop-video-modal.video-portrait .desktop-video-modal-content {
    width: auto;
    max-width: 95vw;
    height: calc(85vh - 60px);
}

#resultsInstructionOverlay .desktop-video-modal.video-portrait .desktop-video-container,
#resultsInstructionOverlay .desktop-video-modal.video-portrait .desktop-video-container .video-container {
    height: 100%;
    width: auto;
    aspect-ratio: 9/16;
}

/* Landscape video (16:9) - wide */
#resultsInstructionOverlay .desktop-video-modal.video-landscape .desktop-video-modal-content {
    width: 75vw;
    max-width: 1000px;
    height: auto;
}

#resultsInstructionOverlay .desktop-video-modal.video-landscape .desktop-video-container,
#resultsInstructionOverlay .desktop-video-modal.video-landscape .desktop-video-container .video-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Square video */
#resultsInstructionOverlay .desktop-video-modal.video-square .desktop-video-modal-content {
    width: min(70vw, calc(85vh - 60px));
    height: min(70vw, calc(85vh - 60px));
}

#resultsInstructionOverlay .desktop-video-modal.video-square .desktop-video-container,
#resultsInstructionOverlay .desktop-video-modal.video-square .desktop-video-container .video-container {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
}

/* Ensure video element fills container */
#resultsInstructionOverlay .desktop-video-container video,
#resultsInstructionOverlay .desktop-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Ensure question overlay displays properly in modal */
#resultsInstructionOverlay .desktop-video-container .question-overlay {
    border-radius: 0 0 12px 12px;
}

/* =====================================================
    .help-modal-container {
        max-width: 90%;
    }
}

/* Help Video Button */
.help-video-button-container {
    padding: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-bottom: 2px solid #e5e7eb;
}

.help-video-btn {
    width: 100%;
    background: white;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #92400e;
    font-size: 16px;
    font-weight: 700;
}

.help-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #fffbeb;
}

.help-video-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .help-video-button-container {
        padding: 16px;
    }

    .help-video-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .help-video-icon {
        font-size: 20px;
    }
}

/* =====================================================
/* =====================================================
   HELP BUTTON IN SIDEBAR - CIRCULAR STYLE
   ===================================================== */

.sidebar-help-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
}

.sidebar-help-btn-circle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sidebar-help-btn-icon {
    line-height: 1;
}

/* =====================================================
   GENERIC MODAL OVERLAY (for field edit modal)
   ===================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-overlay.active {
        align-items: stretch;
    }

    .modal-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        border-radius: 0;
    }
}


/* =====================================================
   SUBJECT AVAILABILITY WARNING STYLES
   ===================================================== */

/* Field card image wrapper (for positioning badge) */
.field-explore-field-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Warning badge on field cards */
.field-explore-warning-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 1;
}

.field-explore-warning-badge.severe {
    background: #FEE2E2;
    color: #DC2626;
}

/* Job card with subject warning */
.field-explore-job-card.has-subject-warning {
    border-color: #FCD34D;
    background: #FFFBEB;
}

.field-explore-job-card.has-subject-warning:hover {
    border-color: #F59E0B;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* Subject warning badge on job cards */
.job-badge-subject-warning {
    background: #FEF3C7;
    color: #92400E;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.job-badge-subject-warning.severe {
    background: #FEE2E2;
    color: #DC2626;
}

/* Missing subjects list on job card */
.job-card-missing-subjects {
    margin-top: 8px;
    padding: 8px 10px;
    background: #FEF3C7;
    border-radius: 6px;
    font-size: 11px;
    color: #92400E;
    line-height: 1.4;
}

.job-card-missing-subjects strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

/* Unavailable subject pill in job detail */
.job-detail-subject.unavailable {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border: 1px dashed #FECACA;
}

.job-detail-subject.required.unavailable {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.job-detail-subject.recommended.unavailable {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

/* School availability alert box in job detail */
.job-detail-school-alert {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.job-detail-school-alert.severe {
    background: #FEE2E2;
    border-color: #FECACA;
}

.job-detail-school-alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.job-detail-school-alert-content {
    flex: 1;
    min-width: 0;
}

.job-detail-school-alert-title {
    font-weight: 700;
    color: #92400E;
    margin-bottom: 4px;
    font-size: 14px;
}

.job-detail-school-alert.severe .job-detail-school-alert-title {
    color: #DC2626;
}

.job-detail-school-alert-text {
    font-size: 13px;
    color: #A16207;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.job-detail-school-alert.severe .job-detail-school-alert-text {
    color: #B91C1C;
}

.job-detail-school-alert-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.unavailable-subject-tag {
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.job-detail-school-alert.severe .unavailable-subject-tag {
    color: #DC2626;
    border-color: #FECACA;
}

/* Mobile adjustments for warning elements */
@media (max-width: 768px) {
    .field-explore-warning-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .job-badge-subject-warning {
        font-size: 9px;
        padding: 2px 6px;
    }

    .job-card-missing-subjects {
        font-size: 10px;
        padding: 6px 8px;
    }

    .job-detail-school-alert {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .job-detail-school-alert-icon {
        font-size: 20px;
    }

    .job-detail-school-alert-title {
        font-size: 13px;
    }

    .job-detail-school-alert-text {
        font-size: 12px;
    }

    .unavailable-subject-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* =====================================================
   WIZARD STEPPER & MODAL STYLES
   ===================================================== */

/* STEPPER CONTAINER */
.wizard-stepper-container {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F0FDF4 100%);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

/* Decorative accent */
.wizard-stepper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 25%, #10B981 50%, #F59E0B 75%, #EF4444 100%);
}

.wizard-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Connector line behind circles */
.wizard-stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: #E5E7EB;
    z-index: 1;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
}

.wizard-step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    border: 3px solid #E5E7EB;
    color: #9CA3AF;
}

.wizard-step-item:hover .wizard-step-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Completed state */
.wizard-step-item.completed .wizard-step-circle {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.wizard-step-item.completed .wizard-step-number {
    display: none;
}

.wizard-step-item.completed .wizard-step-check {
    display: block;
}

/* Edit indicator on completed */
.wizard-step-edit {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    background: white;
    border: 2px solid #10B981;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-step-item.completed .wizard-step-edit {
    display: flex;
}

.wizard-step-item.completed:hover .wizard-step-edit {
    background: #10B981;
    color: white;
}

/* Active state */
.wizard-step-item.active .wizard-step-circle {
    background: #6366F1;
    border-color: #6366F1;
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Upcoming/disabled state */
.wizard-step-item.upcoming {
    cursor: not-allowed;
    opacity: 0.6;
}

.wizard-step-item.upcoming:hover .wizard-step-circle {
    transform: none;
    box-shadow: none;
}

.wizard-step-check {
    display: none;
}

.wizard-step-label {
    font-size: 13px;
    font-weight: 700;
    color: #9CA3AF;
    margin-top: 12px;
    text-align: center;
}

.wizard-step-item.active .wizard-step-label,
.wizard-step-item.completed .wizard-step-label {
    color: #1F2937;
}

.wizard-step-description {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 6px;
    text-align: center;
    line-height: 1.4;
    max-width: 140px;
}

.wizard-step-item.active .wizard-step-description,
.wizard-step-item.completed .wizard-step-description {
    color: #6B7280;
}

/* MODAL OVERLAY */
.wizard-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wizard-modal-overlay.active {
    display: flex;
}

.wizard-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: wizardModalSlideIn 0.3s ease;
}

@keyframes wizardModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    color: white;
}

/* Modal header gradient backgrounds - solid gradients like other modals */
.wizard-modal-header.career-header {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.wizard-modal-header.languages-header {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.wizard-modal-header.electives-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.wizard-modal-header.confirm-header {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

.wizard-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-modal-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.wizard-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    line-height: 1;
}

.wizard-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.wizard-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Make the card body inside modal have proper padding */
.wizard-modal-body .subject-card-body {
    padding: 20px 24px;
}

.wizard-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wizard-modal-step-indicator {
    font-size: 13px;
    color: #6B7280;
}

/* MODAL BUTTONS */
.wizard-modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wizard-modal-btn-primary {
    background: #6366F1;
    color: white;
}

.wizard-modal-btn-primary:hover {
    background: #4F46E5;
}

.wizard-modal-btn-secondary {
    background: white;
    color: #4B5563;
    border: 2px solid #E5E7EB;
}

.wizard-modal-btn-secondary:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.wizard-modal-btn-success {
    background: #10B981;
    color: white;
}

.wizard-modal-btn-success:hover {
    background: #059669;
}

/* Disabled state for validation */
.wizard-modal-btn:disabled,
.wizard-modal-btn.disabled {
    background: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-modal-btn:disabled:hover,
.wizard-modal-btn.disabled:hover {
    background: #D1D5DB;
    transform: none;
}

/* Validation message */
.wizard-validation-message {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.wizard-validation-message.hidden {
    display: none;
}

/* MODAL 4: Confirmation styles */
.wizard-confirmation-banner {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 20px 24px;
}

.wizard-confirmation-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.wizard-confirmation-title {
    font-size: 18px;
    font-weight: 700;
    color: #065F46;
}

.wizard-confirmation-subtitle {
    font-size: 14px;
    color: #047857;
}

.wizard-summary-section {
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
}

.wizard-summary-section:last-of-type {
    border-bottom: none;
}

.wizard-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-summary-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-summary-subject {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-summary-subject:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Compulsory subjects - blue like required chips in step 1 */
.wizard-summary-subject.compulsory {
    background: #0369A1;
    color: white;
}

.wizard-summary-subject.compulsory:hover {
    background: #0284C7;
}

/* Maths compulsory - purple like maths chips */
.wizard-summary-subject.compulsory.maths {
    background: #7C3AED;
}

.wizard-summary-subject.compulsory.maths:hover {
    background: #8B5CF6;
}

/* Career-aligned electives - teal/green */
.wizard-summary-subject.career-aligned {
    background: #0D9488;
    color: white;
}

.wizard-summary-subject.career-aligned:hover {
    background: #14B8A6;
}

/* Additional/user electives - amber/orange */
.wizard-summary-subject.additional {
    background: #D97706;
    color: white;
}

.wizard-summary-subject.additional:hover {
    background: #F59E0B;
}

/* Legacy elective class (fallback) */
.wizard-summary-subject.elective {
    background: #0D9488;
    color: white;
}

.wizard-summary-subject.elective:hover {
    background: #14B8A6;
}

/* Info icon hint on hover */
.wizard-summary-subject::after {
    content: ' ℹ️';
    opacity: 0;
    font-size: 11px;
    transition: opacity 0.2s;
}

.wizard-summary-subject:hover::after {
    opacity: 1;
}

.wizard-summary-none {
    color: #9CA3AF;
    font-style: italic;
    font-size: 13px;
}

.wizard-summary-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #F9FAFB;
    font-weight: 700;
    font-size: 15px;
    color: #374151;
}

.wizard-summary-total-number {
    background: #6366F1;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
}

/* Wizard Stepper Explainer */
.wizard-stepper-explainer {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.wizard-stepper-explainer-text {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.wizard-stepper-explainer-text strong {
    color: #4F46E5;
}

/* RESPONSIVE STEPPER */
@media (max-width: 768px) {
    .wizard-stepper-container {
        padding: 20px 16px;
    }

    .wizard-stepper-explainer {
        margin-bottom: 16px;
    }

    .wizard-stepper-explainer-text {
        font-size: 13px;
    }

    .wizard-stepper {
        flex-wrap: wrap;
        gap: 12px;
    }

    .wizard-stepper::before {
        display: none;
    }

    .wizard-step-item {
        flex: 0 0 calc(50% - 6px);
        background: #F9FAFB;
        border-radius: 12px;
        padding: 16px 12px;
        border: 2px solid #E5E7EB;
    }

    .wizard-step-item.active {
        border-color: #6366F1;
        background: #EEF2FF;
    }

    .wizard-step-item.completed {
        border-color: #10B981;
        background: #ECFDF5;
        opacity: 1;
    }

    .wizard-step-item.upcoming {
        opacity: 0.5;
    }

    .wizard-step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-width: 2px;
    }

    .wizard-step-label {
        font-size: 12px;
        margin-top: 8px;
    }

    .wizard-step-description {
        font-size: 11px;
        max-width: none;
    }

    .wizard-step-edit {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -2px;
        right: -2px;
    }

    /* MOBILE: Full viewport modal */
    .wizard-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .wizard-modal-content {
        max-height: 100vh;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        animation: wizardModalSlideUp 0.3s ease;
    }

    @keyframes wizardModalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .wizard-modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }

    .wizard-modal-title {
        font-size: 16px;
    }

    .wizard-modal-title-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .wizard-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-modal-body .subject-card-body {
        padding: 16px;
    }

    .wizard-modal-footer {
        flex-direction: column;
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        background: #F9FAFB;
        z-index: 10;
    }

    .wizard-modal-footer .wizard-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .wizard-modal-step-indicator {
        display: none;
    }
}

@media (max-width: 400px) {
    .wizard-step-item {
        flex: 0 0 100%;
    }
}

/* =====================================================
   JS ERROR MODAL (matches PHP show_error_page)
   ===================================================== */

.js-error-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #E0E7FF 100%);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.js-error-modal-overlay.active {
    display: flex;
}

.js-error-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: errorModalSlideIn 0.3s ease;
}

@keyframes errorModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.js-error-header {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    padding: 24px;
    text-align: center;
}

.js-error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.js-error-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.js-error-body {
    padding: 24px;
}

.js-error-message {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
}

.js-error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.js-error-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
}

.js-error-btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: white;
}

.js-error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.js-error-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.js-error-btn-secondary:hover {
    background: #E5E7EB;
}

.js-error-footer {
    padding: 16px 24px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.js-error-support {
    color: #6B7280;
    font-size: 13px;
    margin: 0;
}

.js-error-support a {
    color: #4F46E5;
    text-decoration: none;
}

.js-error-support a:hover {
    text-decoration: underline;
}

/* =====================================================
   SUBJECT SELECTION DISPLAY - COLUMN LAYOUT
   ===================================================== */

/* Main grid container for columns */
.subject-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Individual column */
.subject-column {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

/* Column header */
.subject-column-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #E5E7EB;
}

.subject-column-header.compulsory {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.subject-column-header.required {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.subject-column-header.recommended {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.subject-column-header.additional {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
}

.column-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.column-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    flex: 1;
}

.column-count {
    background: white;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

/* Column body */
.subject-column-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual subject item */
.subject-column-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.subject-column-item:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.subject-item-number {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: white;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    flex-shrink: 0;
}

.subject-item-content {
    flex: 1;
    min-width: 0;
}

.subject-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.4;
    word-wrap: break-word;
}

.subject-item-meta {
    font-size: 11px;
    color: #6B7280;
    margin-top: 2px;
}

.subject-column-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
}

/* Footer */
.subject-selection-footer {
    margin-top: 16px;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.subject-total-count {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .subject-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   REVIEWED SUBJECTS - STATUS INDICATORS & COMMENTS
   ===================================================== */

/* Wrapper for items with status (changed/added) */
.subject-column-item-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

/* Changed status - blue dotted border (Review Match) */
.subject-column-item-wrapper.changed {
    border: 2px dotted #3B82F6;
    background: #EFF6FF;
}

/* Added status - green dotted border (Review Match) */
.subject-column-item-wrapper.added {
    border: 2px dotted #10B981;
    background: #ECFDF5;
}

/* Status icons */
.subject-status-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 8px;
    align-self: flex-start;
    margin-top: 2px;
}

.subject-status-icon.approved {
    color: #10B981;
}

.subject-status-icon.changed {
    color: #3B82F6;
}

.subject-status-icon.added {
    color: #F59E0B;
}

/* Comment section (footer style - Matching .subject-reason from review) */
/* Comment section (footer style - Matching .subject-reason from review) */
.subject-reason {
    font-size: 13px !important;
    color: #374151 !important;
    /* Gray 700 */
    padding: 10px 14px !important;
    background: #F9FAFB !important;
    /* Gray 50 Footer */
    border-top: 1px solid #E5E7EB !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    position: static !important;
    /* Reset absolute positioning from old style */
    margin: 0 !important;
    width: auto !important;
}

/* Clean text label or icon (Hidden per Review CSS) */
.reason-label {
    display: none !important;
}

/* Comment icon - pseudo element */
.subject-reason::before {
    content: '\f075';
    /* fa-comment */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important;
    /* Using 6 Free to match loaded library */
    font-weight: 900 !important;
    color: #9CA3AF !important;
    margin-top: 1px !important;
    font-size: 12px !important;
    /* Reset absolute positioning */
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
}

/* Changed items - blue dashed divider */
.subject-column-item-wrapper.changed .subject-reason {
    border-top: 1px dashed rgba(96, 165, 250, 0.5);
    /* Blue 400 alpha */
    background: #F9FAFB;
    /* Ensure gray background persists inside blue wrapper */
}

.subject-column-item-wrapper.changed .subject-reason::before {
    color: #3B82F6;
}

/* Added items - green dashed divider */
.subject-column-item-wrapper.added .subject-reason {
    border-top: 1px dashed rgba(16, 185, 129, 0.5);
    /* Green 500 alpha */
    background: #F9FAFB;
}

.subject-column-item-wrapper.added .subject-reason::before {
    color: #10B981;
}

/* Summary in footer */
.subject-summary {
    font-size: 13px;
    color: #6B7280;
    margin-left: 12px;
}

/* =====================================================
   PROCESS EXPLANATION MODAL & BUTTON
   ===================================================== */

.btn-explain-process {
    background: transparent;
    border: 1px solid #3B82F6;
    color: #3B82F6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-explain-process:hover {
    background: #EFF6FF;
}

.process-modal-container {
    max-width: 600px;
    width: 90%;
}

.process-intro {
    font-size: 15px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.5;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F3F4F6;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
}

.process-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.process-step-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.process-step-content p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.process-step-arrow {
    font-size: 20px;
    color: #9CA3AF;
    font-weight: bold;
}

.process-alert {
    display: flex;
    gap: 12px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.process-alert-icon {
    font-size: 20px;
}

.process-alert-content {
    font-size: 14px;
    color: #92400E;
    line-height: 1.5;
}

.process-legend {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
}

.process-legend h4 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px 0;
}

.process-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-legend-list li {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.4;
    padding-left: 10px;
    border-left: 3px solid #E5E7EB;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .btn-explain-process {
        font-size: 0;
        /* Hide text */
    }

    .btn-explain-process i {
        font-size: 16px;
        /* Show icon */
        margin-right: 0;
    }
}

/* Modal Close Button Hover */
.modal-actions button:hover {
    background: #d1d5db !important;
    /* Darker grey on hover */
}

/* =====================================================
   PARTNER & SPONSOR FOOTER STYLES (Compact & Premium)
   ===================================================== */

/* Base Footer Styles */
.ft_footer-wrapper {
    position: relative;
    width: 100%;
    min-height: 320px;
    /* Reduced from 600px */
    border-radius: 16px;
    /* More rounded */
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.ft_background-container {
    position: absolute;
    inset: 0;
}

.ft_background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    /* Slight zoom for depth */
}

.ft_overlay {
    position: absolute;
    inset: 0;
    /* Richer, darker gradient for premium feel */
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.75));
}

/* Layout Structure */
.ft_content-container {
    position: relative;
    padding: clamp(2rem, 3vw, 3rem) 2rem;
    /* Tighter padding */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Center vertically */
}

.ft_columns-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
}

/* When two columns are needed */
.ft_columns-grid.has-sponsor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    /* Separation between partner & sponsor */
}

/* Add divider line between columns when sponsor exists */
.ft_columns-grid.has-sponsor::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-50%);
}

.ft_column {
    min-width: 0;
}

.ft_content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    /* Tighter gap */
}

/* Logo Section - Compact */
.ft_logo-section {
    width: 100%;
    height: 70px;
    /* Fixed small height */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ft_logo-container {
    position: relative;
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    /* White pill background for logo */
    border-radius: 12px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.2);
}

.ft_logo {
    max-height: 50px;
    /* Small logos */
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Content Section */
.ft_content-section {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ft_message-container {
    max-width: 420px;
}

.ft_main-heading {
    font-size: 1.75rem;
    /* Smaller, cleaner heading */
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ft_sub-heading {
    font-size: 1rem;
    color: #cbd5e1;
    /* Lighter grey */
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Sexy Contact Button */
.ft_contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.ft_contact-button:hover {
    background-color: white;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.ft_contact-button svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

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

/* Badge Section - Subtle */
.ft_badge-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.ft_partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
}

.ft_partner-text {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.ft_partner-logo {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.8;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .ft_columns-grid.has-sponsor {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ft_columns-grid.has-sponsor::after {
        display: none;
    }

    .ft_footer-wrapper {
        min-height: auto;
    }
}

/* Small Screen Optimizations */
@media (max-width: 480px) {
    .ft_content-container {
        padding: 2.5rem 1.5rem;
    }

    .ft_partner-badge {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ft_main-heading {
        font-size: 1.5rem;
    }
}

/* =====================================================
   SECTION 9: RESET LEARNER DATA MODAL (RESPONSIVE)
   ===================================================== */
.reset-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* opacity: 0; REMOVED FOR STABILITY */
    transition: opacity 0.2s ease-out;
}

.reset-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.reset-modal-container {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Ensure it fits on screen */
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.reset-modal-overlay.active .reset-modal-container {
    transform: scale(1);
}

.reset-modal-header {
    background: #bd2a32;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reset-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reset-modal-icon {
    width: 32px;
    height: 32px;
    background: white;
    color: #bd2a32;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.reset-modal-title {
    font-size: 16px;
    font-weight: 700;
}

.reset-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.reset-modal-close:hover {
    opacity: 1;
}

.reset-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.reset-warning-text {
    margin-bottom: 20px;
    color: #4B5563;
    font-size: 14px;
    line-height: 1.5;
}

.reset-select-all-container {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.reset-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1F2937;
    cursor: pointer;
    font-size: 14px;
}

.reset-options-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    /* Space for scrollbar */
}

/* Scrollbar styling */
.reset-options-scroll::-webkit-scrollbar {
    width: 6px;
}

.reset-options-scroll::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.reset-options-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.reset-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reset-group-title {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.reset-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    padding: 4px 0;
}

.reset-item-checkbox,
#reset_select_all {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    accent-color: #bd2a32;
}

.reset-modal-actions {
    padding: 16px 24px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
}

.reset-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-btn-secondary {
    background: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.reset-btn-secondary:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.reset-btn-primary {
    background: #bd2a32;
    color: white;
}

.reset-btn-primary:hover {
    background: #991b1b;
    box-shadow: 0 4px 6px -1px rgba(189, 42, 50, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .reset-modal-overlay {
        padding: 12px;
        align-items: flex-end;
        /* Bottom sheet feel optional, but center is safer */
        align-items: center;
    }

    .reset-modal-container {
        width: 100%;
        max-height: 95vh;
        max-width: 100%;
        border-radius: 12px;
    }

    .reset-modal-body {
        padding: 20px 16px;
    }

    .reset-modal-actions {
        flex-direction: column;
        /* Stack buttons */
        padding: 16px;
    }

    .reset-btn {
        width: 100%;
        padding: 14px;
        /* Larger touch target */
    }
}

/* =====================================================
   SECTION 10: JOB DETAIL PREMIUM CARDS
   ===================================================== */

.job-detail-card-premium {
    background: white !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 12px;
    margin-bottom: 24px;
    /* Space between cards */
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

/* Ensure sections inside cards behave well */
.job-detail-section-premium {
    margin-bottom: 0;
    /* Remove bottom margin as the card handles spacing */
    padding-bottom: 0px;
    border-bottom: none;
}

/* Header Specific Styles */
.job-detail-header-premium {
    background: white !important;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.job-detail-image-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.job-detail-image-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.job-detail-header-info-premium {
    flex: 1;
    min-width: 0;
}

.job-detail-title-premium {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.job-detail-header-badges-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.job-detail-badge.verified {
    background: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

.job-detail-badge.inferred {
    background: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
}

.job-detail-badge.unverified {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.job-detail-badge.entrepreneurial {
    background: #F3E8FF;
    color: #6B21A8;
    border-color: #E9D5FF;
}

.job-detail-badge.video-badge {
    background: #FCE7F3;
    color: #9D174D;
    border-color: #FBCFE8;
}

/* Mobile Responsiveness for Header */
@media (max-width: 640px) {
    .job-detail-card-premium {
        padding: 20px;
        border-radius: 12px;
    }

    .job-detail-header-premium {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .job-detail-header-badges-premium {
        justify-content: center;
    }

    .job-detail-title-premium {
        font-size: 20px;
    }
}

/* =====================================================
   FIX: STANDARD MODAL FONT SIZES (QUALIFICATION PATHWAYS)
   ===================================================== */

.job-detail-route-card-premium .route-qualification {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #1F2937;
}

.job-detail-route-card-premium .route-requirements-box h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    margin-bottom: 8px;
    margin-top: 0;
}

.job-detail-route-card-premium .req-text {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.job-detail-route-card-premium .meta-item {
    font-size: 12px;
    color: #4B5563;
}

.job-detail-route-card-premium .route-type-badge {
    font-size: 11px;
    font-weight: 600;
}

.job-detail-route-card-premium .aps-label,
.job-detail-route-card-premium .marks-label {
    font-size: 12px;
    font-weight: 600;
}

.job-detail-route-card-premium .aps-value {
    font-size: 14px;
    font-weight: 700;
}

/* =====================================================
   JOB DETAIL STYLES (Ported from Interests)
   ===================================================== */

.job-detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.job-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-bottom: 1px solid #E5E7EB;
}

.job-detail-image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-detail-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F59E0B20 0%, #EA580C20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.job-detail-header-info {
    flex: 1;
}

.job-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.job-detail-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.job-detail-badge.verified {
    background: #D1FAE5;
    color: #059669;
}

.job-detail-badge.entrepreneurial {
    background: #FEF3C7;
    color: #92400E;
}

.job-detail-badge.accessible {
    background: #D1FAE5;
    color: #059669;
}

.job-detail-badge.warning {
    background: #FEF3C7;
    color: #D97706;
}

.job-detail-badge.partial {
    background: #FEE2E2;
    color: #DC2626;
}

/* Video Modal */
.job-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.job-video-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.job-detail-video-link {
    display: inline-block;
    margin-top: 10px;
    color: #0891B2;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.job-detail-video-link:hover {
    color: #0E7490;
    text-decoration: underline;
}

.job-detail-section {
    padding: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.job-detail-section:last-child {
    border-bottom: none;
}

.job-detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-detail-description {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

/* Subject requirements */
.job-detail-subjects {
    margin-bottom: 12px;
}

.job-detail-subjects-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.job-detail-subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail-subject {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.job-detail-subject.required {
    background: #FEE2E2;
    color: #DC2626;
}

.job-detail-subject.recommended {
    background: #FEF3C7;
    color: #92400E;
}

.job-detail-notes {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin: 12px 0 0 0;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

/* Routes/Pathways */
.job-detail-routes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-detail-route {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #E5E7EB;
}

.job-detail-route.accessible {
    border-left-color: #10B981;
    background: #F0FDF4;
}

.job-detail-route.not-accessible {
    border-left-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.job-detail-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.job-detail-route-status {
    font-size: 11px;
    font-weight: 600;
}

.job-detail-route-status.accessible {
    color: #059669;
}

.job-detail-route-status.not-accessible {
    color: #DC2626;
}

.job-detail-route-qual {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.job-detail-route-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.job-detail-route-detail {
    font-size: 12px;
    color: #4B5563;
}

.job-detail-route-detail strong {
    color: #1F2937;
}

.job-detail-route-institutions {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
}

.job-detail-route-institutions strong {
    color: #374151;
}

/* Professional registration */
.job-detail-registration {
    background: #EEF2FF;
    border-radius: 12px;
    padding: 16px;
}

.job-detail-registration-body {
    display: inline-block;
    background: #4F46E5;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-detail-registration-note {
    font-size: 13px;
    color: #4B5563;
    margin: 0;
}

/* Entrepreneurial */
.job-detail-entrepreneurial {
    background: #FEF3C7;
    border-radius: 12px;
    padding: 16px;
}

.job-detail-entrepreneurial-badge {
    display: inline-block;
    background: #F59E0B;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-detail-footer {
    padding: 16px 20px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.job-detail-last-updated {
    font-size: 12px;
    color: #9CA3AF;
}

.pathway-badge-small {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.pathway-badge-small.badge-academic,
.pathway-badge-small.badge-a {
    background: #DBEAFE;
    color: #1E40AF;
}

.pathway-badge-small.badge-v1 {
    background: #FEF3C7;
    color: #92400E;
}

.pathway-badge-small.badge-v2 {
    background: #FED7AA;
    color: #C2410C;
}

.pathway-badge-small.badge-v3 {
    background: #FECACA;
    color: #DC2626;
}

.pathway-badge-small.badge-occupational,
.pathway-badge-small.badge-o {
    background: #D1FAE5;
    color: #065F46;
}

/* =====================================================
   PERSONALITY TRAIT CARDS - Image on top layout
   ===================================================== */

.trait-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trait-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.trait-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #F8FAFC;
    overflow: hidden;
}

.trait-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trait-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
}

.trait-card-image-placeholder i {
    font-size: 36px;
    color: #94A3B8;
}

.trait-card-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

.trait-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trait-card-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    margin-bottom: 4px;
}

.trait-card-title {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
}

.trait-card-summary {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.trait-card-video-btn {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    color: white;
    background: #7C3AED;
    transition: background 0.15s;
    border-radius: 0 0 10px 10px;
    margin-top: auto;
}

.trait-card-video-btn:hover {
    background: #6D28D9;
}

/* Traits Row - Dedicated section below career fields */
.traits-section-row {
    margin-top: 4px;
}

.traits-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 768px) {
    .traits-row-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        align-items: start;
    }
}

.traits-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.traits-column-header {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.traits-column-cards {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.traits-column-cards .trait-card {
    flex: 1;
    min-width: 0;
}

/* Sticky Back Button (for navigation from Teacher Dashboard) */
.sticky-back {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #BD1F28 0%, #9A1921 100%) !important;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.sticky-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.sticky-back i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .sticky-back {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .sticky-back i {
        font-size: 16px;
    }
}

/* =====================================================
   CAREER RESEARCH CONTENT (from career_data_json.information)
   Used by inline career detail cards on Grade 11 results
   ===================================================== */

.career-research-content {
    color: #1f2937;
    line-height: 1.6;
}

.career-research-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

.career-research-content h3:first-child {
    margin-top: 0;
}

.career-research-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.career-research-content li {
    margin-bottom: 0.35rem;
}

.career-research-content p {
    margin-bottom: 0.75rem;
    color: #374151;
}

.career-research-content strong {
    font-weight: 600;
    color: #111827;
}

/* Citations */
.career-research-content .citation-link {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
    margin-left: 2px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.career-research-content .citation-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Sources Footnote */
.career-research-content .sources-footnote {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.career-research-content .sources-footnote h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4b5563;
}

.career-research-content .sources-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.career-research-content .sources-list li {
    margin-bottom: 2px;
    font-style: italic;
}

/* University Table */
.university-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.85em;
    background-color: transparent;
}

.university-table thead {
    background-color: #f3f4f6;
}

.university-table th {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
    font-weight: bold;
    color: inherit;
}

.university-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    color: inherit;
    vertical-align: top;
    white-space: normal;
}

/* Mobile - University Table Cards */
@media (max-width: 900px) {

    .university-table,
    .university-table tbody,
    .university-table tr,
    .university-table td {
        display: block !important;
        width: 100% !important;
    }

    .university-table thead {
        display: none !important;
    }

    .university-table tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .university-table td {
        padding: 6px 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }

    .university-table td:before {
        content: attr(data-label);
        font-weight: 700;
        display: block;
        margin-bottom: 2px;
        color: #6b7280;
        font-size: 0.85em;
        text-transform: uppercase;
    }

    .career-research-content .citation-link {
        font-size: 14px !important;
        padding: 4px 8px !important;
        display: inline-block !important;
        line-height: normal !important;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 4px;
    }
}

/* =====================================================
   CITATION MODAL (for career_data_json information links)
   ===================================================== */

.citation-modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 20px;
}

.citation-modal-container {
    max-width: 900px;
    width: 100%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.citation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: white;
    gap: 12px;
}

.citation-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
    display: flex;
    flex-direction: column;
}

.citation-modal-footer {
    padding: 8px;
    background: white;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #4B5563;
}

.citation-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

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

.citation-close-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 640px) {
    .citation-modal-overlay {
        padding: 0 !important;
    }

    .citation-modal-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }

    .citation-modal-header {
        padding: 10px 14px;
    }
}