/* 
 * Timeline Widget Styles
 * assets/css/timeline.css
 */

.ate-timeline-wrapper {
    position: relative;
}

.ate-timeline {
    position: relative;
}

/* Main timeline line */
.ate-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #F2E4DA;
}

/* Animated progress line */
.ate-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0%;
    background-color: #F2E4DA;
    z-index: 2;
    transition: height 0.3s ease;
}

/* Timeline items */
.ate-timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* Timeline dots */
.ate-timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: #007cba;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 999999;
    box-shadow: 0 4px 6px -4px #0000001A;
    transition: all 0.3s ease;
}

/* Content positioning */
.ate-timeline-content {
    position: relative;
    display: block;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px 0px #0000001A;
    border: 1px solid #FAF7F5;
    transition: all 0.3s ease;
	overflow: hidden;
}


/* Left side items */
.ate-timeline-left .ate-timeline-content {
    margin-right: calc(50% + 38px);
    flex-direction: row;
}


/* Right side items */
.ate-timeline-right .ate-timeline-content {
    margin-left: calc(50% + 38px);
    flex-direction: row-reverse;
}


/* Image styling */
.ate-timeline-image {
    flex-shrink: 0;
}

.ate-timeline-image img {
    width: 100%;
	display: block;
    height: auto;
    border-radius: 0px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Text content */
.ate-timeline-text {
    flex: 1;
    min-width: 0;
	padding: 24px;
}

.ate-timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 2px;
}

.ate-timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ate-timeline-description {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    /* Make timeline line left-aligned on mobile */
    .ate-timeline::before,
    .ate-timeline::after {
        left: 14px;
        transform: none;
    }
    
    /* Timeline dots repositioning for mobile */
    .ate-timeline-item::before {
        left: 16px;
        transform: translateX(-50%);
    }
    
    /* All items on the right side for mobile */
    .ate-timeline-left .ate-timeline-content,
    .ate-timeline-right .ate-timeline-content {
        margin: 0 0 0 30px;
        flex-direction: column;
        text-align: left;
    }
    
    
    /* Stack image and text vertically on mobile */
    .ate-timeline-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ate-timeline-image img {
        width: 100%;
    }
    
    .ate-timeline-title {
        font-size: 20px;
    }
    
    .ate-timeline-description {
        font-size: 14px;
    }
	.ate-timeline-text{
		padding: 16px;
	}
}

@media (max-width: 480px) {
    
    .ate-timeline-title {
        font-size: 18px;
    }
    
    .ate-timeline-item {
        margin-bottom: 24px;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.ate-timeline-item.ate-loading {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover effects */
.ate-timeline-item:hover .ate-timeline-title {
    color: #007cba;
    transition: color 0.3s ease;
}

/* Focus states for accessibility */
.ate-timeline-content:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ate-timeline::before,
    .ate-timeline::after {
        display: none;
    }
    
    .ate-timeline-item::before {
        display: none;
    }
    
    .ate-timeline-content {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .ate-timeline-left .ate-timeline-content,
    .ate-timeline-right .ate-timeline-content {
        margin: 0;
    }
}