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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
nav {
    background: #1e3a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-brand {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 15px 0;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px;
    flex-direction: row;
}

.nav-links li {
    margin: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 15px 16px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #60a5fa;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #60a5fa;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Header - Compact Version */
header {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 20%, #1e3a8a 60%, #2563eb 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Removed decorative elements for compact design */

header .container {
    position: relative;
    z-index: 1;
}

.header-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.course-info {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Main Content */
main {
    padding: 25px 20px;
}

.intro {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #dc2626, #2563eb, #d97706, #059669) 1;
    border-image-slice: 1 0 0 0;
    text-align: center;
}

.intro h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 12px;
    position: relative;
}

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

.big-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: #92400e;
    padding: 12px 15px;
    background: white;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.12);
    font-style: italic;
}

.info-box {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-box h3 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
    color: #4b5563;
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.unit-card {
    display: block;
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
    text-decoration: none;
    height: 200px;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.unit-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.unit-number-large {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0;
}

.unit-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.unit-card:hover .unit-number-large {
    opacity: 1;
}

.unit-card:hover .unit-details {
    opacity: 0;
}

.unit1 {
    border-left-color: #dc2626;
    animation-delay: 0.1s;
}
.unit2 {
    border-left-color: #2563eb;
    animation-delay: 0.2s;
}
.unit3 {
    border-left-color: #d97706;
    animation-delay: 0.3s;
}
.unit4 {
    border-left-color: #059669;
    animation-delay: 0.4s;
}

.unit1 .unit-number-large { color: #dc2626; }
.unit2 .unit-number-large { color: #2563eb; }
.unit3 .unit-number-large { color: #d97706; }
.unit4 .unit-number-large { color: #059669; }

.unit-details h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.unit-details .essential-q {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Capstone Info */
.capstone-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid #7dd3fc;
    position: relative;
    overflow: hidden;
}

.capstone-info h2 {
    color: #0c4a6e;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.capstone-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #0369a1;
    line-height: 1.6;
}

.deadline {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Unit Page Styles */
.unit-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.unit-header h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    height: 0;
    padding-bottom: 31.25%; /* 16:5 aspect ratio (5/16 * 100%) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Add subtle overlay for better image visibility */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.hero-image-text {
    display: none; /* Hidden - images speak for themselves */
}

/* Unit-Specific Hero Image Fallback Gradients */
body[data-unit="1"] .hero-image {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
}

body[data-unit="2"] .hero-image {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
}

body[data-unit="3"] .hero-image {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

body[data-unit="4"] .hero-image {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* When actual images are loaded, they will override these gradients */
.hero-image[style*="background-image"] {
    background-blend-mode: overlay;
}

/* Hide placeholder icon when image is loaded */
.hero-image[style*="background-image"]::before {
    display: none;
}

.section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e5e7eb;
}

.section h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vocab-card {
    background: white;
    border-radius: 12px;
    min-height: 140px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    transition: transform 0.3s ease;
}

.vocab-card:hover {
    transform: translateY(-4px);
}

.vocab-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.vocab-card.flipped .vocab-card-inner {
    transform: rotateY(180deg);
}

.vocab-card-front,
.vocab-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 140px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vocab-card-front {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
}

.vocab-card-back {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    transform: rotateY(180deg);
}

.vocab-term {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-align: center;
}

.vocab-def {
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.vocab-card-front::after {
    content: '🔄 Click to flip';
    position: absolute;
    bottom: 10px;
    font-size: 0.75rem;
    color: #64748b;
    opacity: 0.7;
}

.people-list, .events-list, .documents-list {
    margin-top: 15px;
}

.people-list li, .events-list li, .documents-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.people-list strong, .events-list strong, .documents-list strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 5px;
}

.video-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #93c5fd;
}

.video-placeholder {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    color: #1e40af;
    margin-bottom: 15px;
    border: 3px dashed #3b82f6;
    position: relative;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: #f0f9ff;
    transform: scale(1.02);
}

.video-placeholder::before {
    content: '▶️';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

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

.reflection-questions {
    background: #fef3c7;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.reflection-questions h3 {
    color: #92400e;
    margin-top: 0;
}

.reflection-questions ul {
    margin-left: 20px;
}

.reflection-questions li {
    margin-bottom: 12px;
    color: #78350f;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #4b5563;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
}

.back-to-top::before {
    content: '↑';
}

/* Section Enhancements */
.section {
    animation: fadeInUp 0.8s ease-out;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #dc2626, #2563eb);
    margin-right: 12px;
    border-radius: 3px;
    vertical-align: middle;
}

/* Timeline Style for Events */
.events-list {
    position: relative;
    padding-left: 30px;
}

.events-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #10b981);
    border-radius: 2px;
}

.events-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.events-list li::before {
    content: '📍';
    position: absolute;
    left: -25px;
    background: white;
    padding: 2px;
}

/* People Cards Enhancement */
.people-list li {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.people-list li:hover {
    background: #f0f9ff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reflection Questions Enhancement */
.reflection-questions {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    position: relative;
}

.reflection-questions::before {
    content: '💭';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .intro, .section, .capstone-info {
        padding: 25px;
    }

    .vocab-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .unit-card {
        animation: none;
    }

    .events-list {
        padding-left: 20px;
    }

    /* Mobile Navigation */
    nav .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        border-left-color: #60a5fa;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .intro h2, .section h2 {
        font-size: 1.5rem;
    }

    .big-question {
        font-size: 1.2rem;
        padding: 15px;
    }
}

/* Landing Page Optimizations - Fit Everything on One Screen for Laptops/Chromebooks */
@media (min-width: 1024px) {
    .landing-page header {
        padding: 20px 0;
    }

    .landing-page header h1 {
        font-size: 2rem;
        margin-bottom: 3px;
    }

    .landing-page .subtitle {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .landing-page .course-info {
        font-size: 0.85rem;
    }

    .landing-page main {
        padding: 15px 20px;
    }

    .landing-page .intro {
        padding: 18px;
        margin-bottom: 15px;
    }

    .landing-page .intro h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .landing-page .big-question {
        font-size: 1rem;
        padding: 12px 15px;
        margin-bottom: 12px;
    }

    /* Hide info box on landing page to save space */
    .landing-page .info-box {
        display: none;
    }

    .landing-page .units-grid {
        gap: 12px;
        margin-bottom: 15px;
    }

    .landing-page .unit-card {
        padding: 15px;
    }

    .landing-page .unit-card h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .landing-page .essential-q {
        font-size: 0.85rem;
        margin-bottom: 12px;
        min-height: 40px;
        line-height: 1.4;
    }

    .landing-page .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .landing-page .capstone-info {
        padding: 18px;
        margin-bottom: 0;
    }

    .landing-page .capstone-info h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .landing-page .capstone-info p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .landing-page footer {
        padding: 12px 0;
    }

    .landing-page footer p {
        font-size: 0.75rem;
    }
}

/* Extra compact for smaller laptops (1366x768) */
@media (min-width: 1024px) and (max-height: 900px) {
    .landing-page header {
        padding: 15px 0;
    }

    .landing-page header h1 {
        font-size: 1.8rem;
        margin-bottom: 2px;
    }

    .landing-page .subtitle {
        font-size: 0.95rem;
    }

    .landing-page main {
        padding: 12px 20px;
    }

    .landing-page .intro {
        padding: 15px;
        margin-bottom: 12px;
    }

    .landing-page .intro h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .landing-page .big-question {
        font-size: 0.95rem;
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .landing-page .units-grid {
        gap: 10px;
        margin-bottom: 12px;
    }

    .landing-page .unit-card {
        padding: 12px;
    }

    .landing-page .unit-card h2 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .landing-page .essential-q {
        font-size: 0.8rem;
        margin-bottom: 10px;
        min-height: 35px;
    }

    .landing-page .btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .landing-page .capstone-info {
        padding: 15px;
    }

    .landing-page .capstone-info h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .landing-page .capstone-info p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .landing-page footer {
        padding: 10px 0;
    }

    .landing-page footer p {
        font-size: 0.7rem;
    }
}

/* Ultra compact for very small laptop screens */
@media (min-width: 1024px) and (max-height: 768px) {
    .landing-page header {
        padding: 12px 0;
    }

    .landing-page header h1 {
        font-size: 1.6rem;
    }

    .landing-page .intro {
        padding: 12px;
        margin-bottom: 10px;
    }

    .landing-page .units-grid {
        gap: 8px;
        margin-bottom: 10px;
    }

    .landing-page .unit-card {
        padding: 10px;
    }

    .landing-page .capstone-info {
        padding: 12px;
    }
}

/* Unit Pages & Capstone Optimizations - More Compact for Better Readability */
@media (min-width: 1024px) {
    /* Reduce header size on unit pages */
    body:not(.landing-page) header {
        padding: 30px 0;
    }

    body:not(.landing-page) header h1 {
        font-size: 2.2rem;
    }

    body:not(.landing-page) .subtitle {
        font-size: 1.1rem;
    }

    /* Compact main content */
    body:not(.landing-page) main {
        padding: 25px 20px;
    }

    /* Smaller sections */
    body:not(.landing-page) .section {
        padding: 25px;
        margin-bottom: 25px;
    }

    body:not(.landing-page) .section h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    body:not(.landing-page) .section h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        margin-top: 20px;
    }

    body:not(.landing-page) .section p,
    body:not(.landing-page) .section li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    /* Compact unit header */
    body:not(.landing-page) .unit-header {
        margin-bottom: 25px;
    }

    body:not(.landing-page) .big-question {
        font-size: 1.2rem;
        padding: 15px;
        margin-bottom: 20px;
    }

    /* Adjust hero image aspect ratio for desktop */
    body:not(.landing-page) .hero-image {
        padding-bottom: 25%; /* 4:1 aspect ratio on desktop */
        margin-bottom: 20px;
        border-radius: 12px;
    }

    /* Compact vocab cards */
    body:not(.landing-page) .vocab-grid {
        gap: 15px;
    }

    body:not(.landing-page) .vocab-card {
        min-height: 120px;
    }

    body:not(.landing-page) .vocab-card-front,
    body:not(.landing-page) .vocab-card-back {
        min-height: 120px;
        padding: 15px;
    }

    body:not(.landing-page) .vocab-term {
        font-size: 1rem;
    }

    body:not(.landing-page) .vocab-def {
        font-size: 0.85rem;
    }

    /* Lists spacing */
    body:not(.landing-page) .people-list,
    body:not(.landing-page) .events-list,
    body:not(.landing-page) .documents-list {
        margin-top: 12px;
    }

    body:not(.landing-page) .people-list li,
    body:not(.landing-page) .events-list li,
    body:not(.landing-page) .documents-list li {
        margin-bottom: 12px;
        padding: 12px;
    }

    /* Video section */
    body:not(.landing-page) .video-section {
        padding: 20px;
    }

    body:not(.landing-page) .video-placeholder {
        padding: 40px 30px;
        font-size: 1rem;
    }

    /* Reflection questions */
    body:not(.landing-page) .reflection-questions {
        padding: 20px;
    }

    /* Footer */
    body:not(.landing-page) footer {
        padding: 20px 0;
    }

    body:not(.landing-page) footer p {
        font-size: 0.9rem;
    }

    /* Back link */
    body:not(.landing-page) .back-link {
        font-size: 0.95rem;
    }
}

/* Extra large screens - even taller hero banners */
@media (min-width: 1200px) {
    body:not(.landing-page) .hero-image {
        padding-bottom: 22%; /* Slightly taller on large screens */
    }
}

/* ============================================
   IMAGE BACKGROUNDS - Automatically Applied When Images Exist
   ============================================ */

/* Hero Images for Each Unit Page */
/* Note: Download images from IMAGES.md and place in /images/ folder */

/* Unit 1 Hero - 13 Colonies Map */
body:has(script[src*="script.js"]) .hero-image {
    background-image: url('images/unit1-hero.jpg');
}

/* Override hero images per page when files exist */
/* These will gracefully fallback to gradient if images aren't present */

/* Optional: Add subtle backgrounds to landing page unit cards */
.unit-card.unit1 {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 242, 242, 0.95) 100%), url('images/unit1-card.jpg');
    background-size: cover;
    background-position: center;
}

.unit-card.unit2 {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.95) 100%), url('images/unit2-card.jpg');
    background-size: cover;
    background-position: center;
}

.unit-card.unit3 {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 237, 0.95) 100%), url('images/unit3-card.jpg');
    background-size: cover;
    background-position: center;
}

.unit-card.unit4 {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.95) 100%), url('images/unit4-card.jpg');
    background-size: cover;
    background-position: center;
}

/* ============================================
   SLIDE NAVIGATION SYSTEM
   ============================================ */

/* Slide Container with Sidebar Navigation */
.slide-container {
    display: flex;
    gap: 0;
    max-width: 100%;
    padding: 0;
    min-height: calc(100vh - 120px);
}

/* Sidebar Navigation */
.slide-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 2px solid #cbd5e1;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.slide-sidebar-nav {
    padding: 20px 12px;
    counter-reset: section-counter;
}

