/**************
Latest Result Section
**************/

.latest-result {
    background: var(--background-dark);
    
    .section-title {
        margin-bottom: 60px;
        
        @media (max-width: 991px) {
            margin-bottom: 40px;
        }
        
        @media (max-width: 576px) {
            margin-bottom: 30px;
        }
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 38px;
    &.section-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    @media (max-width: 1440px) {
        gap: 30px;
    }
    
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
        &.section-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 576px) {
        grid-template-columns: 1fr;
        gap: 20px;
        &.section-grid {
            grid-template-columns: 1fr;
        }
    }
}

.result-item {
    display: flex;
    align-items: center;
    gap: 30px;
    
    @media (max-width: 576px) {
        gap: 20px;
    }
}

.result-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #4C423A;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
    
    &:hover {
        transform: translateY(-5px);
        background: #5C523A;
    }
    
    @media (max-width: 576px) {
        width: 80px;
        height: 80px;
    }
}

.result-icon {
    width: 50px;
    height: auto;
    max-height: 60px;
    
    @media (max-width: 576px) {
        width: 40px;
        max-height: 50px;
    }
}

.result-title {
    color: var(--white);
    font-family: var(--font-type1);
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    margin: 0;
    
    @media (max-width: 991px) {
        font-size: 20px;
        line-height: 26px;
    }
    
    @media (max-width: 576px) {
        font-size: 18px;
        line-height: 24px;
    }
}

.view-all-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 38px;
    
    @media (max-width: 576px) {
        margin-top: 30px;
    }
}

/* RTL Support */
[dir="rtl"] .latest-result {
    .section-title {
        text-align: right;
    }
    
    .result-title {
        text-align: center;
    }
    
    .view-all-wrapper {
        justify-content: flex-start;
        
        @media (max-width: 1024px) {
            justify-content: flex-start;
        }
    }
}

/* Hover effects for result items */
.result-item:hover {
    .result-icon-wrapper {
        transform: translateY(-5px);
        background: #5C523A;
    }
    
    .result-title {
        color: #AE927E;
    }
}
