.hta-timeline-widget {
    --hta-progress: 0%;
    position: relative;
    padding: 60px 0;
    width: 100%;
}

/* DESKTOP & TABLET LAYOUT (Horizontal) */
.hta-timeline-track {
    position: absolute;
    top: 76px; /* (Dot 32/2) + Padding 60 = 76px */
    left: 10%;
    right: 10%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    border-radius: 20px;
}

.hta-progress-fill {
    height: 100%;
    width: var(--hta-progress);
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.hta-timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hta-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Dot Base Styles */
.hta-dot {
    width: 32px;
    height: 32px;
    background: #D9E2E5; 
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-sizing: border-box;
    z-index: 3;
}

/* Active State Glow */
.status-active .hta-dot {
    background: linear-gradient(90deg, #034f75 0%, #24687b 50%, #468c7d 100%);
    transform: scale(1.15);
    box-shadow: 0px 0px 12px 3px rgba(255, 255, 255, 0.6);
}

/* Strikethrough for Passed Phases */
.status-passed .hta-phase {
    text-decoration: line-through;
    opacity: 0.6;
}

.hta-check { width: 16px; height: 16px; }
.hta-phase { display: block; font-family: 'Tecnico', sans-serif; font-weight: 700; text-transform: uppercase; color: #FFFFFF; }
.hta-date { display: block; font-family: 'Tahoma', sans-serif; font-size: 13px; color: #FFFFFF; opacity: 0.7; }

/* MOBILE LAYOUT (Vertical Preservation) */
@media (max-width: 767px) {
    .hta-timeline-widget { padding: 20px 0 20px 10px; }

    /* Turn the track into a vertical line */
    .hta-timeline-track {
        left: 25px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        right: auto;
    }
    
    .hta-progress-fill {
		height: var(--hta-progress);
		width: 100%;
	}

    .hta-timeline-items {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .hta-node {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        width: 100%;
    }

    .hta-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}