/* Barcha elementlar uchun box-sizing */
*,
*:before,
*:after {
    box-sizing: border-box;
}

.how-title {
    text-align: left;
    margin-bottom: 40px;
    width: 100%;
}

.how-title h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.how-title p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #bdbdbd;
    max-width: 90%;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background-color: #3b3b3b;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.step img {
    width: clamp(60px, 30%, 100px);
    height: auto;
    margin-bottom: 20px;
}

.step h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    margin-bottom: 10px;
}

.step p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #bdbdbd;
}

.step:hover {
    transform: scale(1.05);
}

/* Responsive Media Querylar */
@media (max-width: 1200px) {
    .steps-container {
        max-width: 1000px;
        padding: 0 20px;
    }
    .step {
        max-width: 280px;
    }
}

@media (max-width: 992px) {
    .steps-container {
        max-width: 95%;
        padding: 0 15px;
    }

    .step {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .how-title {
        text-align: center;
        padding-left: 0;
        padding: 0 10px;
    }
    .how-title p {
        margin: 0 auto;
        max-width: 100%;
    }
    .steps-container {
        padding: 0 10px;
        gap: 15px;
    }
    .step {
        max-width: 80%;
    }
    .step:hover {
        transform: none;
    }
}

@media (max-width: 690px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    .step {
        max-width: 100%;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .how-title h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .how-title p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    .step {
        padding: 20px;
    }
    .step img {
        width: clamp(50px, 25%, 80px);
    }
    .step h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    .step p {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
}

@media (max-width: 360px) {
    .how-title {
        padding: 0 5px;
    }
    .steps-container {
        padding: 0 5px;
        gap: 10px;
    }
    .step {
        padding: 15px;
        margin-bottom: 15px;
    }
    .step img {
        width: clamp(40px, 20%, 60px);
    }
}
