/*
 MODERN DESIGN SYSTEM - Apple Inspired
 Primary: #007AFF (iOS Blue)
 Secondary: #5856D6 (iOS Purple) 
 Success: #34C759 (iOS Green)
 Background: #F2F2F7 (iOS Background)
 Surface: #FFFFFF (Pure White)
 Text: #1C1C1E (iOS Label)
 Secondary Text: #8E8E93 (iOS Secondary Label)
*/

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --background: #F2F2F7;
    --surface: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --text-tertiary: #C7C7CC;
    --border: #D1D1D6;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-large: 20px;
}

body {
    user-select: none;
    background-color: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow: auto;
    padding-top: 70px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hide {
    display: none !important;
}

/* Navigation Bar Styles - Game Theme */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #483D21;
    border-bottom: 3px solid #F9FBB2;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid #F9FBB2;
}

.nav-title {
    color: #F9FBB2;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: normal;
}

.nav-button {
    color: #F9FBB2;
    background-color: transparent;
    border: none;
    padding: 8px 16px;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-button:hover {
    background-color: rgba(249, 251, 178, 0.1);
    color: #FFFFFF;
}

/* Blog Container - Modern Clean Design */
#blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    line-height: 1.6;
    background-color: transparent;
    min-height: 100vh;
}

.blog-post {
    background: var(--surface);
    padding: 48px 56px;
    border-radius: var(--radius-large);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    border: 0.5px solid var(--border);
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    display: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.blog-header::after {
    display: none;
}

.blog-header h1 {
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    border: none;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.blog-intro {
    font-size: 18px;
    color: var(--text-secondary);
    font-style: normal;
    text-align: center;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: rgba(0, 122, 255, 0.05);
    border: none;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    line-height: 1.6;
    position: relative;
}

.blog-intro::before,
.blog-intro::after {
    display: none;
}

.blog-section {
    margin-bottom: 48px;
    position: relative;
}

.blog-section:not(:last-child)::after {
    display: none;
}

.blog-section h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
    background: none;
}

.blog-section h2::before {
    display: none;
}

.blog-section h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.015em;
    padding: 0;
}

.blog-section h3::before {
    display: none;
}

.blog-section p {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.blog-section p strong {
    color: var(--text-primary);
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 0;
}

.blog-section ul, .blog-section ol {
    margin: 0 0 24px 0;
    padding: 0 0 0 20px;
    background: none;
    border: none;
    border-radius: 0;
}

.blog-section li {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.7;
    position: relative;
    padding: 0;
}

.blog-section ol li {
    font-weight: 400;
    margin-bottom: 12px;
}

.blog-section ol li strong {
    color: var(--text-primary);
    display: inline;
    margin-bottom: 0;
    font-size: 17px;
    font-weight: 600;
}

/* Reading Progress Bar - Modern iOS Style */
.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Back to Top Button - Modern iOS Style */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--surface);
    color: var(--primary-color);
    border: 0.5px solid var(--border);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
}

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

/* CTA Section - Modern Clean Design */
.cta-section {
    background: var(--surface);
    color: var(--text-primary);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin: 48px 0;
    border: 0.5px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-section h2, .cta-section h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: #483D21;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
}

.cta-button::before {
    display: none;
}

.cta-button:hover::before {
    display: none;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 61, 33, 0.3);
    background: #5a4d2a;
}

.cta-large {
    font-size: 18px;
    padding: 16px 32px;
    border-radius: 12px;
}

.final-cta {
    background: var(--surface);
    border: 0.5px solid var(--border);
}