.slide-sidebar-nav h3 {
    padding: 0 8px 10px;
    margin: 0 0 10px 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.slide-nav-item {
    padding: 12px 12px 12px 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #334155;
    display: block;
    text-decoration: none;
    background: #f8fafc;
    margin-bottom: 6px;
    font-weight: 500;
    position: relative;
    counter-increment: section-counter;
    /* Performance optimization for hover animations */
    will-change: transform, background-color;
}

.slide-nav-item::before {
    content: counter(section-counter);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #cbd5e1;
    color: #475569;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.slide-nav-item:hover {
    background: #e0f2fe;
    color: #0c4a6e;
    border-left-color: #7dd3fc;
    transform: translateX(2px);
}

.slide-nav-item:hover::before {
    background: #7dd3fc;
    color: #0c4a6e;
}

.slide-nav-item.active {
    background: #3b82f6;
    border-left-color: #1e40af;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.slide-nav-item.active::before {
    background: #ffffff;
    color: #3b82f6;
    font-weight: 700;
}

/* Focus state for keyboard navigation */
.slide-nav-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.slide-nav-item:focus:not(:focus-visible) {
    outline: none;
}

/* Main Content Area */
.slide-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 40px 30px;
    background: #ffffff;
    scroll-behavior: smooth;
    height: calc(100vh - 180px); /* Adjust based on header/nav height */
}

