@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===============================================
   RESET & BASE STYLES
   =============================================== */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f5dc 0%, #e8e5d3 100%);
    min-height: 100vh;
    color: #4a5c3a;
    line-height: 1.6;
}

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

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    color: #6b7d5a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    color: #7a8b6a;
    font-style: italic;
    font-weight: 400;
}

/* ===============================================
   MAIN NAVIGATION
   =============================================== */

.main-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
    margin-top: 5px !important;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: transform;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

/* Chapter cards */
.chapter-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 15px;
    padding: 20px 24px 25px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* knipt lijn netjes af */
    will-change: transform, background-color;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(107, 125, 90, 0.15);

    /* Tekststijl */
    font-size: 1.1rem;   /* iets groter */
    font-weight: 600;    /* vetter */
    color: #4a5c3a;
    text-align: center;
}

/* Groene animatielijn onderaan */
.chapter-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px; /* dikkere lijn */
    background: linear-gradient(90deg, #6b7d5a, #8ba173);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

/* Hover: volledige lijn in lichtere tint */
.chapter-card:hover::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, #8ba173, #a6bb8e);
}

/* Actieve state */
.chapter-card.active {
    background: rgba(255, 255, 255, 0.98) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(107, 125, 90, 0.2) !important;
    z-index: 2;
}

/* Active: volledige lijn in diepe kleur */
.chapter-card.active::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, #6b7d5a, #8ba173);
}

.chapter-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.2);
}

.chapter-card:focus {
    outline: 2px solid #8ba173;
    outline-offset: 2px;
}

.chapter-card:active {
    transform: translateY(0px) scale(0.98);
}

/* Tekstkleur in active state */
.chapter-card.active .chapter-title,
.chapter-card.active .chapter-description {
    color: #4a5c3a !important;
}

/* ===============================================
   SUBMENU
   =============================================== */

.submenu {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    opacity: 0;

    transform: translateY(-10px);
    transition: all 0.3s ease;
    will-change: opacity, transform;
}

.submenu {
    background: rgba(255, 255, 255, 0.05) !important;
}

.submenu.active {
    background: rgba(255, 255, 255, 0.05) !important;
}

.submenu.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.sub-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 24px;

    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(107, 125, 90, 0.1);
    font-size: 1em;
    font-weight: 700;
    color: #4a5c3a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    will-change: transform, background-color;
}

.sub-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6b7d5a, #8ba173);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.sub-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 125, 90, 0.15);
    border-color: rgba(107, 125, 90, 0.2);
}

.sub-item:hover::before {
    transform: scaleY(1);
}

.sub-item:focus {
    outline: 2px solid #8ba173;
    outline-offset: 2px;
}

.sub-item:active {
    transform: translateY(0px) scale(0.98);
}

.sub-item.active {
    background: linear-gradient(135deg, #6b7d5a, #8ba173);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 125, 90, 0.3);
}

.sub-item.active::before {
    background: rgba(255, 255, 255, 0.3);
    transform: scaleY(1);
    width: 100%;
}

.sub-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.sub-item:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* More specific targeting for submenu items */
.submenu .sub-item.active {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(107, 125, 90, 0.15) !important;
	color: #4a5c3a !important;
}

/* Force the green line to stay visible */
.submenu .sub-item.active::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #6b7d5a, #8ba173) !important;
    transform: scaleY(1) !important;
    transform-origin: bottom !important;
    transition: transform 0.3s ease !important;
}

/* ===============================================
   CONTENT AREA
   =============================================== */

.content-area {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 40px;
    min-height: 500px;
    backdrop-filter: blur(5px);
}

#page-content {
    display: block;
}

.page-content {
    display: none;
}

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

/* ===============================================
   WELCOME SECTION
   =============================================== */

.welcome-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.welcome-image-container {
    text-align: center;
    margin: 40px 0;
    animation: fadeInUp 1s ease-out;
}

.welcome-image-container img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===============================================
   COMMON SECTION LAYOUTS
   =============================================== */

.world-section,
.duim-section,
.journey-section,
.communication-section,
.relationship-section,
.conversation-section,
.talents-section,
.activity-box,
.story-section {
    margin: 40px 0;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8ba173;
}

.world-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(139, 161, 115, 0.2);
}

.duim-section,
.journey-section,
.communication-section,
.relationship-section {
    background: rgba(255, 255, 255, 0.6);
}

