/* OUP Brand Colors */
:root {
    --oxford-blue: #011e41;
    --electric-blue: #0043e0;
    --neutral-blue: #cad7d8;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    
    /* Fonts */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Container */
    --container-max-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--oxford-blue);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--oxford-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--electric-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--oxford-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--oxford-blue);
    border-color: var(--oxford-blue);
}

.btn-secondary:hover {
    background-color: var(--oxford-blue);
    color: var(--white);
}

/* Header */
.site-header {
    background-color: var(--oxford-blue);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
}

/* Legacy hero section styles - keeping for any remaining usage */
.hero-section {
    background: linear-gradient(135deg, var(--oxford-blue) 0%, var(--electric-blue) 100%);
    color: var(--white) !important;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-section * {
    color: var(--white) !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
    color: var(--white) !important;
}

.hero-title {
    color: var(--white) !important;
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: var(--white) !important;
}

.hero-description {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--white) !important;
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: none;
    margin: 0;
}

/* Hero and CTA sections should remain centered */
.page-header,
.cta-section .section-header,
.cta-content {
    text-align: center;
}

.page-header p,
.cta-content p {
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.overview-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.overview-item,
.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.overview-item h3,
.feature-item h3 {
    color: var(--electric-blue);
    margin-bottom: var(--spacing-md);
}

/* CTA Section */
.cta-section {
    background-color: var(--neutral-blue);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cta-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* About Page */
.page-header {
    background-color: var(--neutral-blue);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.page-header h1 {
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

.team-section {
    background-color: var(--white);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    padding: var(--spacing-xxl) 0;
}

.contact-section h2 {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.contact-content p:first-child {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.contact-subsection {
    margin-bottom: var(--spacing-lg);
}

.contact-subsection h3 {
    margin-bottom: var(--spacing-sm);
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
}

.team-member {
    background-color: var(--white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    flex-shrink: 0;
    order: 2;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neutral-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-info {
    flex: 1;
    order: 1;
}

.member-title {
    color: var(--electric-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.member-description {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--electric-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--oxford-blue);
}

/* Footer */
.site-footer {
    background-color: var(--oxford-blue);
    color: var(--white);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--neutral-blue);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social .social-link {
    color: var(--neutral-blue);
    transition: color 0.3s ease;
}

.footer-social .social-link:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-social .social-text {
    color: var(--neutral-blue);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--neutral-blue);
    margin: 0;
}

/* Task Demo Section */
.demo-section {
    background-color: #f8f9fa;
    padding: var(--spacing-xxl) 0;
}

.task-demo {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.demo-loading {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-light);
    font-style: italic;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 600px;
}

.demo-column {
    border-right: 1px solid #eee;
    max-height: 600px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.demo-column:last-child {
    border-right: none;
}

.demo-column h3 {
    color: var(--oxford-blue);
    font-size: 1.25rem;
    font-weight: 600;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm) var(--spacing-lg);
    border-bottom: 2px solid var(--neutral-blue);
    background: #f8f9fa;
    flex-shrink: 0;
    margin: 0;
}

.demo-column-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

/* Task Column */
.task-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.task-card .task-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.task-card .task-content {
    line-height: 1.6;
    color: var(--text-dark);
}

/* Response Column */
.response-section {
    margin-bottom: var(--spacing-lg);
}

.response-section h4 {
    color: var(--oxford-blue);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-display);
}

.response-content {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.response-content ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.response-content li {
    margin-bottom: var(--spacing-xs);
}

/* Rubric Column */
.rubric-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.rubric-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.rubric-item.scored-yes {
    background-color: #d4edda;
    border-color: #c3e6cb;
}


.rubric-item.scored-no {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.rubric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.rubric-header-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
}

.rubric-header-text:first-child {
    text-align: left;
    flex: 1;
}

.rubric-header-text:nth-child(2) {
    min-width: 50px;
}

.rubric-header-text:nth-child(3) {
    min-width: 70px;
}

.rubric-criterion {
    font-weight: 600;
    color: var(--oxford-blue);
    flex: 1;
    font-size: 0.95rem;
}

.rubric-points {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 var(--spacing-sm);
    min-width: 40px;
    text-align: center;
}

.rubric-points.positive {
    color: #28a745;
}

.rubric-points.negative {
    color: #dc3545;
}

.rubric-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.rubric-status.yes {
    background-color: #28a745;
    color: white;
}


.rubric-status.no {
    background-color: #6c757d;
    color: white;
}

.rubric-description {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--spacing-xs);
}

/* Progress Section Scaffolding - Desktop */
.demo-progress-container {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
}

.demo-progress-scaffolding {
    display: flex;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg);
}

.progress-spacer {
    flex: 1;
    min-height: 1px; /* Invisible spacers to maintain column alignment */
}

.demo-progress {
    flex: 1;
    background-color: transparent;
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: 0;
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.progress-slider-container {
    width: 100%;
    position: relative;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    align-items: center;
}

.progress-label-no,
.progress-label-yes {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.label-no {
    background-color: #6c757d; /* Match rubric 'No' boxes */
}

.label-yes {
    background-color: #28a745; /* Match rubric 'Yes' boxes */
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    position: relative;
    margin: var(--spacing-sm) 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oxford-blue) 0%, var(--electric-blue) 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-indicator {
    position: absolute;
    right: -6px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: var(--electric-blue);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.raw-score-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--oxford-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-score-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: var(--spacing-sm);
    min-width: 80px;
    max-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--oxford-blue);
    margin: 0;
    line-height: 1;
}

.progress-score-combined {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--oxford-blue);
    margin: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* Construct Visualization Styles */
.construct-visualization-section {
    background-color: var(--white);
    padding: var(--spacing-xxl) 0;
}

.construct-visualization-container {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#construct-visualization {
    width: 100%;
    min-height: 600px;
    position: relative;
}

.construct-tooltip {
    pointer-events: none;
    z-index: 1000;
}

.construct-info-panel {
    margin-top: var(--spacing-lg);
}

.construct-info-panel h3 {
    font-family: var(--font-display);
    color: var(--oxford-blue);
    margin-bottom: var(--spacing-sm);
}

.construct-info-panel p {
    color: var(--oxford-blue);
    line-height: 1.6;
    margin: 0;
}

/* Visualization responsive adjustments */
@media (max-width: 768px) {
    #construct-visualization {
        min-height: 70vh; /* Much bigger on mobile - take up most of screen */
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .construct-visualization-container {
        padding: var(--spacing-sm);
        margin: 0 auto;
        text-align: center;
    }
    
    .construct-info-panel {
        margin-top: var(--spacing-md);
    }
    
    .construct-info-panel h3 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .construct-info-panel p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    #construct-visualization {
        min-height: 60vh; /* Big on small mobile too */
    }
    
    .construct-visualization-container {
        padding: var(--spacing-xs);
        margin: 0 auto;
        text-align: center;
    }
    
    .section-header {
        text-align: left;
        padding: 0 var(--spacing-sm);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .construct-info-panel h3 {
        font-size: 1.1rem;
    }
    
    .construct-info-panel p {
        font-size: 0.85rem;
    }
}

/* Mobile legend styles */
@media (max-width: 768px) {
    .mobile-legend {
        margin-top: var(--spacing-lg);
        text-align: center;
    }

    .mobile-legend-content {
        display: inline-block;
        padding: var(--spacing-md);
        background: var(--neutral-blue);
        border-radius: 8px;
        opacity: 0.95;
    }

    .mobile-legend h4 {
        color: var(--oxford-blue);
        font-family: "Open Sans", sans-serif;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: var(--spacing-xs);
    }

    .mobile-legend .legend-items {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }
    
    .mobile-legend .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        color: var(--oxford-blue);
        font-family: "Open Sans", sans-serif;
    }

    .mobile-legend .legend-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }
    
    .mobile-legend .legend-dot.outer {
        background-color: var(--oxford-blue);
        border: 2px solid var(--oxford-blue);
    }

    .mobile-legend .legend-dot.inner {
        background-color: rgba(1, 30, 65, 0.4);
    }
}

@media (min-width: 769px) {
    .mobile-legend {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--oxford-blue);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        min-width: 200px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm);
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        border-radius: 4px;
        width: 100%;
        text-align: left;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hamburger menu animation - perfect X formation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        transform-origin: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .overview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Demo section mobile styles - horizontal scrolling with fixed column width */
    .demo-grid {
        display: flex;
        flex-direction: row;
        min-height: 60vh;
        max-height: 60vh;
        gap: var(--spacing-sm);
        border-radius: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: var(--spacing-sm);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
    }
    
    .demo-column {
        min-width: 340px;
        max-width: 340px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: var(--white);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .demo-column:last-child {
        margin-right: var(--spacing-sm);
    }
    
    .demo-column h3 {
        font-size: 1rem;
        font-weight: 600;
        padding: var(--spacing-md);
        background: #f8f9fa;
        color: var(--oxford-blue);
        margin: 0;
        border-radius: 8px 8px 0 0;
        flex-shrink: 0;
        border-bottom: 1px solid #eee;
    }
    
    .demo-column-content {
        padding: var(--spacing-md);
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Custom scrollbar for demo columns - grey like desktop */
    .demo-column-content::-webkit-scrollbar {
        width: 3px;
    }
    
    .demo-column-content::-webkit-scrollbar-track {
        background: #f8f9fa;
    }
    
    .demo-column-content::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
    
    .demo-column-content::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    /* Horizontal scrollbar for main container - grey like desktop */
    .demo-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .demo-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .demo-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .demo-grid::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    /* Task card mobile improvements */
    .task-card {
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .task-card .task-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Response section mobile improvements */
    .response-section {
        margin-bottom: var(--spacing-md);
    }
    
    .response-section h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .response-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Rubric mobile improvements - perfect alignment */
    .rubric-item {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
        background: var(--white);
        border-radius: 4px;
    }
    
    .rubric-header {
        display: grid !important;
        grid-template-columns: 1fr 50px 70px;
        gap: var(--spacing-sm);
        align-items: center;
        margin-bottom: var(--spacing-md);
        width: 100%;
    }
    
    .rubric-header-text {
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--text-dark);
        text-align: center;
    }
    
    .rubric-header-text:first-child {
        text-align: left;
    }
    
    .rubric-criterion {
        font-size: 0.85rem;
        line-height: 1.3;
        overflow: hidden;
    }
    
    .rubric-points {
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        justify-self: center;
    }
    
    .rubric-status {
        font-size: 0.75rem;
        padding: 4px 8px;
        text-align: center;
        border-radius: 4px;
        justify-self: center;
        width: 50px;
    }
    
    .rubric-description {
        font-size: 0.8rem;
        margin-top: var(--spacing-xs);
    }
    
    /* Progress Section for Mobile */
    .demo-progress-container {
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
        border-radius: 0 0 12px 12px;
    }
    
    .demo-progress-scaffolding {
        display: block; /* No scaffolding on mobile - full width */
        padding: 0;
    }
    
    .progress-spacer {
        display: none; /* Hide spacers on mobile */
    }
    
    .demo-progress {
        background-color: transparent;
        padding: var(--spacing-lg);
        text-align: center;
        margin-top: 0;
    }
    
    .progress-bar-container {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .progress-slider-container {
        width: 100%;
        position: relative;
    }
    
    .progress-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.875rem;
        color: var(--text-light);
        margin-bottom: var(--spacing-sm);
        font-weight: 500;
        align-items: center;
    }
    
    .progress-label-no,
    .progress-label-yes {
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
    }
    
    .label-no {
        background-color: #6c757d; /* Match rubric 'No' boxes */
    }
    
    .label-yes {
        background-color: #28a745; /* Match rubric 'Yes' boxes */
    }
    
    .progress-bar {
        width: 100%;
        height: 6px;
        background-color: #e9ecef;
        border-radius: 3px;
        position: relative;
        margin: var(--spacing-sm) 0;
    }
    
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--oxford-blue) 0%, var(--electric-blue) 100%);
        border-radius: 3px;
        transition: width 0.8s ease;
        position: relative;
    }
    
    .progress-indicator {
        position: absolute;
        right: -6px;
        top: -3px;
        width: 12px;
        height: 12px;
        background: var(--electric-blue);
        border: 2px solid var(--white);
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .raw-score-badge {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--oxford-blue);
        color: var(--white);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 8px;
        white-space: nowrap;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .progress-score-box {
        background: var(--white);
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: var(--spacing-sm);
        min-width: 80px;
        max-width: 100px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .progress-score {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--oxford-blue);
        margin: 0;
        line-height: 1;
    }
    
    .progress-score-combined {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--oxford-blue);
        margin: 0;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }
    
    .progress-label {
        font-size: 0.875rem;
        color: var(--text-light);
        margin-top: 4px;
        font-weight: 500;
        white-space: nowrap;
    }
}