* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =============================================
   Page Header — hidden desktop, shown mobile
   ============================================= */
.zzt-page-header {
    display: none;
}

/* Category section headers — hidden on desktop */
.cat-section-header {
    display: none;
}

/* =============================================
   DESKTOP / LAPTOP — Horizontal Timeline
   ============================================= */
.timeline-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0 10px;
    overflow: visible;
    z-index: 10;
}

/* Old elements — hidden */
.timeline-line { display: none; }
.timeline-fill { display: none; }
.cat-divider { display: none; }

/* =============================================
   DESKTOP HEADING
   ============================================= */
.tl-heading {
    font-family: inherit !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    margin-left: 5%;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.15) !important;
}

.tl-subtitle {
    font-family: 'Oswald', 'Open Sans', sans-serif;
    font-size: 22px !important;
    font-weight: 300;
    color: #555;
    text-align: left !important;
    margin: 10px 0 0;
    margin-left: 5%;
    font-style: normal;
    letter-spacing: 1px;
}

/* =============================================
   DESKTOP RED ARROW
   ============================================= */
.tl-arrow {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    width: 90%;
    height: 28px;
    margin-bottom: 5px;
    z-index: 2;
}

.tl-arrow-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 1px;
    z-index: 3;
    flex-shrink: 0;
    padding: 0 16px;
    position: relative;
}

.tl-arrow-bullet {
    font-size: 18px;
    vertical-align: middle;
    line-height: 1;
}

.tl-arrow-start {
    background: #811717;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tl-arrow-start:hover,
.tl-arrow-start.active {
    background: #9a1c1c;
}

.tl-arrow-end {
    background: #811717;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tl-arrow-end:hover,
.tl-arrow-end.active {
    background: #9a1c1c;
}

/* The dots area between start and end labels */
.tl-arrow-dots {
    flex: 1;
    height: 100%;
    background: #811717;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    position: relative;
}

/* Arrow head */
.tl-arrow-head {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #811717;
    flex-shrink: 0;
}

/* Each dot on the arrow */
.tl-arrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    overflow: visible;
}

.tl-arrow-dot:hover,
.tl-arrow-dot.active {
    background: #fff;
    transform: scale(1.6);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.tl-arrow-dot.chase-lit {
    background: #ffffff;
    transform: scale(1.5);
    box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 24px rgba(255,255,255,0.5);
    filter: brightness(1.3);
}

/* Dot milestone labels (Expansion, Product Launch, Acquisition) */
.tl-arrow-dot-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    flex-shrink: 0;
    padding: 0 6px;
}

/* =============================================
   DESKTOP — Hide zigzag elements (stems, ticks, years)
   Dots container is hidden; arrow dots are used instead
   ============================================= */
@media (min-width: 1025px) {
    .timeline-dots { display: none; }
    .tl-stem { display: none; }
    .tl-tick { display: none; }
    .tl-year { display: none; }
    .tl-dot { display: none; }
}

/* Hidden on desktop only — original per-point cards */
@media (min-width: 1025px) {
    .info-card {
        display: none;
    }

    .card-year-badge {
        display: none;
    }

    .card-inner {
        display: contents;
    }
}

/* =============================================
   DESKTOP FLOATING CARD — single shared card
   ============================================= */
.tl-float-card {
    position: absolute;
    width: 550px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    background: #f1f1f1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.08),
        0 4px 8px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.08),
        0 16px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s;
}

.tl-float-card.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s;
}

/* Year + category header inside floating card */
.tl-fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 0;
}

.tl-fc-year {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #811717;
    letter-spacing: -0.5px;
}

.tl-fc-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #fce8e9;
    color: #811717;
}

.tl-fc-inner {
    display: flex;
    flex-direction: row;
}

.tl-fc-inner .card-image {
    width: 170px;
    min-width: 170px;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #e0e0e0;
    margin: 12px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.12),
        0 4px 16px rgba(0,0,0,0.08);
}

.tl-fc-inner .card-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.tl-fc-inner .card-body {
    padding: 12px 20px 16px;
    flex: 1;
    min-width: 0;
}

