/* ========================================
   Section: How BioAlign Works
   ======================================== */



/* Two-column layout inside container */
.hiw-inner {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 40px;
    align-items: center;
}

/* Left content panel */
.hiw-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hiw-title {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hiw-desc {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 32px;
}

/* Steps */
.hiw-steps {
    display: flex;
    flex-direction: column;
    margin-bottom: 36px;
}

.hiw-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(56, 118, 183, 0.1);
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 12px rgba(56, 118, 183, 0.06);
}

.hiw-step:last-child { margin-bottom: 0; }

.hiw-step:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(56, 118, 183, 0.13);
}

/* Step image thumbnail */
.hiw-step-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(56, 118, 183, 0.15);
}

.hiw-step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.hiw-step:hover .hiw-step-img {
    transform: scale(1.08);
}

.hiw-step-num {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hiw-step-text h3 {
    font-family: var(--font-heading) !important;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.hiw-step-text p {
    font-family: var(--font-primary);
    font-size: 0.87rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* CTA button */
.hiw-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff !important;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 36px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(56, 118, 183, 0.3);
}

.hiw-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 118, 183, 0.4);
    color: #ffffff !important;
    text-decoration: none;
}

/* Right image panel — inside container, fully rounded */
.hiw-image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f2fb 0%, #f0f6ff 100%);
    border-radius: 10px;
    border: 1px solid rgba(56, 118, 183, 0.15);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.hiw-image {
    height: auto;
    max-height: 460px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(56, 118, 183, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
    .hiw-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hiw-image-panel {
        order: -1;
        padding: 20px;
    }

    .hiw-image { max-height: 320px; }

    .hiw-btn {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hiw-title { font-size: 1.7rem; }
    .hiw-image { max-height: 260px; }
}
