@charset "UTF-8";
/* Timeline History Styles for CIPC */

:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #c41e3a;
    --light: #f8f8f8;
    --border: #e0e0e0;
}

.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
}

.year-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.year-section:nth-child(1) { animation-delay: 0.1s; }
.year-section:nth-child(2) { animation-delay: 0.2s; }
.year-section:nth-child(3) { animation-delay: 0.3s; }
.year-section:nth-child(4) { animation-delay: 0.4s; }
.year-section:nth-child(5) { animation-delay: 0.5s; }
.year-section:nth-child(6) { animation-delay: 0.6s; }
.year-section:nth-child(7) { animation-delay: 0.7s; }
.year-section:nth-child(8) { animation-delay: 0.8s; }
.year-section:nth-child(9) { animation-delay: 0.9s; }
.year-section:nth-child(10) { animation-delay: 1s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.year-marker {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.year-number {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    position: relative;
}

.year-number::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 20px;
}

.events {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.event {
    position: relative;
    padding-left: 40px;
    border-left: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.event::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.event:hover {
    border-color: var(--accent);
}

.event:hover::before {
    transform: scale(1.5);
    background: var(--accent);
}

.event-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.3;
}

.event-content {
    font-size: 1.05rem;
    color: var(--secondary);
    line-height: 1.8;
    max-width: 800px;
}

.event-location {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.highlight-event {
    background: var(--light);
    padding: 40px;
    margin-left: -40px;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
}

.highlight-event::before {
    background: var(--accent);
    left: -6px;
    width: 11px;
    height: 11px;
}

.highlight-event .event-title {
    color: var(--accent);
    font-size: 2rem;
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 60px 20px;
    }

    .year-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .year-marker {
        position: relative;
        top: 0;
    }

    .year-number {
        font-size: 2.5rem;
    }

    .event {
        padding-left: 30px;
    }

    .event-title {
        font-size: 1.4rem;
    }

    .event-content {
        font-size: 1rem;
    }

    .highlight-event {
        padding: 30px 20px;
        margin-left: -30px;
    }

    .highlight-event .event-title {
        font-size: 1.6rem;
    }
}