/**
 * V2 Timeline History Block Styles
 * Responsive timeline with alternating layout and center vertical line
 * Mobile-first approach with text appearing first on small screens
 */

/* ==========================================================================
   Container & Base Styles
   ========================================================================== */

.v2-timeline-history {
    padding: 60px 0;
    background-color: #ffffff;
}

.v2-timeline-container {
    position: relative;
}

/* ==========================================================================
   Timeline Item - Mobile First (Text First)
   ========================================================================== */

.v2-timeline-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

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

/* Content appears first on mobile */
.v2-timeline-item__content {
    width: 100%;
    order: 1;
}

/* Image appears second on mobile */
.v2-timeline-item__image {
    width: 100%;
    order: 2;
    overflow: hidden;
}

.v2-timeline-item__image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* ==========================================================================
   Content Typography
   ========================================================================== */

.v2-timeline-item__period {
    font-size: 14px;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.v2-timeline-item__heading {
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    line-height: 1.3;
    margin-bottom: 16px;
    font-family: var(--heading-font);
}

.v2-timeline-item__description {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.v2-timeline-item__description p {
    margin-bottom: 12px;
}

.v2-timeline-item__description p:last-child {
    margin-bottom: 0;
}

/* Link styles within description */
.v2-timeline-item__description a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.v2-timeline-item__description a:hover {
    color: #FF6B35;
    text-decoration: underline;
}

/* ==========================================================================
   Tablet Layout (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
    .v2-timeline-history {
        padding: 80px 0;
    }

    .v2-timeline-container {
        position: relative;
    }

    /* Center vertical line */
    .v2-timeline-container::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #e0e0e0;
        transform: translateX(-50%);
        z-index: 1;
    }

    .v2-timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin-bottom: 80px;
        position: relative;
    }

    /* Orange dot marker on center line */
    .v2-timeline-item::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 10px;
        height: 10px;
        background-color: #FF6B35;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .v2-timeline-item__content {
        width: 48%;
        flex-shrink: 0;
        padding: 20px 40px 20px 0;
    }

    .v2-timeline-item__image {
        width: 48%;
        flex-shrink: 0;
        padding: 20px 0 20px 40px;
    }

    /* Left-aligned items: content left, image right */
    .v2-timeline-item--left {
        justify-content: space-between;
    }

    .v2-timeline-item--left .v2-timeline-item__content {
        order: 1;
        padding-left: 0;
        padding-right: 50px;
    }

    .v2-timeline-item--left .v2-timeline-item__image {
        order: 2;
        padding-left: 50px;
        padding-right: 0;
    }

    /* Right-aligned items: image left, content right */
    .v2-timeline-item--right {
        justify-content: space-between;
    }

    .v2-timeline-item--right .v2-timeline-item__content {
        order: 2;
        padding-left: 50px;
        padding-right: 0;
    }

    .v2-timeline-item--right .v2-timeline-item__image {
        order: 1;
        padding-left: 0;
        padding-right: 50px;
    }

    .v2-timeline-item__heading {
        font-size: 20px;
    }
}

/* ==========================================================================
   Desktop Layout (992px and up)
   ========================================================================== */

@media (min-width: 992px) {
    .v2-timeline-history {
        padding: 40px 0;
    }

    .v2-timeline-item {
        margin-bottom: 40px;
    }

    /* Larger dot for desktop */

    .v2-timeline-item__content {
        padding: 30px 60px 30px 0;
    }

    .v2-timeline-item__image {
        padding: 30px 0 30px 60px;
    }

    .v2-timeline-item--left .v2-timeline-item__content {
        padding-right: 60px;
    }

    .v2-timeline-item--left .v2-timeline-item__image {
        padding-left: 60px;
    }

    .v2-timeline-item--right .v2-timeline-item__content {
        padding-left: 60px;
    }

    .v2-timeline-item--right .v2-timeline-item__image {
        padding-right: 60px;
    }

    .v2-timeline-item__heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .v2-timeline-item__period {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .v2-timeline-item__description {
        line-height: 1.7;
    }
}

/* ==========================================================================
   Large Desktop Layout (1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
    .v2-timeline-history {
        padding: 40px 0;
    }

    .v2-timeline-item {
        margin-bottom: 50px;
    }

    /* Even larger dot for large desktop */



    .v2-timeline-item__content {
        padding: 40px 80px 40px 0;
    }

    .v2-timeline-item__image {
        padding: 40px 0 40px 80px;
    }

    .v2-timeline-item--left .v2-timeline-item__content {
        padding-right: 80px;
    }

    .v2-timeline-item--left .v2-timeline-item__image {
        padding-left: 80px;
    }

    .v2-timeline-item--right .v2-timeline-item__content {
        padding-left: 80px;
    }

    .v2-timeline-item--right .v2-timeline-item__image {
        padding-right: 80px;
    }

    .v2-timeline-item__heading {
        font-size: 20px;
    }
}

/* ==========================================================================
   Alignment Options
   ========================================================================== */

.v2-timeline-history.alignfull {
    padding-left: 0;
    padding-right: 0;
}

.v2-timeline-history.alignfull .v2-timeline-container {
    max-width: 100%;
    padding: 0;
}

@media (min-width: 768px) {
    .v2-timeline-history.alignfull .v2-timeline-container {
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .v2-timeline-history.alignfull .v2-timeline-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Animation & Transitions
   ========================================================================== */

/* No animations applied */
