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

:root {
    --parchment: #f4e8d0;
    --parchment-dark: #d4c4a8;
    --ink: #2c1810;
    --ink-light: #5a4a3a;
    --accent: #8b4513;
    --accent-light: #cd853f;
    --success: #2d5016;
    --gray-light: #f8f4ed;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: var(--ink);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--parchment);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.3);
    overflow: hidden;
    border: 3px solid var(--accent);
}

.header {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
    color: var(--parchment);
    padding: 40px;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 1px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 25px 40px;
    background: var(--gray-light);
    border-bottom: 2px solid var(--accent-light);
}

.stat-card {
    background: var(--parchment);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
    border: 1px solid var(--accent-light);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--ink);
    font-size: 0.9em;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    background: var(--gray-light);
    border-bottom: 3px solid var(--accent);
    overflow-x: auto;
}

.nav-tab {
    padding: 18px 25px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-light);
    transition: all 0.3s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-family: 'Georgia', serif;
}

.nav-tab:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--accent);
}

.nav-tab.active {
    background: var(--parchment);
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    padding: 40px;
    background: var(--parchment);
}

.tab-content.active { display: block; }

.section-title {
    font-size: 2em;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.instruction-text {
    margin-bottom: 25px;
    font-style: italic;
    color: var(--ink-light);
}

.clo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.clo-card {
    background: white;
    border: 2px solid var(--accent-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.clo-number {
    background: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.module-card {
    background: white;
    border: 2px solid var(--accent-light);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    background: var(--gray-light);
    border-bottom: 1px solid var(--accent-light);
    transition: all 0.3s;
}

.module-header:hover {
    background: var(--parchment-dark);
}

.module-header.active {
    background: var(--parchment-dark);
}

.module-number {
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 20px;
    flex-shrink: 0;
}

.module-title-wrapper {
    flex: 1;
}

.module-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.module-meta {
    color: var(--ink-light);
    font-size: 0.9em;
    font-style: italic;
}

.toggle-icon {
    font-size: 1.5em;
    color: var(--accent);
    transition: transform 0.3s;
    margin-left: 15px;
}

.module-header.active .toggle-icon {
    transform: rotate(180deg);
}

.module-content {
    display: none;
    padding: 30px;
}

.module-content.active {
    display: block;
}

.subsection {
    margin-bottom: 30px;
}

.subsection-title {
    font-size: 1.3em;
    color: var(--accent);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-light);
}

.inquiry-list, .mlo-list {
    list-style: none;
    padding: 0;
}

.inquiry-list li {
    padding: 12px;
    margin: 10px 0;
    background: var(--gray-light);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    font-style: italic;
}

.mlo-list li {
    padding: 15px;
    margin: 12px 0;
    background: white;
    border: 1px solid var(--accent-light);
    border-radius: 6px;
    padding-left: 20px;
}

.clo-alignment {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
    color: var(--accent);
    font-style: italic;
    font-weight: 600;
}

.activity-card {
    background: white;
    border: 2px solid var(--accent-light);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.activity-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.activity-card.featured {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border-color: #d4af37;
}

/* Skills cards should not be clickable */
#skills-container .activity-card {
    cursor: default;
}

#skills-container .activity-card:hover {
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--ink);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 8px;
}

.badge-auto {
    background: #d4edda;
    color: var(--success);
}

.badge-points {
    background: var(--accent-light);
    color: white;
}

.badge-featured {
    background: #d4af37;
    color: white;
}

.activity-meta {
    color: var(--ink-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.activity-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-light);
}

.activity-details.active {
    display: block;
}

.question-block {
    background: var(--gray-light);
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.question-text {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}

.answer-option {
    padding: 8px 12px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
}

.answer-option.correct {
    background: #d4edda;
    border-left: 3px solid var(--success);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--accent-light);
}

th {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--gray-light);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Georgia', serif;
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.print-btn, .copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
    margin-left: 10px;
    font-family: 'Georgia', serif;
}

.print-btn:hover, .copy-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.print-btn:active, .copy-btn:active {
    transform: translateY(0);
}

.activity-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media print {
    .modal-header-print, .modal-container {
        display: none !important;
    }
    .modal-content-print {
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    body {
        background: white !important;
    }
    h1, h2, h3 {
        page-break-after: avoid;
    }
    ul, ol, table {
        page-break-inside: avoid;
    }
    .print-btn, .copy-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-tabs {
        flex-wrap: wrap;
    }
    .module-header {
        flex-wrap: wrap;
    }
}
