/* --- Global Styles --- */
@import url(../style.css);

.how-it-works {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

/* --- Header Section --- */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-bottom: 100px;
    text-align: right;
}

.header h1 {
    font-size: 42px;
    font-weight: 600;
}

.header-icon {
    width: 45px;
}

/* --- Steps Layout --- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 140px; /* Protiti step-er majhe faka jayga */
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
}

.step-row.reverse {
    flex-direction: row-reverse;
}

/* --- Diamond Image Style --- */
.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.diamond-shape {
    width: 250px;
    height: 250px;
    background-color: #f2d1d4;
    transform: rotate(45deg);
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.diamond-shape img {
    width: 130px;
    transform: rotate(-45deg);
}

/* --- Content & Border --- */
.step-content {
    flex: 1;
    position: relative;
    padding: 20px 60px;
    border-left: 2px solid #555; /* Desktop border */
}

.step-row.reverse .step-content {
    border-left: 2px solid #555;
}

.vertical-text {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    font-size: 11px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-number {
    font-size: 60px;
    font-weight: 300;
    font-style: italic;
    color: #555;
    line-height: 1;
}

.step-content h2 {
    font-size: 32px;
    margin: 10px 0;
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    max-width: 450px;
}

/* --- MOBILE RESPONSIVE (768px) --- */
@media (max-width: 768px) {
    .header {
        justify-content: center;
        text-align: center;
        margin-bottom: 60px;
    }

    .steps-container {
        gap: 80px;
    }

    .step-row, .step-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Mobile-e border remove kora holo */
    .step-content {
        padding: 30px 10px;
        border-left: none !important; /* Left border remove */
        border-top: 2px solid #555; /* Upore separator border */
    }

    .vertical-text {
        left: 50%;
        top: 0;
        transform: translateX(-50%) rotate(0deg); /* Horizontal kora hoyeche */
        padding-bottom: 15px;
    }

    .step-content p {
        margin: 0 auto;
    }

    .diamond-shape {
        width: 180px;
        height: 180px;
    }

    .diamond-shape img {
        width: 100px;
    }
}