/* Professional Timeline Styles - Extracted from about.html */

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

/* Elegant Timeline Line with Gradient */
.timeline-line {
    position: absolute;
    left: 72px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(254, 161, 22, 0.8) 0%,
        rgba(13, 110, 253, 0.8) 50%,
        rgba(25, 135, 84, 0.8) 100%
    );
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 15px rgba(254, 161, 22, 0.15);
}

/* Timeline Items Container */
.timeline-item {
    position: relative;
    margin-bottom: 48px;
    z-index: 2;
}

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

/* Content Alignment - Left Side */
.timeline-item-left .timeline-content {
    justify-content: flex-start;
    padding-right: 52%;
}

.timeline-item-left .timeline-card {
    text-align: right;
}

/* Content Alignment - Right Side */
.timeline-item-right .timeline-content {
    justify-content: flex-end;
    padding-left: 52%;
}

.timeline-item-right .timeline-card {
    text-align: left;
}

/* Content Alignment - Center */
.timeline-item-center .timeline-content {
    justify-content: center;
    padding: 0 15%;
}

.timeline-item-center .timeline-card {
    text-align: center;
}

.timeline-content {
    display: flex;
    align-items: center;
    position: relative;
}

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

/* Hide timeline dots - only show year */
.timeline-dot {
    display: none !important;
}

/* Year Badge - Only element visible on timeline */
.timeline-year {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Professional Timeline Card */
.timeline-card {
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Card Header */
.timeline-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.timeline-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Status Badge */
.timeline-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card Body */
.timeline-body {
    padding: 24px;
    background: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-height: 0;
}

.timeline-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
}

/* Quote Styling */
.timeline-quote {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3748;
    font-style: italic;
    position: relative;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(254, 161, 22, 0.04), rgba(254, 161, 22, 0.01));
    border-radius: 8px;
    border-left: 3px solid #FEA116;
}

.timeline-quote:before {
    content: '\201C';
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 2.2rem;
    color: #FEA116;
    font-family: Georgia, serif;
    opacity: 0.35;
    line-height: 1;
}

.timeline-quote:after {
    content: '\201D';
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 2.2rem;
    color: #FEA116;
    font-family: Georgia, serif;
    opacity: 0.35;
    line-height: 1;
}

/* Empty State Animation */
.timeline-empty-state {
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.empty-timeline-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-12px);
    }
}

/* Full-width layout for history timeline cards on about page */
.timeline-container .timeline-content {
    justify-content: flex-start;
    /* space on the left for the vertical line + year markers */
    padding: 10px;
}

.timeline-container .timeline-card {
    /* allow the card to span the full width of the available content area */
    max-width: 100%;
}

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

    .timeline-line {
        left: 28px;
        width: 2px;
    }

    .timeline-item {
        margin-bottom: 60px;
    }

    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content,
    .timeline-item-center .timeline-content {
        justify-content: flex-start !important;
        padding-left: 70px !important;
        padding-right: 15px !important;
    }

    .timeline-item-left .timeline-card,
    .timeline-item-right .timeline-card,
    .timeline-item-center .timeline-card {
        text-align: left !important;
    }

    .timeline-marker {
        left: 28px;
        top: 10px;
    }

    .timeline-dot {
        display: none !important;
    }

    .timeline-card {
        max-width: none;
    }
    
    .timeline-body {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timeline-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .timeline-year {
        left: 28px;
        transform: translateX(0);
        position: relative;
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .timeline-header {
        padding: 18px;
        flex-wrap: wrap;
    }

    .timeline-title {
        font-size: 1.1rem;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }

    .timeline-body {
        padding: 18px;
    }
}

/* Smooth Entry Animation */
.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    padding: 10px !important;
}

.timeline-item:nth-child(1) { animation-delay: 0.15s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.35s; }
.timeline-item:nth-child(4) { animation-delay: 0.45s; }
.timeline-item:nth-child(5) { animation-delay: 0.55s; }
.timeline-item:nth-child(6) { animation-delay: 0.65s; }
.timeline-item:nth-child(7) { animation-delay: 0.75s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for hover states */
* {
    -webkit-tap-highlight-color: transparent;
}

.timeline-card,
.timeline-dot,
.timeline-badge {
    will-change: transform;
}

