/* Timeline Container */
.angie-static-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The Vertical Line */
.angie-static-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e9ecef; /* Fallback */
    border-radius: 2px;
}

/* Center Layout Line Position */
.angie-static-timeline.align-center::before {
    left: 50%;
    transform: translateX(-50%);
}

/* Left Layout Line Position */
.angie-static-timeline.align-left::before {
    left: 20px;
}

/* Timeline Item */
.angie-timeline-item {
    position: relative;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Item Widths & Positions - Center Layout */
.angie-static-timeline.align-center .angie-timeline-item {
    width: 50%;
}

.angie-static-timeline.align-center .angie-timeline-item.left {
    left: 0;
    padding-right: 40px;
    text-align: right; /* Optional style choice */
}

.angie-static-timeline.align-center .angie-timeline-item.right {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

/* Item Widths & Positions - Left Layout */
.angie-static-timeline.align-left .angie-timeline-item {
    width: 100%;
    padding-left: 60px; /* Space for line + dot */
}

/* The Dot */
.angie-timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 25px;
    background: #fff;
    border: 4px solid #e9ecef;
    border-radius: 50%;
    z-index: 1;
}

/* Dot Position - Center Layout */
.angie-static-timeline.align-center .angie-timeline-item.left .angie-timeline-dot {
    right: -10px;
}

.angie-static-timeline.align-center .angie-timeline-item.right .angie-timeline-dot {
    left: -10px;
}

/* Dot Position - Left Layout */
.angie-static-timeline.align-left .angie-timeline-dot {
    left: 12px; /* Center on line at 20px */
}

/* Content Box */
.angie-timeline-content {
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    position: relative;
    transition: transform 0.3s ease;
}

.angie-timeline-content:hover {
    transform: translateY(-5px);
}

/* Arrow */
.angie-timeline-content::after {
    content: " ";
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 1;
}

/* Arrow - Center Layout */
.angie-static-timeline.align-center .angie-timeline-item.left .angie-timeline-content::after {
    right: -10px;
    border-left: 10px solid #f9f9f9;
    border-right: none;
}

.angie-static-timeline.align-center .angie-timeline-item.right .angie-timeline-content::after {
    left: -10px;
    border-right: 10px solid #f9f9f9;
    border-left: none;
}

/* Arrow - Left Layout */
.angie-static-timeline.align-left .angie-timeline-content::after {
    left: -10px;
    border-right: 10px solid #f9f9f9;
    border-left: none;
}

/* Image */
.angie-timeline-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Defaults */
.angie-timeline-date {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.angie-timeline-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.angie-timeline-title a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.angie-timeline-title a:hover {
    opacity: 0.8;
}

.angie-timeline-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive: Mobile */
@media screen and (max-width: 767px) {
    /* Force Left Layout on Mobile for Center Layout */
    .angie-static-timeline.align-center::before {
        left: 20px;
        transform: none;
    }

    .angie-static-timeline.align-center .angie-timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .angie-static-timeline.align-center .angie-timeline-item.left,
    .angie-static-timeline.align-center .angie-timeline-item.right {
        left: 0;
    }

    .angie-static-timeline.align-center .angie-timeline-item.left .angie-timeline-dot,
    .angie-static-timeline.align-center .angie-timeline-item.right .angie-timeline-dot {
        left: 12px;
        right: auto;
    }

    .angie-static-timeline.align-center .angie-timeline-item.left .angie-timeline-content::after,
    .angie-static-timeline.align-center .angie-timeline-item.right .angie-timeline-content::after {
        left: -10px;
        right: auto;
        border-right: 10px solid #f9f9f9;
        border-left: none;
    }
}
