/* Boscle Loons Timeline Styles */

.boscle-timeline-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

/* Continuous Vertical Line */
.boscle-timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 90px;
    bottom: 90px;
    width: 2px;
    border-left: 2px dashed #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
}

.boscle-timeline-step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.boscle-timeline-step:last-child {
    margin-bottom: 0;
}

/* Center Column - Step Number Only */
.boscle-step-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    height: 100%;
}

.boscle-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4169E1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.boscle-step-number:hover {
    transform: scale(1.1);
}

/* Content Area */
.boscle-step-content {
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.boscle-step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.boscle-step-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.boscle-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: left;
}

.boscle-step-subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0 0 25px 0;
    line-height: 1.6;
    text-align: left;
}

.boscle-step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex: 1;
    text-align: left;
}

.boscle-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.boscle-step-item:last-child {
    margin-bottom: 0;
}

.boscle-step-icon {
    color: #4169E1;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.boscle-step-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.boscle-step-text {
    flex: 1;
    text-align: left;
}

.boscle-step-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #4169E1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
}

.boscle-step-button:hover {
    background-color: #3156c9;
    transform: translateX(5px);
    color: #ffffff;
}

/* Image Area */
.boscle-step-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
}

.boscle-step-image:hover {
    transform: scale(1.02);
}

.boscle-step-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Force Left Alignment for All Content */
.boscle-timeline-step.even .boscle-step-content,
.boscle-timeline-step.odd .boscle-step-content {
    text-align: left;
}

.boscle-timeline-step.even .boscle-step-inner,
.boscle-timeline-step.odd .boscle-step-inner {
    align-items: flex-start;
}

.boscle-timeline-step.even .boscle-step-item,
.boscle-timeline-step.odd .boscle-step-item {
    flex-direction: row;
}

.boscle-timeline-step.even .boscle-step-title,
.boscle-timeline-step.odd .boscle-step-title,
.boscle-timeline-step.even .boscle-step-subtitle,
.boscle-timeline-step.odd .boscle-step-subtitle {
    text-align: left;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .boscle-timeline-step {
        grid-template-columns: 1fr 70px 1fr;
        gap: 30px;
    }
    
    .boscle-step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .boscle-step-content {
        padding: 28px;
    }
    
    .boscle-step-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .boscle-step-list {
        margin-bottom: 25px;
    }
    
    .boscle-step-image {
        min-height: 300px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .boscle-timeline-wrapper {
        padding: 40px 15px;
    }
    
    /* Change continuous line to left side for mobile */
    .boscle-timeline-wrapper::before {
        left: 30px;
        top: 60px;
        bottom: 60px;
        transform: none;
    }
    
    .boscle-timeline-step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
        margin-bottom: 50px;
        align-items: start;
    }
    
    /* Stack layout for mobile */
    .boscle-timeline-step.even,
    .boscle-timeline-step.odd {
        grid-template-areas: 
            "center content"
            "center image";
        grid-template-rows: auto auto;
    }
    
    .boscle-timeline-step .boscle-step-center {
        grid-area: center;
        grid-row: 1 / 3;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
    }
    
    .boscle-timeline-step.even .boscle-step-content,
    .boscle-timeline-step.odd .boscle-step-content {
        grid-area: content;
        text-align: left;
        min-height: auto;
    }
    
    .boscle-timeline-step.even .boscle-step-image,
    .boscle-timeline-step.odd .boscle-step-image {
        grid-area: image;
        margin-top: 20px;
        min-height: 250px;
    }
    
    .boscle-step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .boscle-step-content {
        padding: 22px;
    }
    
    .boscle-step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .boscle-step-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .boscle-step-list {
        margin-bottom: 20px;
    }
    
    .boscle-step-item {
        font-size: 14px;
        margin-bottom: 12px;
        flex-direction: row !important;
    }
    
    .boscle-step-icon {
        font-size: 16px;
    }
    
    .boscle-step-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .boscle-step-button {
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .boscle-timeline-wrapper::before {
        left: 25px;
    }
    
    .boscle-timeline-step {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .boscle-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .boscle-step-content {
        padding: 20px;
    }
    
    .boscle-step-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .boscle-step-subtitle {
        margin-bottom: 15px;
    }
    
    .boscle-step-list {
        margin-bottom: 18px;
    }
    
    .boscle-step-item {
        margin-bottom: 10px;
    }
    
    .boscle-step-image {
        min-height: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .boscle-step-number,
    .boscle-step-content,
    .boscle-step-image,
    .boscle-step-button {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .boscle-timeline-wrapper::before {
        border-left-style: solid;
    }
    
    .boscle-timeline-step {
        page-break-inside: avoid;
    }
    
    .boscle-step-button {
        display: none;
    }
}