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

code, pre {
    font-family: 'IBM Plex Mono', monospace;
}

/* JSON syntax highlighting */
.json-key    { color: #6bf51b; }
.json-string { color: #fff; }
.json-number { color: #8b8bff; }
.json-boolean, .json-null { color: #ff6b6b; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="2" y="20" font-family="monospace" font-size="16" fill="%23ffffff">%7B %7D</text></svg>') 16 16, auto;
}

a, button, .click, .chat-send, .generate-btn, .copy-btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="2" y="20" font-family="monospace" font-size="16" fill="%236bf51b">%7B %7D</text></svg>') 16 16, pointer;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #333;
    z-index: 1000;
    overflow-y: auto;
}

.nav-title {
    font-size: 12px;
    font-weight: 200;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s;
    white-space: normal;
    word-wrap: break-word;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 14px rgb(255 255 255 / 81%);
}

.nav-title:hover {
    color: #6bf51b;
}

.nav-bar a:not(.nav-title) {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 200;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 14px rgb(255 255 255 / 81%);
}

.nav-title {
    font-family: 'Space Grotesk', sans-serif;
}

.nav-bar a:hover {
    color: #6bf51b;
}

body {
    padding-left: 200px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.characters-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.character {
    position: absolute;
    height: 100px;
    width: auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Character positioning - clustered around heading */
.char-1 {
    top: 18%;
    left: 16%;
    animation-delay: 0.1s;
}

.char-2 {
    top: 14%;
    right: 18%;
    animation-delay: 0.2s;
}

.char-3 {
    top: 32%;
    left: 5%;
    animation-delay: 0.3s;
}

.char-4 {
    top: 28%;
    right: 6%;
    animation-delay: 0.4s;
}

.char-5 {
    top: 46%;
    left: 22%;
    animation-delay: 0.5s;
}

.char-6 {
    top: 44%;
    right: 20%;
    animation-delay: 0.6s;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 40px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.workshop-info {
    font-size: 20px;
    line-height: 1.6;
}

/* Main Content */
.content {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 40px;
}

section {
    margin-bottom: 140px;
    position: relative;
}

/* Section break rule — skip the first section and the hero */
.content section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    right: -40px;
    height: 1px;
    background: #2a2a2a;
}

.content section + section {
    padding-top: 80px;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: left;
    letter-spacing: -0.02em;
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    margin-top: 40px;
    margin-bottom: 20px;
}

p {
    font-family: 'Newsreader', serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

ul {
    margin: 20px 0;
    padding-left: 40px;
}

li {
    font-family: 'Newsreader', serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
}

li strong {
    color: #6bf51b;
}

/* Generations grid */
.generations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 2rem;
}

.generation-item {
    padding: 1.5rem 2rem 1.5rem 0;
    border-top: 1px solid #333;
}

.generation-item + .generation-item {
    padding-left: 2rem;
    padding-right: 0;
    border-left: 1px solid #333;
}

.generation-item h4 {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6bf51b;
    margin-bottom: 0.75rem;
}

.generation-item p {
    font-size: 16px;
    color: #aaa;
    margin: 0;
}

/* Eliza quotes */
.eliza-quotes {
    margin: 4rem -20px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.eliza-quote {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.eliza-quote::before {
    content: '\201C';
    font-family: 'Newsreader', serif;
    font-size: 6rem;
    line-height: 0.6;
    color: #6bf51b;
    opacity: 0.25;
    display: block;
    margin-bottom: 0.75rem;
}

.eliza-quote--left {
    color: #888;
    max-width: 80%;
    align-self: flex-start;
}

.eliza-quote--right {
    color: #ccc;
    font-size: 1.6rem;
    max-width: 90%;
    align-self: flex-end;
    text-align: right;
}

.eliza-quote--right::before {
    text-align: right;
}

.eliza-quote cite {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.08em;
    color: #444;
    text-transform: uppercase;
}

/* Spectrum Section */
.spectrum {
    margin: 120px 0;
}


.spectrum-header,
.spectrum-footer {
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    color: #999;
    margin: 18px 20px 12px;
}

.timeline {
    position: relative;
    padding: 60px 0;
}

/* Single continuous vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #333;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0px 1fr;
    gap: 0;
    margin-bottom: 75px;
    align-items: start;
    cursor: pointer;
}

/* Affordance — title dims slightly at rest, brightens on hover */
.timeline-title {
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.timeline-item:hover .timeline-title {
    opacity: 1;
}

/* Affordance — dot grows on hover */
.timeline-item:hover .timeline-title::after {
    transform: translateX(-50%) scale(1.5) !important;
    transition: transform 0.2s ease;
}

/* Collapsed state */
.timeline-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}

/* Expanded on hover */
.timeline-item:hover .timeline-reveal {
    max-height: 400px;
    opacity: 1;
}

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

.timeline-content-left {
    text-align: right;
    padding-right: 40px;
}

.timeline-content-right {
    text-align: left;
    padding-left: 40px;
}

.timeline-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    position: relative;
}

/* Colored dots on the center line */
.timeline-item.tool .timeline-title::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: calc(100% + 34px);
    top: 8px;
    z-index: 2;
}

.timeline-item.entertainment .timeline-title::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #8b8bff;
    border-radius: 50%;
    position: absolute;
    left: calc(100% + 34px);
    top: 8px;
    z-index: 2;
}

.timeline-item.companion .timeline-title::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    left: calc(100% + 34px);
    top: 8px;
    z-index: 2;
}

/* Title colors */
.timeline-item.tool .timeline-title {
    color: #fff;
}

.timeline-item.entertainment .timeline-title {
    color: #8b8bff;
}

.timeline-item.companion .timeline-title {
    color: #ff6b6b;
}

.timeline-desc {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

.timeline-line {
    /* Empty middle column for spacing */
}

.timeline-content-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-content-right li {
    font-size: 16px;
    margin-bottom: 8px;
}

.example {
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.6;
}

/* Research Section - Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    border: 1px solid #333;
    background-color: #000;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-label {
    font-size: 14px;
    padding: 40px;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Chat Section */
.chat-section {
    margin-top: 80px;
}

.chat-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 40px auto;
}

.priest-character img {
    height: 500px;
    width: auto;
}

.chatbox {
    border: 1px solid #333;
    background-color: #000;
    flex: 1;
}

.chat-messages {
    height: 460px;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    max-width: 80%;
}

.message p {
    margin: 0;
    padding: 15px 20px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.bot-message {
    align-self: flex-start;
}

.bot-message p {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.user-message {
    align-self: flex-end;
}

.user-message p {
    background-color: #0a0a0a;
    border: 1px solid #6bf51b;
    color: #6bf51b;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid #333;
}

.chat-input {
    flex: 1;
    background-color: #0a0a0a;
    border: none;
    padding: 20px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    outline: none;
}

.chat-input::placeholder {
    color: #666;
}

.chat-send {
    background-color: #000;
    border: none;
    border-left: 1px solid #333;
    color: #fff;
    padding: 20px 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-send:hover {
    background-color: #1a1a1a;
}

.chat-send:active {
    background-color: #0a0a0a;
}

.chat-footer {
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
    margin-top: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Personality Section */
.personality-section {
    margin-top: 80px;
}

.concept-box {
    background-color: #1a1a1a;
    padding: 30px;
    margin: 30px 0;
    border-radius: 4px;
}

.concept-box p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}

.anatomy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.anatomy-item {
    border: 1px solid #333;
    padding: 30px;
    background-color: #0a0a0a;
    border-radius: 4px;
}

.anatomy-item h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #6bf51b;
    letter-spacing: 0.03em;
}

.anatomy-tag {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    background: #6bf51b;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Space Grotesk', sans-serif;
}

.anatomy-item--highlight {
    border-color: #6bf51b44;
    background-color: #0d1a0a;
}

.anatomy-label {
    font-size: 15px;
    color: #888;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.anatomy-label code {
    font-size: 13px;
    background: #1a1a1a;
    padding: 1px 5px;
    color: #ccc;
}

.anatomy-example {
    background-color: #000;
    padding: 16px 20px;
    margin: 12px 0 0;
    border-left: 2px solid #222;
}

.anatomy-example code {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
    font-weight: 400;
}

.anatomy-do-dont {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.anatomy-dont {
    background: #110000;
    border-left: 2px solid #ff4444;
    padding: 14px 16px;
}

.anatomy-do {
    background: #001100;
    border-left: 2px solid #6bf51b;
    padding: 14px 16px;
}

.anatomy-dont-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff4444;
    margin: 0 0 10px !important;
    font-family: 'Space Grotesk', sans-serif;
}

.anatomy-do-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6bf51b;
    margin: 0 0 10px !important;
    font-family: 'Space Grotesk', sans-serif;
}

.anatomy-dont code,
.anatomy-do code {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
}

.anatomy-note {
    font-size: 13px;
    color: #555;
    margin: 12px 0 0;
    line-height: 1.6;
}

/* Exercise Section */
.exercise-section {
    margin-top: 80px;
}

.time-badge {
    font-size: 18px;
    color: #6bf51b;
    font-weight: normal;
}

.exercise-prompt {
    font-size: 20px;
    margin-bottom: 40px;
}

.exercise-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #6bf51b;
}

.field-description {
    font-size: 14px;
    opacity: 0.6;
    margin: 0 0 12px 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #6bf51b;
}

.generate-btn {
    background-color: #6bf51b;
    color: #000;
    border: none;
    padding: 18px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.generate-btn:hover {
    background-color: #5ae010;
}

.generate-btn:active {
    background-color: #4ac00f;
}

.generated-output {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.generated-output h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.json-output-container {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.json-output-container pre {
    margin: 0;
    padding: 25px;
}

.json-output-container code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #fff;
}

.copy-btn {
    background-color: #000;
    border: 1px solid #6bf51b;
    color: #6bf51b;
    padding: 12px 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: #6bf51b;
    color: #000;
}

/* JSON Reveal Section */
.json-reveal {
    margin-top: 80px;
}

.json-container {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 30px;
}

.json-container pre {
    margin: 0;
    padding: 30px;
    overflow-x: auto;
}

.json-container code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

/* Scrollbar styling */
.json-container::-webkit-scrollbar {
    width: 10px;
}

.json-container::-webkit-scrollbar-track {
    background: #000;
}

.json-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.json-container::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Code Walkthrough Section */
.code-walkthrough {
    margin-top: 80px;
}

.code-step {
    margin-bottom: 60px;
    padding-top: 24px;
    border-top: 1px solid #222;
}

.step-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.code-step h3 {
    color: #fff;
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 20px;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.question-list li {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    color: #888;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
    margin: 0;
}

.question-list li:last-child {
    border-bottom: none;
}

.character-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.character-list li {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    color: #888;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
    margin: 0;
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.character-list li:last-child {
    border-bottom: none;
}

.character-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #6bf51b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-width: 90px;
    flex-shrink: 0;
}

.step-subhead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    margin: 24px 0 8px !important;
}

.prompt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompt-list li {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    margin: 0;
}

.code-block {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    padding: 25px;
}

.code-block code {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.ai-help {
    background-color: #1a1a1a;
    border-left: 3px solid #8b8bff;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 16px;
}

/* Ethics Section */
.ethics-section {
    margin-top: 80px;
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Content Card - Shared styling for ethics and resources */
.content-card {
    border: 1px solid #333;
    padding: 30px;
    background-color: #0a0a0a;
}

.content-card h3 {
    color: #6bf51b;
    margin-bottom: 20px;
    font-size: 20px;
}

.content-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.content-card li {
    margin-bottom: 15px;
    font-size: 16px;
}

.content-card a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.content-card a:hover {
    color: #6bf51b;
}

.ethics-question {
    opacity: 0.7;
    margin-top: 15px;
    color: #6bf51b;
}

/* Resources Section */
.resources-section {
    margin-top: 80px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Footer */
.footer {
    margin-top: 120px;
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid #333;
    background-color: #0a0a0a;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .nav-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid #333;
        overflow-x: visible;
        overflow-y: visible;
    }

    .nav-title {
        display: none;
    }

    .nav-bar a {
        font-size: 12px;
        white-space: nowrap;
    }

    body {
        padding-left: 0;
        padding-top: 80px;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 20px;
    }

    .hero-content {
        padding: 20px;
        transform: none;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .workshop-info {
        font-size: 16px;
    }

    /* Scale down characters on mobile */
    .character {
        height: 200px;
    }

    .char-3 {
        top: 15%;
        left: 35%;
    }

    .char-4 {
        left: 8%;
        bottom: 16%;
    }

    .char-6 {
        top: 55%;
        right: 8%;
    }

    /* Content */
    .content {
        padding: 40px;
    }

    /* Images */
    .content img {
        max-width: 100% !important;
        height: auto !important;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    p, li {
        font-size: 16px;
    }

    /* Timeline - single column */
    .timeline {
        padding: 40px 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 50px;
        padding-left: 53px;
    }

    .timeline-content-left {
        text-align: left;
        padding-right: 0;
        order: 1;
    }

    .timeline-content-right {
        padding-left: 0;
        order: 2;
        margin-top: 15px;
    }

    .timeline-title {
        text-align: left !important;
    }

    .timeline-title::after {
        left: -39px !important;
        top: 8px;
    }

    /* Cards Grid - single column */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        width: 100%;
        height: 200px;
    }

    /* Chat Section - stack vertically */
    .chat-container {
        flex-direction: column;
        gap: 20px;
    }

    .priest-character img {
        height: 300px;
        margin: 0 auto;
        display: block;
    }

    .chatbox {
        width: 100%;
    }

    .chat-messages {
        height: 350px;
        padding: 20px;
    }

    .message {
        max-width: 90%;
    }

    .message p {
        padding: 12px 16px;
        font-size: 14px;
    }

    .chat-input,
    .chat-send {
        padding: 15px;
        font-size: 14px;
    }

    /* Anatomy Grid - already single column */
    .anatomy-item {
        padding: 20px;
    }

    .anatomy-example code {
        font-size: 14px;
    }

    /* Code Blocks */
    .code-block {
        margin: 15px 0;
        overflow-x: visible;
    }

    .code-block pre {
        padding: 15px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .code-block code {
        font-size: 12px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Exercise Form */
    .exercise-form {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .generate-btn {
        width: 100%;
        padding: 15px;
    }

    /* JSON Containers */
    .json-container,
    .json-output-container {
        max-height: 300px;
        overflow-x: visible;
    }

    .json-container pre,
    .json-output-container pre {
        padding: 15px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .json-container code,
    .json-output-container code {
        font-size: 12px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Ethics and Resources - single column */
    .ethics-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-card {
        padding: 20px;
    }

    .content-card h3 {
        font-size: 18px;
    }

    .content-card li {
        font-size: 14px;
    }

    /* Concept Box */
    .concept-box {
        padding: 20px;
    }

    .concept-box p {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 40px;
    }

    /* AI Help Box */
    .ai-help {
        font-size: 14px;
        padding: 12px 15px;
    }

    /* Copy Button */
    .copy-btn {
        width: 100%;
        padding: 12px;
    }

    /* Section Spacing */
    section {
        margin-bottom: 80px;
    }
}

/* Custom Character Chat */
.custom-character-chat {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #333;
}

.custom-character-chat h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #fff;
}
