/* ============================================
   RSL Timeline Component
   Version: 1.0.0
   Description: Powerful, flexible timeline component
   for displaying chronological events, milestones,
   and progress with full accessibility support.
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */

.rsl-timeline {
    --rsl-timeline-connector-color: #e2e8f0;
    --rsl-timeline-connector-width: 2px;
    --rsl-timeline-marker-size: 1rem;
    --rsl-timeline-marker-border: 3px;
    --rsl-timeline-spacing: 2rem;
    --rsl-timeline-content-gap: 1rem;

    /* Status colors */
    --rsl-timeline-completed: #22c55e;
    --rsl-timeline-current: #6E7BFF;
    --rsl-timeline-upcoming: #94a3b8;
    --rsl-timeline-cancelled: #ef4444;

    /* Card styles */
    --rsl-timeline-card-bg: #ffffff;
    --rsl-timeline-card-border: #e2e8f0;
    --rsl-timeline-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --rsl-timeline-card-radius: 0.5rem;

    /* Typography */
    --rsl-timeline-title-color: #1e293b;
    --rsl-timeline-text-color: #64748b;
    --rsl-timeline-date-color: #6E7BFF;
    --rsl-timeline-meta-color: #94a3b8;
}

/* ============================================
   BASE STYLES
   ============================================ */

.rsl-timeline {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   VERTICAL TIMELINE (Default)
   ============================================ */

.rsl-timeline-vertical {
    padding-left: calc(var(--rsl-timeline-marker-size) / 2);
}

/* Connector line */
.rsl-timeline-vertical::before {
    content: '';
    position: absolute;
    left: calc(var(--rsl-timeline-marker-size) / 2 - var(--rsl-timeline-connector-width) / 2);
    top: 0;
    bottom: 0;
    width: var(--rsl-timeline-connector-width);
    background: var(--rsl-timeline-connector-color);
}

/* Timeline event item */
.rsl-timeline-event {
    position: relative;
    padding-left: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
    padding-bottom: var(--rsl-timeline-spacing);
    margin: 0;
}

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

/* Marker/dot */
.rsl-timeline-marker {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: var(--rsl-timeline-marker-size);
    height: var(--rsl-timeline-marker-size);
    background: var(--rsl-timeline-upcoming);
    border: var(--rsl-timeline-marker-border) solid #fff;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--rsl-timeline-connector-color);
    transition: all 0.3s ease;
}

.rsl-timeline-marker i {
    font-size: 0.5rem;
    color: #fff;
}

/* Status-based marker colors */
.rsl-timeline-event[data-status="completed"] .rsl-timeline-marker {
    background: var(--rsl-timeline-completed);
    box-shadow: 0 0 0 2px var(--rsl-timeline-completed);
}

.rsl-timeline-event[data-status="current"] .rsl-timeline-marker {
    background: var(--rsl-timeline-current);
    box-shadow: 0 0 0 2px var(--rsl-timeline-current);
    animation: rsl-timeline-pulse 2s ease-in-out infinite;
}

.rsl-timeline-event[data-status="upcoming"] .rsl-timeline-marker {
    background: #fff;
    border-color: var(--rsl-timeline-upcoming);
    box-shadow: 0 0 0 2px var(--rsl-timeline-upcoming);
}

.rsl-timeline-event[data-status="cancelled"] .rsl-timeline-marker {
    background: var(--rsl-timeline-cancelled);
    box-shadow: 0 0 0 2px var(--rsl-timeline-cancelled);
}

@keyframes rsl-timeline-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px var(--rsl-timeline-current);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(110, 123, 255, 0.3);
    }
}

/* Content area */
.rsl-timeline-content {
    background: transparent;
}

/* Date/time */
.rsl-timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rsl-timeline-date-color);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Title */
.rsl-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rsl-timeline-title-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