.cta-subtext {
    font-size: 15px;
    margin-top: 12px;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Responsive Design - Game Theme */
@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    
    /* Navigation Mobile */
    #navbar {
        padding: 0 16px;
    }
    
    .nav-title {
        font-size: 18px;
    }
    
    .nav-button {
        font-size: 15px;
        padding: 6px 12px;
    }
    
    /* Blog Container Mobile */
    #blog-container {
        padding: 20px 16px;
    }
    
    /* Blog List Page Mobile */
    .blog-main-header {
        margin-bottom: 48px;
    }
    
    .blog-main-header h1 {
        font-size: 36px;
    }
    
    .blog-main-intro {
        font-size: 18px;
        max-width: 100%;
    }
    
    /* Force single column on mobile */
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin: 32px 0;
    }
    
    .blog-card-header,
    .blog-card-content,
    .blog-card-footer {
        padding: 24px;
    }
    
    .blog-card-header h2 {
        font-size: 20px;
    }
    
    /* Blog Post Mobile */
    .blog-post {
        padding: 32px 24px;
        margin: 16px 0;
    }
    
    .blog-header h1 {
        font-size: 32px;
    }
    
    .blog-intro {
        padding: 20px 24px;
        font-size: 17px;
    }
    
    .blog-section h2 {
        font-size: 24px;
    }
    
    .blog-section h3 {
        font-size: 20px;
    }
    
    /* CTA Sections Mobile */
    .cta-section {
        padding: 32px 24px;
        margin: 32px 0;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .cta-large {
        padding: 14px 28px;
        font-size: 17px;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 80px;
        right: 16px;
        font-size: 16px;
    }
    
    /* Footer Mobile */
    #footer {
        font-size: 15px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .blog-main-header h1 {
        font-size: 28px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-post {
        padding: 24px 20px;
    }
    
    .blog-section h2 {
        font-size: 22px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .blog-card-header,
    .blog-card-content,
    .blog-card-footer {
        padding: 20px;
    }
}


.cta-subtext {
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.9;
}

/* Blog Listing Styles - Modern Apple Design */
.blog-listing {
    padding: 32px 0;
    background-color: transparent;
    min-height: 100vh;
}

.blog-main-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.blog-main-header::before {
    display: none;
}

.blog-main-header h1 {
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: none;
}

.blog-main-intro {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    font-style: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 48px 0;
    padding: 0;
    align-items: stretch;
}

/* Two columns on larger tablets and desktop */
@media (min-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        align-items: stretch;
    }
}

/* Single column on very wide screens for better readability */
@media (min-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        margin: 48px auto;
        align-items: stretch;
    }
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 0.5px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

.blog-card::before {
    display: none;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.blog-card:hover::before {
    display: none;
}

.blog-card-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 0.5px solid var(--border);
    position: relative;
}

.blog-card-header::after {
    display: none;
}

.blog-card-header h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.015em;
    transition: none;
}

.blog-card:hover .blog-card-header h2 {
    color: var(--text-primary);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 1;
}

.blog-card-content {
    padding: 24px 32px;
    background: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    border: none;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
    position: relative;
}

.blog-card-content h3::after {
    display: none;
}

.blog-card-content ul {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: disc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blog-card-content li {
    margin-bottom: 6px;
    padding: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    transition: none;
    cursor: default;
}

.blog-card-content li:hover {
    color: var(--text-secondary);
    transform: none;
}

.blog-card-content li::before {
    display: none;
}

.blog-card-content li:hover::before {
    display: none;
}

.blog-card-footer {
    padding: 24px 32px 32px 32px;
    text-align: center;
    background: none;
    position: relative;
    border-top: 0.5px solid var(--border);
    margin-top: auto;
    flex-shrink: 0;
}

.blog-card-footer::before {
    display: none;
}

.blog-read-more {
    display: inline-block;
    background: #483D21;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    border: none;
    position: relative;
    overflow: visible;
    font-size: 15px;
    line-height: 1.4;
    min-height: 44px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.blog-read-more::before {
    display: none;
}

.blog-read-more:hover::before {
    display: none;
}

.blog-read-more:hover {
    background: #5a4d2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 61, 33, 0.3);
    border-color: transparent;
}

.spacebar {
    display: inline !important;
    background: rgb(239,242,221);
    background: linear-gradient(180deg, rgba(239,242,221,1) 0%, rgba(177,180,149,1) 100%);
    border: 2px solid #483D21;
    border-bottom-width: 5px;
    color: #483D21;
    border-radius: 4px;
    padding: 0px;
    padding-right: 30px;
    margin-right: 5px;
}

#game {
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding-top: 2rem; /* Adds space at the top */
}

#footer {
    position: fixed;
    padding: 12px;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #483D21;
    color: #F9FBB2;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

#footer a {
    color: #F9FBB2;
    text-decoration: none;
    font-weight: 600;
}

#footer a:hover {
    text-decoration: underline;
    color: #FFFFFF;
    font-weight: 700;
}

#counter {
    text-align: center;
    font-size: 8rem;
    color: #483D21;
    height: 8rem;
    font-weight: bold;
}

#counter span {
    display: block;
    text-align: center;
}

#per_second {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #483D21;
}

.sbs {
    display: block;
    font-size: 1.2rem;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 15px;
    padding-top: 40px;
    padding-bottom: 10px;
}

.sb1 {
    border: 5px solid #483D21;
    border-bottom-width: 25px;
    color: #8a7d5a;
    border-radius: 15px;
    transition: transform 80ms ease-in;
    
    background: rgb(239,242,221);
    background: linear-gradient(180deg, rgba(239,242,221,1) 0%, rgba(177,180,149,1) 100%);
}

.sb1:hover {
    transition: transform 80ms ease-in;
    color: #483D21;
}

.sb1:active, .sb_active {
    border-color: #483D21;
    border-bottom-width: 15px;
    padding-top: 50px;
    transform: scaleX(90%) scaleY(90%);
    transition: transform 10ms ease-in;
}

/* Items */

#items {
    margin-bottom: 0;
    list-style: none;
    margin-bottom: 0;
    margin-top: 1rem;
    padding: 10px;
    overflow-y: auto;
}

