/* History Page Styles */

.history-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff; 
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.history-item:hover {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

/* CEO Sidebar Profile */
.history-ceo {
    flex: 0 0 100px;
    text-align: center;
}

.history-ceo-image {
    width: 150px;
    /* height: 150px; */
    margin: 0 auto 20px;
    /* border-radius: 50%; */
    overflow: hidden;
    /* border: 4px solid #f8f9fa; */
    box-shadow: 0 10px 20px rgba(0, 60, 113, 0.1);
    background: #f8f9fa;
}

.history-ceo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.history-name {
    font-size: 16px;
    font-weight: 400;
    color: #0c1a2d;
    margin-bottom: 5px;
}

/* History Details Area */
.history-details {
    flex: 1;
    min-width: 0; /* allows flex children to shrink */
    display: flex;
    flex-direction: column;
}

/* Year Pagination */
.year-pagination {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.year-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.year-pagination li {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #b7b7b7;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.year-pagination li:hover {
    color: #979797;
}

.year-pagination li:hover::after  {
    background: #979797;
    height: 8px;
}

.year-pagination li.active {
    color: #0088cc;
}

.year-pagination li.active::after {
    content: '';
        border-radius: 50px 50px 0px 0px;
    position: absolute;
    bottom: -2px;
    left: 32px;
    width: 10px;
    height: 12px;
    background: #0088cc;
}

.year-pagination li::after {
    content: '';
        border-radius: 50px 50px 0px 0px;
    position: absolute;
    bottom: -2px;
    left: 32px;
    width: 10px;
    height: 6px;
    background: #d8d8d8;
}

/* Custom History Slider */
.history-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: height 0.4s ease; 
    padding: 0px 20px;
}

.history-slider-inner {
    display: flex;
    align-items: flex-start;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.year-item {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding-right: 20px;
}

.year-item.active {
    opacity: 1;
}

.year-item h4 {
    font-size: 24px;
    color: #4b4b4b;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid #d8d8d8;
    width: 100%;
}

.year-item ul {
    list-style: none;
    padding-left: 0;
}

.year-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
    line-height: normal;
    font-size: 16px;
}

.year-item ul li::before {
    content: '\f101'; /* FontAwesome angle-double-right */
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #0088cc;
}

/* Responsive */
@media (max-width: 991px) {
    .history-ceo {
        flex: 0 0 100%;
    }
    
    .year-pagination {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .year-pagination ul {
        flex-wrap: nowrap;
    }

 

    .year-pagination li.active::after {
        border-radius: 50px 50px 0px 0px;
        bottom: -5px;
        height: 14px;
    }

    .year-pagination li::after {
        border-radius: 50px 50px 0px 0px;
        bottom: -5px;
        height: 10px;
    }
}
