/* ==========================================================================
   History Timeline Page Styles
   ========================================================================== */

:root {
    --timeline-line: #dfe6e9;
    --timeline-node: #E31E24;
    --timeline-bg-alt: #f8f9fa;
}

/* Hero Section (Matching About Us) */
.history-hero {
    background: linear-gradient(135deg, #003366 0%, #001A33 100%);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.history-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
    position: relative;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Timeline Container */
.timeline-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

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

/* The vertical line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-left {
    flex-direction: row;
}

.timeline-right {
    flex-direction: row-reverse;
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 4px solid var(--timeline-node);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(227, 30, 36, 0.4);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: var(--timeline-node);
}

/* Content Box & Image Box */
.timeline-content, 
.timeline-image {
    width: 44%;
    position: relative;
    box-sizing: border-box;
}

/* Content Box Styling */
.timeline-content {
    padding: 35px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.timeline-year {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--timeline-node);
    margin-bottom: 12px;
    display: block;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 18px;
}

.timeline-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #636E72;
}

/* Image Box Styling */
.timeline-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.08);
}

/* Journey Summary Section */
.journey-summary {
    padding: 100px 0;
    background: var(--timeline-bg-alt);
    text-align: center;
}

.summary-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.9;
    color: #2d3436;
    font-style: italic;
    font-weight: 500;
}

/* Responsive Timeline */
@media screen and (max-width: 991px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 70px;
        margin-bottom: 40px;
    }

    .timeline-item::after {
        left: 31px;
        top: 40px;
        transform: translate(-50%, 0);
    }

    .timeline-item:hover::after {
        transform: translate(-50%, 0) scale(1.3);
    }

    .timeline-content, 
    .timeline-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .timeline-image {
        order: 2; /* Image below text on mobile */
    }
}

@media (max-width: 768px) {
    .history-hero-title {
        font-size: 2.2rem;
    }
}
