/* Loop Methodology Guide CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Global Resets / Layout ---- */
:root { 
    --nav-height: 96px; 
    --sidebar-width: 300px;
    --primary-blue: #004963;
    --secondary-blue: #46c5e6;
    --accent-green: #abcf37;
    --site-nav-height: 120px; /* Increased to clear logo completely */
}


html { 
    scroll-padding-top: calc(var(--nav-height) + var(--site-nav-height)); 
    scroll-behavior: smooth;
}


/* Ensure the guide container doesn't inherit top spacing from the CMS theme */
.loop-methodology-guide {
    /*font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
     * */
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Common HubSpot wrappers that often add top spacing */
.body-container-wrapper,
.content-wrapper,
#hs_cos_wrapper_main_content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.loop-methodology-guide * { box-sizing: border-box; }

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

/* ---- Hero Section - Only spans content area ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff;
    padding: 60px 0 60px;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-left: var(--sidebar-width); /* Push hero to content area only */
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 900px; /* Match content container width */
    margin: 0 auto;
    padding: 0 40px; /* Match content container padding */
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-cta {
    flex-shrink: 0;
}

.hero h1,
.hero .subtitle { 
    color: #fff !important; 
    margin: 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.95;
}

.cta-button-header {
    display: inline-block;
    background: var(--accent-green);
    color: var(--primary-blue);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button-header:hover {
    background: #9bb832;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ---- Main Layout Container ---- */
.guide-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ---- Sticky Sidebar Navigation - Starts below site nav ---- */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--site-nav-height); /* Start below main site navigation */
    width: var(--sidebar-width);
    height: calc(100vh - var(--site-nav-height)); /* Adjust height */
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    z-index: 2;
    overflow-y: auto;
    padding-top: 20px;
}

.sidebar-content {
    padding: 30px 25px;
}

.sidebar h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 15px;
}

.nav-section-sidebar {
    margin-bottom: 30px;
}

.nav-section-sidebar h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--secondary-blue);
}

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

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a.active {
    background: var(--primary-blue);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chapter-nav a {
    font-weight: 500;
}

.framework-nav a {
    color: var(--accent-green);
    font-weight: 500;
}

.framework-nav a:hover {
    background: var(--accent-green);
    color: white;
}

.tools-nav a {
    color: var(--secondary-blue);
    font-weight: 500;
}

.tools-nav a:hover {
    background: var(--secondary-blue);
    color: white;
}

/* ---- Main Content Area ---- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Sections ---- */
.section { 
    padding: 60px 0; 
    background: white; 
}

.section:nth-child(even) { 
    background: #fafbfc; 
}

.section h2 {
    color: var(--primary-blue);
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom: 3px solid var(--accent-green);
    padding-bottom: 15px;
}

.section h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.section h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ---- Content Boxes ---- */
.highlight-box {
    background: linear-gradient(120deg, var(--accent-green) 0%, #a8e6cf 100%);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-blue);
}
.highlight-box h4 { color: var(--primary-blue); margin-bottom: 15px; }

.ai-callout {
    background: linear-gradient(120deg, var(--secondary-blue) 0%, #e3f2fd 100%);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-blue);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.ai-callout h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-icon { flex-shrink: 0; width: 40px; height: 40px; }
.ai-icon svg { width: 100%; height: 100%; }

.warning-box {
    background: linear-gradient(120deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid #f39c12;
}

/* ---- Loop Diagram ---- */
.loop-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    flex-wrap: wrap;
    gap: 30px;
}
.loop-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.loop-image:hover { transform: scale(1.02); }

/* ---- Grids ---- */
.step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}
.step-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent-green);
    min-height: 180px;
    display: flex; 
    flex-direction: column;
}
.step-card .step-number {
    background: var(--primary-blue); 
    color: white; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold;
    margin-bottom: 15px; 
    flex-shrink: 0;
    font-size: 0.9rem;
}
.step-card h4 { 
    color: var(--primary-blue); 
    font-size: 1.2rem; 
    margin-bottom: 12px; 
    flex-shrink: 0; 
}
.step-card p { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    font-size: 0.9rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}
.metric-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary-blue);
    position: relative;
    min-height: 160px;
    display: flex; 
    flex-direction: column;
}
.metric-card h5 { 
    color: var(--primary-blue); 
    font-size: 1.1rem; 
    margin-bottom: 12px; 
    font-weight: 600; 
    flex-shrink: 0; 
}
.metric-card p  { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    font-size: 0.9rem; 
    line-height: 1.5; 
}

.metric-icon {
    position: absolute; 
    top: -15px; 
    right: 15px;
    width: 30px; 
    height: 30px; 
    background: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.metric-icon svg { width: 24px; height: 24px; }

/* ---- Committee Grid ---- */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}
.committee-role {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid;
    position: relative;
    min-height: 180px;
}
.committee-icon {
    position: absolute; 
    top: -20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 40px; 
    height: 40px;
}
.committee-icon svg { width: 100%; height: 100%; }

