/* ===========================
   Journey Timeline Section
   =========================== */

/* Section Header - Uses common .section-header from custom-style.css */
.journey-timeline-section .section-header {
    margin-bottom: 60px;
}

/* H2 uses default 54px from custom-style.css */
.journey-timeline-section .section-header h2 span {
    color: var(--brand-color);
}

.journey-timeline-section .section-header h2 strong {
    font-weight: 700;
    color: var(--brand-color);
}

/* Subtitle Badge */
.journey-timeline-section .subtitle-badge {
    display: inline-flex;
    padding: 16px 32px;
    background: var(--gradient-perpal);
    border-radius: 100px;
    margin-top: 12px;
}

.journey-timeline-section .subtitle-badge span {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3333;
    text-transform: uppercase;
    color: var(--title-color);
}

/* Timeline Wrapper */
.journey-timeline-section .timeline-wrapper {
    padding: 20px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.journey-timeline-section .timeline-line-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    gap: 20px;
}

/* Timeline horizontal line */
.journey-timeline-section .timeline-line-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background-color: var(--brand-color);
    opacity: 0.15;
    z-index: 0;
}

/* Individual Timeline Item */
.journey-timeline-section .timeline-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Timeline Number Circle */
.journey-timeline-section .timeline-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: var(--gradient-perpal);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--brand-color);
    flex-shrink: 0;
}

/* Timeline Content Box */
.journey-timeline-section .timeline-content-box {
    position: absolute;
    top: calc(100% + 20px);
    padding: 24px;
    background: var(--brand-color);
    border-radius: 16px;
    min-width: 200px;
    max-width: 280px;
}

/* Arrow pointer for content box */
.journey-timeline-section .timeline-content-box::after {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 13px solid var(--brand-color);
}

/* Timeline Title */
.journey-timeline-section .timeline-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3333;
    color: var(--white-color);
    margin: 0 0 8px 0;
}

/* Timeline Description */
.journey-timeline-section .timeline-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.375;
    color: var(--white-color);
    margin: 0;
}

/* Alternate positioning - even items go above the line */
.journey-timeline-section .timeline-item:nth-child(even) .timeline-content-box {
    top: auto;
    bottom: calc(100% + 20px);
}

.journey-timeline-section .timeline-item:nth-child(even) .timeline-content-box::after {
    top: auto;
    bottom: -13px;
    border-bottom: none;
    border-top: 13px solid var(--brand-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1799px) { 
    .journey-timeline-section .timeline-wrapper {
        min-height: 420px;
        padding: 0;
    }
}
@media (max-width: 1439px) { 
    .journey-timeline-section .timeline-wrapper {
        min-height: 420px;
        padding: 0;
    }
}
@media (max-width: 1239px) {
}
@media (max-width: 1024px) {
    .journey-timeline-section .section-header {
        margin-bottom: 40px;
    }

    .journey-timeline-section .timeline-content-box {
        min-width: 180px;
        max-width: 220px;
        padding: 20px;
    }

    .journey-timeline-section .timeline-title {
        font-size: 16px;
    }

    .journey-timeline-section .timeline-description {
        font-size: 14px;
    }
}
@media (max-width: 991px) {
}
@media (max-width: 767px) {
    .journey-timeline-section .section-header {
        margin-bottom: 30px;
    }

    .journey-timeline-section .subtitle-badge {
        padding: 12px 24px;
    }

    .journey-timeline-section .subtitle-badge span {
        font-size: 14px;
    }

    /* Stack timeline vertically on mobile */
    .journey-timeline-section .timeline-wrapper {
        min-height: auto;
        padding: 0;
    }

    .journey-timeline-section .timeline-line-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .journey-timeline-section .timeline-line-wrap::after {
        left: 19px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        transform: none;
    }

    .journey-timeline-section .timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }

    .journey-timeline-section .timeline-content-box {
        position: static;
        max-width: 100%;
        min-width: auto;
        flex: 1;
    }

    .journey-timeline-section .timeline-content-box::after {
        display: none;
    }

    .journey-timeline-section .timeline-item:nth-child(even) .timeline-content-box {
        position: static;
    }

    .journey-timeline-section .timeline-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .journey-timeline-section .timeline-description {
        font-size: 14px;
    }
}