/* Timeline Page Specific Styles */

/* Page Hero */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    text-align: center;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--foreground);
}

.page-hero-content p {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    color: var(--muted-foreground);
    font-weight: var(--font-weight-light);
}

/* Introduction Section */
.intro-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-text {
    max-width: 900px;
    text-align: center;
}

.intro-text h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.intro-text p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: none !important;
}

/* Remove intro-stats completely */
.intro-stats {
    display: none;
}

.stat-item {
    display: none;
}

.stat-number {
    display: none;
}

.stat-label {
    display: none;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

/* Timeline Track */
.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 82, 147, 0.08);
    opacity: 0.8;
    z-index: 1;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--background);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary), 0 4px 12px rgba(0, 82, 147, 0.3);
    animation: pulse-end 2s infinite;
    z-index: 3;
}

@keyframes pulse-end {
    0%, 100% { 
        box-shadow: 0 0 0 4px var(--primary), 0 4px 12px rgba(0, 82, 147, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 8px var(--primary), 0 4px 20px rgba(0, 82, 147, 0.5);
    }
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    z-index: 10;
}

.timeline-item[data-phase="1"] { animation-delay: 0.2s; }
.timeline-item[data-phase="2"] { animation-delay: 0.4s; }
.timeline-item[data-phase="3"] { animation-delay: 0.6s; }
.timeline-item[data-phase="4"] { animation-delay: 0.8s; }
.timeline-item[data-phase="5"] { animation-delay: 1.0s; }
.timeline-item[data-phase="6"] { animation-delay: 1.2s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternating layout */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    padding-right: 5rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    padding-left: 5rem;
}

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

.timeline-icon {
    width: 56px;
    height: 56px;
    background: var(--background);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 82, 147, 0.15);
    z-index: 15;
    position: relative;
}

/* Timeline Content - Remove arrows */
.timeline-content {
    flex: 1;
    max-width: calc(50% - 3rem);
    background: var(--background);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

/* Remove the arrow pseudo-elements */
.timeline-content::before {
    display: none;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Timeline Link Button */
.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    transition: all var(--transition-smooth);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 82, 147, 0.2);
    border-radius: 0.5rem;
    background: rgba(0, 82, 147, 0.05);
}

.timeline-link:hover {
    background: rgba(0, 82, 147, 0.1);
    border-color: rgba(0, 82, 147, 0.3);
    transform: translateY(-1px);
}

.timeline-link svg {
    transition: transform var(--transition-smooth);
}

.timeline-link:hover svg {
    transform: scale(1.1);
}

/* Feature Tags */
.timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(0, 82, 147, 0.1), rgba(0, 116, 204, 0.1));
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 82, 147, 0.2);
}

/* Challenges and Advantages Section Styles */
.challenges-section, .advantages-section {
    margin: 4rem 0;
}

.challenges-section h3, .advantages-section h3 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 1rem;
    text-align: center;
}

.challenges-section p, .advantages-section p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.challenge-card:hover::before {
    transform: scaleX(1);
}

.advantage-card {
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success), #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.15);
    border-color: var(--success);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.challenge-icon, .advantage-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-smooth);
}

.challenge-icon.warning {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.advantage-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.challenge-card:hover .challenge-icon {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.15));
    border-color: rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    border-color: rgba(34, 197, 94, 0.4);
    transform: scale(1.05);
}

.challenge-card h4, .advantage-card h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    transition: color var(--transition-smooth);
}

.challenge-card h4 {
    color: #dc2626;
}

.advantage-card h4 {
    color: var(--success);
}

.challenge-card:hover h4 {
    color: #b91c1c;
}

.advantage-card:hover h4 {
    color: #16a34a;
}

.challenge-card p, .advantage-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

/* Conclusions Section */
.conclusion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.conclusion-content h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.conclusion-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: none !important;
}

/* Section Center - Updated for consistent width */
.section-center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-center h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-center p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 4rem;
    max-width: none !important;
}

/* Key Learnings */
.key-learnings {
    margin: 3rem 0;
}

