.timeline {
                --timeline-color-active: #4190fb;
                --timeline-color-inactive: #c7d7f3;
                --timeline-text-color-title: #1c2a4e;
                --timeline-text-color-body: #6c757d;
                --timeline-color-backgorund: #fff;
                --timeline-icon-size: 60px;
                --timeline-line-thickness: 2px;
                --timeline-connector-dot-size: 8px;
            }

            /* --- DESKTOP STYLES (Default) --- */
            .timeline__bar {
                position: relative;
                display: flex;
                justify-content: space-between;
            }

            .timeline__bar::before {
                content: "";
                position: absolute;
                background: var(--timeline-color-inactive);
                top: calc(var(--timeline-icon-size) / 2 - var(--timeline-line-thickness) / 2);
                height: var(--timeline-line-thickness);
                left: calc(100% / (var(--timeline-step-count) * 2));
                width: calc(100% - 100% / var(--timeline-step-count));
                z-index: 1;
            }

            .timeline__step {
                position: relative;
                width: calc(100% / var(--timeline-step-count));
                display: flex;
                justify-content: center;
                z-index: 2;
            }

            .timeline__step::before {
                content: "";
                position: absolute;
                background: var(--timeline-color-active);
                height: var(--timeline-line-thickness);
                width: 0;
                top: calc(var(--timeline-icon-size) / 2 - var(--timeline-line-thickness) / 2);
                left: 50%;
                z-index: 3;
            }

            .timeline__step::after {
                content: "";
                position: absolute;
                width: var(--timeline-connector-dot-size);
                height: var(--timeline-connector-dot-size);
                border-radius: 50%;
                background: var(--timeline-color-inactive);
                top: calc(var(--timeline-icon-size) / 2 - var(--timeline-connector-dot-size) / 2);
                left: calc(100% - var(--timeline-connector-dot-size) / 2);
                z-index: 4;
                transition: background-color 0.3s ease;
            }

            .timeline__step:last-child::before,
            .timeline__step:last-child::after {
                display: none;
            }

            .timeline__icon {
                width: var(--timeline-icon-size);
                height: var(--timeline-icon-size);
                background: var(--timeline-color-backgorund);
                color: var(--timeline-color-active);
                box-shadow: 0 5px 15px #2F6AF21A;
                border-radius: 12px;
                font-weight: 700;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 5;
            }

            .timeline__details {
                display: flex;
                justify-content: space-between;
                margin-top: 1.5rem;
            }

            .timeline__detail {
                width: calc(100% / var(--timeline-step-count));
                padding: 0 15px;
                text-align: center;
            }

            .timeline__detail-title {
                font-weight: 400;
                color: var(--timeline-text-color-title);
                margin-bottom: 0.5rem;
                transition: font-weight 0.3s ease;
            }

            .timeline__detail-body {
                font-size: 0.9rem;
                color: var(--timeline-text-color-body);
            }

            /* --- ACTIVE STATE --- */
            .timeline__step--selected::before {
                animation: drawLine var(--timeline-animation-speed) linear forwards;
            }

            .timeline__step--selected::after {
                background-color: var(--timeline-color-active);
                transition-delay: calc(var(--timeline-animation-speed) / 2);
            }

            .timeline__step--selected .timeline__icon {
                background: var(--timeline-color-active);
                color: #fff;
                transform: scale(1.1);
            }

            .timeline__detail--selected .timeline__detail-title {
                font-weight: 700;
            }

            @keyframes drawLine {
                to {
                    width: 100%;
                }
            }

            /* --- MOBILE RESPONSIVE STYLES (Breakpoint: 768px) --- */
            @media screen and (max-width: 767.98px) {
                .timeline__bar {
                    /* Stack the icons vertically */
                    flex-direction: column;
                    align-items: center;
                    gap: 2rem;
                    /* Space between icons */
                }

                /* Hide the main horizontal line and the animated line overlay */
                .timeline__bar::before,
                .timeline__step::before {
                    display: none;
                }

                .timeline__step {
                    width: auto;
                }

                /* Repurpose the ::after pseudo-element as a vertical connector */
                .timeline__step::after {
                    width: var(--timeline-line-thickness);
                    height: 2rem;
                    /* This is the length of the line */
                    top: 100%;
                    /* Position it below the icon */
                    left: 50%;
                    /* Center it */
                    transform: translateX(-50%);
                    border-radius: 0;
                }

                /* Text section adjustments */
                .timeline__details {
                    flex-direction: column;
                    align-items: center;
                    gap: 1.5rem;
                    /* Space between text blocks */
                    margin-top: 2.5rem;
                }

                .timeline__detail {
                    width: 100%;
                    max-width: 350px;
                    padding: 0;
                    /* By default, show all text, hide inactive ones with JS */
                    display: none;
                }

                .timeline__detail--selected {
                    display: block;
                    /* Only show the detail for the selected step */
                }
            }
