/* Core Competencies Styling */
.core-competencies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 24px;
}

.core-competence-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
}

.core-competencies .section-title {
    color: var(--primary-color);
}

.core-competence-content {
    padding-top: 20px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
}

.core-competence-image{
    width: 100%;
    
}

.core-competence-image img{
    width: 100%;
    height: 100%;
    /* max-width: 320px;
    max-height: 320px; */
}

.core-competence-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 27px;
    color: var(--primary-color);
}

.core-competence-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    color: var(--black);
}

@media screen and (min-width: 1440px) {
    .core-competencies-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }
    .core-competence-item {
        max-width: 320px;
    }

}

/* Tablet - min-width: 768px */
@media (min-width: 768px) and (max-width: 1439px) {
    .core-competencies-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .core-competence-content {
        padding-top: 20px;
        padding-right: 8px;
        padding-bottom: 8px;
        padding-left: 8px;
    }
    .core-competence-item{
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .core-competencies-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .core-competence-content {
        padding-top: 16px;
        padding-right: 8px;
        padding-bottom: 8px;
        padding-left: 8px;
    }

    .core-competence-item{
        min-width: 400px;
        max-width: 600px;
    }


    .core-competence-image {
        width: 100%; 
        height: 320px;
        background-color: lightgray;
        border-radius: 10px;
        overflow: hidden;
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    

    .core-competence-item:first-of-type .core-competence-image img {
        object-position: 0px -30px; 
    }
    
    .core-competence-image img {
        width: 100%;
        height: 100%; 
        border-radius: 10px; 
        object-fit: cover; 
        display: block; 
    }
    

}

.core-competence-image img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.core-competence-image img:hover {
    transform: scale(1.1); 
}