.economic-buyer  { border-top-color: #f39c12; }
.technical-buyer { border-top-color: #9b59b6; }
.user-buyer      { border-top-color: #1abc9c; }
.coach           { border-top-color: #e67e22; }
.influencer      { border-top-color: #34495e; }
.blocker         { border-top-color: #e74c3c; }

.committee-role h4 { 
    margin-top: 25px; 
    margin-bottom: 15px; 
    font-size: 1.2rem;
}

/* ---- Checklist ---- */
.checklist {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}
.checklist ul { list-style: none; padding: 0; }
.checklist li {
    padding: 12px 0; 
    border-bottom: 1px solid #dee2e6; 
    position: relative; 
    padding-left: 35px;
    font-size: 0.95rem;
}
.checklist li:before {
    content: '✓'; 
    position: absolute; 
    left: 0; 
    color: var(--accent-green); 
    font-weight: bold; 
    font-size: 1.2rem;
}

/* ---- Templates ---- */
.template-box {
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--primary-blue);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px;
}
.template-icon { width: 40px; height: 40px; }
.template-icon svg { width: 100%; height: 100%; }
.template-box h4 { 
    color: var(--primary-blue); 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    font-size: 1.1rem;
}

.download-btn {
    background: var(--accent-green); 
    color: var(--primary-blue); 
    padding: 10px 20px; 
    border: none; 
    border-radius: 6px;
    font-weight: 600; 
    cursor: pointer; 
    margin: 5px; 
    transition: all 0.3s ease; 
    font-family: inherit;
    font-size: 0.9rem;
}
.download-btn:hover { 
    background: #9bb832; 
    transform: translateY(-2px); 
}

/* ---- Calculator ---- */
.calculator-container {
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 30px 0; 
    border: 2px solid var(--accent-green);
}
.calc-input-group {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    margin: 20px 0;
}
.calc-input { display: flex; flex-direction: column; }
.calc-input label { 
    color: var(--primary-blue); 
    font-weight: 600; 
    margin-bottom: 5px; 
    font-size: 0.9rem;
}
.calc-input input {
    padding: 10px; 
    border: 2px solid #e9ecef; 
    border-radius: 6px; 
    font-size: 1rem; 
    font-family: inherit;
}
.calc-input input:focus { 
    border-color: var(--secondary-blue); 
    outline: none; 
}
.calc-input small { 
    color: #666; 
    font-size: 0.8rem; 
    margin-top: 5px; 
}

.calc-results {
    background: linear-gradient(120deg, var(--accent-green) 0%, #a8e6cf 100%);
    padding: 20px; 
    border-radius: 8px; 
    margin-top: 20px;
}
.calc-result-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,73,99,0.2);
}
.calc-result-item:last-child { border-bottom: none; }
.result-label { 
    color: var(--primary-blue); 
    font-weight: 600; 
    font-size: 0.9rem;
}
.result-value { 
    color: var(--primary-blue); 
    font-size: 1.1rem; 
    font-weight: bold; 
}

/* ---- Tables ---- */
.ai-scoring-table {
    width: 100%; 
    border-collapse: collapse; 
    margin: 30px 0; 
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    overflow: hidden;
    font-size: 0.9rem;
}
.ai-scoring-table th {
    background: var(--primary-blue); 
    color: white; 
    padding: 12px; 
    text-align: left; 
    font-weight: 600;
    font-size: 0.85rem;
}
.ai-scoring-table td { 
    padding: 12px; 
    border-bottom: 1px solid #e9ecef; 
}
.ai-scoring-table tr:nth-child(even) { 
    background: #f8f9fa; 
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 60px 0;
    text-align: center;
}
.cta h2 { 
    color: white; 
    margin-bottom: 25px; 
}
.cta-button {
    display: inline-block; 
    background: var(--accent-green); 
    color: var(--primary-blue); 
    padding: 18px 35px; 
    border-radius: 8px;
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.1rem; 
    margin-top: 20px; 
    transition: all 0.3s ease;
}
.cta-button:hover { 
    background: #9bb832; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .hero {
        margin-left: var(--sidebar-width);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .content-container {
        padding: 0 30px;
    }
    
    .step-grid,
    .metrics-grid,
    .committee-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-input-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 0; /* Full height on mobile */
        height: 100vh;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        margin-left: 0; /* Full width on mobile */
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .content-container {
        padding: 0 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .sidebar-content {
        padding: 20px 15px;
    }
    
    .sidebar h3 {
        font-size: 1.2rem;
    }
    
    .cta-button-header {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 200;
        background: var(--primary-blue);
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}
<!-- Add necessary styles -->
<style>
.section {
    padding: 60px 0;
}

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

.highlight-box, .warning-box, .ai-callout {
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.highlight-box {
    background: #e8f7f9;
    border-left: 4px solid #46c5e6;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
}

.ai-callout {
    background: #f0f8ff;
    border: 2px solid #46c5e6;
    display: flex;
    gap: 20px;
}

.ai-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

h2 {
    color: #004963;
    font-size: 32px;
    margin-bottom: 30px;
}

h3 {
    color: #004963;
    font-size: 24px;
    margin: 30px 0 20px;
}

h4 {
    color: #004963;
    font-size: 18px;
    margin: 20px 0 15px;
}

h5 {
    color: #46c5e6;
    font-size: 16px;
    margin: 15px 0 10px;
}
</style>