/* Timeline Page Specific Styles */

/* Timeline Header */
.timeline-header {
    background: var(--secondary);
    padding: 120px 0 80px;
    position: relative;
}

.timeline-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.timeline-header .container {
    position: relative;
    z-index: 2;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Timeline Section */
.timeline-section {
    background: var(--bg-light);
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 60px;
    margin-left: 50%;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 3;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--white);
    transition: all 0.3s ease;
}

.timeline-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Timeline Content */
.timeline-content {
    width: 45%;
}

.timeline-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Timeline Arrow */
.timeline-item:nth-child(odd) .timeline-card::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid var(--white);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-card::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-right: 15px solid var(--white);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-event-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-highlights {
    margin-bottom: 1.5rem;
}

.highlight-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.2rem 0.3rem 0.2rem 0;
}

.view-photos-btn {
    border-color: var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.view-photos-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Timeline Stats */
.timeline-stats {
    background: var(--secondary);
    position: relative;
}

.timeline-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-stats .container {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Photo Modal Styles */
.modal-xl {
    max-width: 90%;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.photo-caption {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.photo-caption h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.photo-caption p {
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-title {
        font-size: 2.5rem;
    }
    
    .timeline-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile Timeline Layout */
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon i {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after {
        left: -15px;
        border-right: 15px solid var(--white);
        border-left: none;
    }
    
    .timeline-event-title {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .timeline-title {
        font-size: 2rem;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .timeline-event-title {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-xl {
        max-width: 95%;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .thumbnail-img {
        width: 60px;
        height: 45px;
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.timeline-icon:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 130, 31, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Timeline Activities */
.timeline-activities {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(245, 130, 31, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.activity-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.activity-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive adjustments for activities */
@media (max-width: 768px) {
    .timeline-activities {
        margin: 1rem 0;
        padding: 0.8rem;
    }
    
    .activity-item {
        padding: 0.4rem;
        margin-bottom: 0.6rem;
    }
    
    .activity-item span {
        font-size: 0.85rem;
    }
    
    .activity-item i {
        font-size: 0.9rem;
        width: 18px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .activity-item i {
        margin-bottom: 0.3rem;
        margin-right: 0;
    }
}