/**
 * Installation Process Block Styles
 */

/* Section title */
.ip-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin: 0 0 60px;
    line-height: 1.1;
}

/* Timeline container */
.ip-timeline {
    display: flex;
    flex-direction: column;
}

/* Each step: 3-column grid */
.ip-step {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    align-items: stretch;
    column-gap: 40px;
    padding-bottom: 48px;
    min-width: 0;
}

.ip-step--last {
    padding-bottom: 0;
}

/* Axis column: dot + connecting line */
.ip-step-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 4px;
}

/* Line fills full height of the step + bridges the padding-bottom gap to next dot */
.ip-step:not(.ip-step--last) .ip-step-axis::after {
    content: '';
    position: absolute;
    top: 18px;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.ip-step--last .ip-step-axis::after {
    display: none;
}

/* Dot */
.ip-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Empty spacer */
.ip-step-empty {
    min-width: 0;
}

/* Step content — prevent text overflow */
.ip-step-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Left step: text right-aligned */
.ip-step--left .ip-step-content {
    text-align: right;
}

/* Right step: text left-aligned */
.ip-step--right .ip-step-content {
    text-align: left;
}

/* Step title */
.ip-step-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}

/* Step text */
.ip-step-text {
    font-family: var(--font-content);
    font-size: 15px;
    font-weight: 400;
    color: rgba(250, 250, 250, 0.85);
    line-height: 1.7;
}

.ip-step-text p {
    margin: 0 0 8px;
}

.ip-step-text p:last-child {
    margin-bottom: 0;
}

/* Step image */
.ip-step-image {
    width: 100%;
}

.ip-step-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .ip-section {
        padding: 60px 0;
    }

    .ip-title {
        font-size: 36px;
        margin-bottom: 44px;
    }

    .ip-step {
        grid-template-columns: 28px 1fr;
        column-gap: 16px;
        padding-bottom: 36px;
    }

    /* Hide empty spacer, always: axis col 1, content col 2 */
    .ip-step-empty {
        display: none;
    }

    .ip-step--left .ip-step-content,
    .ip-step--right .ip-step-content {
        text-align: left;
    }

    /* Re-order for left steps on mobile: axis first, then content */
    .ip-step--left {
        grid-template-columns: 28px 1fr;
    }

    .ip-step--left .ip-step-content {
        order: 2;
    }

    .ip-step--left .ip-step-axis {
        order: 1;
    }

    .ip-step:not(.ip-step--last) .ip-step-axis::after {
        bottom: -36px;
    }
}
