/* Keep custom styles, remove conflicting layout rules */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

/* Remove .csoact-main-grid, .csoact-section-card, etc. as they are handled by Tailwind */

.csoact-chart-container {
    position: relative;
    width: 100%;
    min-height: 320px;
    height: auto !important;
    aspect-ratio: 2/1;
    max-width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

.csoact-sidebar {
    position: sticky;
    padding-left: 30px !important;
    top: 5rem;
    z-index: 10;
    width: 340px;
    max-width: 340px;
    box-shadow: 0 6px 24px 0 rgb(16 185 129 / 0.10), 0 1.5px 6px 0 rgb(0 0 0 / 0.04);
    border: 1.5px solid #e0f2f1;
    background: linear-gradient(135deg, #f0fdfa 60%, #e0f2f1 100%);
    padding: 2rem 1.5rem 2rem 2rem;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    overflow-wrap: break-word;
    word-break: break-word;
    /* overflow-y: auto; Allow sidebar to scroll if content is long */
}

/* Mobile responsive adjustments */
@media (max-width: 1023px) {
    .csoact-sidebar {
        display: none !important;
    }
}

.csoact-sidebar h3 {
    color: #059669;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    text-align: left;
}

.csoact-sticky-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.csoact-sticky-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #047857;
    background: transparent;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.csoact-sticky-nav a:hover,
.csoact-sticky-nav a:focus {
    background: #d1fae5;
    color: #065f46;
    box-shadow: 0 2px 8px 0 rgb(16 185 129 / 0.08);
    outline: none;
}

.csoact-sticky-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, #059669 80%, #10b981 100%);
    font-weight: 800;
    box-shadow: 0 4px 16px 0 rgb(16 185 129 / 0.12);
}

.csoact-flow-step {
    border-left: 4px solid #10b981;
    padding-left: 1.5rem;
    position: relative;
}

.csoact-flow-step::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #10b98133;
}

.csoact-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.csoact-timeline-dot {
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.csoact-section-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.04);
    margin-bottom: 50px;
    padding: 2.5rem 1.5rem;
    max-width: 100%;
    width: 100%;
    position: relative;   /* Add this */
    clear: both;   
    height: auto !important;       /* Add this */
    /* No overflow, no aspect-ratio, no fixed height */
}

/* Mobile responsive adjustments for section cards */
@media (max-width: 640px) {
    .csoact-section-card {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
}

.csoact-section-card .grid {
    height: auto !important;
    min-height: 1px !important;
    /* Ensure the grid always expands to fit its content */
}

.csoact-chart-container canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100%;
    max-height: 500px !important;
}

/* Enhancements Chart Layout */
.enhancements-chart-wrapper {
    display: block;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-height: 400px;
}

/* Enhancements Chart Grid Layout */
.enhancements-chart-grid {
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    min-height: 400px;
    width: 100%;
}
.enhancements-chart-container {
    width: 100%;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
}
.enhancements-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    max-width: 100%;
    min-height: 400px;
}

/* Mobile responsive text adjustments */
@media (max-width: 640px) {
    .csoact-section-card h2 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .csoact-section-card p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .csoact-section-card h4 {
        font-size: 1rem !important;
    }
    
    .csoact-section-card h5 {
        font-size: 0.875rem !important;
    }
}

