﻿.cars1 .item .con .details {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
}

.imageDiv {
    width: 80% !important;
    margin: 0 auto;
    margin-bottom: 5em;
    height: 210px;
}

@media screen and (max-width: 991px) {
    h1 {
        font-size: 18px !important;
        margin-top: 0 !important;
    }

    .section-padding {
        padding: 50px 0 !important;
    }

    .imageDiv {
        width: 80% !important;
        margin: 0 auto;
        margin-bottom: 0em;
        height: 194px;
    }

    .cars1 .item .con {
        padding: 13px 20px;
        margin: 0;
    }

        .cars1 .item .con .title, .cars1 .item .con .title a {
            font-family: 'peyda', sans-serif;
            font-size: 16px;
            margin-bottom: 8px;
            color: #1b1b1b;
            font-weight: 700;
            line-height: 1.2em;
            transition: all 500ms ease;
        }

    .mb-60 {
        margin-bottom: 0px !important;
    }
}

@media screen and (min-width: 991px) {
    .section-padding {
        padding: 50px 0px !important
    }
}

.top-employees-section {
    padding: 50px 0;
    direction: rtl; 
}

.main-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.divider-center {
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto;
    border-radius: 2px;
}

.month-group-wrapper {
    margin-bottom: 50px;
}

.month-heading {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.month-badge {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.month-line {
    flex-grow: 1;
    height: 1px;
    background: #e9ecef;
    margin-right: 15px; 
}

.employee-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

    .employee-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.employee-img-wrapper {
    width: 100%;
    height: 230px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

    .employee-img-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.employee-card:hover .employee-img-wrapper img {
    transform: scale(1.03);
}

.employee-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.employee-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
}

    .detail-item.unit-item {
        max-width: 100%; 
        flex: 1 1 100%; 
    }

.detail-icon {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    flex-shrink: 0;
}

.detail-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}


.year-filter-wrapper {
    margin-bottom: 35px;
}

.year-filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f1f3f5;
    padding: 6px;
    border-radius: 30px;
}

.year-filter-btn {
    border: none;
    outline: none;
    background: transparent;
    padding: 7px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .year-filter-btn:hover {
        color: #007bff;
    }

    .year-filter-btn.active {
        background-color: #007bff;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    }