/* Individual Slides - Now just sections */
.slide {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.slide.active {
    display: block;
    margin-bottom: 40px; /* Space between stacked slides */
}

/* Last active slide in a section doesn't need bottom margin */
.slide.active:last-of-type {
    margin-bottom: 0;
}

/* Slide Content Wrapper */
.slide-content {
    width: 100%;
    padding: 20px 0;
    background: white;
}

/* Optional: Add visual separator between slides in same tab */
.slide.active + .slide.active {
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

/* Custom scrollbar for slide content */
.slide-content::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Old Arrow Navigation - Hidden (using sidebar now) */
.slide-nav {
    display: none;
}

/* Old Progress Bar - Hidden (using sidebar now) */
.slide-progress {
    display: none;
}

.slide-progress-text {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
}

/* Unit-Specific Navigation Colors */
body[data-unit="1"] .slide-nav-btn {
    background: rgba(220, 38, 38, 0.9);
}

body[data-unit="1"] .slide-nav-btn:hover {
    background: rgba(239, 68, 68, 0.95);
}

body[data-unit="1"] .slide-progress-bar {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

body[data-unit="2"] .slide-nav-btn {
    background: rgba(37, 99, 235, 0.9);
}

body[data-unit="2"] .slide-nav-btn:hover {
    background: rgba(59, 130, 246, 0.95);
}

body[data-unit="2"] .slide-progress-bar {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

body[data-unit="3"] .slide-nav-btn {
    background: rgba(217, 119, 6, 0.9);
}

body[data-unit="3"] .slide-nav-btn:hover {
    background: rgba(245, 158, 11, 0.95);
}

body[data-unit="3"] .slide-progress-bar {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

body[data-unit="4"] .slide-nav-btn {
    background: rgba(5, 150, 105, 0.9);
}

body[data-unit="4"] .slide-nav-btn:hover {
    background: rgba(16, 185, 129, 0.95);
}

body[data-unit="4"] .slide-progress-bar {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* Vocabulary Slide - Allow scrolling within the slide */
.slide-vocab .vocab-grid-wrapper {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .slide-container {
        height: calc(100vh - 50px);
        flex-direction: column;
    }

    .slide-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 2px solid #cbd5e1;
    }

    .slide-sidebar-nav {
        padding: 10px 8px;
    }

    .slide-sidebar-nav h3 {
        font-size: 0.65rem;
        padding: 0 8px 6px;
        margin-bottom: 6px;
    }

    .slide-nav-item {
        font-size: 0.8rem;
        padding: 8px 8px 8px 28px;
        margin-bottom: 4px;
    }

    .slide-nav-item::before {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        left: 8px;
    }

    .slide-main-content {
        padding: 15px 20px 30px;
    }

    .slide-content {
        padding: 15px 20px;
        max-height: calc(100vh - 100px);
    }

    .slide-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .slide-nav {
        padding: 0 10px;
    }

    .vocab-grid-wrapper {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 480px) {
    .slide-nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .slide-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .slide-content {
        padding: 12px 15px;
        border-radius: 12px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.2rem;
    }
}

/* Print Styles - Show all slides */
@media print {
    body {
        overflow: visible;
    }

    .slide-container {
        height: auto;
        overflow: visible;
    }

    .slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        page-break-after: always;
        height: auto;
        margin-bottom: 40px;
    }

    .slide-content {
        max-height: none;
        overflow: visible;
    }

    .slide-nav,
    .slide-progress,
    nav,
    .back-link {
        display: none;
    }
}

/* ============================================
   ADDITIONAL USABILITY IMPROVEMENTS
   ============================================ */

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3a8a;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Focus Indicators */
button:focus-visible,
a:focus-visible,
.vocab-card:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.slide-nav-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* Smooth Transitions for Better UX */
.nav-links a,
.btn,
.unit-card {
    transition: all 0.3s ease;
}

/* Loading State for Images */
.hero-image {
    position: relative;
    background-color: #e2e8f0;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-image[style*="background-image"]::before {
    display: none;
}

/* Improved Mobile Navigation Slide-in */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        background: white;
        width: 250px;
        height: calc(100vh - 60px);
        flex-direction: column;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: #1e3a8a;
        display: block;
        padding: 15px 20px;
        border-left: 3px solid transparent;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: #f1f5f9;
        border-left-color: #3b82f6;
    }
}

/* Better Contrast for Text on Slides */
.slide-content h2 {
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 1.5rem;
}

.slide-content h3 {
    color: #2d3748;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.slide-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.slide-content ul,
.slide-content ol {
    margin-top: 8px;
    margin-bottom: 12px;
    padding-left: 25px;
}

.slide-content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.slide-content li:last-child {
    margin-bottom: 0;
}

/* Keyboard Navigation Help Hint */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
    pointer-events: none;
    z-index: 98;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Ensure Accessible Color Contrast */
.big-question {
    color: #1e293b;
    font-weight: 500;
}

/* Improve Button Accessibility */
.btn:focus,
.slide-nav-btn:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Capstone-Specific Styles */

/* Capstone Questions Cards */
.capstone-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 8px solid;
}

.question-card.q1 {
    border-left-color: #3b82f6;
}

.question-card.q2 {
    border-left-color: #8b5cf6;
}

.question-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.question-card .big-question {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #334155;
}

.question-card .hints {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.question-card .hints h4 {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 8px;
}

.question-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Requirements Tabs */
.requirement-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.requirement-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
}

.requirement-tab:hover {
    color: #3b82f6;
}

.requirement-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.requirement-panel {
    display: none;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.requirement-panel.active {
    display: block;
}

.requirement-panel ul {
    list-style: none;
    padding: 0;
}

.requirement-panel li {
    padding: 12px;
    margin: 8px 0;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

/* Capstone Connection Banner */
.capstone-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.capstone-banner h2 {
    color: #92400e;
    margin-bottom: 15px;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid;
}

.tip-box.q1 {
    border-left-color: #3b82f6;
}

.tip-box.q2 {
    border-left-color: #8b5cf6;
}

.tip-box h4 {
    margin-bottom: 15px;
}

.tip-box .key-idea {
    background: #fef3c7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    color: #92400e;
}

/* Mobile Responsive for Capstone */
@media (max-width: 768px) {
    .capstone-questions {
        grid-template-columns: 1fr;
    }

    .requirement-tabs {
        flex-direction: column;
    }

    .requirement-tab {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .requirement-tab.active {
        border-left-color: #3b82f6;
        border-bottom-color: transparent;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Format Options Cards - Capstone Page */
.format-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.format-option-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-color, #3b82f6);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

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

.format-option-number {
    color: var(--accent-color, #3b82f6);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.format-option-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.format-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-style: italic;
}

.format-option-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.format-option-card ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.format-option-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color, #3b82f6);
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .format-options-grid {
        grid-template-columns: 1fr;
    }

    .format-option-card {
        min-height: auto;
    }
}

/* ============================================
   VISUAL CHARACTER ELEMENTS
   Quote Callouts, Image Showcases, Fun Facts, Assignment Highlights
   ============================================ */

/* Quote Callout Boxes */
.quote-callout {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 5px solid var(--quote-color, #3b82f6);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-callout::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--quote-color, #3b82f6);
    opacity: 0.15;
    line-height: 1;
}

.quote-callout-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 10px;
}

.quote-callout-attribution {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

.quote-callout-attribution::before {
    content: '— ';
}

/* Unit-specific quote colors */
body[data-unit="1"] .quote-callout {
    --quote-color: #dc2626;
}

body[data-unit="2"] .quote-callout {
    --quote-color: #2563eb;
}

body[data-unit="3"] .quote-callout {
    --quote-color: #d97706;
}

body[data-unit="4"] .quote-callout {
    --quote-color: #059669;
}

/* Image Showcase Boxes */
.image-showcase {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--showcase-color, #3b82f6);
}

.image-showcase img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-showcase-caption {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

.image-showcase-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

/* Unit-specific showcase colors */
body[data-unit="1"] .image-showcase {
    --showcase-color: #dc2626;
}

body[data-unit="2"] .image-showcase {
    --showcase-color: #2563eb;
}

body[data-unit="3"] .image-showcase {
    --showcase-color: #d97706;
}

body[data-unit="4"] .image-showcase {
    --showcase-color: #059669;
}

/* Fun Fact Boxes */
.fun-fact {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.fun-fact::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
}

.fun-fact-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fun-fact p {
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

/* Assignment Highlight Boxes */
.assignment-highlight {
    background: white;
    border: 2px dashed var(--assignment-color, #3b82f6);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.assignment-highlight-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--assignment-color, #3b82f6);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.assignment-highlight-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--assignment-color, #3b82f6);
    margin-bottom: 10px;
}

.assignment-highlight p {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 10px;
}

.assignment-highlight ul {
    margin-left: 20px;
    color: #334155;
}

/* Unit-specific assignment colors */
body[data-unit="1"] .assignment-highlight {
    --assignment-color: #dc2626;
}

body[data-unit="2"] .assignment-highlight {
    --assignment-color: #2563eb;
}

body[data-unit="3"] .assignment-highlight {
    --assignment-color: #d97706;
}

body[data-unit="4"] .assignment-highlight {
    --assignment-color: #059669;
}

/* Print Optimization */
@media print {
    @page {
        margin: 1cm;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    ul, ol {
        page-break-inside: avoid;
    }
}
