/* SPARK Design System Variables */
:root {
    --spark-cyan: #ADFBF6;
    --spark-light-cyan: #e0fffe;
    --spark-dark-gray: #434343;
    --spark-gray: #9A9A9A;
    --spark-light-gray: #f5f5f5;
    
    /* Score-based color scale */
    --score-critical: #f5f5f5;      /* 0-30: Very light gray */
    --score-low: #f0fdfc;           /* 31-45: Very light cyan */
    --score-medium-low: #e0fffe;    /* 46-55: Light cyan */
    --score-medium: #ccfcf8;        /* 56-65: Medium cyan */
    --score-medium-high: #b3f9f3;   /* 66-75: Medium-high cyan */
    --score-high: #ADFBF6;          /* 76-100: Full cyan */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* Updated Header Styles */
.header-custom {
    background: #fff;
    border-bottom: 3px solid var(--spark-cyan);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    position: sticky;
    top: 0;
    padding: 1rem 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
    min-width: 200px;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #000;
    line-height: 1.2;
}

.header-subtitle {
    color: var(--spark-gray);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* Login Form Styles */
.login-form {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 24rem;
    border: 1px solid #e5e7eb;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 10rem auto;
}

.form-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: var(--spark-cyan);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 15px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #5f6b80;
    color: white;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Updated PDF Button Styles */
.pdf-button {
    background: var(--spark-dark-gray);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    width: auto;
}

.pdf-button:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pdf-button i {
    font-size: 1rem;
}

/* Updated Logout Button */
.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    width: auto;
    margin-top: 8px;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logout-btn i {
    font-size: 1rem;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: var(--spark-cyan);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: fixed;
    left: 20px;
    top: 90px;
    z-index: 1001;
}

.sidebar-toggle:hover {
    background: var(--spark-dark-gray);
    color: #fff;
}

.sidebar-toggle.collapsed {
    left: 20px;
}

/* Sidebar Styles */
.sidebar-wrapper {
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    width: 280px;
    background: #fff;
    border-right: 3px solid var(--spark-cyan);
    transition: transform 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.sidebar-wrapper.collapsed {
    transform: translateX(-100%);
}

.sidebar-custom {
    padding: 60px 20px 20px 20px;
}

.sidebar-custom h4 {
    margin-bottom: 15px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PDF Generation Loading Overlay */
.pdf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pdf-overlay.active {
    display: flex;
}

.pdf-loader {
    background: white;
    padding: 30px 50px;
    border-radius: 8px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--spark-cyan);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.toc-item {
    color: #000;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.toc-item:hover {
    border-left-color: var(--spark-cyan);
    background: #f0fdfc;
    transform: translateX(5px);
    color: #000;
}

.toc-item.active {
    border-left-color: var(--spark-cyan);
    background: var(--spark-cyan);
    color: #000;
    font-weight: bold;
}

/* Main Content Adjustment */
.main-content-wrapper {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 80px);
}

.main-content-wrapper.expanded {
    margin-left: 0;
}

/* Section/Page Styles */
.section {
    min-height: calc(100vh - 80px);
    padding: 2rem;
    scroll-margin-top: 80px;
}

.page {
    min-height: 100vh;
    background: white;
    padding: 40px;
    margin-bottom: 2px;
    display: none;
    position: relative;
}

.page.active {
    display: block;
}

/* Page Header - SPARK Design */
.page-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--spark-cyan);
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-section-custom {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin: 0 auto;
}

.highlight-section-custom h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.quote-block {
    padding: 18px 24px;
    background: #ffffff;
    border-left: 4px solid #adb5bd;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.quote-block:hover {
    border-left-color: #495057;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quote-block p {
    font-style: italic;
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.header-left span:first-child {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.section-indicator {
    color: var(--spark-gray);
    font-size: 16px;
}

.page-number-header {
    font-size: 18px;
    color: var(--spark-dark-gray);
    font-weight: bold;
}

/* Section Headers */
.section-header-custom {
    background: var(--spark-dark-gray);
    color: #fff;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 3px solid var(--spark-cyan);
    margin: -2rem -2rem 2rem -2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    background: var(--spark-dark-gray);
    color: #fff;
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: -40px -40px 40px -40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--spark-cyan);
}

/* Custom Card Styles */
.summary-card-custom {
    background: #fff;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 8px;
}

.summary-card-custom:hover {
    border-color: var(--spark-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.summary-card-custom .value {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin: 0.5rem 0;
}

/* Score Cell Styles - Based on numerical ranges */
.score-cell {
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    display: flexbox;
    align-items: center;
    justify-content: center;
}

.score-cell-critical { background: var(--score-critical); color: #000; }
.score-cell-low { background: var(--score-low); color: #000; }
.score-cell-medium-low { background: var(--score-medium-low); color: #000; }
.score-cell-medium { background: var(--score-medium); color: #000; }
.score-cell-medium-high { background: var(--score-medium-high); color: #000; }
.score-cell-high { background: var(--score-high); color: #000; }

/* Highlight Section */
.highlight-section-custom {
    background: #f5f5f5;
    border-left: 5px solid var(--spark-cyan);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Highlight Section */
.highlight-section-custom-first {
    background: var(--spark-light-cyan);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* Overall Score Card */
.overall-score-card {
    background: var(--spark-cyan);
    max-width: 350px;
}

.overall-score-card .value {
    font-size: 2.5rem;
    
}

/* Centered content for Executive Summary */
.executive-summary-centered {
    text-align: center;
    max-width: 80%;
    margin: 0 auto 3rem auto;
}

/* .executive-summary-left {
    text-align: left;
} */

/* STEPPED ELEVATION SCALE */
.maturity-scale {
    margin-bottom: 40px;
    margin-top: 30px;
}

.scale-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.scale-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.scale-container {
    background: white;
    padding: 40px 20px 60px 20px;
    position: relative;
    overflow: visible;
    perspective: 1000px;
}

.stepped-scale {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    flex: 1;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 0;
    max-width: none;
}

.step-block {
    position: relative;
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateZ(20px);
    transition: all 0.4s ease;
}

/* Different heights for steps */
.step:nth-child(1) .step-block { height: 180px; }
.step:nth-child(2) .step-block { height: 220px; }
.step:nth-child(3) .step-block { height: 260px; }
.step:nth-child(4) .step-block { height: 300px; }
.step:nth-child(5) .step-block { height: 340px; }

.step:hover {
    transform: translateY(-15px) scale(1.05);
    z-index: 10;
}

.step:hover .step-block {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Updated step colors with SPARK palette */
.step.nascent .step-block { 
    background: linear-gradient(135deg, #ffffff 0%, var(--score-critical) 100%);
    border-top: 4px solid var(--spark-cyan);
}
.step.emerging .step-block { 
    background: linear-gradient(135deg, #ffffff 0%, var(--score-low) 100%);
    border-top: 4px solid var(--spark-cyan);
}
.step.developing .step-block { 
    background: linear-gradient(135deg, #ffffff 0%, var(--score-medium) 100%);
    border-top: 4px solid var(--spark-cyan);
}
.step.advanced .step-block { 
    background: linear-gradient(135deg, #ffffff 0%, var(--score-medium-high) 100%);
    border-top: 4px solid var(--spark-cyan);
}
.step.leading .step-block { 
    background: linear-gradient(135deg, #ffffff 0%, var(--score-high) 100%);
    border-top: 4px solid var(--spark-cyan);
}

.step-score {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    opacity: 0;
    transition: all 0.3s ease;
}

.step:hover .step-score {
    opacity: 1;
    top: -50px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.step.nascent .step-title { color: var(--spark-dark-gray); }
.step.emerging .step-title { color: var(--spark-dark-gray); }
.step.developing .step-title { color: var(--spark-dark-gray); }
.step.advanced .step-title { color: var(--spark-dark-gray); }
.step.leading .step-title { color: var(--spark-dark-gray); }

.step-descriptors {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
}

/* Pillars section */
.pillars-section {
    margin-bottom: 30px;
    padding: 30px;
    position: relative;
    max-width: 100%;
}

.pillars-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.pillars-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Update the existing pillars-grid to be 4 columns by default */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

.pillar-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 450px;
    overflow-wrap: break-word;
}

/* Add these new styles for the GREY pillars specifically */
.pillars-grid-grey {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the 14-day quick wins grid stays as 5 columns */
.pillars-grid-quickwins {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 20px;
    grid-auto-rows: minmax(180px, auto);
}

/* GREY ROWS START*/
.pillars-header-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.pillar-header {
    text-align: center;
}

.pillar-header:hover .pillar-letter-circle {
    background: var(--spark-cyan);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(173, 251, 246, 0.25);
}

.pillars-content-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.pillar-content-item {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid var(--spark-cyan);
    border-radius: 0 8px 8px 0;
    min-height: 120px;
    position: relative;
}

.pillar-content-item:before {
    content: "•";
    position: absolute;
    left: -10px;
    top: 15px;
    color: var(--spark-cyan);
    font-weight: bold;
    font-size: 20px;
    background: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* GREY ROWS END*/

.pillar-letter-circle {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 20px;
    background: white;
    border: 3px solid var(--spark-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pillar-letter-circle-extra {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 20px;
    background: white;
    border: 3px solid var(--spark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pillar-card:hover .pillar-letter-circle-extra {
    background: var(--spark-gray);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(173, 251, 246, 0.25);
}

.pillar-card:hover .pillar-letter-circle {
    background: var(--spark-cyan);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(173, 251, 246, 0.25);
}

.pillar-letter {
    font-size: 28px;
    font-weight: 700;
    color: var(--spark-dark-gray);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-letter {
    color: var(--spark-dark-gray);
}

.pillar-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.pillar-description {
    margin-top: 15px;
}

.pillar-description ul {
    margin: 0;
    padding-left: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    list-style: none;
}

.pillar-description li {
    margin-bottom: 8px;
    position: relative;
    text-align: center;
}



/* Business unit table */
.business-unit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    font-size: 14px;
}

.business-unit-table th {
    background: var(--spark-gray);
    color: #000;
    padding: 20px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--spark-cyan);
}

.business-unit-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    width: 16.67%;
}

.business-unit-table .unit-name {
    text-align: left !important;
    font-weight: bold;
    color: #000;
    font-size: 16px;
}

/* Assessment overview box */
.assessment-overview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--spark-cyan);
    margin-bottom: 30px;
}

.assessment-overview h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.assessment-points {
    font-size: 13px;
    color: #555;
}

.assessment-points li {
    margin-bottom: 5px;
    list-style-position: inside;
}

/* Report sections table */
.sections-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    position: relative;
}

.sections-table th {
    text-align: left;
    padding: 8px 10px;
    background: #e9ecef;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid var(--spark-cyan);
    font-size: 12px;
}

.sections-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: center;
}

.sections-table tr:last-child td {
    border-bottom: none;
}

.section-name {
    font-weight: 600;
    color: var(--spark-dark-gray);
    font-size: 12px;
}

.section-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.7;
}

.page-ref {
    color: #666;
    font-size: 11px;
}

/* Analysis Sections */
.analysis-section {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-section:hover {
    border-color: var(--spark-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.analysis-section h3 {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.analysis-section h4 {
    color: var(--spark-dark-gray);
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.analysis-section ul {
    padding-left: 20px;
    margin: 15px 0;
}

.analysis-section li {
    margin: 8px 0;
}

/* Special styling for highlighted sections */
.analysis-section[style*="background: #fff; border: 2px solid #ADFBF6"] {
    border-color: var(--spark-cyan) !important;
    background: var(--spark-light-cyan) !important;
}

.analysis-section[style*="background: #f0fdfc"] {
    border-color: var(--spark-cyan) !important;
    background: var(--spark-light-cyan) !important;
}

.analysis-section[style*="background: #e0fffe"] {
    background: #f5f5f5 !important;
    border-left: 5px solid var(--spark-cyan) !important;
    border-radius: 0 8px 8px 0 !important;
}

.analysis-section[style*="background: #fff; border: 2px solid #999999"] {
    border-color: var(--spark-gray) !important;
}

.risk-indicator {
    background: #f0fdfc;
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    border: 2px solid var(--spark-gray);
    font-size: 0.9rem;
}

.strength-indicator {
    background: var(--spark-cyan);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* .score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
} */

.score-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.score-card:hover {
    border-color: var(--spark-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.score-card h3 {
    font-size: 28px;
    margin: 0;
    color: #000;
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
}

.score-card p {
    margin: 10px 0 0 0;
    font-weight: 600;
    color: var(--spark-dark-gray);
}

/* Score card color variants - Based on numerical ranges */
.score-card.critical { background: var(--score-critical); }
.score-card.low { background: var(--score-low); }
.score-card.medium-low { background: var(--score-medium-low); }
.score-card.medium { background: var(--score-medium); }
.score-card.medium-high { background: var(--score-medium-high); }
.score-card.high { background: var(--score-high); }

.content {
    max-width: 100%;
}

.intro-section {
    margin-bottom: 40px;
}

.intro-section h2 {
    color: #000;
    font-size: 32px;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Success metrics section styling */
div[style*="background: #14b8a6"] {
    background: var(--spark-dark-gray) !important;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--spark-cyan);
}

div[style*="background: #14b8a6"] h3,
div[style*="background: #14b8a6"] h4 {
    color: #fff !important;
}

div[style*="background: #14b8a6"] ul li {
    color: #fff;
}

/* Page break styling for clear divisions */
.page-break {
    page-break-before: always;
    border-top: 3px solid var(--spark-cyan);
    margin-top: 0;
    padding-top: 2rem;
}

.page-break:first-child {
    border-top: none;
    page-break-before: auto;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.nav-btn {
    background: var(--spark-dark-gray);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sprint-card {
        transition: all 0.3s ease;
        border: 2px solid var(--spark-gray);
        background: white;
        cursor: pointer;
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.sprint-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        border-color: var(--spark-dark-gray);
        background: white;
        z-index: 10; /* Bring to front on hover */
}

.sprint-card .card-body {
        padding: 1.25rem;
}

  .solution-pair-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
  }

  .solution-pair {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }

  .testimonial-card {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--spark-gray, #ccc);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--spark-dark-gray, #333);
    margin: 0;
    font-size: 15px;
  }

  .solution-card {
    flex: 1;
    min-width: 250px;
    background: var(--spark-light-cyan);
    border: 1px solid var(--spark-cyan, #14b8a6);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
  }

  .solution-text {
    color: var(--spark-dark-gray, #333);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
  }

  .arrow {
    flex: 0 0 auto;
    font-size: 24px;
    color: var(--spark-primary, #007BFF);
    font-weight: bold;
    margin: 0 10px;
    user-select: none;
  }

  .main-content {
            display: grid;
            grid-template-columns: 1fr auto 2fr;
            gap: 60px;
            align-items: center;
            margin: 60px 0;
        }
        
        .problems-section {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        
        .section-header {
            background-color: #5a5a5a;
            color: white;
            padding: 15px 20px;
            margin: -30px -30px 25px -30px;
            font-weight: 600;
            font-size: 16px;
            letter-spacing: 0.5px;
            text-align: center;
            border-radius: 8px 8px 0 0;
        }
        
        .problem {
            margin-bottom: 30px;
            padding: 20px;
            background-color: #f8f9fa;
            border-left: 4px solid #7fdbda;
            border-radius: 0 6px 6px 0;
        }
        
        .problem:last-child {
            margin-bottom: 0;
        }
        
        .problem-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }
        
        .problem-description {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        
        .connector {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: #7fdbda;
            font-weight: bold;
        }
        
        .solutions-section {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        
        .solutions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            justify-items: center;
        }
        
        .solution {
            text-align: center;
        }
        
        .solution-circle {
            width: 120px;
            height: 120px;
            border: 2px solid #7fdbda;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            background-color: #ffffff;
            transition: all 0.2s ease;
            padding: 10px;
        }
        
        .solution:hover .solution-circle {
            background-color: #7fdbda;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(127, 219, 218, 0.3);
        }
        
        .solution-title {
            font-size: 12px;
            font-weight: 600;
            line-height: 1.2;
            color: #5a5a5a;
            transition: color 0.2s ease;
            text-align: center;
        }
        
        .solution:hover .solution-title {
            color: white;
        }

/*Division Performance*/
.executive-summary-box {
    background: #f0fdfc;
    border: 2px solid var(--spark-cyan);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.executive-summary-box h3 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.executive-summary-box ul {
    color: #000;
    line-height: 1.8;
    font-size: 14px;
    padding-left: 20px;
    margin: 0;
}

.executive-summary-box li {
    margin-bottom: 0.5rem;
}

/* Race Track Container */
.race-track-container {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.race-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--spark-cyan);
}

.race-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--spark-dark-gray);
}

.threshold-indicator {
    background: var(--spark-cyan);
    color: var(--spark-dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Division Rows */
.division-row {
    margin: 1.5rem 0;
    opacity: 1;
}

.division-row:nth-child(1) {
    animation-delay: 0.1s;
}

.division-row:nth-child(2) {
    animation-delay: 0.2s;
}

.division-row:nth-child(3) {
    animation-delay: 0.3s;
}

.division-row:nth-child(4) {
    animation-delay: 0.4s;
}

.division-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.division-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.division-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--spark-dark-gray);
    min-width: 200px;
}

.position-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.position-1 {
    background: var(--spark-cyan);
    color: var(--spark-dark-gray);
}

.position-2,
.position-3,
.position-4 {
    background: var(--spark-light-gray);
    color: var(--spark-gray);
}

.weakness-badge {
    background: white;
    border: 2px solid var(--spark-gray);
    color: var(--spark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.delta-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.delta-leader {
    background: var(--spark-cyan);
    color: var(--spark-dark-gray);
}

.delta-behind {
    background: var(--spark-light-gray);
    color: var(--spark-gray);
}

/* Progress Bar */
.bar-container {
    position: relative;
    height: 48px;
    background: var(--spark-light-gray);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.bar {
    height: 100%;
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    animation: growBar 1.5s ease-out forwards;
}

.bar-1 {
    background: var(--score-medium);
}

.bar-2 {
    background: var(--score-medium);
}

.bar-3 {
    background: var(--score-medium-low);
}

.bar-4 {
    background: var(--score-medium-low);
}

.score-label {
    color: var(--spark-dark-gray);
    font-weight: 800;
    font-size: 18px;
}

/* Threshold Line */
.threshold-marker {
    position: absolute;
    left: 85%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--spark-cyan);
    z-index: 10;
    box-shadow: 0 0 10px rgba(173, 251, 246, 0.5);
}

.threshold-label {
    position: absolute;
    left: 85%;
    top: -25px;
    transform: translateX(-50%);
    background: var(--spark-dark-gray);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Scale */
.scale {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 5px;
    color: var(--spark-gray);
    font-size: 12px;
    font-weight: 600;
}

/* Legend */
.legend-section {
    background: var(--spark-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.legend-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--spark-dark-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 13px;
    color: var(--spark-dark-gray);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

/* Action Box */
.action-box {
    background: var(--spark-dark-gray);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    border: 3px solid var(--spark-cyan);
}

.action-box strong {
    color: var(--spark-cyan);
}

/* Hover Effects */
.division-row:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

.bar:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}




/* diamond graph */
/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Radar Chart Container */
.radar-container {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
}

/* Competitive Insights Panel */
.insights-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card {
    background: white;
    border-left: 4px solid var(--spark-cyan);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.insight-card.champion {
    border-left-color: var(--spark-dark-gray);
    background: linear-gradient(90deg, var(--spark-light-gray) 0%, white 50%);
}

.insight-card.warning {
    border-left-color: var(--spark-gray);
    background: linear-gradient(90deg, var(--spark-light-gray) 0%, white 50%);
}

.insight-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--spark-gray);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.insight-content {
    font-size: 0.9rem;
    color: var(--spark-dark-gray);
    font-weight: 600;
}

.insight-detail {
    font-size: 0.8rem;
    color: var(--spark-gray);
    margin-top: 0.25rem;
}

/* Legend */
.legend-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #e5e5e5;
}

/* Battleground Box */
.battleground-section {
    background: var(--spark-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.battleground-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--spark-dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.battle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.battle-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.battle-item:hover {
    border-color: var(--spark-cyan);
    transform: translateY(-2px);
}

.battle-metric {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--spark-dark-gray);
    margin-bottom: 0.5rem;
}

.battle-leader {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--spark-dark-gray);
}

.battle-score {
    font-size: 0.8rem;
    color: var(--spark-gray);
}

/* Call to Action */
.action-box {
    background: var(--spark-dark-gray);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 3px solid var(--spark-cyan);
    margin-top: 3rem;
}

.action-box strong {
    color: var(--spark-cyan);
}
