.life-after-korbal-images .image-block {
    position: relative;
}

.life-after-korbal-images .image-block .hover-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: max-height 0.5s ease;
    max-height: 0;
    overflow: hidden;
}

.life-after-korbal-images .image-block:hover .hover-block {
    max-height: 1000px;
}

/* Industries Bar Chart Styles */
.industries-chart {
    margin: 0 auto;
}

.industry-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    min-height: 40px;
}

.industry-label {
    flex: 0 0 300px;
    font-family: BreveSlabTitle;
    font-style: normal;
    font-size: 22px;
    color: #333;
    padding-right: 15px;
    text-align: left;
}

.bar-container {
    flex: 1;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 15px;
    position: relative;
}

.bar {
    height: 100%;
    background: linear-gradient(to right, #D50F36, #8E1537);
    transition: width 0.8s ease-out;
    border-radius: 2px;
    min-width: 2px;
    display: block;
}

.bar.highlighted {
    background: linear-gradient(to right, #D50F36, #8E1537);
    position: relative;
}

.bar.highlighted::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px dashed #666;
    border-radius: 4px;
    pointer-events: none;
}

.industry-percentage {
    flex: 0 0 50px;
    font-size: 22px;
    color: #8E1537;
    font-weight: 500;
    text-align: right;
}

/* Remove conflicting CSS animations - handled by JavaScript */

/* Responsive design */
@media (max-width: 768px) {
    .industries-chart {
        padding: 0 10px;
    }
    
    .industry-row {
        margin-bottom: 16px;
        min-height: auto;
    }
    
    .industry-label {
        flex: 0 0 200px;
        font-size: 16px;
        padding-right: 10px;
        line-height: 1.2;
    }
    
    .bar-container {
        height: 20px;
        margin-right: 10px;
    }
    
    .industry-percentage {
        flex: 0 0 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .industries-chart {
        padding: 0 5px;
    }
    
    .industry-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        min-height: auto;
    }
    
    .industry-label {
        flex: 1;
        width: auto;
        margin-bottom: 0;
        font-size: 14px;
        padding-right: 15px;
        text-align: left;
    }
    
    .bar-container {
        display: none;
    }
    
    .industry-percentage {
        flex: 0 0 auto;
        width: auto;
        text-align: right;
        font-size: 14px;
        font-weight: bold;
    }
}

/* Year Selector Styles */
.select-year {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    opacity: 1;
}

.select-year:hover:not(.disabled) {
    color: #999;
}

.select-year.active {
    font-weight: bold;
    background: #8E1537 !important;
    color: #ffffff;
}
.select-year.active:hover {
    color: #ffffff;
}

.select-year.disabled {
    opacity: 0.85;
    cursor: not-allowed;
    color: #ccc;
}

.select-year.disabled:hover {
    opacity: 0.85;
    color: #ccc;
}