.key-learnings h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 2rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.learning-item {
    background: linear-gradient(145deg, var(--background), var(--accent));
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.learning-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.learning-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.learning-item h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.learning-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
    font-size: 0.875rem;
}

/* Future Outlook */
.future-outlook {
    background: linear-gradient(135deg, rgba(0, 82, 147, 0.05), rgba(0, 116, 204, 0.05));
    border: 1px solid rgba(0, 82, 147, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.future-outlook h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: 1rem;
}

.future-outlook p {
    margin-bottom: 1rem;
}

.future-outlook p:last-child {
    margin-bottom: 0;
}

/* Next Steps Sidebar */
.next-steps {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin-bottom: 1rem;
}

.next-steps p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.next-steps .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.next-steps .btn {
    font-size: 0.875rem;
    padding: 1rem 1.5rem;
}

/* Navigation Active State */
.nav a.active,
.mobile-nav a.active {
    color: var(--primary);
    background: rgba(0, 82, 147, 0.1);
}

.nav a.active::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (min-width: 768px) {
    .challenge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .advantage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .challenge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .advantage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .challenge-card, .advantage-card {
        padding: 2.5rem;
    }
}

@media (max-width: 1023px) {
    .intro-content {
        justify-content: center;
    }
    
    .conclusion-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .next-steps {
        position: static;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: calc(var(--header-height-mobile) + 3rem) 0 3rem;
    }
    
    /* Mobile Timeline Layout */
    .timeline-track {
        left: 1.5rem;
        transform: none;
        width: 1px;
        opacity: 0.3;
    }
    
    .timeline-track::before,
    .timeline-track::after {
        display: none;
    }
    
    .timeline-marker {
        left: 1.5rem;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 3rem;
    }
    
    .timeline-content {
        max-width: none;
        margin-left: 4.5rem;
        text-align: left !important;
        padding: 1.5rem 2rem !important;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .learning-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-features {
        justify-content: flex-start;
    }
    
    /* Challenges and Advantages Mobile */
    .challenges-section, .advantages-section {
        margin: 3rem 0;
    }
    
    .challenge-grid, .advantage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .challenge-card, .advantage-card {
        padding: 1.5rem;
    }
    
    .challenge-icon, .advantage-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .challenges-section h3, .advantages-section h3 {
        font-size: 1.5rem;
    }
    
    .challenge-card h4, .advantage-card h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        margin-left: 3rem;
        padding: 1.25rem 1.5rem !important;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .feature-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .learning-item {
        padding: 1.25rem;
    }
    
    .next-steps {
        padding: 1.5rem;
    }
    
    /* Challenges and Advantages Small Mobile */
    .challenge-card, .advantage-card {
        padding: 1.25rem;
    }
    
    .challenge-card p, .advantage-card p {
        font-size: 0.875rem;
    }
}

/* Animation for entrance effects */
@media (prefers-reduced-motion: no-preference) {
    .timeline-item.animate-in {
        animation: fadeInScale 0.6s ease forwards;
    }
    
    .challenge-card, .advantage-card {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .challenge-card:nth-child(1) { animation-delay: 0.1s; }
    .challenge-card:nth-child(2) { animation-delay: 0.2s; }
    .challenge-card:nth-child(3) { animation-delay: 0.3s; }
    .challenge-card:nth-child(4) { animation-delay: 0.4s; }
    
    .advantage-card:nth-child(1) { animation-delay: 0.1s; }
    .advantage-card:nth-child(2) { animation-delay: 0.2s; }
    .advantage-card:nth-child(3) { animation-delay: 0.3s; }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Focus states for accessibility */
.challenge-card:focus-within, .advantage-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.timeline-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .timeline-track::after {
        animation: none;
    }
    
    .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .challenge-card, .advantage-card {
        break-inside: avoid;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    .challenge-card {
        border: 1px solid #dc2626;
    }
    
    .advantage-card {
        border: 1px solid var(--success);
    }
    
    .timeline-link {
        color: #000;
        text-decoration: underline;
    }
}
    background: var(--primary);
    border: 4px solid var(--background);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary), 0 4px 12px rgba(0, 82, 147, 0.3);
    z-index: 3;
}

.timeline-track::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
