/* --- Global & Root Variables --- */
:root {
    --synergyhub-primary: #1a172f;      /* Dark Purple/Blue (New) */
    --synergyhub-secondary: #2a273f;    /* Lighter shade of primary for hover */
    --synergyhub-accent: #ff7676;       /* Energetic Red (New) */
    --synergyhub-text-primary: #fafafa; /* Off-white (New) */
    --synergyhub-text-secondary: #bdc3c7; /* Lighter gray for secondary text */
    --synergyhub-border: #3c3a4f;       /* Border color derived from primary */
    --synergyhub-success: #22c55e;
    --synergyhub-glow: rgba(255, 118, 118, 0.5); /* Glow color derived from accent */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f8fafc; /* Page background remains light for readability */
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #111;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1.25em;
}

a {
    color: var(--synergyhub-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin: 2.5em 0;
}

pre {
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9em;
    overflow-x: auto;
    position: relative;
    border: 1px solid var(--synergyhub-border);
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #eef2f7;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

.highlight {
    background-color: #fef3c7;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
}

tbody tr:nth-child(odd) {
    background-color: #fdfdfe;
}

/* --- Layout: Docs Page --- */
.docs-page {
    display: flex;
    flex-direction: row; /* Default for desktop */
    background-color: #f8fafc;
}

.docs-nav {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    padding: 20px 0;
    z-index: 999; /* Ensure nav is above content on desktop */
}

/* Mobile Nav Toggle Button (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none; /* Hidden by default for desktop */
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 1001; /* Above nav and overlay */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.docs-content {
    flex-grow: 1;
    padding: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Nav Header & Icons --- */
.docs-nav .nav-header {
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid var(--synergyhub-border);
    margin-bottom: 15px;
}

.docs-nav .nav-header a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.docs-nav .nav-header img {
    height: 30px;
    filter: brightness(0) invert(1); /* Ensures the logo is white */
}

.docs-nav ul li a i {
    width: 20px; /* Aligns the text vertically */
    margin-right: 15px;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav ul li a {
    display: flex; /* Changed to flex for icon alignment */
    align-items: center;
    color: var(--synergyhub-text-secondary);
    padding: 12px 25px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.docs-nav ul li a:hover {
    background-color: var(--synergyhub-secondary);
    color: var(--synergyhub-text-primary);
}

.docs-nav ul li.active a {
    color: var(--synergyhub-text-primary);
    background-color: var(--synergyhub-accent);
    border-left-color: var(--synergyhub-text-primary);
    font-weight: 600;
    box-shadow: 0 0 15px var(--synergyhub-glow);
}

/* --- Banners & Headers --- */
.intro-banner {
    position: relative;
    padding: 0; /* Padding is now on the overlay */
    border-radius: 12px;
    color: white;
    overflow: hidden;
    margin-bottom: 2.5em;
    height: 350px; /* Give the banner a fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.intro-banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.intro-banner-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(26, 23, 47, 0.75); /* Overlay from new primary color */
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
}

.intro-banner h1 {
    font-size: 2.8em;
    font-weight: 800;
    color: white;
    margin: 0 0 10px 0;
}

.intro-banner p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--synergyhub-text-primary);
}


/* --- Feature Cards & Grids (Used on multiple pages) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 2em 0;
}

.feature-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
}

.feature-card-icon {
    font-size: 24px;
    color: var(--synergyhub-accent);
    background-color: #ffeaea; /* background from new accent */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.feature-card p {
    font-size: 0.95em;
    color: #4b5563;
}

.feature-card a {
    color: #333;
    font-weight: 600;
}

.card-cta-button {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--synergyhub-accent);
}

.card-cta-button:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* --- CTA Box --- */
.cta-box {
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--synergyhub-border);
}

.cta-box h2 {
    color: var(--synergyhub-text-primary);
    margin-top: 0;
}

.cta-box p {
    color: var(--synergyhub-text-secondary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--synergyhub-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 118, 118, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 118, 118, 0.6);
    text-decoration: none;
}

/* --- Copy Button for Code Blocks --- */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--synergyhub-secondary);
    color: var(--synergyhub-text-primary);
    border: 1px solid var(--synergyhub-border);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    opacity: 1;
    background-color: #475569;
}

/* --- Tutorial & Recipe Page --- */
.recipe-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2em;
}