.item {
    display: block;
    border: 1px solid #483D21;
    border-radius: 5px;
    margin: 0;
    margin-bottom: 15px;
    padding: 15px;
    opacity: .5;
    background-color: #e9e9e1;
}

.item_last_child {
    margin-bottom: 80px;
}

.item span {
    display: block;
}

.item_buyable {
    opacity: 1.0;
    background: rgb(252,255,229);
    background: linear-gradient(180deg, rgba(252,255,229,1) 0%, rgba(229,232,209,1) 100%);
}

.item_buyable:hover {
    background: rgb(254,255,219);
    background: linear-gradient(180deg, rgba(254,255,219,1) 0%, rgba(249,251,178,1) 100%);
}

.item_buyable:active {
    background: rgb(223,227,192);
    background: linear-gradient(180deg, rgba(223,227,192,1) 0%, rgba(183,186,156,1) 100%);
}

.ititle {
    font-size: 1.5rem;
    margin-top: 0;
}

.idesc {
    font-size: 1rem;
}

.cost {
    margin-top: 15px;
}

.icost {
    display: inline !important;
}

.ilvl {
    margin-top: 0;
    font-size: 3rem;
    float: right;
    margin-top: auto;
    margin-bottom: auto;
}

._ilvl {
    display: inline !important;
    font-size: 1rem;
}

/* Particles */
.particle {
    width: auto;
    position: absolute;
    pointer-events: none;
    left: 0;
    right: 0;
}

.score {
    font-weight: bold;
    font-size: 1.3rem;
    color: 483D21;
    z-index: 100;
}

.spacebar_particle {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -100;

    width: 5px;
    height: 15px;
}

/*
    Content Section Styles - V5 (Unified Light Theme)
    --------------------------------------
    Styles have been updated for a unified light theme, matching the game area.
    This creates a more seamless and cohesive user experience.
*/

.content-section {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e9e9e1; /* Unified LIGHT background */
    color: #483D21;           /* DARK color for the main text */
    padding: 3rem 0;           /* Vertical spacing */
    padding-bottom: 8rem;      /* Extra padding at the bottom to not be covered by the footer */
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-block {
    margin-bottom: 3rem;
}

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

.content-block h2 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.9rem;         /* Adjusted for single-line display */
    font-weight: 600;
    color: #483D21;           /* DARK color for headings */
    border-bottom: 2px solid rgba(72, 61, 33, 0.5); /* Dark, softer border */
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #5a4d2a;            /* A slightly lighter dark color for body text */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Special styling for highlighting key points in the new light theme */
.highlight-box {
    background-color: rgba(72, 61, 33, 0.04);
    border-left: 3px solid #483D21;
    padding: 1.2rem 1.5rem;
    margin: 2rem 1rem;
    border-radius: 4px;
}

.highlight-box p {
    margin-bottom: 0;
    font-style: italic;
    color: #483D21; /* Dark text color for the highlight box */
}

/* Special styling for the FAQ section */
.faq-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(72, 61, 33, 0.15);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Collapsible FAQ styles */
.faq-item.collapsible .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: #483D21;
    margin-bottom: 0.5rem;
    font-weight: bold;
    padding: 1rem;
    background-color: rgba(72, 61, 33, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item.collapsible .faq-question:hover {
    background-color: rgba(72, 61, 33, 0.1);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #483D21;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.expanded .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 1rem;
    padding-left: 2rem;
    border-left: 3px solid rgba(72, 61, 33, 0.3);
    margin-top: 0.5rem;
    background-color: rgba(72, 61, 33, 0.02);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-item.expanded .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Non-collapsible FAQ questions (fallback) */
.faq-question:not(.collapsible .faq-question) {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: #483D21;
    margin-bottom: 0.5rem;
    font-weight: bold;
}


.content-block a {
    color: #483D21;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #483D21;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.content-block a:hover {
    color: #000000;
    border-bottom-color: #000000;
}

/* Styling for the horizontal divider */
.content-divider {
    border: 0;
    height: 1px;
    background-color: #483D21;
    opacity: 0.15;
    margin: 4rem auto;
    width: 50%;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px var(--shadow);
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text p:first-child {
    font-size: 16px;
    font-weight: 600;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.cookie-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-accept:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.cookie-necessary {
    background: var(--text-tertiary);
    color: var(--text-primary);
}

.cookie-necessary:hover {
    background: #B0B0B5;
}

.cookie-settings {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cookie-settings:hover {
    background: var(--primary-color);
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: var(--surface);
    border-radius: var(--radius-large);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.cookie-modal-close:hover {
    background: var(--background);
}

.cookie-modal-body {
    padding: 0 24px;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.cookie-category div {
    flex: 1;
}

.cookie-category h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-left: 12px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-tertiary);
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:disabled + .slider {
    background-color: var(--success-color);
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cookie-modal-footer .cookie-btn {
    width: 100%;
    justify-self: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-category {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-toggle {
        margin-left: 0;
        align-self: flex-start;
    }
}