/* =====================================================================
   NE Clean — Our Process page only
   Enqueued by functions.php exclusively on the /our-process/ page, so the
   vertical timeline geometry cannot affect any other template.

   Source reference: style.css "TIMELINE STYLES (Our Process Page)".
   Divi renders each step as a sibling .et_pb_text inside one column, so
   the alternating sides come from :nth-of-type() on .nec-timeline-item
   rather than the source's :nth-child() on flex items.
   ===================================================================== */

/* Column acts as the timeline track. */
.et-l .nec-timeline > .et_pb_column {
    position: relative;
    max-width: 1000px;
    margin-right: auto !important;
	margin-left: auto !important;
	float: none;
    padding: 60px 0;
}

/* Centre spine */
.et-l .nec-timeline > .et_pb_column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(
        to bottom,
        rgba(134, 168, 115, 0),
        rgba(134, 168, 115, 0.4),
        rgba(134, 168, 115, 0)
    );
    border-radius: 4px;
}

/* --- Timeline item ---------------------------------------------- */
.et-l .nec-timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 80px !important;
}
.et-l .nec-timeline-item:last-of-type {
    margin-bottom: 0 !important;
}

/* Even items flip to the right-hand side. */
.et-l .nec-timeline-item:nth-of-type(even) {
    justify-content: flex-end;
}

/* Divi wraps module content in .et_pb_text_inner — make it the flex row. */
.et-l .nec-timeline-item > .et_pb_text_inner {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}
.et-l .nec-timeline-item:nth-of-type(even) > .et_pb_text_inner {
    justify-content: flex-end;
}

/* --- Icon bubble on the spine ---------------------------------- */
.et-l .nec-timeline-icon {
    width: 70px;
    height: 70px;
    background: var(--nec-primary);
    border: 6px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(134, 168, 115, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.4s ease;
}
.et-l .nec-timeline-item:hover .nec-timeline-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--nec-dark-green);
}

/* --- Content card ---------------------------------------------- */
.et-l .nec-timeline-content {
    width: 45%;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--nec-transition);
}
.et-l .nec-timeline-item:hover .nec-timeline-content {
    box-shadow: 0 15px 50px rgba(134, 168, 115, 0.15);
    border-color: rgba(134, 168, 115, 0.2);
    transform: translateY(-5px);
}

/* Arrow notch pointing at the spine */
.et-l .nec-timeline-content::before {
    content: "";
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.et-l .nec-timeline-item:nth-of-type(odd) .nec-timeline-content::before {
    right: -10px;
    border-bottom: none;
    border-left: none;
}
.et-l .nec-timeline-item:nth-of-type(even) .nec-timeline-content::before {
    left: -10px;
    border-top: none;
    border-right: none;
}

/* --- Content internals ---------------------------------------- */
.et-l .nec-timeline-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(134, 168, 115, 0.1);
    color: var(--nec-primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
}
.et-l .nec-timeline-content h3 {
    font-size: 2rem;
    color: var(--nec-dark-green);
    margin-bottom: 16px;
    line-height: 1.2;
}
.et-l .nec-timeline-content p {
    color: var(--nec-text-muted);
    line-height: 1.7;
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.et-l .nec-timeline-content p:last-child {
    margin-bottom: 0;
}
.et-l .nec-timeline-content a:not(.nec-btn) {
    color: var(--nec-primary);
    font-weight: 600;
    text-decoration: none;
}
.et-l .nec-timeline-content a:not(.nec-btn):hover {
    text-decoration: underline;
}

/* Nested reminder list inside step 6 */
.et-l .nec-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.et-l .nec-timeline-list li {
    display: inline-block;
    
    font-size: 1.05rem;
    color: var(--nec-text-dark);
    line-height: 1.6;
}
.et-l .nec-timeline-list li::before {
    content: "\f058"; /* fa-circle-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--nec-primary);
    flex-shrink: 0;
	margin-right: 12px;
    margin-top: 3px;
}

/* Inline button inside a step */
.et-l .nec-timeline-btn {
    display: inline-flex;
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 1rem;
}

.guarantee-card {
    max-width: 950px;
    margin: 0 auto 100px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    overflow: hidden;
    align-items: stretch;
    flex-wrap: wrap;
}

.guarantee-icon-side {
    flex: 0 0 250px;
    background: linear-gradient(135deg, rgba(134, 168, 115, 0.1), rgba(134, 168, 115, 0.03));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.guarantee-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--nec-primary);
    box-shadow: 0 8px 20px rgba(134, 168, 115, 0.2);
    margin-bottom: 16px;
}

.guarantee-badge-text {
    color: var(--nec-dark-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    text-align: center;
}

.guarantee-text-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.guarantee-title {
    font-size: 2.6rem;
    color: var(--nec-dark-green);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
	text-align: left
}

.guarantee-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--nec-text-muted);
	text-align: left;
    margin: 0;
}

/* =====================================================================
   RESPONSIVE — source switches to a left-hand spine at 768px
   ===================================================================== */
@media (max-width: 768px) {
	.guarantee-icon-side {
		flex: 0 0 100%
	}
    .et-l .nec-timeline > .et_pb_column::before {
        left: 40px;
        transform: none;
    }

    .et-l .nec-timeline-item,
    .et-l .nec-timeline-item:nth-of-type(even) {
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 40px !important;
    }
    .et-l .nec-timeline-item > .et_pb_text_inner,
    .et-l .nec-timeline-item:nth-of-type(even) > .et_pb_text_inner {
        justify-content: flex-start;
        padding-left: 100px;
    }

    .et-l .nec-timeline-icon {
        left: 40px;
        top: 24px;
        transform: translateX(-50%);
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
        border-width: 5px;
    }
    .et-l .nec-timeline-item:hover .nec-timeline-icon {
        transform: translateX(-50%) scale(1.1);
    }

    .et-l .nec-timeline-content {
        width: 100%;
        padding: 28px 24px;
    }
    .et-l .nec-timeline-item:nth-of-type(odd) .nec-timeline-content::before,
    .et-l .nec-timeline-item:nth-of-type(even) .nec-timeline-content::before {
        left: -10px;
        right: auto;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        border-left: 1px solid rgba(0, 0, 0, 0.04);
    }
    .et-l .nec-timeline-content h3 {
        font-size: 1.5rem;
    }
    .et-l .nec-timeline-content p {
        font-size: 1.05rem;
    }
}
