  /* Using CSS variables for easy color and size changes */
    :root {
        --dot-size: 12px;
        --spine-color: #d4c8eb;
        --text-color: #232323;
        --number-color: #d4c8eb;
    }

    .brunos-glam-referral {
        max-width: 800px;
        margin: 50px auto;
        padding: 0 20px;
        color: var(--text-color);
        font-family: 'Helvetica Neue', Arial, sans-serif;
    }

    .brunos-glam-referral h2 {
        text-align: center;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: bold;
        margin-bottom: 60px;
    }

    .timeline-container {
        position: relative;
        width: 100%;
    }

    /* The central vertical line (spine) */
    .timeline-container::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--spine-color);
        left: 50%;
        transform: translateX(-50%);
        /* Starts and ends at the center of the first/last dots */
        top: calc(var(--dot-size) / 2);
        bottom: calc(var(--dot-size) / 2);
    }

    .timeline-item {
        padding: 10px 40px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    /* Remove padding to align first and last dots perfectly with the line ends */
    .timeline-item:first-child {
        padding-top: 0;
    }

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    /* Item on the left */
    .timeline-item.left {
        left: 0;
        text-align: right;
    }

    /* Item on the right */
    .timeline-item.right {
        left: 50%;
        text-align: left;
    }

    /* The circle on the timeline */
    .timeline-item::after {
        content: '';
        position: absolute;
        width: var(--dot-size);
        height: var(--dot-size);
        background-color: var(--spine-color);
        top: 0; /* Positions dot at the top edge of the item */
        border-radius: 50%;
        z-index: 1;
    }

    /* Pin the last dot to the bottom edge instead of the top */
    .timeline-item:last-child::after {
      top: auto;
      bottom: 0;
    }

    .timeline-item.left::after {
        right: calc(var(--dot-size) / -2); /* Aligns dot on the spine */
    }

    .timeline-item.right::after {
        left: calc(var(--dot-size) / -2); /* Aligns dot on the spine */
    }

    .timeline-content .number {
        font-size: 60px;
        font-weight: bold;
        color: var(--number-color);
        margin-bottom: 20px;
    }

    .timeline-content p {
        font-size: 17px;
        line-height: 1.5;
        margin: 0;
        color: var(--text-color);
    }
    
    .timeline-content p b {
        font-weight: bold;
    }

    .referpage .rich-text__sub {
        line-height: 1.2;
    }

    /* Responsive Design for Mobile */
    @media screen and (max-width: 768px) {
        .timeline-container::after {
            left: 20px; /* Move line to the left */
            transform: none;
            /* Maintain spine alignment with dots on mobile */
            top: calc(var(--dot-size) / 2);
            bottom: calc(var(--dot-size) / 2);
        }

        .timeline-item {
            width: 100%;
            padding-left: 50px; /* Add space for the content */
            padding-right: 15px;
        }

        .timeline-item.left,
        .timeline-item.right {
            left: 0;
            text-align: left; /* Force all text to align left */
        }

        /* Position dots on the new line for mobile */
        .timeline-item.left::after,
        .timeline-item.right::after {
            left: calc(20px - (var(--dot-size) / 2));
            right: auto;
        }
          .referpage br {
        display: none;
    }
    }