/* ==========================================================================
   Layout: Timeline
   Dots + cards share translateX via .pb-tl__scroll.
   Card width: 518px. Gap: 12px. Step: 530px.
   Track line masked by dot-mask (opaque bg) — creates gaps at icons.
   ========================================================================== */

/* Wrapper (matches pb-hs-wrap pattern) ------------------------------------- */

.pb-tl-wrap {
    padding: 16px;
    overflow: hidden;
    
}

/* Section ------------------------------------------------------------------ */

.pb-tl {
    background: var(--brand-blue-500);
    border-radius: 8px;
    overflow: hidden;
    position: relative;

}
.pb-tl__header,
.pb-tl__viewport{
    position: relative;
     z-index: 3;
}
/* Inner -------------------------------------------------------------------- */

.pb-tl__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 0px 100px 0px;
   
}

/* Header ------------------------------------------------------------------- */
.pb-tl:after{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("/wp-content/themes/goodface-pure/assets/our_strorie.svg");
    position: absolute;
    left: 0;
    top: 0;
    background-position: top left;
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: 1;
}
.pb-tl-wrap .pb-tl__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
    padding-left: 16px;
    padding-right: 16px;
}

.pb-tl__header-text { max-width: 560px; }

.pb-tl__label {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white-tranparent-60, rgba(255,255,255,.6));
    margin: 0 0 16px;
}

.pb-tl__heading {
    font-family: var(--second-family);
    font-weight: 550;
    font-size: 36px;
    line-height: 128%;
    letter-spacing: -0.02em;
    background: linear-gradient(159deg, rgba(255,255,255,.9) 0%, #fff 50%, rgba(255,255,255,.9) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px;
    max-width: 420px;
}

.pb-tl__heading strong { font-weight: 700; }

.pb-tl__desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 170%;
    color: rgba(255,255,255,.65);
    margin: 0;
}

/* Navigation buttons ------------------------------------------------------- */

.pb-tl__nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pb-tl__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.pb-tl__btn:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.45);
}

.pb-tl__btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

/* Viewport — clips overflow ------------------------------------------------ */

.pb-tl__viewport {
    /* overflow: hidden; */
}

/* Scroll — translateX moves dots + cards together -------------------------- */

.pb-tl__scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
    padding-left: 16px;
}

/* Timeline row ------------------------------------------------------------- */

.pb-tl__tl-row {
    min-width: max-content;
}

/* Dots row: same flex + gap as cards below */
.pb-tl__dots {
    display: flex;
    gap: 12px;
    margin-left: 5px;
}

/* Each cell: 518px wide, flex row — dot-col (left) + segment (right, flex:1) */
.pb-tl__dot-cell {
    flex: 0 0 518px;
    display: flex;
    align-items: center;
    height: 60px; /* room for icon + year below */
}

/* Segment: 20px gap from dot on left, 8px margin on right (+ 12px cell gap = 20px to next dot) */
.pb-tl__nav-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,.2);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 8px;
}

.pb-tl__nav-line-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: 1px;
    will-change: transform;
    transition: transform .4s ease;
}

/* Dot column: icon + year stacked, left-aligned in cell */
.pb-tl__dot-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
        top: 15px;
    position: relative;
}

/* Dot button */
.pb-tl__nav-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    outline-offset: 4px;
}

/* Icons: stacked absolutely, toggled via opacity + scale (same as pb-hs) */
.pb-tl__nav-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

/* Default: inactive */
.pb-tl__nav-icon--active { opacity: 0; transform: translate(-50%,-50%) scale(.6); }
.pb-tl__nav-icon--done   { opacity: 0; transform: translate(-50%,-50%) scale(.6); }
.pb-tl__nav-icon--inactive { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Active state */
.pb-tl__nav-dot.is-active .pb-tl__nav-icon--active   { opacity: 1; transform: translate(-50%,-50%) scale(1);  }
.pb-tl__nav-dot.is-active .pb-tl__nav-icon--inactive { opacity: 0; transform: translate(-50%,-50%) scale(.6); }

/* Done state */
.pb-tl__nav-dot.is-done .pb-tl__nav-icon--done     { opacity: 1; transform: translate(-50%,-50%) scale(1);  }
.pb-tl__nav-dot.is-done .pb-tl__nav-icon--inactive { opacity: 0; transform: translate(-50%,-50%) scale(.6); }

/* Year label */
.pb-tl__dot-year {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 133%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--white-transparent-50);
    white-space: nowrap;
    transition: color .25s ease;
    pointer-events: none;
}

.pb-tl__nav-dot.is-active ~ .pb-tl__dot-year,
.pb-tl__nav-dot.is-done   ~ .pb-tl__dot-year { color: #fff; }

.pb-tl__dot-col:has(.is-active) .pb-tl__dot-year,
.pb-tl__dot-col:has(.is-done)   .pb-tl__dot-year { color: #fff; }

/* Cards -------------------------------------------------------------------- */

.pb-tl__cards {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.pb-tl__card {
    flex: 0 0 518px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Inactive: inner content fades to 0.6 */
.pb-tl__card-inner {
    padding: 32px;
    transition: opacity .3s ease;
}

.pb-tl__card:not(.is-active) .pb-tl__card-inner {
    opacity: .6;
}

.pb-tl__card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pb-tl__card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pb-tl__card-icon img {
    display: block;
    width: auto;
    height: 20px;
    object-fit: contain;
}

.pb-tl__card-heading {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 133%;
    letter-spacing: .01em;
    color: var(--text-bold);
    margin: 0;
}

.pb-tl__card-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: .01em;
    color: var(--text-base);
    margin: 0;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1024px) {
    .pb-tl__inner { padding: 64px 32px; }
    .pb-tl__heading { font-size: 30px; }
}

@media (max-width: 768px) {
    .pb-tl-wrap { padding: 0; }

    .pb-tl {
        border-radius: 0;
    }

    .pb-tl__inner { padding: 48px 20px 56px; }

    .pb-tl__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .pb-tl__label  { font-size: 12px; line-height: 133%; margin-bottom: 12px; }
    .pb-tl__heading { font-size: 26px; margin-bottom: 12px; }

    /* On mobile: fixed 312px cards, 18px gaps */
    .pb-tl__dot-cell,
    .pb-tl__card { flex: 0 0 312px; }

    .pb-tl__dots,
    .pb-tl__cards { gap: 18px; }
    .pb-tl__scroll{
        padding-left: 0;
    }
    .pb-tl-wrap .pb-tl__header{
        padding-left: 0;
        margin-bottom: 32px;
    }
    .pb-tl__nav{
        display: none;
    }
    .pb-tl__dot-year{
        font-family: var(--second-family);
font-weight: 600;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
text-align: center;
    }
    .pb-tl__card-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.pb-tl__card-inner{
    padding: 16px;
    border-radius: 8px;
}
.pb-tl__card-desc{
    font-size: 14px;
line-height: 157%;
letter-spacing: 0.02em;
}
.pb-tl__card-heading{
    font-size: 16px;
line-height: 150%;
letter-spacing: 0.01em;
}
.pb-tl-wrap{
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 8px;
    overflow: hidden;
}
}