.recipe-card-header {
    background-color: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.recipe-card-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.recipe-card-body {
    padding: 20px;
}

.recipe-card-body ol {
    padding-left: 20px;
    margin: 0;
}

.recipe-card-body li {
    margin-bottom: 15px;
}

.recipe-card-body li:last-child {
    margin-bottom: 0;
}

.details-content {
    padding: 15px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

details > summary {
    list-style: none; /* Hide default marker */
}

details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

/* --- Concepts & Rating Page --- */
.assessment-box{display:flex;align-items:center;gap:30px;background-color:#f8fafc;border:1px solid #e2e8f0;padding:30px;border-radius:12px;margin:2em 0}.overall-score{flex-shrink:0;text-align:center;padding-right:30px;margin-right:30px;border-right:1px solid #e2e8f0}.score-value{font-size:3em;font-weight:800;color:var(--synergyhub-success);line-height:1}.score-label{font-weight:600;color:var(--synergyhub-success)}.assessment-summary h3{margin-top:0}.assessment-summary-list{list-style:none;padding:0;margin:0}.assessment-summary-list li{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}.assessment-summary-list i{color:var(--synergyhub-success);margin-top:5px}.partners-grid{text-align:center;margin:2em 0}.partner-logo img{height:40px;opacity:.6}.clean-arch-container-concepts{display:flex;gap:20px;align-items:center;background:#f8fafc;padding:20px;border-radius:8px;border:1px solid #e2e8f0}.arch-list{flex:1}.arch-diagram-concepts{position:relative;width:250px;height:250px;display:flex;align-items:center;justify-content:center}.arch-ring-concepts{position:absolute;border-radius:50%;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;color:#fff;box-shadow:0 0 10px rgba(0,0,0,.1);padding:10px}.ring1{width:80px;height:80px;background-color:var(--synergyhub-accent);z-index:4}.ring2{width:140px;height:140px;background-color:#c0392b;z-index:3}.ring3{width:200px;height:200px;background-color:#2980b9;z-index:2}.ring4{width:260px;height:260px;background-color:#7f8c8d;z-index:1}.rating-bar{width:100px;height:8px;background-color:#e2e8f0;border-radius:4px;overflow:hidden;margin-top:5px}.rating-bar-fill{height:100%;background-color:var(--synergyhub-success);border-radius:4px}.multi-tenancy-container{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.hierarchy-box{background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;padding:15px;text-align:center;position:relative}.hierarchy-box h4{margin:0}.hierarchy-box .arrow{margin:5px 0;color:#94a3b8}.hierarchy-box .role{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--synergyhub-primary);color:#fff;padding:2px 8px;border-radius:12px;font-size:.7em;font-weight:700}

/* --- APEX Protocol / For Partners Page --- */
blockquote {
    margin: 2em 0;
    padding-left: 1.5em;
    border-left: 4px solid #e2e8f0;
    color: #4b5563;
}

.version-badge {
    font-size: 0.6em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: var(--synergyhub-secondary);
    color: var(--synergyhub-text-primary);
    vertical-align: middle;
    margin-left: 10px;
}

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

.archetype-card-detailed {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.archetype-card-detailed.tech-role {
    border-color: var(--synergyhub-accent);
    border-width: 2px;
}

.archetype-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.archetype-header i {
    font-size: 1.5em;
    color: var(--synergyhub-primary);
}

.archetype-header h4 {
    margin: 0;
    font-size: 1.2em;
}

.archetype-motto {
    font-style: italic;
    color: #64748b;
    border-left: 3px solid #e2e8f0;
    padding-left: 10px;
    margin-bottom: 15px;
}

.governance-ladder {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2em;
}

.governance-level {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.governance-level.level-green { background-color: #f0fdf4; }
.governance-level.level-yellow { background-color: #fefce8; }
.governance-level.level-red { background-color: #fef2f2; }

.governance-icon {
    font-size: 1.8em;
    margin-top: 2px;
}
.level-green .governance-icon { color: var(--synergyhub-success); }
.level-yellow .governance-icon { color: #facc15; }
.level-red .governance-icon { color: #ef4444; }

.governance-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
}

.governance-content p {
    margin-bottom: 0;
    color: #334155;
}

.guide-step-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.guide-step-card ol li {
    margin-bottom: 10px;
}

details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

summary {
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

summary:hover {
    background-color: #f8fafc;
}

details[open] > summary {
    border-bottom: 1px solid #e2e8f0;
}

/* --- The Brain Page - Process Flow --- */
.sot-process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin: 3em 0;
}
.flow-step {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 1; /* Allow steps to grow */
    min-width: 180px; /* Prevent shrinking too much */
}
.flow-step .feature-card-icon {
    margin: 0 auto 15px auto;
}
.flow-step h4 {
    margin-top: 0;
    font-size: 1.1em;
}
.flow-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: #4b5563;
}
.flow-step.central-engine {
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    border-color: var(--synergyhub-border);
    transform: scale(1.1);
}
.flow-step.central-engine h4 {
    color: var(--synergyhub-text-primary);
}
.flow-step.central-engine ul {
    color: var(--synergyhub-text-secondary);
}
.flow-step.central-engine .feature-card-icon {
    background-color: var(--synergyhub-accent);
    color: white;
}
.flow-arrow {
    font-size: 2.5em;
    color: #cbd5e1;
    flex-shrink: 0; /* Don't let arrows shrink */
}

/* --- Self-Building Apps Page --- */
.sba-diagram { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 3em 0; 
}
.sba-pillars { 
    display: flex; 
    justify-content: space-around; 
    width: 100%; 
    gap: 20px; 
}
.sba-pillar { 
    text-align: center; 
    max-width: 250px; 
    position: relative; 
    padding-bottom: 50px; 
}
.sba-pillar .feature-card-icon { 
    margin: 0 auto 15px auto; 
}
.sba-pillar h4 { 
    margin-top: 0; 
}
.sba-pillar::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 2px; 
    height: 50px; 
    background-color: #d1d5db; 
}
.sba-connector { 
    width: 60%; 
    height: 2px; 
    background-color: #d1d5db; 
    margin-top: -2px; 
}
.sba-result { 
    text-align: center; 
    position: relative; 
    padding-top: 50px; 
}
.sba-result::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 50%; 
    width: 2px; 
    height: 50px; 
    background-color: #d1d5db; 
}
.sba-result .feature-card-icon { 
    background-color: var(--synergyhub-accent); 
    color: white; 
}

/* --- Hero Section (Used on Brain & Self-Building Apps) --- */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--synergyhub-primary) 20%, #3a2f4a 100%);
    color: var(--synergyhub-text-primary);
    margin: -40px -60px 2.5em -60px; /* Negative margin to break out of container */
}
.hero-content {
    display: grid;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}
.hero-text h1, .hero-text h2 { 
    color: var(--synergyhub-text-primary); 
    margin-top: 0; 
}
.hero-text h1 { font-size: 3em; }
.hero-text h2 { font-size: 1.5em; font-weight: 400; opacity: 0.9; }

/* --- Homepage Split Hero Section --- */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    padding: 60px;
    border-radius: 12px;
    margin-bottom: 2.5em;
    margin-top: 0; /* Align with top of page content */
}

.hero-split-text h1 {
    color: var(--synergyhub-text-primary);
    font-size: 2.8em;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.hero-split-text p {
    font-size: 1.1em;
    color: var(--synergyhub-text-secondary);
    margin-bottom: 1.5em;
}

.hero-split-video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-split-video-wrapper video {
    width: 100%;
    display: block;
}

/* --- Secondary Button Style --- */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--synergyhub-border);
    color: #4b5563; /* A darker text for readability on light background */
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #4b5563;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Homepage Split Hero Section --- */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Defines two columns for content below the title */
    gap: 40px;
    align-items: center;
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    padding: 60px;
    border-radius: 12px;
    margin-bottom: 2.5em;
    margin-top: 0; 
}

.hero-split-title {
    grid-column: 1 / -1; /* Makes the title span across all columns */
    text-align: center;
    color: var(--synergyhub-text-primary);
    font-size: 3.5em; /* Make it larger for more impact */
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.75em; /* Space below title */
}

.hero-split-text {
    padding-right: 20px; /* Add some padding to separate from video */
}

.hero-split-text p {
    font-size: 1.1em;
    color: var(--synergyhub-text-secondary);
    margin-bottom: 1.5em;
}

.hero-split-video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding-left: 20px; /* Add some padding to separate from text */
}

.hero-split-video-wrapper video {
    width: 100%;
    display: block;
}

/* --- Secondary Button Style (Already provided, but including for context) --- */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--synergyhub-border);
    color: #4b5563; /* A darker text for readability on light background */
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #4b5563;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Homepage Split Hero Section --- */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Give text a bit more space */
    gap: 20px 40px; /* Row and column gap */
    align-items: center;
    background-color: var(--synergyhub-primary);
    color: var(--synergyhub-text-primary);
    padding: 40px 60px;
    border-radius: 12px;
    margin-bottom: 2.5em;
    margin-top: 0; 
}