/* Description */
.rsl-timeline-description {
    font-size: 0.875rem;
    color: var(--rsl-timeline-text-color);
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

/* Cancelled event styling */
.rsl-timeline-event[data-status="cancelled"] .rsl-timeline-title {
    text-decoration: line-through;
    color: var(--rsl-timeline-meta-color);
}

.rsl-timeline-event[data-status="cancelled"] .rsl-timeline-description {
    opacity: 0.6;
}

/* Meta info (category, type badges) */
.rsl-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.rsl-timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    background: rgba(110, 123, 255, 0.1);
    color: var(--rsl-timeline-current);
}

.rsl-timeline-badge.milestone {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.rsl-timeline-badge.checkpoint {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

/* Link styling */
.rsl-timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rsl-timeline-current);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.rsl-timeline-link:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

.rsl-timeline-link i {
    font-size: 0.75rem;
}

/* Media (images/videos) */
.rsl-timeline-media {
    margin-top: 0.75rem;
    border-radius: var(--rsl-timeline-card-radius);
    overflow: hidden;
}

.rsl-timeline-media img,
.rsl-timeline-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CARD VARIANT
   ============================================ */

.rsl-timeline-card .rsl-timeline-content {
    background: var(--rsl-timeline-card-bg);
    border: 1px solid var(--rsl-timeline-card-border);
    border-radius: var(--rsl-timeline-card-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--rsl-timeline-card-shadow);
    transition: all 0.3s ease;
}

.rsl-timeline-card .rsl-timeline-event:hover .rsl-timeline-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.rsl-timeline-card .rsl-timeline-event:focus-within .rsl-timeline-content {
    outline: 2px solid var(--rsl-timeline-current);
    outline-offset: 2px;
}

/* ============================================
   MINIMAL VARIANT
   ============================================ */

.rsl-timeline-minimal {
    --rsl-timeline-marker-size: 0.625rem;
    --rsl-timeline-marker-border: 0;
    --rsl-timeline-connector-width: 1px;
}

.rsl-timeline-minimal .rsl-timeline-marker {
    box-shadow: none;
}

.rsl-timeline-minimal .rsl-timeline-event[data-status="upcoming"] .rsl-timeline-marker {
    background: var(--rsl-timeline-upcoming);
}

.rsl-timeline-minimal .rsl-timeline-title {
    font-size: 0.9375rem;
}

.rsl-timeline-minimal .rsl-timeline-description {
    font-size: 0.8125rem;
}

/* ============================================
   COMPACT VARIANT
   ============================================ */

.rsl-timeline-compact {
    --rsl-timeline-marker-size: 0.5rem;
    --rsl-timeline-spacing: 1rem;
    --rsl-timeline-content-gap: 0.75rem;
}

.rsl-timeline-compact .rsl-timeline-marker {
    top: 0.5rem;
    box-shadow: none;
    border: none;
}

.rsl-timeline-compact .rsl-timeline-date {
    display: inline;
    margin-right: 0.5rem;
}

.rsl-timeline-compact .rsl-timeline-title {
    display: inline;
    font-size: 0.875rem;
}

.rsl-timeline-compact .rsl-timeline-description {
    display: none;
}

/* ============================================
   SPLIT/ALTERNATE VARIANT
   ============================================ */

.rsl-timeline-split {
    padding-left: 0;
}

.rsl-timeline-split::before {
    left: 50%;
    transform: translateX(-50%);
}

.rsl-timeline-split .rsl-timeline-event {
    width: 50%;
    padding-left: 0;
    padding-right: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
    text-align: right;
}

.rsl-timeline-split .rsl-timeline-event:nth-child(even) {
    margin-left: 50%;
    padding-left: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
    padding-right: 0;
    text-align: left;
}

.rsl-timeline-split .rsl-timeline-marker {
    left: auto;
    right: calc(-1 * var(--rsl-timeline-marker-size) / 2);
}

.rsl-timeline-split .rsl-timeline-event:nth-child(even) .rsl-timeline-marker {
    left: calc(-1 * var(--rsl-timeline-marker-size) / 2);
    right: auto;
}

.rsl-timeline-split .rsl-timeline-meta {
    justify-content: flex-end;
}

.rsl-timeline-split .rsl-timeline-event:nth-child(even) .rsl-timeline-meta {
    justify-content: flex-start;
}

/* ============================================
   HORIZONTAL TIMELINE
   ============================================ */

.rsl-timeline-horizontal {
    display: flex;
    /* Extra padding to prevent marker clipping (marker size + content gap + box-shadow/pulse) */
    padding: calc(var(--rsl-timeline-marker-size) * 2.5 + 8px) 0 0 0;
    overflow-x: auto;
    overflow-y: visible;
    gap: 0;
}

.rsl-timeline-horizontal::before {
    content: '';
    position: absolute;
    top: calc(var(--rsl-timeline-marker-size) / 2);
    left: 0;
    right: 0;
    height: var(--rsl-timeline-connector-width);
    background: var(--rsl-timeline-connector-color);
}

.rsl-timeline-horizontal .rsl-timeline-event {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    padding: 0 1rem;
    padding-top: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
    padding-bottom: 0;
    text-align: center;
}

.rsl-timeline-horizontal .rsl-timeline-marker {
    top: calc(-1 * var(--rsl-timeline-marker-size) - var(--rsl-timeline-content-gap));
    left: 50%;
    transform: translateX(-50%);
}

.rsl-timeline-horizontal .rsl-timeline-meta {
    justify-content: center;
}

/* Scrollbar styling for horizontal */
.rsl-timeline-horizontal::-webkit-scrollbar {
    height: 6px;
}

.rsl-timeline-horizontal::-webkit-scrollbar-track {
    background: var(--rsl-timeline-connector-color);
    border-radius: 3px;
}

.rsl-timeline-horizontal::-webkit-scrollbar-thumb {
    background: var(--rsl-timeline-current);
    border-radius: 3px;
}

/* ============================================
   CONNECTOR STYLES
   ============================================ */

.rsl-timeline-connector-dashed::before {
    background: repeating-linear-gradient(
        to bottom,
        var(--rsl-timeline-connector-color) 0,
        var(--rsl-timeline-connector-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.rsl-timeline-horizontal.rsl-timeline-connector-dashed::before {
    background: repeating-linear-gradient(
        to right,
        var(--rsl-timeline-connector-color) 0,
        var(--rsl-timeline-connector-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.rsl-timeline-connector-dotted::before {
    background: repeating-linear-gradient(
        to bottom,
        var(--rsl-timeline-connector-color) 0,
        var(--rsl-timeline-connector-color) 4px,
        transparent 4px,
        transparent 10px
    );
}

.rsl-timeline-horizontal.rsl-timeline-connector-dotted::before {
    background: repeating-linear-gradient(
        to right,
        var(--rsl-timeline-connector-color) 0,
        var(--rsl-timeline-connector-color) 4px,
        transparent 4px,
        transparent 10px
    );
}

.rsl-timeline-connector-gradient::before {
    background: linear-gradient(
        to bottom,
        var(--rsl-timeline-completed),
        var(--rsl-timeline-current),
        var(--rsl-timeline-upcoming)
    );
}

.rsl-timeline-horizontal.rsl-timeline-connector-gradient::before {
    background: linear-gradient(
        to right,
        var(--rsl-timeline-completed),
        var(--rsl-timeline-current),
        var(--rsl-timeline-upcoming)
    );
}

.rsl-timeline-connector-none::before {
    display: none;
}

/* ============================================
   SIZE VARIANTS
   ============================================ */

.rsl-timeline-sm {
    --rsl-timeline-marker-size: 0.75rem;
    --rsl-timeline-marker-border: 2px;
    --rsl-timeline-spacing: 1.5rem;
    --rsl-timeline-content-gap: 0.75rem;
}

.rsl-timeline-sm .rsl-timeline-title {
    font-size: 0.875rem;
}

.rsl-timeline-sm .rsl-timeline-description {
    font-size: 0.8125rem;
}

.rsl-timeline-lg {
    --rsl-timeline-marker-size: 1.5rem;
    --rsl-timeline-marker-border: 4px;
    --rsl-timeline-spacing: 2.5rem;
    --rsl-timeline-content-gap: 1.25rem;
}

.rsl-timeline-lg .rsl-timeline-marker i {
    font-size: 0.75rem;
}

.rsl-timeline-lg .rsl-timeline-title {
    font-size: 1.125rem;
}

/* ============================================
   COLLAPSIBLE/EXPANDABLE
   ============================================ */

.rsl-timeline-collapsible .rsl-timeline-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsl-timeline-collapsible .rsl-timeline-title::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.625rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.rsl-timeline-collapsible .rsl-timeline-event[aria-expanded="true"] .rsl-timeline-title::after {
    transform: rotate(180deg);
}

.rsl-timeline-collapsible .rsl-timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.rsl-timeline-collapsible .rsl-timeline-event[aria-expanded="true"] .rsl-timeline-details {
    max-height: 500px;
    opacity: 1;
}

/* ============================================
   GROUP HEADERS
   ============================================ */

.rsl-timeline-group {
    margin-top: var(--rsl-timeline-spacing);
}

.rsl-timeline-group:first-child {
    margin-top: 0;
}

.rsl-timeline-group-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rsl-timeline-title-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rsl-timeline-connector-color);
    position: relative;
}

.rsl-timeline-vertical .rsl-timeline-group-header {
    margin-left: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
}

/* ============================================
   ANIMATE ON SCROLL
   ============================================ */

.rsl-timeline-animate .rsl-timeline-event {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rsl-timeline-animate .rsl-timeline-event.rsl-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.rsl-timeline-animate .rsl-timeline-event:nth-child(1) { transition-delay: 0s; }
.rsl-timeline-animate .rsl-timeline-event:nth-child(2) { transition-delay: 0.1s; }
.rsl-timeline-animate .rsl-timeline-event:nth-child(3) { transition-delay: 0.2s; }
.rsl-timeline-animate .rsl-timeline-event:nth-child(4) { transition-delay: 0.3s; }
.rsl-timeline-animate .rsl-timeline-event:nth-child(5) { transition-delay: 0.4s; }
.rsl-timeline-animate .rsl-timeline-event:nth-child(6) { transition-delay: 0.5s; }

/* Horizontal animation */
.rsl-timeline-horizontal.rsl-timeline-animate .rsl-timeline-event {
    transform: translateX(-20px);
}

.rsl-timeline-horizontal.rsl-timeline-animate .rsl-timeline-event.rsl-visible {
    transform: translateX(0);
}

/* Split timeline animation */
.rsl-timeline-split.rsl-timeline-animate .rsl-timeline-event {
    transform: translateX(-20px);
}

.rsl-timeline-split.rsl-timeline-animate .rsl-timeline-event:nth-child(even) {
    transform: translateX(20px);
}

.rsl-timeline-split.rsl-timeline-animate .rsl-timeline-event.rsl-visible {
    transform: translateX(0);
}

/* ============================================
   INTERACTIVE STATES
   ============================================ */

.rsl-timeline-event:focus {
    outline: none;
}

.rsl-timeline-event:focus-visible .rsl-timeline-marker {
    outline: 2px solid var(--rsl-timeline-current);
    outline-offset: 2px;
}

.rsl-timeline-event[tabindex="0"]:hover .rsl-timeline-marker {
    transform: scale(1.1);
}

/* Clickable events */
.rsl-timeline-clickable .rsl-timeline-event {
    cursor: pointer;
}

.rsl-timeline-clickable .rsl-timeline-content {
    transition: all 0.2s ease;
}

.rsl-timeline-clickable .rsl-timeline-event:hover .rsl-timeline-content {
    background: rgba(110, 123, 255, 0.05);
}

/* ============================================
   FILTER STATES
   ============================================ */

.rsl-timeline-event.rsl-filtered-out {
    display: none;
}

.rsl-timeline-event.rsl-highlight {
    background: rgba(110, 123, 255, 0.1);
    border-radius: var(--rsl-timeline-card-radius);
}

/* ============================================
   FILTERBUS VISIBILITY
   Show/hide events based on filter state
   ============================================ */

/* Only apply transitions AFTER initialization to prevent flicker on page load */
.rsl-timeline.rsl-timeline-filterbus-initialized .rsl-timeline-event {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.rsl-timeline-event.rsl-timeline-event-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Alternative: fade only without collapsing (use data-filter-fade-only attribute) */
.rsl-timeline[data-filter-fade-only] .rsl-timeline-event.rsl-timeline-event-hidden {
    opacity: 0.3;
    max-height: none;
    overflow: visible;
    margin: initial;
    padding: initial;
    pointer-events: auto;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rsl-timeline.rsl-timeline-filterbus-initialized .rsl-timeline-event {
        transition: none;
    }

    .rsl-timeline-event.rsl-timeline-event-hidden {
        transition: none;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .rsl-timeline {
    --rsl-timeline-connector-color: #374151;
    --rsl-timeline-card-bg: #1f2937;
    --rsl-timeline-card-border: #374151;
    --rsl-timeline-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --rsl-timeline-title-color: #f1f5f9;
    --rsl-timeline-text-color: #94a3b8;
    --rsl-timeline-meta-color: #64748b;
}

[data-theme="dark"] .rsl-timeline-marker {
    border-color: #1f2937;
}

[data-theme="dark"] .rsl-timeline-event[data-status="upcoming"] .rsl-timeline-marker {
    background: #1f2937;
    border-color: var(--rsl-timeline-upcoming);
}

[data-theme="dark"] .rsl-timeline-group-header {
    border-bottom-color: #374151;
}

[data-theme="dark"] .rsl-timeline-clickable .rsl-timeline-event:hover .rsl-timeline-content {
    background: rgba(110, 123, 255, 0.1);
}

[data-theme="dark"] .rsl-timeline-event.rsl-highlight {
    background: rgba(110, 123, 255, 0.15);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rsl-timeline-event,
    .rsl-timeline-marker,
    .rsl-timeline-content,
    .rsl-timeline-details,
    .rsl-timeline-link {
        transition: none !important;
        animation: none !important;
    }

    .rsl-timeline-animate .rsl-timeline-event {
        opacity: 1;
        transform: none;
    }

    .rsl-timeline-event[data-status="current"] .rsl-timeline-marker {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rsl-timeline-marker {
        border-width: 4px;
        border-color: currentColor;
    }

    .rsl-timeline::before {
        background: currentColor;
    }

    .rsl-timeline-card .rsl-timeline-content {
        border-width: 2px;
    }
}

/* Screen reader only content */
.rsl-timeline-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Convert split to single column on mobile */
    .rsl-timeline-split {
        padding-left: calc(var(--rsl-timeline-marker-size) / 2);
    }

    .rsl-timeline-split::before {
        left: calc(var(--rsl-timeline-marker-size) / 2 - var(--rsl-timeline-connector-width) / 2);
        transform: none;
    }

    .rsl-timeline-split .rsl-timeline-event,
    .rsl-timeline-split .rsl-timeline-event:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: calc(var(--rsl-timeline-marker-size) + var(--rsl-timeline-content-gap));
        padding-right: 0;
        text-align: left;
    }

    .rsl-timeline-split .rsl-timeline-marker,
    .rsl-timeline-split .rsl-timeline-event:nth-child(even) .rsl-timeline-marker {
        left: 0;
        right: auto;
    }

    .rsl-timeline-split .rsl-timeline-meta,
    .rsl-timeline-split .rsl-timeline-event:nth-child(even) .rsl-timeline-meta {
        justify-content: flex-start;
    }

    /* Horizontal timeline: smaller cards on mobile */
    .rsl-timeline-horizontal .rsl-timeline-event {
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .rsl-timeline {
        --rsl-timeline-spacing: 1.5rem;
    }

    .rsl-timeline-title {
        font-size: 0.9375rem;
    }

    .rsl-timeline-description {
        font-size: 0.8125rem;
    }

    .rsl-timeline-card .rsl-timeline-content {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .rsl-timeline {
        --rsl-timeline-connector-color: #ccc;
    }

    .rsl-timeline-marker {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .rsl-timeline-animate .rsl-timeline-event {
        opacity: 1 !important;
        transform: none !important;
    }

    .rsl-timeline-collapsible .rsl-timeline-details {
        max-height: none !important;
        opacity: 1 !important;
    }
}
