/* ==================== COMMITMENTS ==================== */
.commitments {
    padding: 120px 0 100px;
    background-image: url('../images/bg_rung_loc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    z-index: 1;
}

.commitments::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.571);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

.commitments h2 {
    font-size: 2.8rem;
    color: rgb(243, 244, 242);
    margin-bottom: 70px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.commitment-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .commitment-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    .commitment-grid::-webkit-scrollbar {
        height: 6px;
    }
    .commitment-grid::-webkit-scrollbar-thumb {
        background: rgba(45,90,39,0.3);
    }
}

@media (max-width: 768px) {
    .commitment-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0 15px;
        overflow-x: visible;
    }
}

@media (max-width: 640px) {
    .commitment-grid {
        gap: 12px;
        padding: 0 10px;
    }
}

.commitment-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    width: 320px;
    min-width: 320px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .commitment-item {
        width: 100%;
        min-width: auto;
        flex-shrink: 1;
        max-width: 350px;
        padding: 30px 25px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .commitment-item {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
}

.commitment-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.commitment-item h3 {
    font-size: 1.35rem;
    color: white;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .commitments {
        padding: 100px 0 80px;
    }
    .commitments h2 {
        font-size: 2.3rem;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .commitments {
        padding: 80px 15px 60px;
    }
    .commitments h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    .commitment-item {
        width: 100%;
        min-width: 100%;
        padding: 35px 25px;
    }
}