.conversation-section {
    background: rgba(255, 255, 255, 0.7);
}

.talents-section {
    background: rgba(139, 161, 115, 0.05);
}

.activity-box {
    background: #e8e5d3;
    margin: 20px 0;
}

.story-section {
    background: rgba(139, 161, 115, 0.1);
}

/* Section Headers */
.section-header,
.section-header-simple,
.section-header-journey,
.section-header-communication {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 161, 115, 0.3);
}

.section-header h3,
.section-header-simple h3,
.section-header-journey h3,
.section-header-communication h3 {
    color: #6b7d5a;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 600;
}

.section-header-simple h3 {
    color: #8ba173;
    font-size: 1.2em;
}

.section-header-journey h3,
.section-header-communication h3 {
    color: #8ba173;
    font-size: 1.3em;
}

.section-icon,
.fragment-icon,
.assignment-icon {
    font-size: 2em;
    animation: bounce 2s infinite;
}

.section-text p {
    line-height: 1.6;
    color: #4a5c3a;
    margin-bottom: 15px;
}

/* Special Sections */
.intro-section,
.intro-communication {
    background: rgba(139, 161, 115, 0.1);
}

.individual-reflection,
.babel-section {
    background: rgba(139, 161, 115, 0.05);
}

.pressure-section,
.birds-section,
.dare-to-be-different,
.non-communication,
.language-exercise,
.statements-section,
.communication-model,
.story-summary {
    background: rgba(255, 255, 255, 0.9);
}

.hopeful-class {
    background: rgba(139, 161, 115, 0.08);
}

.reflection-section {
    background: rgba(139, 161, 115, 0.1);
}

/* ===============================================
   FORM ELEMENTS & INPUTS
   =============================================== */

.activity-box input[type="text"],
.quality-input,
.difference-input,
.example-input,
.classmate-input,
.reasoning-input,
.input-row input,
.input-cell input {
    width: 100%;
    padding: 12px;
    border: 2px solid #c9d3b8;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.activity-box input[type="text"]:focus,
.quality-input:focus,
.difference-input:focus,
.example-input:focus,
.classmate-input:focus,
.reasoning-input:focus,
.input-row input:focus,
.input-cell input:focus {
    outline: none;
    border-color: #8ba173;
    background: rgba(255, 255, 255, 0.9);
}

.reasoning-input {
    min-height: 80px;
    resize: vertical;
}

.question-group textarea,
.column-input textarea,
.eerste-cell textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #c9d3b8;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.question-group textarea:focus,
.column-input textarea:focus,
.eerste-cell textarea:focus {
    outline: none;
    border-color: #8ba173;
    background: rgba(255, 255, 255, 0.9);
}

/* ===============================================
   BUTTONS & INTERACTIVE ELEMENTS
   =============================================== */

.language-btn,
.choice-option,
.language-choice-item .choice-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #c9d3b8;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a5c3a;
    text-align: center;
}

.language-btn:hover,
.choice-option:hover {
    border-color: #8ba173;
    background: white;
    transform: translateY(-2px);
}

.language-btn.selected,
.choice-option.selected {
    background: #8ba173;
    color: white;
    border-color: #6b7d5a;
}

/* ===============================================
   ACCORDION SYSTEM
   =============================================== */

.question-accordion {
    margin: 20px 0;
    border: 2px solid #c9d3b8;
    border-radius: 10px;
    overflow: hidden;
}

.question-header {
    background: rgba(139, 161, 115, 0.1);
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    user-select: none;
}

.question-header:hover {
    background: rgba(139, 161, 115, 0.2);
}

.question-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.accordion-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    color: #6b7d5a;
    font-weight: bold;
    margin-left: auto;
    flex-shrink: 0;
}

.accordion-arrow.rotated {
    transform: rotate(180deg);
}

.answer-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.answer-content.expanded {
    max-height: 1000px;
    padding: 20px;
}

.answer-box {
    background: rgba(139, 161, 115, 0.1);
    border-left: 4px solid #8ba173;
    padding: 15px;
    border-radius: 8px;
}

.answer-box p,
.answer-box li {
    margin-bottom: 10px;
    color: #4a5c3a;
}

.answer-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.answer-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ===============================================
   CARDS & GRIDS
   =============================================== */

