/* ==========================================================================
   BERJANGMERRY Development Journey Layout Rules
   ========================================================================== */

/* Scoped layout rules targeting the journey section */
.bm-journey-section {
    max-width: 1400px;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Parent container holding all stages */
.bm-stages-parent {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 32px !important;
    width: 100% !important;
    margin-top: 48px !important;
}

/* Individual stage columns */
.bm-stage-card {
    flex: 1 1 0% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

/* Stage elements hierarchy */
.bm-stage-number {
    font-family: 'Playfair Display', serif !important;
    font-size: 14px !important;
    color: #3B4A3F;
    opacity: 0.6;
    margin-bottom: 8px !important;
    letter-spacing: 0.1em;
}

.bm-stage-divider {
    width: 100% !important;
    height: 1px !important;
    background-color: rgba(59, 74, 63, 0.15) !important;
    margin-bottom: 16px !important;
}

.bm-stage-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 18px !important;
    color: #232D27 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.bm-stage-description {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: rgba(35, 45, 39, 0.7) !important;
    line-height: 1.5 !important;
}

/* Active Stage Treatment (04 Final Refinement - targeting 4th child natively as fallback) */
.bm-stage-card:nth-child(4) .bm-stage-number,
.bm-stage-card.is-active .bm-stage-number {
    color: #B08D57 !important; /* Champagne Gold */
    opacity: 1 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bm-stage-card:nth-child(4) .bm-stage-number::after,
.bm-stage-card.is-active .bm-stage-number::after {
    content: "ACTIVE";
    font-family: 'Montserrat', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border: 1px solid rgba(176, 141, 87, 0.3);
    border-radius: 2px;
}

.bm-stage-card:nth-child(4) .bm-stage-divider,
.bm-stage-card.is-active .bm-stage-divider {
    background-color: rgba(176, 141, 87, 0.6) !important; /* Slightly stronger gold divider */
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .bm-stages-parent {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 40px 24px !important;
    }
    
    /* 3-column first row, 2-column centered second row */
    .bm-stage-card {
        flex: 0 0 calc(33.333% - 16px) !important;
    }
    
    .bm-stage-card:nth-child(4),
    .bm-stage-card:nth-child(5) {
        flex: 0 0 calc(50% - 12px) !important;
        max-width: 400px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .bm-journey-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .bm-stages-parent {
        flex-direction: column !important;
        gap: 32px !important;
    }
    
    .bm-stage-card {
        flex: 1 1 auto !important;
    }
    
    .bm-stage-divider {
        margin-bottom: 12px !important;
    }
}