.hero-split-title {
    grid-column: 1 / -1; /* Makes the title span across all columns */
    color: var(--synergyhub-text-primary);
    font-size: 3em;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.5em; /* Space below title */
}

.hero-split-text p {
    font-size: 1.1em;
    color: var(--synergyhub-text-secondary);
    margin-bottom: 1.5em;
    max-width: 450px; /* Constrain text width for readability */
}

.hero-split-video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-split-video-wrapper video {
    width: 100%;
    display: block;
}

/* --- Secondary Button Style --- */
.btn-secondary {
    background-color: transparent;
    border: 2px solid #e2e8f0;
    color: #4b5563; /* A darker text for readability on light background */
    padding: 10px 20px;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #4b5563;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Responsive Design / Mobile Adjustments --- */
@media (max-width: 768px) {
    /* General adjustments for smaller screens */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    /* Docs Layout */
    .docs-page {
        flex-direction: column; /* Stack nav and content on mobile */
    }

    .docs-nav {
        position: fixed; /* Override sticky for mobile */
        top: 0;
        left: 0; /* Positioned at 0 to transition from */
        width: 260px; /* Fixed width for the menu */
        height: 100vh; /* Full viewport height */
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth slide in/out */
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        visibility: hidden; /* Hide nav by default */
        opacity: 0; /* Start fully transparent */
        flex-direction: column; /* Ensure vertical layout for mobile menu items */
    }

    .docs-nav.open {
        transform: translateX(0); /* Slide in */
        visibility: visible; /* Make visible */
        opacity: 1; /* Make fully opaque */
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger button on mobile */
    }

    /* Overlay when mobile nav is open */
    #mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998; /* Below nav, above content */
    }

    .docs-content {
        padding: 20px; /* Reduce padding for smaller screens */
        max-width: 100%; /* Use full width */
        margin-top: 60px; /* Space for fixed nav toggle */
    }

    /* Intro Banner */
    .intro-banner {
        height: auto; /* Allow height to adjust */
        min-height: 250px; /* Minimum height for visual impact */
        margin-bottom: 2em;
    }

    .intro-banner-overlay {
        padding: 25px;
        max-width: 95%; /* Adjust max-width for smaller screens */
    }

    .intro-banner h1 {
        font-size: 2em;
    }

    .intro-banner p {
        font-size: 1em;
    }

    /* Feature Grids (General Stacking) */
    .feature-grid,
    .archetype-grid-detailed,
    .archetype-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }

    /* Assessment Box */
    .assessment-box {
        flex-direction: column; /* Stack elements vertically */
        gap: 20px;
        padding: 20px;
    }

    .overall-score {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0; /* Add bottom border to separate */
        padding-bottom: 20px;
        width: 100%;
    }

    /* Multi-Tenancy Container */
    .multi-tenancy-container {
        grid-template-columns: 1fr; /* Stack content vertically */
        gap: 20px;
    }

    /* Process Flow */
    .sot-process-flow {
        flex-direction: column; /* Stack steps vertically */
        gap: 20px;
        align-items: stretch; /* Stretch items to full width */
    }

    .flow-arrow {
        display: none; /* Hide arrows on mobile for vertical flow */
    }

    .flow-step {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width */
    }

    .flow-step.central-engine {
        transform: scale(1); /* Remove scale effect on mobile */
    }

    /* Self-Building Apps Diagram */
    .sba-diagram {
        flex-direction: column; /* Stack main elements */
    }

    .sba-pillars {
        flex-direction: column; /* Stack pillars vertically */
        align-items: center; /* Center align pillars */
        width: 100%;
        gap: 30px; /* Add more gap between stacked pillars */
    }

    .sba-pillar {
        padding-bottom: 0; /* Adjust padding for stacking */
        width: 100%;
        max-width: 300px; /* Max width for readability */
    }

    .sba-pillar::after {
        display: none; /* Hide vertical connectors on stacked pillars */
    }

    .sba-connector {
        width: 2px; /* Make it a thin vertical line */
        height: 30px; /* Short vertical connector */
        margin: 20px auto; /* Center and add vertical margin */
        background-color: #d1d5db;
    }

    .sba-result {
        padding-top: 0; /* Adjust padding for stacking */
        width: 100%;
        max-width: 300px; /* Max width for readability */
    }

    .sba-result::before {
        height: 30px; /* Short vertical connector */
        margin-bottom: 20px; /* Add space below connector */
        background-color: #d1d5db;
    }

    /* Hero Section */
    .hero-section {
        padding: 40px 20px; /* Adjust padding */
        margin: -20px -20px 2em -20px; /* Adjust negative margins for mobile */
    }

    .hero-content {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 30px;
        padding: 0; /* Remove horizontal padding as it's handled by section */
    }

    /* Homepage Split Hero */
    .hero-split-container {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 30px 20px; /* Adjust padding */
        gap: 20px;
        margin-bottom: 2em;
    }

    .hero-split-title {
        font-size: 2.2em; /* Smaller font for mobile title */
        text-align: left; /* Align title left instead of center */
        margin-bottom: 0.75em;
    }

    .hero-split-text {
        padding-right: 0; /* Remove right padding */
    }

    .hero-split-text p {
        font-size: 1em;
        max-width: 100%; /* Use full width */
    }

    .hero-split-video-wrapper {
        padding-left: 0; /* Remove left padding */
    }

    /* Recipe Card */
    .recipe-card-body ol, .recipe-card-body ul {
        padding-left: 15px; /* Adjust padding for lists */
    }

    /* NEW: Reduce padding for pre (code blocks) on mobile */
    pre {
        padding: 15px;
    }
}