.classmates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.classmate-card {
    background: rgba(139, 161, 115, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.classmate-card:hover {
    background: rgba(139, 161, 115, 0.2);
    border-color: #8ba173;
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.card-icon:nth-child(odd) {
    animation-delay: -1s;
}

.classmate-card h4 {
    color: #6b7d5a;
    margin-bottom: 15px;
    font-size: 1em;
    font-weight: 600;
}

/* ===============================================
   GROUPS DIAGRAM
   =============================================== */

.groups-diagram {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px dashed #c9d3b8;
}

.group-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(139, 161, 115, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    border: 3px solid #8ba173;
    transition: all 0.3s ease;
}

.group-circle:hover {
    background: rgba(139, 161, 115, 0.4);
    transform: scale(1.05);
}

.group-circle.center {
    width: 120px;
    height: 120px;
    background: #6b7d5a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.group-circle.top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.group-circle.left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.group-circle.right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.group-circle.bottom-left {
    bottom: 20px;
    left: 100px;
}

.group-circle.bottom-right {
    bottom: 20px;
    right: 100px;
}

.group-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #6b7d5a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.center-label {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.group-input {
    width: 100%;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    text-align: center;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.group-input:focus {
    outline: none;
    border-color: #6b7d5a;
    background: white;
}

/* ===============================================
   RELATIONSHIP TABLE
   =============================================== */

.relationship-table-side-by-side {
    display: flex;
    margin: 30px 0;
    border: 3px solid #8ba173;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.2);
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 15px 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

.column-header.chosen {
    background: #8ba173;
}

.column-header.not-chosen {
    background: #6b7d5a;
}

.column-header h4 {
    margin: 0;
    color: white;
    font-size: 1.1em;
}

.column-input {
    background: white;
    flex-grow: 1;
}

.column-input textarea {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    padding: 20px;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    resize: none;
    background: white;
    color: #4a5c3a;
    box-sizing: border-box;
}

.column-input textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* ===============================================
   LANGUAGE & STATEMENTS
   =============================================== */

.language-choice-item {
    background: rgba(139, 161, 115, 0.1);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #8ba173;
    margin: 30px 0;
}

.statement-text {
    background: #6b7d5a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.choice-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.choice-or {
    background: rgba(139, 161, 115, 0.3);
    color: #6b7d5a;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.language-choices {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

/* Statements Grid */
.statements-grid {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.statement-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

.statement-option {
    background: rgba(139, 161, 115, 0.1);
    border: 2px solid rgba(139, 161, 115, 0.2);
    border-radius: 12px;
    padding: 20px 20px 20px 65px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 80px;
}

.statement-option:hover {
    background: rgba(139, 161, 115, 0.2);
    border-color: #8ba173;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.2);
}

.statement-option.correct {
    background: rgba(139, 161, 115, 0.3);
    border-color: rgba(139, 161, 115, 0.6);
}

.statement-option.incorrect {
    background: rgba(180, 180, 190, 0.2);
    border-color: rgba(160, 160, 170, 0.5);
}

.statement-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, sans-serif;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.statement-option.correct .statement-icon {
    background: #8ba173;
    color: white;
}

.statement-option.incorrect .statement-icon {
    background: #999;
    color: white;
}

.statement-option p {
    margin: 0;
    line-height: 1.5;
    color: #4a5c3a;
    font-weight: 500;
}

/* ===============================================
   MEANING TABLE
   =============================================== */

.meaning-table {
    background: rgba(139, 161, 115, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.meaning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #c9d3b8;
    border-radius: 10px;
    overflow: hidden;
}

.meaning-header {
    padding: 15px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meaning-header.tweede {
    background: #8ba173;
    color: white;
}

.meaning-header.eerste {
    background: #6b7d5a;
    color: white;
}

.meaning-cell {
    padding: 20px;
    background: white;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.tweede-cell {
    background: rgba(139, 161, 115, 0.1);
    font-style: italic;
    color: #4a5c3a;
}

/* ===============================================
   COMMUNICATION MODEL
   =============================================== */

.communication-table,
.model-inputs {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid rgba(139, 161, 115, 0.2);
    display: grid;
    gap: 15px;
}

.input-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: center;
}

.input-row label {
    font-weight: 500;
    color: #6b7d5a;
    text-align: right;
}

.table-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    background: rgba(139, 161, 115, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #4a5c3a;
}

.table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(139, 161, 115, 0.1);
}

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

.role-cell {
    font-weight: 500;
    color: #6b7d5a;
    background: rgba(139, 161, 115, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
}

/* ===============================================
   DRAWING & CREATIVE SECTIONS
   =============================================== */

.story-assignment,
.creative-assignment {
    background: rgba(139, 161, 115, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

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

.assignment-header h4 {
    color: #6b7d5a;
    font-size: 1.3em;
    margin: 0;
}

.drawing-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.drawing-box {
    position: relative;
}

.box-number {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #6b7d5a;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.drawing-area {
    background: #f8f8f8;
    min-height: 150px;
    border: 2px dashed #c9d3b8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8ba173;
    font-style: italic;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.drawing-area:hover {
    border-color: #8ba173;
    background: rgba(139, 161, 115, 0.05);
}

/* ===============================================
   SITUATIONS & CARDS
   =============================================== */

.situation-cards {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.situation-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 161, 115, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.1);
    transition: all 0.3s ease;
}

.situation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 125, 90, 0.2);
    border-color: #8ba173;
}

.situation-text {
    background: #6b7d5a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
}

.choice-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===============================================
   TIPS & SPECIAL BOXES
   =============================================== */

.tips-section {
    background: rgba(139, 161, 115, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.tips-title {
    color: white;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tip-item {
    color: white;
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.tip-item:before {
    content: "•";  /* Herstel het bullet point karakter */
    position: absolute;
    left: 0;
    color: #f0f0f0;
    font-weight: bold;
}

.quote-box {
    background: rgba(139, 161, 115, 0.2);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(139, 161, 115, 0.3);
}

.philosophy-box {
    margin-top: 40px;
    padding: 20px;
    background: rgba(139, 161, 115, 0.1);
    border-radius: 15px;
}

.important-note {
    background: rgba(139, 161, 115, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #8ba173;
}

/* ===============================================
   AGREEMENTS & SPECIAL LAYOUTS
   =============================================== */

.agreement-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.agreement-item:nth-child(2) { animation-delay: 0.1s; }
.agreement-item:nth-child(3) { animation-delay: 0.2s; }
.agreement-item:nth-child(4) { animation-delay: 0.3s; }
.agreement-item:nth-child(5) { animation-delay: 0.4s; }

.agreement-number {
    width: 60px;
    height: 60px;
    background: #6b7d5a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.3);
}

.agreement-content {
    padding: 20px 25px;
    border-radius: 25px;
    flex-grow: 1;
    position: relative;
}

.agreement-content.light {
    background: rgba(201, 211, 184, 0.4);
    border: 2px solid rgba(139, 161, 115, 0.3);
}

.agreement-content.dark {
    background: rgba(139, 161, 115, 0.6);
    color: white;
}

.agreement-content.medium {
    background: rgba(139, 161, 115, 0.4);
}

.agreement-content h3 {
    color: inherit;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.agreement-content.dark h3 {
    color: white;
}

.agreement-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.agreement-footer {
    background: #6b7d5a;
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
}

.agreement-footer h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.agreement-footer p {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
}

/* ===============================================
   QUALITIES & EXAMPLES
   =============================================== */

.example-qualities h4 {
    font-size: 1em;
    font-weight: 600;
}

.qualities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quality-tag {
    background: rgba(139, 161, 115, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #6b7d5a;
    border: 1px solid rgba(139, 161, 115, 0.3);
    font-weight: 500;
}

/* ===============================================
   FINAL REFLECTIONS
   =============================================== */

.final-reflection,
.final-reflection-different,
.final-reflection-babel {
    background: rgba(139, 161, 115, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.final-reflection {
    background: #6b7d5a;
    padding: 30px;
    margin-top: 40px;
}

.final-reflection-babel {
    border-left: 5px solid #8ba173;
}

.final-reflection-babel .question-group {
    margin-bottom: 0;
}

.class-reflection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-features {
    background: #6b7d5a;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.community-features h4 {
    color: white;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.5;
}

.feature-item strong {
    color: #c9d3b8;
}

/* ===============================================
   COMMUNICATION SECTIONS
   =============================================== */

.communication-ways {
    background: rgba(139, 161, 115, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.babel-intro {
    background: rgba(139, 161, 115, 0.15);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.bible-story {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #8ba173;
}

.story-text blockquote {
    color: #6b7d5a;
    font-size: 1.05em;
}

.historical-context {
    background: rgba(139, 161, 115, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.babel-explanation {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.language-info {
    background: rgba(139, 161, 115, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.modern-interpretation {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.moses-story {
    background: rgba(139, 161, 115, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.moses-communication-model {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.moses-situation {
    background: rgba(139, 161, 115, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* ===============================================
   STORY SUMMARY & DRAWING
   =============================================== */

.summary-bubble {
    background: rgba(139, 161, 115, 0.15);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
}

.summary-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgba(139, 161, 115, 0.15);
}

.story-steps {
    margin-bottom: 25px;
}

.story-steps p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.assignment-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

/* ===============================================
   LIGHTBOX SYSTEM
   =============================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 10px;
    font-size: 1.1em;
}

/* ===============================================
   FIXED POSITIONED ELEMENTS
   =============================================== */

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8ba173, #6b7d5a);
    color: #f5f5dc;
    border: 2px solid #c9d3b8;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(107, 125, 90, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #6b7d5a, #5a6b4a);
    border-color: #8ba173;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107, 125, 90, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(107, 125, 90, 0.3);
}

/* Beamer Controls */
.beamer-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(107, 125, 90, 0.9);
    padding: 12px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.beamer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-align: center;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
}

.beamer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.beamer-btn:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10002;
    pointer-events: none;
    opacity: 1;
}

.beamer-btn:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 10002;
}

.beamer-btn.active {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
}

.beamer-btn[onclick="togglePresentationMode()"].active {
    background: rgba(255, 215, 0, 0.8);
    color: #333;
}

.beamer-btn[onclick="toggleSpotlightMode()"].active {
    background: rgba(255, 235, 59, 0.8);
    color: #333;
    animation: pulse 2s infinite;
}

/* Menu Breadcrumb */
.menu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    color: #6b7d5a;
}

.menu-breadcrumb a {
    color: #8ba173;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-breadcrumb a:hover {
    color: #6b7d5a;
}

.menu-breadcrumb .separator {
    color: #c9d3b8;
}

/* ===============================================
   PRESENTATION & SPECIAL MODES
   =============================================== */

body.beamer-mode {
    zoom: 1.3;
}

body.presentation-mode {
    zoom: 1.5;
    cursor: none;
}

body.presentation-mode .beamer-controls {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

body.presentation-mode .beamer-controls:hover {
    opacity: 1;
}

body.presentation-mode h1 {
    font-size: 4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

body.presentation-mode h2 {
    font-size: 3em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

body.presentation-mode h3 {
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.presentation-mode p,
body.presentation-mode li {
    font-size: 1.6em;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Spotlight Mode */
body.spotlight-mode {
    cursor: crosshair;
}

body.spotlight-mode .spotlighted {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 0, 0.2) !important;
    border: 3px solid #ffeb3b !important;
    border-radius: 8px !important;
    padding: 10px !important;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.6) !important;
    animation: spotlight-pulse 2s infinite !important;
}

body.fullscreen-active {
    overflow: hidden;
}

/* ===============================================
   DARK MODE
   =============================================== */

body.dark-mode {
    background: linear-gradient(135deg, #2c3e29 0%, #1a1f18 100%);
    color: #e0e0e0;
}

body.dark-mode .container {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .content-area {
    background: rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
}

body.dark-mode .chapter-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 161, 115, 0.2);
    color: #e0e0e0;
}

body.dark-mode .chapter-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .chapter-card.active {
    background: rgba(139, 161, 115, 0.3);
}

body.dark-mode .chapter-title {
    color: #e0e0e0;
}

body.dark-mode .chapter-description {
    color: #c9d3b8;
}

body.dark-mode .submenu {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 161, 115, 0.2);
}

body.dark-mode .sub-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 161, 115, 0.2);
    color: #e0e0e0;
}

body.dark-mode .sub-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sub-item.active {
    background: linear-gradient(135deg, #8ba173, #6b7d5a);
    color: white;
}

body.dark-mode .back-to-top-btn {
    background: linear-gradient(135deg, #4a5c3a, #3a4a2a);
    border-color: #6b7d5a;
    color: #e0e0e0;
}

body.dark-mode .back-to-top-btn:hover {
    background: linear-gradient(135deg, #5a6b4a, #4a5c3a);
    border-color: #8ba173;
}

/* Dark Mode Form Elements */
body.dark-mode .activity-box {
    background: rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.dark-mode .activity-box h4 {
    color: #8ba173;
}

body.dark-mode .activity-box input[type="text"],
body.dark-mode .quality-input,
body.dark-mode .difference-input,
body.dark-mode .example-input,
body.dark-mode .classmate-input,
body.dark-mode .reasoning-input,
body.dark-mode .input-row input,
body.dark-mode .input-cell input,
body.dark-mode .question-group textarea,
body.dark-mode .column-input textarea,
body.dark-mode .eerste-cell textarea {
    background: rgba(0, 0, 0, 0.2);
    border-color: #4a5c3a;
    color: #e0e0e0;
}

body.dark-mode .activity-box input[type="text"]:focus,
body.dark-mode .quality-input:focus,
body.dark-mode .difference-input:focus,
body.dark-mode .example-input:focus,
body.dark-mode .classmate-input:focus,
body.dark-mode .reasoning-input:focus,
body.dark-mode .input-row input:focus,
body.dark-mode .input-cell input:focus,
body.dark-mode .question-group textarea:focus,
body.dark-mode .column-input textarea:focus,
body.dark-mode .eerste-cell textarea:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: #8ba173;
}

body.dark-mode .column-input textarea::placeholder {
    color: #8ba173;
}

/* Dark Mode Sections */
body.dark-mode .duim-section,
body.dark-mode .journey-section,
body.dark-mode .communication-section,
body.dark-mode .relationship-section {
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

body.dark-mode .classmate-card {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .classmate-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .classmate-card h4 {
    color: #8ba173;
}

body.dark-mode .question-header {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .question-header:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .answer-content {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .answer-box {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .answer-box p,
body.dark-mode .answer-box li {
    color: #e0e0e0;
}

body.dark-mode .philosophy-box {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quality-tag {
    background: rgba(139, 161, 115, 0.3);
    border-color: #8ba173;
    color: #e0e0e0;
}

body.dark-mode .situation-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 161, 115, 0.3);
    color: #e0e0e0;
}

body.dark-mode .choice-option {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 161, 115, 0.3);
    color: #e0e0e0;
}

body.dark-mode .language-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 161, 115, 0.3);
    color: #e0e0e0;
}

body.dark-mode .language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .shortcut {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .menu-breadcrumb {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 161, 115, 0.2);
    color: #c9d3b8;
}

/* Dark Mode Complex Elements */
body.dark-mode .babel-intro,
body.dark-mode .historical-context,
body.dark-mode .meaning-table {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .bible-story,
body.dark-mode .moses-story,
body.dark-mode .story-assignment {
    background: rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.dark-mode .drawing-area {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 161, 115, 0.3);
    color: #c9d3b8;
}

body.dark-mode .statements-section {
    background: rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.dark-mode .statement-option {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 161, 115, 0.3);
    color: #e0e0e0;
}

body.dark-mode .statement-option.correct {
    background: rgba(139, 161, 115, 0.2);
    border-color: #8ba173;
}

body.dark-mode .statement-option.incorrect {
    background: rgba(150, 150, 150, 0.1);
    border-color: #999;
}

body.dark-mode .language-choice-item,
body.dark-mode .communication-table,
body.dark-mode .model-inputs {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 161, 115, 0.3);
    color: #e0e0e0;
}

body.dark-mode .tweede-cell {
    background: rgba(139, 161, 115, 0.2);
    color: #e0e0e0;
}

body.dark-mode .role-cell {
    background: rgba(139, 161, 115, 0.2);
    color: #e0e0e0;
}

body.dark-mode .beamer-controls {
    background: rgba(26, 31, 24, 0.9);
    border: 1px solid rgba(139, 161, 115, 0.3);
}

body.dark-mode .beamer-btn {
    border-color: rgba(139, 161, 115, 0.3);
}

body.dark-mode .beamer-btn:hover {
    background: rgba(139, 161, 115, 0.3);
    border-color: rgba(139, 161, 115, 0.5);
}

body.dark-mode .beamer-btn.active {
    background: rgba(139, 161, 115, 0.4);
    border-color: rgba(139, 161, 115, 0.7);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

@keyframes slideInLine {
    0% {
        width: 0;
        left: 50%;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spotlight-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 235, 59, 0.6);
        border-color: #ffeb3b;
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 235, 59, 0.9);
        border-color: #ffc107;
    }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1024px) {
    .submenu {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .beamer-controls {
        width: 200px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav.collapsed .chapter-description {
        display: none;
    }

    .main-nav.collapsed .chapter-card {
        padding: 15px 20px;
    }

    .main-nav.collapsed .chapter-title {
        font-size: 1.2em;
    }
    
    .chapter-title {
        font-size: 1.2em;
    }
    
    .chapter-description {
        font-size: 0.85em;
    }
    
    .beamer-controls {
        bottom: 10px;
        right: 10px;
        padding: 8px;
        width: 180px;
        gap: 6px;
    }
    
    .beamer-btn {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }
    
    /* Hide tooltips on mobile */
    .beamer-btn:hover::before,
    .beamer-btn:hover::after {
        display: none;
    }
    
    .back-to-top-btn {
        bottom: 80px;
        width: 45px;
        height: 45px;
    }
    
    .groups-diagram {
        height: 500px;
    }
    
    .group-circle {
        width: 120px;
        height: 120px;
        font-size: 0.8em;
    }
    
    .relationship-table-side-by-side {
        flex-direction: column;
    }
    
    .classmates-grid {
        grid-template-columns: 1fr;
    }

    .duim-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .classmate-card {
        padding: 15px;
    }
    
    .card-icon {
        font-size: 2em;
    }
    
    .section-header-simple {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .section-header-simple h3 {
        font-size: 1.1em;
    }
    
    .section-icon {
        font-size: 1.8em;
    }
    
    .drawing-boxes {
        grid-template-columns: 1fr;
    }
    
    .choice-buttons {
        flex-direction: column;
    }
    
    .choice-or {
        margin: 10px 0;
    }
    
    .statement-pair {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row,
    .input-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .input-row label {
        text-align: left;
    }
    
    .meaning-grid {
        grid-template-columns: 1fr;
    }

    .choice-options {
        flex-direction: column;
    }
    
    .choice-option {
        max-width: none;
        min-width: auto;
    }
    
    .situation-text {
        font-size: 1em;
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .submenu {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
    }
    
    .sub-item {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .beamer-controls {
        grid-template-columns: repeat(2, 1fr);
        width: 100px;
    }
    
    .beamer-btn {
        width: 32px;
        height: 32px;
        font-size: 9px;
    }
    
    .groups-diagram {
        height: 400px;
    }
    
    .group-circle {
        width: 100px;
        height: 100px;
        font-size: 0.7em;
    }

    .duim-section {
        padding: 15px;
    }
    
    .classmate-card {
        padding: 15px 10px;
    }
    
    .card-icon {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .classmate-card h4 {
        font-size: 0.9em;
    }
    
    .question-header {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .accordion-arrow {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .final-reflection {
        padding: 20px;
    }
    
    .activity-box {
        padding: 15px;
    }
    
    .qualities-grid {
        flex-direction: column;
    }
    
    .quality-tag {
        text-align: center;
    }

    .column-input textarea {
        min-height: 200px;
        padding: 15px;
        font-size: 0.9em;
    }
    
    .column-header {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .relationship-section {
        padding: 15px;
    }
}

/* Classroom Tools Button */
.classroom-tools-link {
  position: fixed !important;
  bottom: 20px !important;
  left: calc(env(safe-area-inset-left, 0px) + 12px) !important; /* ~12px ruimte links */
  background: linear-gradient(135deg, #8ba173, #6b7d5a) !important;
  color: white !important;
  padding: 15px 20px;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 1em;
  z-index: 1002;
  box-shadow: 0 4px 12px rgba(107, 125, 90, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  min-width: 160px;
  justify-content: center;
  transform: none !important;
  margin-left: 0 !important;
}

.classroom-tools-link:hover {
  background: linear-gradient(135deg, #7a8b6a, #5a6b4a) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(107, 125, 90, 0.4);
  color: white !important;
  text-decoration: none !important;
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    .beamer-controls,
    .main-nav,
    .back-to-top-btn,
    .spotlight-mode .spotlighted::before {
        display: none !important;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-area {
        background: white;
        box-shadow: none;
    }

    .menu-breadcrumb {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
    
    .spotlighted {
        border: 2px solid #000;
        background: rgba(255, 255, 0, 0.1);
        box-shadow: none;
    }
}

.column-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #c9d3b8;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.column-input:focus {
    outline: none;
    border-color: #8ba173;
    background: rgba(255, 255, 255, 0.9);
}

.column-input::placeholder {
    color: #999;
    font-style: italic;
}

.statement-option.correct .statement-icon::before {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
}

.statement-option.incorrect .statement-icon::before {
    content: "✗";
    font-size: 18px;
    font-weight: bold;
}

