/* ==========================================================================
   KM Projects Section (Figma node 1:2670)
   ========================================================================== */

.km-projects-section {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.km-projects-container {
    max-width: 1792px;
    margin: 0 auto;
    width: 100%;
    padding: 0 64px;
    box-sizing: border-box;
}

/* Header */
.km-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
    width: 100%;
}

.km-projects-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 73px;
    color: #2B2E31;
    margin: 0;
    letter-spacing: 0;
    text-transform: uppercase;
}

.km-projects-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.km-projects-arrow-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.km-projects-arrow-btn--prev {
    background-color: #FFFFFF;
    border: 1px solid #E2E2E2;
}

.km-projects-arrow-btn--next {
    background-color: #F3F3F3;
    border: 1px solid transparent;
}

.km-projects-arrow-btn:hover {
    background-color: #CD1719;
    border-color: #CD1719;
}

.km-projects-arrow-btn:hover svg path {
    fill: #FFFFFF;
}

/* Slider / Track */
.km-projects-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.km-projects-track {
    display: flex;
    gap: 32px;
    width: max-content;
}

/* Project Card (560px x 540px) */
.km-project-card {
    width: 560px;
    height: auto;
    min-height: 540px;
    background-color: #F6F6F6;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.km-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.km-project-card__image-box {
    width: 100%;
    height: 320px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #EAEAEA;
}

.km-project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.km-project-card:hover .km-project-card__image {
    transform: scale(1.03);
}

.km-project-card__content {
    padding: 28px 32px 32px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.km-project-card__title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    color: #2B2E31;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.km-project-card__desc {
    font-family: 'Geologica', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.km-project-card__tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.km-project-card__tag {
    background-color: #CD1719;
    height: 38px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'Geologica', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #FFFFFF;
    white-space: nowrap;
}

/* Footer Button (1792px x 64px) */
.km-projects-footer {
    margin-top: 40px;
    width: 100%;
}

.km-projects-btn-all {
    width: 100%;
    height: 64px;
    background-color: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.km-projects-btn-all:hover {
    background-color: #CD1719;
}

.km-projects-btn-text {
    font-family: 'Geologica', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1A1A1A;
    transition: color 0.2s ease;
}

.km-projects-btn-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.km-projects-btn-icon svg path {
    fill: #1A1A1A;
    transition: fill 0.2s ease;
}

.km-projects-btn-all:hover .km-projects-btn-text {
    color: #FFFFFF;
}

.km-projects-btn-all:hover .km-projects-btn-icon svg path {
    fill: #FFFFFF;
}

/* Media Queries */
@media (max-width: 1200px) {
    .km-projects-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .km-projects-title {
        font-size: 38px;
        line-height: 48px;
    }
    
    .km-project-card {
        width: 360px;
        height: auto;
    }
    
    .km-project-card__image-box {
        width: 100%;
        height: 240px;
    }
    
    .km-project-card__content {
        padding: 20px;
        height: auto;
    }
}
