/**
 * Max Due Timeline Widget Styles
 */

.maxdue-timeline {
    width: 100%;
}

.maxdue-timeline-grid {
    display: grid;
    gap: 32px;
    position: relative;
}

.maxdue-timeline-step {
    text-align: center;
    position: relative;
}

/* Connecting line between steps */
.maxdue-timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px; /* Half of default circle size */
    left: calc(50% + 45px); /* Half circle + small offset */
    right: calc(-50% + 45px);
    height: 2px;
    background-color: #E31E24;
    z-index: 0;
}

/* Circle / Number */
.maxdue-timeline-number {
    width: 80px;
    height: 80px;
    border: 3px solid #E31E24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    font-weight: 700;
    color: #E31E24;
    background-color: #FFFFFF;
    position: relative;
    z-index: 1;
}

/* Title */
.maxdue-timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    padding: 0;
}

/* Description */
.maxdue-timeline-description {
    font-size: 15px;
    color: #6B6B6B;
    line-height: 1.5;
    margin: 0 auto;
    padding: 0;
    max-width: 250px;
}

/* =========================
   Responsive - Tablet
   ========================= */
@media (max-width: 1024px) {
    .maxdue-timeline-step:not(:last-child)::after {
        left: calc(50% + 35px);
        right: calc(-50% + 35px);
    }
    
    .maxdue-timeline-number {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
    
    .maxdue-timeline-step:not(:last-child)::after {
        top: 35px;
    }
}

/* =========================
   Responsive - Mobile
   ========================= */
@media (max-width: 767px) {
    .maxdue-timeline-grid {
        grid-template-columns: 1fr !important;
        gap: 48px;
    }
    
    /* Hide horizontal lines on mobile */
    .maxdue-timeline-step:not(:last-child)::after {
        display: none;
    }
    
    /* Vertical line on mobile */
    .maxdue-timeline-step:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: -36px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 24px;
        background-color: #E31E24;
    }
    
    .maxdue-timeline-number {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
    
    .maxdue-timeline-description {
        max-width: 100%;
    }
}
