#content>.ast-container {
    max-width: 100%;
    padding: 0;
}

.career-roadmap-results {
    background: rgb(8, 8, 8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    padding: 25px 20px;
    margin: 0 auto;
    /* max-width: 800px; */
    box-sizing: border-box;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
}

.roadmap-content section {
    margin-bottom: 25px;
}

.roadmap-content ol {
    margin: 0;
}

.initial-goal-section,
.career-growth-section {
    margin-bottom: 30px;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-header h1 {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 36px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 16px;
}

.roadmap-summary {
    background: linear-gradient(0.07deg, rgba(0, 85, 255, 0.08) 0%, rgba(153, 153, 153, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Career Overview - Compact grid */
.career-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    text-align: left;
}

.career-overview dt {
    color: #00bfff;
    font-weight: 500;
    font-size: 14px;
}

.career-overview dd {
    color: var(--muted-white);
    font-size: 14px;
    margin: 0;
}

.career-growth-section li {
    display: block;
}

.initial-goal-section h2,
.career-growth-section h2 {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

h3 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 22px;
    margin-bottom: 15px;
}

h4 {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 20px;
    margin-bottom: 8px;
    /* Prevent text overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Immediate Actions - Compact */
.priority-actions {
    list-style: none;
    padding: 0;
    counter-reset: action-counter;
}

.action-item {
    counter-increment: action-counter;
    background: linear-gradient(0.07deg, rgba(0, 85, 255, 0.15) 0%, rgba(97, 97, 97, 0.09) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-item::before {
    content: counter(action-counter);
    background: linear-gradient(135deg, #00aaff 0%, #0055ff 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.action-content h4 {
    margin-bottom: 6px;
    font-size: 15px;
    /* Limit text length */
    -webkit-line-clamp: 2;
}

.action-timeline,
.action-importance {
    color: var(--muted-white);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 6px;
    /* Prevent overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.milestone-list,
.qualification-list,
.specialization-list,
.advanced-qual-list,
.leadership-list,
.phase-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.milestone-item,
.qualification-item,
.specialization-option,
.advanced-qual,
.leadership-role,
.growth-phase {
    background: linear-gradient(0.07deg, rgba(0, 85, 255, 0.15) 0%, rgba(97, 97, 97, 0.09) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

/* Text content - Prevent overflow */
.milestone-item p,
.qualification-item p,
.specialization-option p,
.advanced-qual p,
.leadership-role p,
.growth-phase p {
    color: var(--muted-white);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
    /* Limit text length */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Time elements - Compact */
time,
.milestone-date,
.qual-timing,
.spec-timing,
.phase-timeframe,
.leadership-timing {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}

/* Salary sections - Hide if empty */
.initial-salary:empty,
.salary-projection:empty {
    display: none;
}

.salary-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    background: rgba(0, 85, 255, 0.05);
    border: 1px solid rgba(0, 85, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.salary-breakdown dt {
    color: #00bfff;
    font-weight: 500;
    font-size: 13px;
}

.salary-breakdown dd {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.salary-point {
    background: rgba(0, 85, 255, 0.05);
    border: 1px solid rgba(0, 85, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
}

.salary-amount {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    background: rgba(0, 85, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    /* Handle empty content */
    min-height: 20px;
}

/* Success Strategy - Compact */
.success-strategy {
    background: linear-gradient(0.07deg, rgba(0, 85, 255, 0.08) 0%, rgba(153, 153, 153, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #00aaff;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.success-strategy p {
    color: var(--text-white);
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

/* Phase details - Compact grid */
.phase-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.phase-requirement,
.phase-salary,
.phase-advancement {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #00aaff;
}

/* Footer - Compact */
.roadmap-footer {
    /* text-align: center; */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px;
}

.vision-statement {
    background: linear-gradient(0.07deg, rgba(0, 85, 255, 0.15) 0%, rgba(97, 97, 97, 0.09) 100%);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-white);
    font-size: 15px;
    line-height: 24px;
    /* margin: 0 auto; */
    /* max-width: 600px; */
    display: block;
}

/* Text overflow prevention */
h1,
h2,
h3,
h4,
h5,
p,
dt,
dd {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    .career-roadmap-results {
        padding: 15px 12px;
        max-width: 100%;
    }

    .roadmap-header h1 {
        font-size: 24px;
        line-height: 28px;
    }

    .initial-goal-section h2,
    .career-growth-section h2 {
        font-size: 20px;
        line-height: 24px;
        padding: 12px 0;
    }

    h3 {
        font-size: 16px;
        line-height: 20px;
    }

    h4 {
        font-size: 14px;
        line-height: 18px;
    }

    /* Single column layouts */
    .career-overview {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .milestone-list,
    .qualification-list,
    .specialization-list,
    .advanced-qual-list,
    .leadership-list {
        grid-template-columns: 1fr;
    }

    .phase-details {
        grid-template-columns: 1fr;
    }

    .salary-breakdown {
        grid-template-columns: 1fr;
    }

    .salary-point {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 8px;
    }

    /* Compact action items */
    .action-item {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .action-item::before {
        margin-bottom: 8px;
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 13px;
    }

    /* Reduce all card padding */
    .milestone-item,
    .qualification-item,
    .specialization-option,
    .advanced-qual,
    .leadership-role,
    .growth-phase {
        padding: 15px;
    }

    .success-strategy {
        padding: 12px;
    }

    .vision-statement {
        padding: 15px;
        font-size: 14px;
        line-height: 20px;
    }

    /* Reduce text sizes further */
    .action-content h4 {
        font-size: 14px;
    }

    .action-timeline,
    .action-importance,
    p {
        font-size: 13px;
        line-height: 18px;
    }

    time,
    .milestone-date,
    .qual-timing,
    .spec-timing,
    .phase-timeframe,
    .leadership-timing {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .career-roadmap-results {
        padding: 12px 8px;
    }

    .roadmap-header h1 {
        font-size: 20px;
        line-height: 24px;
    }

    .action-item {
        padding: 12px;
    }

    .milestone-item,
    .qualification-item,
    .specialization-option,
    .advanced-qual,
    .leadership-role,
    .growth-phase {
        padding: 12px;
    }
}