/* Base Timeline Container */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Calibri, sans-serif;
}

/* Timeline Header */
.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.timeline-header p {
    color: #666;
    line-height: 1.6;
}

/* Timeline Structure */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 49px; /* Half of icon width (50px) + icon's left position (24px) */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #967444;
    transform-origin: top;
    height: var(--line-progress, 0);
    transition: height 0.3s ease-out;
}

/* Timeline Items */
.timeline-item {
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
    display: flex;
    align-items: flex-start;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Icons */
.timeline-icon {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #967444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1;
    margin-right: 25px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease 0.2s;
}

.timeline-item.visible .timeline-icon {
    opacity: 1;
    transform: scale(1);
}

.timeline-icon svg {
    width: 35px;
    height: 35px;
    fill: #967444;
}

.timeline-icon img {
    width: 35px;
    height: 35px;
}

/* Timeline Content */
.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    margin: 0 0 15px;
    color: #333;
    font-size: 20px;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.timeline-content p {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.6;
    font-family: Calibri, sans-serif;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .timeline::before {
        left: 49px; /* Ensure alignment with the new icon size */
    }

    .timeline-icon {
        margin-right: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .timeline-container {
        padding: 20px 15px;
    }

    .timeline::before {
        /* Center the vertical line with the smaller icon */
        left: 50px; /* Half of the mobile icon width (36px) */
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-icon {
        width: 36px;
        height: 36px;
        margin-right: 15px;
    }

    .timeline-icon svg,
    .timeline-icon img {
        width: 18px;
        height: 18px;
    }

    .timeline-header h2 {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .timeline-container {
        padding: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        opacity: 1;
        transform: none;
        page-break-inside: avoid;
    }

    .timeline-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