.tl-fc-inner .card-body h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
    font-weight: 700;
}

.tl-fc-inner .card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
}

.tl-fc-inner .card-location svg {
    width: 11px;
    height: 11px;
    fill: #811717;
    flex-shrink: 0;
}

.tl-fc-inner .card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tl-fc-inner .card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #e8dcc8;
    color: #8a6d3b;
}

/* WordPress embed fix */
.timeline-section,
.timeline-section .elementor-widget-wrap,
.timeline-section .elementor-element,
.wp-block-group,
.entry-content,
.site-content,
.page-content {
    overflow: visible !important;
}

.elementor-shortcode h1, .elementor-shortcode p {
    text-align: left !important;
}

/* =============================================
   RESPONSIVE — Vertical Timeline
   max-width: 1024px
   ============================================= */
@media (max-width: 1024px) {

    /* =========================================
       PAGE HEADER — clean, centered, no overlap
       ========================================= */
    .zzt-page-header {
        display: block;
        text-align: center;
        padding: 28px 20px 20px;
        position: relative;
        z-index: 1;
        background: #fff;
    }

    .zzt-page-header h2 {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.6rem;
        color: #222;
        margin-bottom: 6px;
        font-weight: 700;
        line-height: 1.3;
    }

    .zzt-page-header p {
        color: #888;
        font-size: 0.85rem;
        max-width: 360px;
        margin: 0 auto;
        line-height: 1.5;
    }

    /* =========================================
       HIDE DESKTOP PILLS
       ========================================= */
    .desktop-only-pill {
        display: none !important;
    }

    /* =========================================
       CATEGORY SECTION HEADERS — bold, full-width
       ========================================= */
    .cat-section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 16px 20px 16px;
        margin-top: 36px;
        position: relative;
    }

    /* First category header — no extra top margin */
    .cat-section-header:first-child {
        margin-top: 10px;
    }

    /* Space between category header and first card below it */
    .cat-section-header + .tl-point {
        margin-top: 10px;
    }

    .cat-section-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .cat-section-icon svg {
        width: 18px;
        height: 18px;
    }

    .cat-section-title {
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        line-height: 1.2;
        margin: 0;
    }

    .cat-section-line {
        flex: 1;
        height: 2px;
        border-radius: 1px;
    }

    /* Founding — red */
    .cat-section-header.cat-founding .cat-section-icon {
        background: #811717;
    }
    .cat-section-header.cat-founding .cat-section-icon svg {
        fill: #fff;
    }
    .cat-section-header.cat-founding .cat-section-title {
        color: #811717;
    }
    .cat-section-header.cat-founding .cat-section-line {
        background: linear-gradient(90deg, #81171733, transparent);
    }

    /* Growth — green */
    .cat-section-header.cat-growth .cat-section-icon {
        background: #811717;
    }
    .cat-section-header.cat-growth .cat-section-icon svg {
        fill: #fff;
    }
    .cat-section-header.cat-growth .cat-section-title {
        color: #811717;
    }
    .cat-section-header.cat-growth .cat-section-line {
        background: linear-gradient(90deg, #81171733, transparent);
    }

    /* Innovation — blue */
    .cat-section-header.cat-innovation .cat-section-icon {
        background: #811717;
    }
    .cat-section-header.cat-innovation .cat-section-icon svg {
        fill: #fff;
    }
    .cat-section-header.cat-innovation .cat-section-title {
        color: #811717;
    }
    .cat-section-header.cat-innovation .cat-section-line {
        background: linear-gradient(90deg, #81171733, transparent);
    }

    /* Leadership — gold */
    .cat-section-header.cat-leadership .cat-section-icon {
        background: #811717;
    }
    .cat-section-header.cat-leadership .cat-section-icon svg {
        fill: #fff;
    }
    .cat-section-header.cat-leadership .cat-section-title {
        color: #811717;
    }
    .cat-section-header.cat-leadership .cat-section-line {
        background: linear-gradient(90deg, #81171733, transparent);
    }

    /* =========================================
       TIMELINE WRAPPER — vertical
       ========================================= */
    .timeline-wrapper {
        height: auto;
        padding: 0 0 30px;
        margin-top: 0;
        z-index: 1;
    }

    /* Hide desktop-only elements on mobile */
    .tl-heading { display: none !important; }
    .tl-arrow { display: none !important; }
    .tl-subtitle { display: none !important; }
    .tl-float-card { display: none !important; }

    /* Mobile elements already visible — desktop hides are scoped to min-width:1025px */

    .timeline-fill {
        display: none;
    }

    /* Each point draws its own line segment connecting to the next dot */
    .tl-point::before {
        content: '';
        position: absolute;
        left: 28px;
        top: 30px;
        bottom: -16px;
        width: 2px;
        background: #e0e0e0;
        transform: translateX(-50%);
        z-index: 1;
    }

    /* Category-colored line segments */
    .tl-point.founding::before   { background: #81171733; }
    .tl-point.growth::before     { background: #81171733; }
    .tl-point.innovation::before { background: #81171733; }
    .tl-point.leadership::before { background: #81171733; }

    /* Last point before a category header: no line extending down */
    .tl-point.cat-last::before {
        bottom: 0;
    }

    /* =========================================
       DOTS CONTAINER — vertical
       ========================================= */
    .timeline-dots {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        transform: none;
        height: auto;
        gap: 0;
        padding: 0;
    }

    /* =========================================
       EACH POINT
       ========================================= */
    .tl-point {
        position: relative;
        width: 100%;
        min-height: auto;
        display: flex;
        align-items: flex-start;
        padding-left: 56px;
        padding-right: 16px;
        margin-bottom: 0;
        cursor: default;
    }

    /* Stem / dot */
    .tl-stem {
        position: absolute;
        left: 28px;
        top: 30px;
        bottom: auto;
        transform: translate(-50%, -50%);
        flex-direction: row;
        align-items: center;
        z-index: 3;
    }

    .tl-point.above .tl-stem,
    .tl-point.below .tl-stem {
        bottom: auto;
        top: 30px;
    }

    .tl-tick { display: none; }
    .tl-year { display: none; }

    .tl-dot {
        width: 14px;
        height: 14px;
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px #ccc;
        transition: all 0.4s ease;
    }

    .tl-point.founding .tl-dot   { background: #811717; box-shadow: 0 0 0 2px #811717; }
    .tl-point.growth .tl-dot     { background: #811717; box-shadow: 0 0 0 2px #811717; }
    .tl-point.innovation .tl-dot { background: #811717; box-shadow: 0 0 0 2px #811717; }
    .tl-point.leadership .tl-dot { background: #811717; box-shadow: 0 0 0 2px #811717; }

    .tl-point:hover .tl-dot { transform: none; }

    /* =========================================
       INFO CARD — white, colored left accent (mobile)
       ========================================= */
    .info-card {
        display: flex !important;
        position: relative;
        width: 100% !important;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none !important;
        margin: 4px 0 16px 0 !important;
        flex-direction: column;
        border-radius: 14px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow:
            0 2px 8px rgba(0,0,0,0.04),
            0 8px 24px rgba(0,0,0,0.06);
        overflow: hidden;
        border-left: 4px solid #ccc;
        z-index: 1;
    }

    .tl-point.founding .info-card   { border-left-color: #811717; }
    .tl-point.growth .info-card     { border-left-color: #811717; }
    .tl-point.innovation .info-card { border-left-color: #811717; }
    .tl-point.leadership .info-card { border-left-color: #811717; }

    .tl-point.above .info-card,
    .tl-point.below .info-card {
        transform: none !important;
    }

    .tl-point.active .info-card {
        max-height: none;
    }

    /* =========================================
       YEAR BADGE — bold, category-colored
       ========================================= */
    .card-year-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px 0;
        font-family: 'Open Sans', sans-serif;
        font-size: 26px;
        font-weight: 800;
        color: #222;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .card-year-badge::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #eee;
    }

    .tl-point.founding .card-year-badge   { color: #811717; }
    .tl-point.growth .card-year-badge     { color: #811717; }
    .tl-point.innovation .card-year-badge { color: #811717; }
    .tl-point.leadership .card-year-badge { color: #811717; }

    /* =========================================
       CARD INNER
       ========================================= */
    .card-inner {
        display: flex;
        flex-direction: row;
    }

    /* Image — rounded, inset */
    .card-image {
        width: 100px;
        min-width: 100px;
        height: auto;
        min-height: 120px;
        align-self: stretch;
        position: relative;
        margin: 10px 0 10px 12px;
        border-radius: 10px;
        overflow: hidden;
        background: #e0e0e0;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 10px;
    }

    /* Body */
    .card-body {
        padding: 8px 14px 12px;
        flex: 1;
        background: transparent;
    }

    .card-body h3 {
        font-family: 'Open Sans', sans-serif;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 2px;
        color: #1a1a1a;
        line-height: 1.3;
    }

    .card-body p {
        font-size: 12.5px;
        line-height: 1.5;
        margin-bottom: 8px;
        color: #555;
    }

    .card-location {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11.5px;
        margin-bottom: 4px;
        color: #999;
    }

    .card-location svg {
        width: 11px;
        height: 11px;
        fill: #811717;
        flex-shrink: 0;
    }

    .card-badge {
        display: inline-block;
        font-size: 10px;
        padding: 3px 10px;
        letter-spacing: 0.8px;
        border-radius: 6px;
        font-weight: 600;
        text-transform: uppercase;
        background: #e8dcc8;
        color: #8a6d3b;
    }

    /* Category-colored badges */
    .tl-point.founding .card-badge   { background: #fce8e9; color: #811717; }
    .tl-point.growth .card-badge     { background: #ededee; color: #811717; }
    .tl-point.innovation .card-badge { background: #fce8e9; color: #811717; }
    .tl-point.leadership .card-badge { background: #ededee; color: #811717; }
}

/* =============================================
   SMALL MOBILE — max-width: 480px
   ============================================= */
@media (max-width: 480px) {

    .zzt-page-header {
        padding: 20px 16px 14px;
    }

    .zzt-page-header h2 {
        font-size: 1.35rem;
    }

    .zzt-page-header p {
        font-size: 0.8rem;
    }

    .cat-section-header {
        padding: 22px 12px 12px 12px;
        gap: 10px;
    }

    .cat-section-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .cat-section-icon svg {
        width: 15px;
        height: 15px;
    }

    .cat-section-title {
        font-size: 13px;
    }

    /* Stack image on top for small screens */
    .card-inner {
        flex-direction: column;
    }

    .card-image {
        width: calc(100% - 24px);
        min-width: unset;
        height: 160px;
        min-height: 160px;
        margin: 10px 12px 0 12px;
        border-radius: 10px;
    }

    .card-year-badge {
        font-size: 22px;
        padding: 10px 14px 0;
    }

    .card-body {
        padding: 8px 14px 12px;
    }

    .card-body h3 {
        font-size: 14px;
    }

    .card-body p {
        font-size: 12px;
        line-height: 1.45;
    }

    .tl-point {
        padding-left: 48px;
        padding-right: 10px;
    }

    .tl-stem { left: 22px; }

    /* Shift line segment to match smaller left offset */
    .tl-point::before {
        left: 22px;
    }
}

/* =============================================
   Scroll-triggered entrance animation
   ============================================= */
@media (max-width: 1024px) {
    .tl-point.tl-animate,
    .cat-section-header.tl-animate {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .tl-point.tl-animate.visible,
    .cat-section-header.tl-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Active dot glow */
    .tl-point.founding.active .tl-dot  { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #81171744; }
    .tl-point.growth.active .tl-dot    { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #81171744; }
    .tl-point.innovation.active .tl-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #81171744; }
    .tl-point.leadership.active .tl-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #81171744; }
}
